1 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
3 * TreeView.cs: Redraw the whole node area when the selected node changes.
4 Things like state images were not getting redrawn because the invalid
5 rectangle was too small.
8 2008-09-23 Mario Carrion <mcarrion@novell.com>
10 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
13 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
15 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
18 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
20 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
23 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
25 * StatusBar.cs: Add tooltip support.
28 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
30 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
31 alignments of sub items in Details view. Patch by John Mortlock (johnm at
35 2008-09-23 Neville Gao <nevillegao@gmail.com>
37 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
40 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
42 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
45 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
47 * ListView.cs: Don't do anything when EnsureVisible is called inside a
48 BeginUpdate/EndUpdate block.
51 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
53 * ListViewItem.cs: The semantics for the public .ctor of
54 ListViewSubItemCollection need us to already have a Text value for the
55 item, which in our implementation have as available *after* adding the
56 first sub item. So create an internal .ctor that satisfies our needs
57 and let the public .ctor have the same semantics as .net.
60 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
62 * ListControl.cs: Changes in Formatting related values should call
63 RefreshItems, as .net does.
65 * ListBox.cs: In the respective overrides of RefreshItems calculate
66 layout as well as refreshing - again, this is what .net does.
69 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
71 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
72 since we are already doing that when we change the value of the
73 scrollbar or force the call to ScrollWindow in the same method. This
74 way we don't cause a Invalidate call for all the listbox bounds for
75 methods calling UpdateTopItem with an already updated top item. This
76 was happening specially calling EnsureVisible with already visible
79 2008-09-18 Mike Gorse <mgorse@novell.com>
81 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
82 XplatUIStructs.cs: Added KeyFilter
85 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
87 * RelatedPropertyManager.cs: The properties returned by
88 GetItemProperties should be that ones of the *actual* object returned
89 by the property, not the property type - this is very special when the
90 property exposes a type, but the returned object actually is a child
91 class and implements more functionality and properties.
93 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
95 * Binding.cs: Don't look for the property in the data source if the
96 passed string is empty.
98 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
100 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
101 fix unused variable warnings.
103 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
105 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
108 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
111 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
112 leads to the window manager overriding our border style and zorder.
113 - Allow the activation of non-modal forms, which are children of a
117 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
119 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
120 ask the window manager to do the work instead of changing the property
124 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
126 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
127 AddNew to fix some navigation for empty datasets. [Fixes #323053]
129 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
131 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
132 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
133 border and fixes some drawing issues when resize form.
135 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
137 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
139 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
142 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
144 * TextBoxBase.cs: For standard textbox the scrollbars are always
145 visible if Multiline is true.
148 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
150 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
153 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
155 [Fixes most od DBNull and HeadersVisible problems]
158 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
159 returns the value that we need.
160 - Fixed FromPixelToColumn method that return zero for first column and for
161 row header cell, now it returns -1 for row header cell.
162 - Fixed HitTest to check row header cell in column header area, it now
163 returns HitTestType.None. [Fixes #322864]
164 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
165 checks for RowHeadersVisible and other things.
166 - If an exception occurs when setting CurrentCell and user type 'yes' in
167 message dialog, invalidade current and new cell and set setting_current_cell
168 to false to prevent future errors. [Partially fixes #323050]
170 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
171 value (SetColumnValueAtRow), it must be done by grid to properly show
172 messages. [Fixes #323050]
174 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
175 better draw column and row header. Also dont draw anything when column
176 headers is not visible.
178 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
180 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
183 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
185 * TreeView.cs: Don't start editing a node on right click, only
188 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
190 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
191 disabled over a year ago.
192 * Form.cs: Wrap calling Load in a try/catch because it can happen
193 before the catch-all one in NativeWindow.
196 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
198 * ToolStripDropDownMenu.cs: Calculate the connected area better
199 to take into account when the drop down is not directly under the
201 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
203 2008-09-16 Mario Carrion <mcarrion@novell.com>
205 * ScrollBar.cs: New event added: UIAValueChanged, generated when
206 LargeChange, SmallChange, Maximum or Minimum values are changed.
209 2008-09-16 Mario Carrion <mcarrion@novell.com>
211 * ErrorProvider.cs: Component enabled to support accessibility.
212 * Application.cs: Updated to Initialize UIA in ErrorProvider.
215 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
217 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
218 so we don't highlight on first focus.
221 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
223 * TextControl.cs: Correctly calculate the height of the area we
224 need to invalidate when we have started scrolling and viewport_y
225 is used. [Fixes bug #387608]
227 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
229 * TextControl.cs: When getting the SelectedText, don't add in
230 NewLine characters, as they are already contained in the lines.
233 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
235 * TextBoxBase.cs: Replace the buggy Lines setter with one that
236 simply concats the lines and send it to the Text setter.
237 [Fixes issue #2 and #3 of 388115]
239 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
241 * Binding.cs: The default value of DataSourceNullValue should be
242 Convert.DBNull actually. Also, the NullValue should only be used *if*
243 itself is not null, and use the null/Convert.DBNull value instead.
245 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
247 * TextControl.cs: Add a method to convert a string newline to the
249 * TextBoxBase.cs: When the user hits enter, insert a native newline.
250 [Fixes part 1 of bug #388115]
252 2008-09-15 Mario Carrion <mcarrion@novell.com>
254 * ToolTip.cs: UnPopup event set to internal to match public API.
256 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
258 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
259 have to remove the Ctrl in order for the focus moving code to kick in.
262 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
264 * CheckedListBox.cs: Return the real item index from Add. It may not be
265 the last item if the list is sorted. The user can change the NewValue in
266 the ItemCheck event, we need to use that value if so.
267 * ListBox.cs: Return the real item index from a sorted Add.
270 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
272 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
273 happen that the icons from the theme is missing or the particular size
277 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
279 * Binding.cs: When assigning null or DBNull depending on value/ref type,
280 use IsValueType instead to get the precise desired value.
283 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
285 * TreeNodeCollection.cs: When adding a new node to an opened node,
286 we have to invalidate everything below the parent node because
287 every node scoots down and we have to repaint them.
290 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
292 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
293 property into account when drawing.
296 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
298 * ListBox.cs: When calling Items.Clear(), call
299 SelectedIndexCollection.ClearCore instead of normal Clear method, to
300 not fire any Selected*Changed event - this is done to match .net and
301 don't have invalid values when changing the DataSourceProperty.
304 2008-09-12 Mario Carrion <mcarrion@novell.com>
306 * HelpProvider.cs: Control enabled to support accessibility.
307 * Application.cs: Updated to Initialize UIA in HelpProvider.
310 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
312 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
313 make the dialog TopMost as well.
316 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
318 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
319 clipboard data better.
322 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
324 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
325 TextChanged and SelectionChanged events fire in the same order as .Net.
328 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
330 * DataGridView.cs: When sorting a column, if it only contains numbers,
331 do a numeric sort instead of a string sort.
334 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
336 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
337 against NRE's when the settings have a null panel.
338 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
342 2008-09-11 Mario Carrion <mcarrion@novell.com>
344 * ToolTip.cs: Control enabled to support accessibility.
345 * Application.cs: Updated to Initialize UIA in ToolTip.
348 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
350 * Control.cs: Make the custom Enumerator internal to fix build.
352 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
354 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
355 already in edit mode, begin edit mode. Generally edit mode isn't
356 started until the second click, but CheckBoxes are special.
358 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
360 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
361 since that can be set to anything. Always add them to the Control's
362 parent. [Fixes bug #416058]
364 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
366 * ListView.cs: Use a custom enumerator for ListViewItemCollection
367 so items can be deleted in a foreach.
370 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
372 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
373 Store the user set explicit height so that the row can be AutoSized
374 and then when AutoSize is turned off, it can get its original size back.
375 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
376 duplicating the logic. When setting AutoSizeRowsMode to None, reset
377 rows' heights back to their explicit values.
380 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
382 * DateTimePicker.cs: When getting focus, select the checkbox if we are
383 already showing it. Also, don't change its value when pressing space
384 if the checkbox is not visible (ShowCheckBox as false). Finally, the
385 checkbox should remain selected as long as Checked is false, and the
386 other parts are disabled.
389 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
391 * MessageBox.cs: Handle shortcut keys to dialog buttons.
394 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
396 * Binding.cs: When the value retrieved from the control property is
397 null, don't return Convert.DBNull for Nullable instances, since they
398 can *actually* get a null value.
401 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
403 * Control.cs: Add an internal field to force doublebuffering regardless
404 of what the public mechanisms are set to. This is because MS's native
405 controls are doublebuffered even though their .Net bits are set to false.
406 * ProgressBar.cs: Set force_double_buffer to true.
409 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
411 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
413 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
414 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
415 without EditingControls, paint background selection for types without
416 EditingControls, reset the EditingCellValueChanged flag when the
417 cell's value is committed.
418 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
419 have EditingControls, remove a double call to a cell's OnContentClickInternal,
420 don't do cell changing logic in OnMouseDown if the cell didn't change.
423 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
425 * DateTimePicker.cs: Fix the edition of am/pm specifier.
427 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
429 * TextControl.cs: Add "&" to the list of valid characters in a URL.
431 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
433 * DateTimePicker.cs: Before incrementing or decrementing any part in
434 the textbox, end any current edit. Also when ending the current edit
435 use the editing_part_index field instead of the current selected
436 value, since they can be out of synch, and we really need to work on
437 the *real* current edit part. Finally when PartData.Selected changes,
438 always try to end any ongoing edit.
439 This should fix some small errors handling mouse navigation and
440 increase/decrease operations.
442 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
444 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
445 respectively) should handled different, since the 12 hours format
446 needs the value typed by the user to be adjusted depending on the
447 a.m/p.m value, so it is preserved, and only changed when the value
448 reaches the 12 value (when it changes from a.m to p.m).
449 Fixes part of #416555.
451 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
453 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
454 * ToolStripDropDownItem.cs: Don't fire events and such again if
455 ShowDropDown is called on an already dropped down item.
456 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
457 subitems, the user may add some in the DropDownOpening event.
460 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
462 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
465 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
467 * MdiClient.cs: When looking for menustrips on a child form to merge,
468 look inside ToolStripContainers.
471 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
473 * ErrorProvider.cs: Unbreak my previous commit.
475 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
477 * ErrorProvider.cs: Icon should always be 16x16.
480 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
482 * GridEntry.cs: Invalidate the child items cache when the property
485 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
487 * GridEntry.cs, PropertyGridView.cs:
488 - Update the ReadOnly detection and rendering to finally hopefully
489 match the one of MSFT.
490 - Niceify and move the debug CWLS.
493 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
495 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
496 since we are already calling Invalidate for the entire control when
497 needed - and call Redraw() when size changes, since we need to paint
498 there by ourselved and not anymore from the mentioned method.
499 This should improve the layout process. Also clean some not needed calls
502 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
504 * MenuAPI.cs: Add a null check to the Alt-F4 code.
507 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
509 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
512 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
514 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
515 PropertyGridView.sc: Implement lazy/delayed propertygrid population
516 on item expansion. Improves performance and fixes bug #417955.
519 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
521 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
524 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
526 * TextControl.cs: Add "_" to the list of valid characters in a URL.
529 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
531 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
535 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
537 * FontDialog.cs: When storing our font size from the starting font,
538 use SizeInPoints instead of Size in case Size is a different unit
542 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
544 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
545 don't use it for anything else, check if a directory is highlighted.
546 If it is, navigate into it.
549 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
551 * Binding.cs: When acquiring a BindingManagerBase for the first time,
552 check that the specified property actually exists in the data source,
553 and throw an ArgumentException if that's not the case - this is only
554 done for this scenario, since for later cases (such Position changes)
555 we throw different exceptions (match .Net).
557 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
559 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
560 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
561 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
562 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
563 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
564 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
568 2008-09-03 Neville Gao <nevillegao@gmail.com>
570 * StatusBar.cs: Control enabled to support accessibility.
573 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
575 * Binding.cs: When connecting the event handler for the "Changed"
576 event for the property, only do it for PropertyManager, and not for
577 CurrencyManager - this is exactly what does .Net, totally ignoring any
578 change in the property of the elements of a list.
581 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
583 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
584 to Windows when creating a window, as we fake MDI stuffs.
587 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
589 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
592 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
594 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
597 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
599 * DataGridView.cs: Raise CellContentClick event.
600 [Fixes part of bug #420351]
602 2008-08-27 Mario Carrion <mcarrion@novell.com>
604 * ScrollBar.cs: Control enabled to support accessibility.
607 2008-08-27 Mario Carrion <mcarrion@novell.com>
609 * ComboBox.cs: Control enabled to support accessibility.
612 2008-08-27 Mario Carrion <mcarrion@novell.com>
614 * ListBox.cs: Control enabled to support accessibility.
617 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
619 * ComboBox.cs: Don't suppress the TextChanged event when changing
621 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
625 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
627 * ErrorProvider.cs: Fix a regression NRE when setting properties
628 for a control before it has a parent.
631 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
633 * Binding.cs: Use the BindingManagerBase.Current value to obtain
634 connect the property "Changed" event, instead of using the data
635 sources - this is useful when the property specifies actually a
636 multiple objects path.
637 Fixes part of #417973.
639 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
641 * RelatedPropertyManager.cs: PropertyManager instances associated to a
642 nested properties should return not the properties of the data source
643 itself, but the properties of the type of a specific property in the
644 data source - match .net.
646 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
648 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
649 AddRange overloads into AddItems method, and added missing NULL check.
650 Added extra argument check to RemoveAt for compatibility with MS.
651 Modified IList implementation of Add, Contains, IndexOf and Remove to
652 throw an ArgumentException if item is not an int. Modified IList.Insert
653 to throw a NotSupportException instead of an Exception. Implemented
655 (ObjectCollection): To avoid duplication, use AddItems method from
656 AddRange overloads. On 1.0 profile, first perform NULL check on items
659 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
661 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
664 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
666 * X11Keyboard.cs : comment out some Console.WriteLine().
668 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
670 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
671 even if premises are not filled. Also XLookupString() was not
672 receiving correct input, which blocked precise input handling
675 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
677 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
678 type of delegate, instead of EventHandler - this was causing a type
679 cast exception in all apps handling this event.
682 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
684 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
685 ShowDropDown to give the user a chance to dynamically add
686 drop down items. [Step 1 of fixing bug #417877]
688 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
690 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
691 had any mouse motion since the call to StartDrag, to match the dnd
693 Fixes part of #381876.
695 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
697 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
698 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
699 Also, if we are actually moving into a different window after
700 grabbing, generate a LeaveNotify event for the previous window, since
701 we need to fire the leave events until the grab ends, not when
702 actually moving outside of the control.
704 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
706 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
707 events only for client windows was wrong - we need to compare the
708 client window against the window receiving the EnterNotify event, not
709 against zero (since client window is never Zero, btw).
710 This prevents having unnecessary handling of EnterNotify events for
711 non-client windows when a gran begins.
713 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
715 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
716 MouseMove/MotionNotify events at all (which should only happen after
717 MouseUp/ButtonRelease, as .Net does).
718 This avoids firing an extra and unnecessary MouseMove event just after
719 every MouseDown event.
721 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
723 * LinkLabel.cs: Always clear any previous links when LinkArea
724 is set. [Fixes bug #410709]
726 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
728 * ToolStripProfessionalRenderer.cs: Revert last change.
729 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
730 for ToolStripDropDownBackground.
732 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
734 * ToolStripProfessionalRenderer.cs: Use Window color for the
735 background of dropdowns to match .Net when the user is not
736 using the default white. [Fixes bug #418108]
738 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
740 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
741 it caused timer registration twice. Fixed bug #418107.
743 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
745 [Correction: This is the actual change to X11Dnd issue, not the
746 previous one, which was actually a different issue.]
748 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
749 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
750 when the pointer is actually in motion, but only when the pointer
751 seems to stop (as .net does).
752 Fixes part of #381876.
755 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
757 * ListBox.cs: Fix CopyTo implementation.
760 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
762 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
763 drawing a ComboBox's background. Fixes bad disabled rendering when
764 the control is not at 0,0.
767 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
769 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
770 ComponentModel layer, which will properly prioritize the attributes.
771 Avoids wrong prioritization of duplicate attributes when retrieving
772 the converter and editor.
775 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
777 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
778 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
779 when the pointer is actually in motion, but only when the pointer
780 seems to stop (as .net does).
781 Fixes part of #381876.
783 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
785 * GridEntry.cs: Perform stricter check for the ParentEntry's
786 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
790 2008-08-14 Geoff Norton <gnorton@novell.com>
792 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
793 Fixes #396983. Properly fix ActiveWindow trackin and do not
794 prematurely show POPUP windows.
796 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
798 * XplatUIX11.cs: Handle the obscured regions while scrolling using
799 GraphicsExpose event, processing it just after we copy the scrolled
800 area. This ensures that the next calls to ScrollWindow will copy
801 regions already updated, and the scrolling will be smooth. Also remove
802 the code that was trying to detect the obscured regions, since we are
803 not using it anymore (too slow).
805 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
807 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
808 MultiExtended mode, by separating some logic between the ctrl/shift
809 handling. Also ignore any MouseMove events generated together with
810 MouseDown events - we are only interested in the real motion event.
811 Fixes part of #414963.
813 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
815 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
816 is selected. [Fixes bug #414143]
818 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
820 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
821 and not the parent one (the propertyowner). Fixes the behavior of
822 GetConverter/GetEditor.
825 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
827 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
828 [Fixes part of bug #415452]
830 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
832 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
833 GridEntry, not the current.
836 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
838 * TextBoxBase.cs: De-internalize max_length field.
839 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
840 share the same logic.
843 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
845 * ListBox.cs: Selection changes made in the MouseDown handler should
846 use the *Core versions of selection in SelectedIndices collection,
847 since the SelectedIndexChanged/SelectedValueChanged events are fired
848 until we get a MouseUp event, and thus we need to separate the logic
849 from the events, as done in the keyboard navigation. Also, fire those
850 selection events from keyboard navigation in SelectionMode.None, even
851 if we don't have a selection, as .Net does.
853 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
855 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
856 last change introduced when an item is clicked but isn't on a toolstrip.
858 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
860 * ListBindingHelper.cs: When looking for an object's properties, check
861 if it implements ICustomTypeDescriptor, in which case we should
862 resolve the propertu based on its GetProperties method, not in its
863 actual properties. This is what .Net seems to do.
864 Fixes a UsingWebBrowser problem during initialization.
866 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
868 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
869 sitting on a MenuStrip.
871 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
873 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
874 no children with the keyboard, we need to release the keyboard capture.
877 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
879 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
880 no children with the keyboard, we need to release the keyboard capture.
883 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
885 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
886 the GTK+-based implementation of VisualStyles.
887 * ThemeWin32Classic.cs: Exposed various layout values for use in the
888 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
889 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
890 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
891 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
892 TrackBarHorizontalTrackHeight.
894 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
896 * TabControl.cs: Added hot style handling for the scroll buttons.
897 right_slider_state, left_slider_state are now of type PushButtonState to
898 allow for a hot state. Added tracking of the mouse button being held down
899 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
900 LeftScrollButtonArea.
901 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
902 TabControlGetRightScrollRect.
904 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
906 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
909 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
911 * Form.cs: Ensure that we reset the shown_raised flag after
912 the form is closed, so that we raise the show events the next
913 time the form is shown.
916 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
918 * Form.cs: Ensure closing events are raised only once.
921 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
923 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
924 so that we can successfully generate the LParam in-place instead of
925 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
926 navigation for menus.
928 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
930 * MenuAPI.cs: When montion don't set the keyboard navigation state to
931 'navigating'. Fixes bug #411356.
933 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
935 [Fixed remaining issues of #406773 (#1)]
936 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
938 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
939 MainMenu (already done) and ContextMenu creation.
941 * ContextMenu.cs: Create tracker on construction.
943 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
945 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
946 possible to instantiate MenuTracker without GrabControl.
948 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
950 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
952 * MainMenu.cs: Set GrabControl on SetForm using current form.
954 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
956 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
958 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
960 * MenuAPI.cs: Check if menu is activated before deactivate it in
963 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
965 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
967 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
968 - One style instance can only participate in a single style collection.
969 - Styles can request their owner to layout whenever their properties
971 [Fixes bugs #412583 and #412582]
973 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
975 * X11Keyboard.cs: Implement the generation of the LParam for
976 all keyboard messages.
979 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
981 * ListBox.cs: Don't let the user set TopIndex so high that it
982 scrolls up far enough to show empty items.
985 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
987 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
988 (I'm an idiot and forgot to commit the actual changes, as well as
989 specify the right file, which is this one, not ListView.cs).
991 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
993 * ListView.cs: Don't draw ListViewSubItem instances from
994 DrawListViewItem - we need to reuse the main item's drawing for the
995 first sub item in case owner draw is true, but wants the system to
996 do the default draw for the first sub item, without incurring in a
1000 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
1002 * ToolStripButton.cs: Update Checked for CheckOnClick before
1003 raising the Click event. [Fixes bug #412505]
1005 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
1007 * Form.cs: Remove some seems leftover code for non-TopLevel's
1008 CreateParams, which is breaking ClientSize sizing, because it
1009 removes the border window styles.
1011 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
1013 * PropertyGrid.cs: Invalidate the View when the PropertyTab
1016 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
1018 * WebBrowser.cs: Removed debug output.
1020 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
1022 * FileDialog.cs: Apply patch from Ernesto to clean up some
1025 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1027 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
1028 that the change has an immediate effect.
1030 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1032 * ScrollableControl.cs: Update PerformLayout calls to include
1033 provide the name of the property that changed.
1035 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1037 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
1038 location. Fixes drawing of border and cell borders if scrollable.
1040 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1042 * ScrollableControl.cs: Perform layouting after the AutoScroll
1043 properties have changed, so that the changes have immediate
1047 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1049 * XplatUIX11.cs: Non Client area is actually Client such in the
1050 case of NotifyIcon, so double check WholeWindow == ClientWindow
1051 when adding an expose.
1052 [Fixes bugs #324237 and #357022]
1054 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1056 * TableLayoutPanel.cs: Invalidate after layouting, so that we
1057 repaint the cell borders.
1059 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1061 * PropertyGridTextBox.cs: Stop filtering messages prior to our
1062 disposal to avoid unexpected ObjectDisposedExceptions.
1064 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
1066 * TableLayoutPanel.cs: Layout on Row/Column count change.
1068 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
1070 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
1072 * PictureBox.cs: When ImageLocation is set to null or an empty string,
1073 only set image to null if it was previously initialized from an url
1074 (or using ImageLocation). In ImageLocation, load specified image
1075 asynchronously if WaitOnLoad is false. Added support for local file
1076 paths to LoadAsync, and added missing argument check.
1078 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1080 * DateTimePicker.cs:
1081 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
1082 order to set the value as required (which means: when selection
1083 changes for a part being edited, and not before that if not needed).
1084 Also use an enum to describe which part are we using, and use the
1085 selection as a property in PartData, in order to notify the
1086 DateTimePicker owner that we need to end the current edit.
1089 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
1091 * PropertyGridTextBox.cs: Validation should be performed only if we
1092 are focused. We can lose focus for example if the Return key is used
1093 to set the entry and there is an error. When the message box is
1094 displayed we would have validate on click in the message box.
1096 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
1098 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
1099 in order to determine that we are expandable is wrong. There was a bug,
1100 now fixed, in TypeDescriptor that was causing the wrong converter to be
1101 returned which caused GetPropertiesSupported == false in most cases.
1104 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
1106 * ImageList.cs: Fix ICollection.CopyTo implementation for
1107 ImageListCollection. [Fixes bug #409169]
1109 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1111 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
1112 WorkingArea so that menus can appear on the second monitor
1113 when one has dual monitors.
1115 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1117 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
1120 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1122 * TextBox.cs: Implement navigation support for auto complete in
1123 TextBox, as well as refactor the code to show the auto complete window
1124 when receiving a WM_CHAR message, instead of TextChanged, since
1125 autocomplete itself should be able to set the Text a lot of times and
1126 finally only typing should show it, not changes from code.
1128 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1130 * TabControl.cs: When expanding the selected tab, don't adjust the
1131 width if alignment is Right, since it has a different offset than 0,
1132 as opposed to the other alignments.
1133 Fixes the selected tab not being painted at all with alignment = Right
1134 and using FillToRight size mode.
1136 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1138 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
1140 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1142 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1143 values from the textbox to the boundary values. [Fixes bug #409026]
1145 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1147 * TreeNodeCollection.cs: We were copying one too many elements when
1148 doing our array copy. Fixes a crash when RemoveAt is called.
1151 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1153 * TabControl.cs: When doing the layout and need to call FillRow -using
1154 FillToRight size mode-, use the overload receiving a bool param
1155 indicating whether we need to do a vertical or horizontal calculation.
1156 Fixes part of #399583.
1158 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1160 * TextBox.cs: When painting, use the value returned by
1161 GetLastVisibleItem instead of using the cached last_item field, since
1162 there could be a desynchronization between the layout and the
1163 painting. Fixes a AOOR exception in auto complete mode.
1165 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
1167 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1168 NonClientAreaEnabled until our VisualStyles is modified to allow it.
1170 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
1172 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1174 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1176 * TextBox.cs: When focus is lost, if the auto complete listbox is
1179 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1181 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1182 tracking size for tool windows.
1183 * Theme.cs, ThemeWin32Classic.cs : Extracted
1184 ManagedWindowSpacingAfterLastTitleButton.
1186 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
1188 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
1189 They are bit-rotted and have always been listed as "unsupported".
1191 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
1193 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
1195 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1197 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
1199 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1201 * ListBox.cs: Make sure last_item_visible gets reset before we try
1202 to do a layout due to scrollbars appearing or disappearing.
1205 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1207 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
1208 for different window themes. [Fixes bug #339140]
1210 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1212 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
1213 in ManagedWindowBorderWidth.
1215 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1217 * InternalWindowManager.cs: Change MouseMove to take a point, so
1218 we can use the same point later on.
1219 * MdiWindowManager.cs: Store point sent to MouseMove so we can
1220 later reset to it. On Windows, the Cursor.Position had already
1221 changed by the time we were resetting to it.
1224 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1226 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
1228 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
1232 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1234 * MdiWindowManager.cs: Double-clicking on the title bar should not
1235 maximize a MDI form if MaximizeBox = false.
1237 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1239 * ThemeVisualStyles.cs: Fixed a warning.
1241 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1243 * ThemeVisualStyles.cs: Fixed warnings and formatted.
1245 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1247 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
1248 implementation produces a better result.
1250 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1252 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
1255 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1257 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
1258 cannot be used from the ThemeEngine constructor.
1259 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
1260 Application.VisualStylesEnabled because it does not work on X11.
1262 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
1264 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
1265 that we did not always check for, as well as fixes to the IList
1266 implementations. [Fixes bug #402703]
1268 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1270 * IDeviceContext.cs: Added Dispose.
1272 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1274 * Control.cs: Added OnSizeInitializedOrChanged.
1275 * Form.cs: OnLoadInternal: Added a call to
1276 Control.OnSizeInitializedOrChanged.
1277 * InternalWindowManager.cs:
1278 * HandleTitleBarMouseMove: No longer invalidates the parent window.
1279 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
1280 * TitleButton: Added Entered.
1281 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
1282 * MdiWindowManager.cs:
1283 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
1284 move over the maximized title buttons causes a change.
1285 * IsActive: Can now be called before the window is added to a MDI parent.
1286 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
1287 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1288 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
1289 * ThemeWin32Classic.cs:
1290 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
1291 * DrawTitleButton takes a new form parameter.
1292 * Added ManagedWindowTitleButtonHasHotElementStyle,
1293 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1295 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1297 * ThemeEngine.cs: ThemeVisualStyles is now selected if
1298 Application.EnableVisualStyles has been called, even if the current system
1299 configuration does not support rendering with Visual Styles.
1300 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1301 Styles should not be used.
1303 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
1305 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
1306 ComboBox in FormsTest.
1308 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
1310 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
1311 for fixed toolwindows.
1313 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
1315 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1317 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1319 * Control.cs: CreateControl just returns if the Control is diposed
1320 and doesn't throw ObjectDisposedException.
1323 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1325 * Control.cs: Do not create the control if the parent isn't created
1326 yet, e.g in the case of a parented form on which .Show is called.
1327 It will be created when the parent is made visible/created.
1330 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1332 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
1333 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1336 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1338 * Form.cs: When disposed set owner to null. Improves #402446.
1340 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1342 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
1343 use children's PreferredSize if in AutoSize mode and ExplicitBounds
1345 * Form.cs: Take the Padding into account for the PreferredSize.
1348 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1350 * TabControl.cs: Since we don't support more than one direction in
1351 TabControl rows alignment (this is, the row becomes the
1352 bottom row when selected), make Direction return always 1. This way
1353 the layout doesn't get confused about a bad calculation.
1356 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1358 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
1359 so that the wparam is properly set.
1360 Fixes form moving in the test case in bug 402446.
1362 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
1364 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1365 the full tree instead of nothing. [Improves bug #406584]
1367 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1369 * ThemeWin32Classic.cs: Adjusted minimized window painting.
1371 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1373 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1376 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
1378 * TreeView.cs: Add a null check when using CollapseAll on an
1379 empty tree. [Fixes bug #406449]
1381 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1383 * Form.cs: Make OnMenuComplete internal so we can call it.
1384 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1387 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1389 * TabControl.cs: Handle Up and Down keys when TabControl is in
1393 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1395 * TabControl.cs: Invalidate when we remove a tab. Guard against
1396 an AOORE when trying to remove a tabpage that is not owned by the
1400 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1402 * ScrollBar.cs: Change the LargeChange calculation to be correct.
1403 Ensure we are using LargeChange instead of large_change so we our
1404 calculations are correct.
1407 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1409 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1410 we need to ensure the ColumnCount/RowCount gets set.
1413 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1415 * ListBox.cs: When handling item navigation, if selection mode is
1416 None, call EnsureVisible, since scrolling is normally handled by
1417 selection, that we are not calling in this case.
1420 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1422 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1423 a null check to our focus walking code. [Fixes bug #394332]
1425 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
1427 * ComboBox.cs: Case missed in bug 379596 "Support item
1428 navigation by entering text": On _close_ drop-down select
1429 the first item matching the text in the textbox. [Fixes bug #397265]
1431 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1433 * DataGridView.cs: Fix a crash when sorting by column headers,
1434 mentioned in bug #404841. Remove some dead switch cases.
1436 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1439 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1440 uses the AutoComplete support in the internal TextBox. Also TextBox
1441 can store a reference to ComboBox, in case AutoCompleteSource is set
1442 to ListItems (this is, ComboBox's items, and we don't want to pass an
1443 additional collection).
1445 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1447 * ListViewItem.cs: Restore the initial value of bounds rect to
1448 Rectangle.Empty, and is this value for Layout detection in virtual
1449 mode. Fixes the tests.
1451 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
1453 * XPlatUI.cs: Remove references to "new" X11 backend.
1455 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1457 * Control.cs: Add an internal virtual OnDragDropEnd method
1458 to allow controls such as ListBox, which depend on a sequence
1459 of MouseDown+Move+End events, to handle the lack of a MouseUp
1460 when a DnD operation is started in MouseDown.
1461 * ListBox.cs: If a DnD operation is started in MouseDown we won't
1462 get a MouseUp, so reset our state whenever a DnD operation ends.
1464 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1466 * PropertyGrid.cs: Clear the root griditem first thing when
1467 new object/s is/are selected. Fixes some rare cases where
1468 the View will get a paint request and won't know that the
1469 grid is in the process of repopulating.
1471 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1473 * XplatUIX11.cs, InternalWindowManager.cs:
1474 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
1475 doesn't automagically update the FormBorderStyle, so we must
1476 double check the CreateParams explicitly to determine if the
1477 window is a toolwindow.
1478 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
1479 instead of doing custom checks.
1481 Fixes toolwindows for the test case in bug #402446
1483 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1485 * Control.cs: Visibility of the control should be false
1486 when the handle is destroyed in WmDestroy and not immediately
1487 in Dispose(). This is effectively where the disposing process
1488 ends even though the control is marked as Disposed immediately
1489 after calling Dispose().
1492 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1494 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
1495 when the textbox gets focus.
1498 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1500 * PropertyGridTextBox.cs, PropertyGridView.cs:
1501 - Alt + Down should show the drop down editor.
1502 - Focus the editor when showing it
1505 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
1507 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1508 that are not the first panel.
1509 * StatusBar.cs: Ensure that the X coordinate of panels is always
1510 stored. Fix IList implementation of StatusBarPanelCollection to
1511 call the regular methods.
1512 [Fixes bug #403599, #402165]
1514 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
1516 * ThemeWin32Classic.cs: Fix position calculation for centered
1517 text on status bar panels. [Fixes bug #402165]
1519 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1521 * Splitter.cs: Fix Splitter to:
1522 - Work for arbitrary splitter size
1523 - Handle MinSize and MinExtra properly
1524 - Get rid of absolute positioning during drag and use relative
1525 - Multiple other fixes
1528 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1530 * Cursor.cs: Show shouldn't hide the cursor.
1532 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1534 * ListViewItem.cs: When invalidating, add some extra space to bounds,
1535 since focus rectangle and selection can add some space and need to
1536 take into account those small offsets - specially in Details view.
1537 * ListView.cs: Instead of invalidate using item Bounds directly, call
1538 item.Invalidate, to have the code centralized.
1539 Fixes focused/selection garbage when selecting and deselecting items
1542 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1544 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1545 mode we can check whether we have to force a Layout or not, and can
1546 cache based on this, instead of avoiding caching all the the time. Do
1547 this check in GetBounds and TextBounds.
1548 Fixes selection in Details view.
1550 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1552 * ListView.cs: Make HeaderControl internal, thus the theme engine can
1553 get its *real* height instead of trying to infere it.
1554 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1555 get the position of them, since it's in general a bad idea in general,
1556 and because we can't do that in virtual mode. Instead get the first
1557 visible item as well as item height, and draw them.
1560 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
1562 * ToolStripSplitButton.cs: We can't add in extra width if
1563 the button is not AutoSize. [Fixes bug #401279]
1565 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
1567 * PaddingConverter.cs:
1568 - Implement conversion to InstanceDescriptor
1569 - Handle "All" in CreateInstance by using the supplied
1570 ITypeDescriptorContext.
1571 [Fixes bugs #396076 and #396078]
1573 Patch by Andy Hume <andyhume32@yahoo.co.uk>
1574 Code contributed under MIT/X11 license.
1576 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
1578 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
1580 Add Category attributes.
1581 Code is contributed under the MIT/X11 license.
1583 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
1586 - Fix a NRE when unparenting a form.
1587 - Do not recreate or destroy a parented form when
1590 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1592 * TextBox.cs: Implement basic support for AutComplete with custom
1595 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
1597 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1598 DropDownButtonBounds should be from the origin of the button, not the
1599 ToolStrip. [Fixes bug #401279]
1601 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
1603 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1604 running gtk_init_check. This prevents GAIL from loading
1605 unnecessarily, which was breaking UIA support. Initial fix for bug
1607 * Application.cs: Add UIA support to Winforms. New static constructor
1608 uses reflection to initialize UIAutomationWinforms assembly. Added
1609 PreRun event so UIA can initialize before the mainloop starts, and
1610 FormAdded event so UIA can provide a11y support for new Forms in an
1613 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
1615 * DataGridView.cs: When binding to a dataset, subscribe to table
1616 and column change events. Unsubscribe to these when we clear bindings.
1619 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
1621 [DataGrid drawing refactory]
1623 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1625 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1626 must be handle by Theme, now it call DataGridPaintColumnHeader.
1628 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1629 test cases must be also fixed because it checks for wrong size.
1631 * ThemeWin32Classic.cs:
1632 - Draw the bottom line of grid caption.
1633 - Prevent to draw caption text when it is empty.
1634 - Use CPDrawBorder3D for 3D efects to simplify code.
1635 - Uses 3D (when not flat) to paint corner shared between row and column
1637 - Fix header drawing issues on win32, now borders are drawing.
1638 - Fix column header paint issues to mimic win32.
1639 - Adjust header drawing for last column, like first one it must be draw
1641 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1643 - DataGridPaintColumnHeader created to draw column headers, it also
1644 paint stuff right on Win32.
1645 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
1649 - DataGridPaintRowHeaderStar method added.
1650 - DataGridPaintColumnHeader method added.
1652 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
1654 * Control.cs: Don't reset to Dock style layout if DockStyle is
1655 set to none. [Fixes bug #399316]
1657 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
1659 * Win32DnD.cs: Fix the check for control not equal null.
1660 Fixes bug #341420 and #381886.
1662 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1664 * DataGridViewRowCollection.cs: Update the indexes of rows after
1665 one has been removed.
1666 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1667 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1668 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1669 rows for the Rows collection, or deleting rows from the bound DataSet.
1671 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1673 * DataGridView.cs: Listen to a DataSet's changed event even
1674 when autogeneratecolumns is false. Refactor the changed event's
1675 add row code to use the same as the existing add row code.
1678 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1680 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1681 much any time the caret moves and there is text, not just when
1682 the selection changes as one would think.
1683 * RichTextBox.cs: Override RaiseSelectionChanged and fire
1687 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1689 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1690 instead of trying to duplicate the code.
1691 * ListBox.cs: Make method internal so we can send keyboard events.
1694 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1696 * TextBoxBase.cs: When pasting and checking the max length,
1697 subtract the selected text length (the text we will be replacing) from
1698 the document length.
1699 * TextControl.cs: Ensure every character insertion is reflected in
1700 charcount, so max length will work properly.
1703 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1705 * ListBox.cs: Ensure scrollbars are updated when a single
1706 column listbox with an already set top-index is created.
1709 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1711 * FontDialog.cs: Typing in the font/style textboxes should search
1712 the list boxes case-insensitively. [Fixes bug #398343]
1714 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
1716 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1717 widths of icon and buttons instead of hard coded values.
1719 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1721 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1722 as well as generating a SelectedIndexChanged event, just like .Net does
1726 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1728 * ListBox.cs: When navigating items visually, use FocusedItem as the
1729 reference point instead of SelectedIndex, since even in
1730 SelectionMode.None we need to support navigation, and in that case we
1731 just can't use SelectedIndex.
1732 Fixes part of #398345.
1734 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
1736 * Control.cs: Make a SetBoundsInternal that avoids the new
1738 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1739 SetBoundsInternal instead of SetBoundsCoreInternal.
1741 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
1743 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
1744 SetBounds for the scrollbars.
1746 2008-06-10 Andreia Gaita <avidigal@novell.com>
1748 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1749 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1750 OnMouseMove, OnMouseOver, OnMouseUp
1751 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1752 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1753 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1754 to the WebControl object to pass to new collection objects
1755 * HtmlHistory.cs: Implement support for individual window histories.
1756 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1757 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1758 GotFocus, LostFocus, OnLoad, OnUnload
1759 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1761 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1762 security level changes and context menu event support.
1764 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1766 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1767 as happens with Esc, patch my Andy Hume.
1770 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1772 * MdiWindowManager.cs: DrawMaximizedButtons now uses
1773 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1774 * Theme.cs: Made MenuButtonSize platform dependent. Added
1775 ManagedWindowButtonSize.
1776 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1777 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1779 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1781 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1782 Added support for rendering with VisualStyles.
1784 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1786 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1787 support for rendering the border with VisualStyles.
1789 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1791 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1792 the icon is not shown.
1793 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1796 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1798 * InternalWindowManager.cs: Draw minimized windows even if they don't have
1801 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1803 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1805 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1807 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1810 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1812 * ComboBox.cs: When snaping height -because of IntegralHeight set to
1813 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1814 if the requested height leaves the listbox area with *less* than the
1815 required are to see one item. We were setting it to PreferredHeight
1816 even for values matching the height for a single item.
1819 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1821 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1823 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1825 * DataGridViewCell.cs: Use property instead of field.
1827 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1829 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1832 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1834 * Theme.cs: Added #region around the managed window code. Made the managed
1835 window methods abstract.
1836 * ThemeWin32Classic.cs: Added #region around the managed window code.
1838 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1840 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
1842 * ThemeWin32Classic.cs: Removed HasBorders checks in
1843 DrawManagedWindowDecorations.
1845 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1847 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1848 Extracted ManagedWindowGetTitleBarIconArea.
1850 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1852 * DataGridViewCellStyle.cs: Don't clone the font.
1854 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1856 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
1858 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1860 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
1861 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
1864 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1866 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
1867 Use Format/FormatProvider before trying converters.
1868 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
1869 are 'set'. Change constructor to not use ApplyStyle since it wants
1870 everything applied. Clone the Font.
1871 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
1872 ApplyStyle the rest.
1874 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1876 * ListView.cs: We need to calculate the scrollbars even if the handle
1877 hasn't been created - this is needed when methods using scrollbars
1878 info, such EnsureVisible, are called before control has been created.
1881 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
1883 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
1884 only if the elements are defined.
1886 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1888 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
1889 section. Also, when setting bounds, snap height as well as save the
1890 requested height if Dock has any value affecting the height: Left,
1891 Right and Bottom - important if using IntegralHeight as true.
1893 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1895 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
1896 passed to SetBounds to reflect the new adjusted height (Integral-wise),
1897 instead of doing that only in our SetBoundsCore override, since the
1898 bounds cached can be the same as saved one and we could not get the
1902 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1904 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
1905 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
1906 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
1907 ToolWindowCaptionButtonSize.
1908 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
1910 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1912 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
1914 * Theme.cs: Made DoubleClickTime plaform dependent.
1916 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1918 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
1919 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1920 ToolWindowCaptionHeight.
1922 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1924 * InternalWindowManager.cs: The adjustment to ensure positive client area
1925 sizes is now platform dependent (disabled on Windows).
1926 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1927 RequiresPositiveClientAreaSize.
1929 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1931 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1933 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1935 * InternalWindowManager.cs: Changed IconicSize to use
1936 SystemInformation.MinimizedWindowSize.
1937 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1938 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1940 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1942 * ComboBox.cs: If the combobox is anchored both on top and bottom,
1943 adjust height if IntegralHeight is true when calling SetBoundsCore (as
1944 likely the height was modified even if Height wasn't specified in
1945 BoundsSpecified parameter).
1946 Fixes part of #396297.
1948 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1950 * InternalWindowsManager.cs: Changed minimum window size while resizing to
1951 SystemInformation.MinWindowTrackSize.
1952 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1953 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1955 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1957 * MenuItem.cs: Fixed Dispose.
1959 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1961 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1962 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1963 EnteredHeaderCell, PressedHeaderCell: Added.
1964 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1965 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1966 theme a chance to override default painting.
1967 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1968 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1969 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1970 ListView and DataGridView header rendering.
1972 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1974 * RichTextBox.cs: GetPositionFromCharIndex should return the
1975 visual position of the character relative to the viewport.
1976 [Fixes part of bug #396664]
1978 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1980 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
1981 and not just for the existance of an UITypeEditor. In some cases
1982 there is an editor associated just to do PaintValue, but which
1983 doesn't actually support editing.
1986 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1988 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1989 if needed, instead of 0 - this should help us in the corner case where
1990 we have more than one item but we are only partially showing 1 item.
1991 Fixes part of #374713.
1993 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1995 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1996 control, return immediately if the any parent control's handle hasn't
1997 been created or isn't visible, as well as avoiding creating the parent
1998 Form if the handle hasn't been previously created.
2001 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
2003 * TableLayoutPanel.cs: Use border sizes when calculating the
2004 panel's preferred size. [Fixes part of bug #396433]
2006 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
2008 * SplitContainer.cs:
2009 - Fix SplitterDistance to update only if needed.
2010 - Make it force min and max validation.
2011 - Handle properly mouse moves outside the resizeable area.
2014 2008-06-02 Andreia Gaita <avidigal@novell.com>
2016 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
2017 (which also suppresses all popup dialogs). Throw NotSupported
2018 exceptions for activex getters/setters.
2019 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
2020 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
2021 StatusText, Version, GoSearch
2022 * HtmlDocument.cs: Add DocType support
2024 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
2026 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
2029 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
2031 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
2033 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
2035 * TableLayoutPanel.cs: When calculating preferred size, use the
2036 actual number of columns and rows, not what the user set them to.
2039 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
2041 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
2044 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2046 * XplatUIX11.cs: When detecting areas obscured in a control by other
2047 toplevel windows while scrolling, return if the control hasn't a
2051 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2053 * XplatUIX11.cs: Properly detect the visible area of a control being
2054 scrolled (obscured by other winforms controls and any X toplevel
2055 windows), to mark as invalid the requested area to be scrolled that
2056 isn't visible and thus can't be copied.
2059 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2061 * ListBox.cs: Compute the precise amount to vertically scroll when
2062 using DrawMode.OwnerDrawVariable.
2063 Patch by jkeymer (j.keymer@gmx.net).
2065 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2067 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
2068 to avoid setting an invalid value for the verticall scrollbar
2069 when navigating items. And, duh, also remove my silly debug messages
2070 from previous commits.
2073 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
2075 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
2076 make it MS compatible.
2078 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
2080 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
2081 - Allow the editing of entries even if their parent is read-only.
2082 - Do not render expandable properties read-only.
2083 - Refactor expansion checks form PropertyGrid into PropertyGrid.
2085 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
2087 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2088 support for the hover style.
2090 2008-05-29 Andreia Gaita <avidigal@novell.com>
2092 * ContainerControl.cs: Check for null dead-end when traversing the tree
2095 [Fixes #394332, patch by Ernesto Carrea]
2097 2008-05-29 Geoff Norton <gnorton@novell.com>
2099 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
2100 constant that it is. Fixes #393981
2102 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
2104 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
2105 that the user probably doesn't want to set this.
2107 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
2109 * ThemeWin32Classic.cs: Don't let the text size be bigger than
2110 the control size for CheckBox/RadioBox.
2111 [Fixes part of bug #394645]
2113 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2115 * PropertyGrid.cs: Update the state of the sorting buttons in
2116 the toolbar if PropertySort is set programatically.
2118 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2120 * GridItemCollection.cs: Add multiple items with conflicting names
2121 support and also preserve name ordering.
2124 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2126 * GridItemCollection.cs: Revert my multiple items with same
2129 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2131 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2133 Fixes part of #393908.
2135 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
2137 * ToolStripDrowDown.cs: When using the Show () methods that have a
2138 Control parameter, set the menu owner to that Control.
2141 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
2143 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2146 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2148 * GridItemCollection.cs: Refactor to support multiple items with the
2152 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
2154 * Control.cs: The 2.0 check for illegal cross thread calls in
2155 Control.Handle were throwing an exception when we were getting
2156 the Handle in order to invoke correctly. Created a private
2157 version that does not contain this check.
2160 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2162 * PropertyGrid.cs: Respect DefaultTabType.
2164 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2166 * ListView.cs: SPACE selects an item.
2169 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2171 * ListView.cs: Reset the search string whenever the items are
2175 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2177 * ListControl.cs: For the first added item PositionChanged is fired
2178 _before_ ItemChanged, which leave us in a temporary invalid state - so
2179 we need to set the selected index from ItemChanged handler *if* we
2180 know that the first item has just been added *and* the items have been
2181 actually added to the ListControl.
2184 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2186 * TabControl.cs: Only clicks with the left button should be
2190 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2194 * TextBox.cs: Expose an internal method in TextBox to restore the
2195 original context menu, and call it from ComboBox to re-use it in the
2196 combobox containing the file name in FileDialog.cs.
2197 Fixes part of #393775.
2199 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
2201 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
2204 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
2206 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
2209 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211 * ComboBox.cs: Minor correction to previous patch: PageDown should
2212 also *try* to move by one item if the computed offset is negative,
2213 just like the PageUp case.
2215 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2217 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
2218 should be done for at least 1 item, and not stay at the same item.
2219 Fixes part of #374713.
2221 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
2223 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
2224 directories. [Fixes bug #393931]
2226 2008-05-22 Andreia Gaita <avidigal@novell.com>
2228 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
2229 Don't fire events until the initial about:blank page has finished
2230 loading. Clean up events.
2232 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
2234 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
2235 FocusIn() too. This should fix the issue on switching
2238 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
2240 * X11Keyboard.cs : set XIM font size to somewhat reasonable
2241 number (ideally the input textbox size, but that could be
2244 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
2246 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
2247 the ToolStripItem's TextChanged. [Fixes bug #393597]
2249 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2251 * TabControl.cs: When invalidating in SelectedIndex and we need to
2252 inflate to take into account the border of the tabs, make sure that
2253 the invalidated rect doesn't overflow the control bounds, since that
2254 would avoid updating at all.
2256 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2258 * TabControl.cs: Don't substract scroller width from the row width,
2259 since we need to take into account the total width of the control when
2260 calculating the position of the tabs. This avoids showing scroller
2261 when it is actually not needed.
2262 Fixes part of #322325.
2264 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2266 * ThemeVisualStyles.cs: Added support for TextBoxBase.
2268 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2270 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2271 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
2273 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2275 * DataGridView.cs: Only paint the top left header cell if there
2278 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2280 * DataGridView.cs: When binding to a BindingSource, get the underlying
2281 list to bind to. [Fixes bug #345483]
2283 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2285 * DataGridView.cs: Do not bind to collection properties.
2288 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2290 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
2292 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2294 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2297 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2299 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2301 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2303 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2306 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2308 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2310 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2312 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2315 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2317 * TabControl.cs: Extended to handle the hot style.
2319 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2321 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2322 Extended UpDownBase code to handle hot and disabled styles.
2324 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2326 * DataGridView.cs: Handle databinding to generic list type things.
2329 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2331 * DataGridViewCellCollection.cs: Add a method to find the cell
2332 with the given DataPropertyName.
2333 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2334 * DataGridViewColumnCollection.cs: Add a method to clear all
2335 autogenerated columns.
2336 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2340 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2342 * DataGridView.cs: Don't try to update the RowTemplate with
2343 a null CellTemplate.
2345 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2347 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2348 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2349 * DataGridView.cs: Lots of fixes/enhancements to databinding to
2352 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2354 * Control.cs: Remove invalidating implicit child controls when
2355 control is invalidated. It was causing too many redraws on
2356 controls with implicit scrollbars.
2357 * ListView.cs: Listen to the Invalidated event and invalidate
2360 2008-05-20 Andreia Gaita <avidigal@novell.com>
2362 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2363 * HtmlDocument.cs: Check for nulls
2365 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2367 * Control.cs: In ControlCollection.RemoveInternal, remove the
2368 internal control before calling PerformLayout and OnControlRemoved,
2369 which was leaving us in an invalid state and causing a X error (bad
2370 match). Observe that Remove () call has the same order.
2371 Fixes an X error changing ComboBoxStyle.DropDownStyle.
2373 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2375 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2376 being fired if ControlStyles.UserPaint style is activated.
2379 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2381 * GridEntry.cs: Don't be so strict when setting the value -
2382 do not check if what we set is what we get.
2385 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2387 * XplatUIX11.cs: If there are no timers timeout should be 0
2390 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2392 * Control.cs: As a followup to invalidating implicit children when
2393 a control is invalidated, only invalidate them if they are in the
2396 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2398 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2400 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2402 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2404 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2406 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2407 * XplatUIWin32.cs: Made Win32DeleteObject public.
2409 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2411 * GridEntry.cs: Determine HasDefaultValue more strictly by using
2412 PropertyDescriptor.ShouldSerializeValue.
2415 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2417 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2418 in the classic theme.
2420 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2422 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2424 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2425 ScrollBarHasPressedThumbStyle.
2427 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2429 * TextRenderer.cs: Included some methods in the 1.1 profile.
2431 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2433 * Control.cs: When we make a control visible, it may have been
2434 previously visible and while it wasn't visible, the z-order of
2435 things may have been shuffled, so the control needs to have its
2436 z-order updated just in case. [Fixes bug #391518]
2438 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2440 * ThemeVisualStyles.cs: Added support for GroupBox.
2442 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2444 * GroupBoxRenderer.cs: Included in the 1.1 profile.
2446 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
2448 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2449 bug #389996; XSelectInput() behaved as mouse handler robber,
2450 so remove extra call to it.
2452 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2454 * Control.cs: Simplify ControlCollection.Contains method.
2456 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2458 * DataGridViewRow.cs: Implement GetPreferredSize.
2460 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2462 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
2464 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2466 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2467 painting and edit control fixes.
2469 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2471 * DataGridView.cs, DataGridViewCell.cs: Work around some external
2472 checks to make sure we are in an actual row/col for top left header cell.
2473 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2475 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2477 * Control.cs: Use long instead of int when handling WParam from
2478 mousewheel scrolling. Int was overflowing on Win64.
2480 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2482 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2483 flow panel without scrolling first, and then calculate the
2484 scrolling based on the new layout. [Fixes bug #390149]
2486 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2488 * ListBox.cs: Invalidate after scrolling up when selected index
2489 changes. [Fixes bug #390151]
2491 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2493 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2494 set, default height to 150. I tried first with DefaultSize, but this
2495 is not generating a SetBoundsCore call before handle creation time, so
2496 we can take it into account. This is just what .net does.
2498 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2500 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2501 as it broke some stuff. Calberto is filing a bug for eno to
2504 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2506 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2507 to 0 is the current value is -1, and if style is not Simple, just
2508 return, like .net does.
2509 Fixes part of #374713.
2511 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2513 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2514 progress bar stuffs, use doubles instead of ints to prevent
2515 overflow. [Fixes bug #389798]
2517 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2519 * XplatUIX11.cs, X11Keyboard.cs :
2520 Significant refactoring on XIM support. Now IM engine UI
2521 should show up, at mostly-correct preedit position.
2522 - Eliminated use of FocusWindow, as it is never mapped
2523 and hence blocks correct preedit position. XIC is now
2524 created per window, and it must be destroyed too when
2525 the window is destroyed.
2526 - WM_QUIT messages should not be filtered even when hwnd
2527 is zombie. Filtering it could cause endless loop.
2528 - Preedit position must move only when the window is alive.
2529 - Make it IDisposable and make sure to release XIM/XICs.
2531 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2533 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2534 XplatUIX11.cs, XplatUIWin32.cs :
2535 fix for bug #325033 and #387693;
2536 - WM_QUIT should not be sent when no running application
2538 - SetTimer/KillTimer (especially on win32) should be
2539 invoked for the window that the timer is/will_be attached.
2540 - There could be unattached timers to a window when it's
2541 started. For those timers, hold pending timers and when
2542 a window is mapped, attach them to it.
2543 - WaitForHwndMessage() could run into loop when
2544 WM_SHOWWINDOW is handled before this method is called.
2545 So, strictly check wm_showwindow state.
2546 - Tick handler should not be invoked while one Tick handler
2547 call is still running (introduced Busy state).
2549 2008-05-13 Andreia Gaita <avidigal@novell.com>
2551 * WebBrowserBase.cs: Override Internal alternative methods for
2552 SetBoundsCore and OnResize instead of the protected ones.
2553 * Control.cs: Move SetBoundsCore and OnResize implementations to
2554 SetBoundsCoreInternal and OnResizeInternal, so they can be
2555 overriden internally (WebBrowserBase needs to catch them but can't
2556 override the protected methods without api compat problems)
2558 2008-05-13 Andreia Gaita <avidigal@novell.com>
2560 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2562 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2565 * ListView.cs: Remove debug messages.
2567 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2569 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2570 area is empty. Also calculate scrollbars in Simple mode based in area
2571 height and total number of items, not in MaxDropDownItems.
2572 Fixes part of #371991.
2574 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2576 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
2578 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2580 * BindingSource.cs: GetListSortDescription is not public.
2582 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2584 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2586 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2588 * HtmlElement.cs: Fix parameter names to match MS.
2589 * HtmlWindowCollection.cs: Should not be sealed.
2591 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2593 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2594 button, because the thumb button will not get drawn if the scrollbar
2595 is disabled. [Fixes bug #389262]
2597 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2599 * ListBox.cs: Handle End key for multi-column listboxen.
2602 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2604 * ListBox.cs: Fix algorithm to determine which column our item is in.
2607 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2609 * ListBox.cs: Invalidate when the listbox is resized.
2612 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2614 * ListBox.cs: There is always at least one row in the ListBox (if
2615 we are doing these calculations.) [Fixes bug #389253]
2617 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2619 * ListBox.cs: There is always at least one column in the ListBox.
2622 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2624 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2625 ensure in Simple mode that the height is exactly the requested one.
2626 Also add the ComboBoxListControl to the controls collection in Simple
2627 mode even if handle hasn't been created.
2628 Fixes part of #371991.
2630 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2632 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2633 our ComboBox owner instead of giving it back to the previous control (
2634 as done in other controls). Also remove the empty override of Select
2635 method, since we want to be selected *and* give focus to our owner.
2636 This should let the user do keys-navigation in Simple mode.
2638 2008-05-10 Geoff Norton <gnorton@novell.com>
2640 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2641 problems with rapid scrolling of treeviews. Fixes #381084
2643 2008-05-10 Geoff Norton <gnorton@novell.com>
2645 * XplatUICarbon.cs: Deactivate the active window before
2646 activating the desired window. Completes fixing #386504
2648 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2650 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2651 SmallChange to the item size width plus the padding, to match .net.
2653 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2655 * FileDialog.cs: Apply the custom filter typed by the user in the file
2656 name combobox as much as possible while navigating in the file dialog.
2659 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2661 * Binding.cs: Actually use NullValue if the retrieved value of
2662 data source is null or DBNull. Makes a test pass.
2664 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
2666 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2667 * MimeIcon.cs: Provide a way to get icons from resources.
2669 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2671 * Binding.cs: When the value retrieved from the control to be assigned
2672 to the data source is null, actually use the 2.0 DataSourceNullValue
2673 value. Make pass a data binding test.
2675 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2677 * Control.cs: We need to invalidate implicit children even when
2678 invalidate is called with invalidatechildren = false. (Implicit
2679 children are really part of the parent.)
2680 * ListView.cs: Double-buffer internal child controls for less
2682 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2683 owner ListView subitems for greatly increased performance.
2686 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2688 * FileDialog.cs: When the user types a wildcard character in the
2689 filename combobox, update the contents of the folder using the text as
2691 Fixes part of #385261.
2693 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2695 * ListBox.cs: Various fixes for MultiColumn listboxen.
2698 2008-05-08 Andreia Gaita <avidigal@novell.com>
2700 * HtmlElement.cs: Implement Style property
2702 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2704 * ListBox.cs: Respect checkboxes when measuring item size.
2705 * ThemeWin32Classis.cs: When drawing list items, don't draw
2706 text outside of the item's bounds to prevent overlapping.
2707 (.Net actually overlaps, but that's just silly.)
2710 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
2712 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2713 Gert Driesen. Fixes bug #324830.
2715 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
2717 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2720 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2722 * BindingSource.cs: When calling IsSynchronized, return the value of
2723 the related IList list.
2725 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2727 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2730 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2732 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
2733 navigation to scroll the grid if the current cell is not visible.
2735 2008-05-07 Andreia Gaita <avidigal@novell.com>
2737 * HtmlElement.cs: Implement TabIndex
2739 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2741 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2742 properties, even when there are no items.
2745 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
2747 * NativeWindow.cs: Add support for multiple handles per window.
2748 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
2749 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
2750 directly - use FromHandle instead.
2753 2008-05-07 Andreia Gaita <avidigal@novell.com>
2755 * HtmlElement.cs: Implement InnerHTML setter
2757 2008-05-07 Andreia Gaita <avidigal@novell.com>
2759 * HtmlDocument.cs: Implement Focused
2761 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2763 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2764 methods, as well as add messages to the exceptions.
2766 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2768 * BindingSource.cs: Setting DataSource should only reset DataMember if
2769 the previous value was null (make pass a not working test).
2771 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2773 * BindingSource.cs: When EndInit call is postponed and is called until
2774 DataSource.EndInit is called, remove the handler for data source.
2776 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2778 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2780 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2782 * ToolStripManager.cs: Store references to toolstrips as
2783 weak references so they do not prevent forms from getting collected.
2786 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2788 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2789 on .Net. So do the same thing in WndProc.
2791 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2793 * TrackBar.cs: Commit patch from Andy Hume that corrects
2794 the clickable areas to better match .Net.
2797 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2799 * TrackBar.cs: Commit patch from Andy Hume that adds the
2800 ResizeRedraw control flag so the track bar repaints itself
2801 when it is resized. [Fixes bug #387072]
2803 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2805 * TrackBar.cs: Commit patch from Andy Hume that adds better
2806 support for keyboard navigation when the TrackBar is vertical.
2809 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2811 * BindingSource.cs: Implement ISupportInitializeNotification support.
2813 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2815 * ThemeVisualStyles.cs: Added support for ToolBar.
2817 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2819 * ToolBar.cs: Made the Vertical property internal.
2821 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2823 * ThemeVisualStyles.cs: Added support for TrackBar.
2825 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2827 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2828 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2829 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2830 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2831 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2832 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2834 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2836 * ThemeVisualStyles.cs: Added support for UpDownBase.
2838 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2840 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
2841 Extracted Theme.UpDownBaseDrawButton.
2843 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2845 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
2846 removed from the static toolstrips collection in ToolStripManager
2847 when they are disposed. Provides a workaround for bug #386483.
2849 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
2851 * GridEntry.cs: Read-only properties with Editor with
2852 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
2855 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2857 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
2858 the menu key and there are no items on the menu.
2861 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
2863 * Control.cs: Avoid calling ToString on a string.
2864 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
2865 * GroupBox.cs: In FlatStyle property throw, not just create, the
2866 exception. Avoid calling ToString on a string.
2867 * ProgressBar.cs: Avoid calling ToString on a string.
2868 * ScrollBar.cs: Avoid calling ToString on a string.
2869 [All issues were found using Gendarme]
2871 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2873 * NotifyIcon.cs: Prevent click events to be trigger after double click
2874 events. Fixes remaining issues of bug #324832.
2876 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2878 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
2879 to mimic win32 behavior. Partially fixes bug #324832.
2881 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2883 * BindingSource.cs: Implement Find methods.
2885 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2887 * BindingSource.cs: Implement Sort, ApplySort overloads, and
2890 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2892 * ListBindingHelper.cs: When calling GetListItemProperties and the
2893 passed object is ITypedList, return the result of
2894 ITypedList.GetItemProperties instead.
2896 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2898 * LinkLabel.cs: Set default value of name on constructor of Link class
2899 only for 2.0 profile.
2901 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2903 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
2904 Fixes remaining issues of bug #346154.
2906 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2908 * LinkLabel.cs: Set a default value for name on internal contructor of
2909 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2911 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2913 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
2914 and refer all instances to owner.links. Partially fixes #346154.
2916 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2918 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
2919 length equal zero. Also called CreateLinkPieces in constructor. It fixes
2920 the LinkLabel test 'TestLinkArea'.
2922 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2924 * Form.cs: Remove menu before close form to prevent form to be not gaced.
2927 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2929 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2932 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2934 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2937 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2939 * MenuAPI.cs: Remove unused ProcessCmdKey method.
2941 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2943 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
2946 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2948 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2951 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2953 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2954 sometimes we open a conext menu on mouse down of some controls and the mouse
2955 up is dispatched to menu and dont need to. It fix remaining issues of
2956 #363711 and other problems related to menu mouse click events.
2958 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2960 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2961 some var names to better fit changes, now we have month_menu and today_menu
2962 vars. Fixes bug #363711.
2964 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2966 * MonthCalendar.cs: Handle every right mouse click to open context menu,
2967 right now the default month menu but it will be change to have "Go to today"
2970 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2972 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2974 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2976 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2978 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2980 * ThemeVisualStyles.cs: Added support for TreeView.
2982 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2984 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2985 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2987 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2989 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2991 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2993 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2994 Implement 2.0 SP1 stuffs.
2996 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2998 * FileDialog.cs: Implement 2.0 SP1 stuffs.
3000 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3002 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
3003 Implement CanEnableIme property. (2.0 SP1)
3005 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3007 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
3010 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3012 * Control.cs: Provide an internal way for a control to override
3013 the setting of Height.
3014 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
3015 set height using new method.
3017 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3019 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
3021 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3023 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3024 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
3026 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3028 * ThemeVisualStyles.cs: Added support for StatusBar.
3030 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3032 * DataObject.cs: Add the other IDataObject interface.
3034 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3036 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
3037 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
3039 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3041 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
3042 * ListView.cs: Hide non-public API.
3043 * MaskedTextBox.cs: Remove extra attribute.
3045 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3047 * DataGridViewImageCell.cs: Use formatted value instead of value
3048 to calculate preferred size.
3050 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3052 * ListBox.cs: Move some initialization around so that selected_indices
3053 is not accessed before it is created.
3055 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3057 * InputLanguageCollection.cs: Implement the collection better.
3060 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3062 * ToolStripDropDownItem.cs: Get the correct event object for
3063 DropDownItemClicked.
3064 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
3067 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3069 * DataGridViewRowCollection.cs: We don't currently support shared
3070 rows. Should fix test failures caused by previous commit.
3072 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3074 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
3075 datagridview gets set. Only paint cells in visible columns.
3076 * DataGridViewCell.cs: Draw border after cell content.
3077 * DataGridView.cs: Invalidate after setting some properties. Only
3078 use visible columns. Fit hit test bug with areas in the col/row header
3079 area but not in a row or col. Implement UpdateCell/Row methods.
3081 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3083 * DataGridViewElement.cs: Don't throw NIEX.
3084 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
3085 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
3086 * DataGridViewCheckBoxColumn.cs: Implement ToString.
3087 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
3088 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
3089 if the user filled in the formatting Value, use it.
3091 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3093 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
3096 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3098 * BindingSource.cs: Some corrections to Filter property, as well as
3099 setting it for our list when resetting it.
3101 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
3103 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
3104 than the maximum. Fixes reopened bug #384182.
3106 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3108 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
3109 Fixes remaining issues of #367490.
3111 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3113 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
3114 SystemInformation.WorkingArea to get max_screen value.
3116 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3118 * BindingSource.cs: Implement Filter and RemoveFilter.
3120 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3122 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3124 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3126 * X11Dnd.cs: When trying to convert data and we know we started the
3127 dnd loop, don't try to use the cached data if the loop is not running,
3128 which means that the data has been resetted.
3131 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3133 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3136 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3138 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3139 it to drawn off screen edge. Fixes bug #367490.
3141 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3143 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3144 menu position to have only one assignment of Location var.
3146 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3148 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3149 for this patch. Fixes bug #384115.
3151 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3153 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3154 the same. If LargeChange is zero, set a minimum size for the scroll
3155 thumb grip. [Fixes bug #384182]
3157 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3159 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3162 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3164 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
3166 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3168 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3169 patch from Ernesto).
3171 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3173 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3175 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3177 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3179 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3181 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3183 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3185 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
3187 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
3189 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
3191 2008-04-27 Andreia Gaita <avidigal@novell.com>
3193 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
3194 supposed to return a reference to an mshtml interface, which we
3196 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
3197 reference to an mshtml interface, which we don't support). Code
3199 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
3200 DomDocument getter (it's supposed to return a reference to an
3201 mshtml interface, which we don't support). Code formatting cleanup.
3203 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3205 * ListView.cs: Ouch, forgot to commit.
3207 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3210 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
3212 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3214 * ListView.cs: When calculating box selection for virtual mode, don't
3215 look for intersection with item's text, but item bounds, since that
3216 would mean read ListViewItem's text for _every_ item, and that's
3217 something we just can't do in virtual mode (items are only requested
3220 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
3222 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
3223 partial support for managed windows (based on the patch from Ernesto).
3225 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3227 * ListView.cs: When doing a key search use FindItemWithText method
3228 instead of doing the search by ourselves, this way we avoid
3229 duplicating the code and also we handle the special case for virtual
3230 mode. To achieve that make our private overload of FindItemWithText
3231 internal and also have a 'roundtrip' parameter.
3233 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3235 * ListView.cs: When doing the layout don't request the
3236 ListViewItem instance if we are in virtual mode (since we can't request it
3237 until the item is actully drawn).
3239 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3241 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
3244 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3246 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
3247 the patch from Ernesto).
3249 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3251 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
3252 * ThemeVisualStyles.cs: Added.
3254 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3256 * IDeviceContext.cs: Added a missing using.
3258 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3260 * ButtonBase.cs: Made IsDefault protected internal.
3261 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
3263 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3265 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
3266 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
3267 RadioButtonRenderer.cs: Included in the 1.1 profile.
3268 * IDeviceContext.cs: Added.
3269 * TextRenderer.cs: Included a member in the 1.1 profile.
3271 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3273 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
3275 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3277 * ErrorProvider.cs: Make the error icons come after the control
3278 they refer to. It isn't the way the MS does it, but its better
3279 than what we were doing. See bug #368587.
3281 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3283 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
3284 from Eric Albright that lazy loads the input language as ensures
3285 everything gets properly initialized. Fixes bug #373871.
3287 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3289 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
3290 implicit mnemonics. [Fixes bug #383000]
3292 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3294 * X11Dnd.cs: When canceling the operation, automatically restore the
3295 default cursor - normally the default cursor is restored when the
3296 mouse buttons are released, but we should be able to restore it even
3297 if the buttons are still pressed (for example, when pressing ESC to
3301 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3303 * X11Dnd.cs: When starting a new drad and drop operation, set control
3304 field to null, just as the other fields, to avoid calling any
3305 operation on a previous control. Also, when calling DndLeave on a
3306 control, set it to null, thus we don't fire that event multiple times
3310 2008-04-23 Geoff Norton <gnorton@novell.com>
3312 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3313 the whole_window object. Fixes #377084.
3315 2008-04-23 Andreia Gaita <avidigal@novell.com>
3317 * HtmlElement.cs: Implement RaiseEvent (event injection into the
3320 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
3322 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3324 2008-04-23 Andreia Gaita <avidigal@novell.com>
3326 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3329 2008-04-23 Andreia Gaita <avidigal@novell.com>
3331 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3334 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3336 * X11Dnd.cs: When the drop was cancelled, or could just not be
3337 performed, return DragDropEffect.None always (match .net).
3339 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3341 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3343 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3345 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3347 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3349 * DataGridView.cs: Add support for error icon tool tips.
3350 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3351 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3353 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
3355 * X11Structs.cs: Add mouse button masks enum.
3356 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
3357 WM_EXITSIZEMOVE only once at the beginning and at the end of the
3358 form resize/move operation instead of for each step of it.
3359 [Fixes bug #346529 for the x11 backend]
3361 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3363 * DataGridView*: Implement support for drawing error icons.
3365 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3367 * TreeView.cs: Make vbar and hbar internal.
3368 * TreeNode.cs: If collapsing the node removes one of the TreeView's
3369 scrollbars, invalidate the whole thing.
3372 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3374 * TreeView.cs: Calling Sort() sets Sorted = true.
3375 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3376 if the nodes need to be sorted.
3379 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
3381 * Form.cs: Fire SizeChanged for both when the form is minimized and
3383 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
3384 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3386 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3388 * ComboBox.cs: If the combobox is disabled, draw a disabled
3389 background before painting anything else.
3392 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3394 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3395 forget to send a Leave event to the target window - just as .net does
3396 when cancelling dnd operations.
3398 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3400 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3401 soon as possible - this happens when we send the drop message to the
3402 target window. This way we avoid firing any DragOver _after_ drop finished.
3405 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3407 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3408 * Form.cs: Handle form minimization as a special state, where size doesn't
3409 change, but we have to fire SizeChanged.
3410 [Fixes bug #325122 for the win32 and x11 backends]
3412 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3414 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
3415 if the handle is disabled.
3418 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3420 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
3421 for forms with FormBorderStyle.None.
3424 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3426 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
3428 [Fixes bug #346529 for the X11 backend]
3430 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3433 - Send a mouse Enter message after say dragging the mouse with a
3434 button down and then release it in another client.
3435 - Reset the cursor to prevent X11 from remembering it and setting it
3436 before the control gets WM_SETCURSOR.
3437 - Qeueue a mouse move after a mouse enter like win32.
3440 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3442 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
3443 It's sent when the form gets moved, resized, closed.
3444 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3445 [Fixes bug #359193 for X11]
3447 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3449 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
3452 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3454 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
3455 group. Fixes the 1.1 build.
3457 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3459 * ListView.cs: Use display indexes for selection in Details view, as
3460 well as do the proper layout based on display indexes for that view
3463 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3465 * ListView.cs: Focused item information is now stored as a display
3466 index, and display indexes are used all over the place for selection,
3467 instead of ListViewItem.Index values, which doesn't give us enough
3468 information to modify the selection in groups mode, and was broken.
3470 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
3472 * Control.cs: Do not fire MouseDown if validation of the control has
3474 * Form.cs: Validate the form before closing.
3475 [Fixes bugs #330501 and #353310]
3477 2008-04-18 Andreia Gaita <avidigal@novell.com>
3479 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3480 CreateWebBrowserSiteBase implementations
3481 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3482 Style and TabIndex setters
3484 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3486 * ListViewGroup.cs: When returning the actual item count, return the
3487 proper count for default group.
3490 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3493 * ListViewGroup.cs: When calculating groups layout, get the actual
3494 number of items per group, since groups added to the group BUT not
3495 added to the ListView are just ignored, and can cause some nasty
3496 exceptions because of the lack of synchronization. Also for
3497 ListViewGroup don't use lazy initialization for items, since we
3498 the common scenario is to use it always - and it helps us to refactor
3499 and clean the .ctor overloads.
3501 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3503 * ListView.cs: When adding an item to a ListViewItemCollection
3504 belonging to a group (ListViewGroup.Items), don't generate a redraw if
3505 the added item hasn't beeen previously added to the ListView instance
3506 refered by the group, since it will be ignored. This should avoid some
3507 really nasty flickering.
3509 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3511 * ListView.cs: When accessing an item in a specific display
3512 position, use the helper method GetItemAtDisplayIndex, instead of
3513 direct access to the reordered_items_indices array. When doing layout
3514 for groups set the correct Items index for the display position (since
3515 in groups mode items don't have the same position as in Items
3517 * ListViewGroup.cs: Add a field to store the starting item number,
3518 which is later used when calculating the layout.
3522 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
3524 * Application.cs: Fixed ProductVersion to fallback to the assembly
3525 version. Fixes regression for bug #325413.
3527 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3529 * ListView.cs: New helper method to retrieve an item in a _specific
3530 display_ position (the items can be displayed in a different order
3531 than one of Items collection).
3532 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3533 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3534 specific display position (again remember that items can be sorted
3535 different than Items).
3537 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3539 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3540 list and update it when the collection changes. We were recreating
3541 this several times per row paint and for every pixel the mouse moved
3543 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3546 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3548 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3549 list to use generics.
3550 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3551 and remove unneccessay casts.
3553 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3555 * DataGridViewBand.cs: Add internal way to set displayed variable.
3556 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3557 * DataGridView.cs: Make sure we always keep track of Displayed
3558 rows and columns, and only draw things that are displayed.
3560 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
3562 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3563 whether the key events are filtered or not. Introduced
3564 PreFilter() process for this purpose. This fixes atokx3/iiimx
3567 2008-04-16 Andreia Gaita <avidigal@novell.com>
3569 * HtmlHistory.cs: Implement Length property
3571 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
3573 * DataGridView.cs: Call EndEdit when a sort is performed so we take
3574 away the edit textbox. Refactor to reuse column sort code.
3576 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
3578 * MenuAPI.cs: Remove the code that save and restore capture status of
3579 grab_control, this fixes some Menu and Context menu bugs but maybe it can
3580 cause some others, I cant figure the possible problems of this patch but
3581 right now remove the code looks to be better than keep it. This patch fixes
3582 bugs #357638, #378721 and #379570.
3584 2008-04-12 Andreia Gaita <avidigal@novell.com>
3586 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3587 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3588 add missing properties and event handlers.
3590 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
3592 * ListBox.cs: Make sure the LargeChange we are setting is at least
3593 zero, to prevent an IOORE. [Fixes bug #379531]
3595 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
3597 * ComboBox.cs: Support item navigation by entering text. Firstly,
3598 in DropDownList mode, for each key-press select the next item
3599 starting with that letter.
3600 For other modes, when no item selected, on arrow-up/-down and open
3601 drop-down select the first item matching the text in the textbox.
3603 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
3605 * X11Keyboard.cs : Control.FromHandle() could return null
3606 in MoveCurrentCaretPos().
3608 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3610 * ListView.cs: When changing the size in VirtualMode, also Reset the
3612 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3613 changing selection info for VirtualMode.
3616 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3618 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3619 view, don't use LineLimit for the first item - use NoWrap *always*
3620 instead, since ListView.LabelWrap is not used for this view.
3623 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3625 * Binding.cs: Call UpdateIsBinding when setting control - probably
3626 Binding is already usable and we don't need to wait to check the
3627 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3628 Created, just like 2.0 does.
3629 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3631 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3633 * Binding.cs: Just realized we don't need to have a handler for
3634 BindingContextChanged, since this info should be now consumed directly
3635 in the BindingManagerBase. And also, the manager.IsBindingSuspended
3636 state info is checked directly, instead of caching it.
3638 * CurrencyManager.cs: IsSuspended should return always false if Count
3641 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3643 * Binding.cs: When calling PushData, return if manager.Count == 0,
3644 since we just don't have data to be read. Also, when setting the
3645 Control for binding, hook up some events to refresh the IsBinding
3646 state when BindingContext change or control gets created; use
3647 Control.IsHandleCreated instead of Control.Created check to set
3648 IsBinding state - we *actually* need to modify IsBinding when control
3649 is created, but we don't have any Created event, only HandleCreated.
3650 Fixes part of #349364.
3652 2008-04-11 Geoff Norton <gnorton@novell.com>
3654 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
3655 warping a null Caret.
3657 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3659 * DataGridView.cs: Implement row/column autosizing methods. Implement
3661 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3662 * DataGridViewRowCollection.cs: Add an internal sorting method.
3664 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3666 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3667 value in ListView drawing code.
3669 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3671 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3672 is clicked. Respect the user setting Cancel in FileOk.
3674 2008-04-11 Geoff Norton <gnorton@novell.com>
3676 * ListView.cs: Avoid setting and resetting control Width/Heights and
3677 calculate the final value and set it once. Prevents a feedback loop
3680 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3682 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3685 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
3687 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3688 Add some on-the-spot code, but it seems we don't need it.
3690 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3692 * Form.cs: Add method for DataGridView to trigger focus cues
3693 even when it handles the tab keypress.
3695 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3697 * DataGridView.cs: More keyboard handling, tab, esc.
3698 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3699 when at the beginning or end of the text in the text box.
3701 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3703 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3705 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3707 * DataGridView.cs: Some fixups for showing and adding the edit control.
3708 * DataGridViewButtonColumn.cs: Implement ToString.
3709 * DataGridViewCell.cs: Size and position the control simultaneously.
3710 * DataGridViewTextBoxCell.cs: Use base to position control.
3712 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3714 * DataGridViewCell.cs: Fix up some formatting and painting code.
3715 * DataGridViewImageCell.cs: Implement some NIEX methods.
3717 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3719 * ToolStripItemCollection.cs: What moving an item from one owner
3720 to another, remove from source owner before adding to destination.
3723 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3725 * PictureBox.cs: Call Load when ImageLocation is set.
3728 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
3730 * X11Keyboard.cs, XplatUIX11.cs :
3731 Implement over-the-spot mode (with some odd offsets).
3732 - set preedit position when caret is set.
3733 - Wrap XMoveResizeWindow() to move preedit position.
3735 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3737 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3740 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3742 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3743 and ScanTableIndex public, it fix compilations errors when compiling
3744 WinForms to generate keyboard layout resources.
3746 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3748 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
3749 different element count than scan table. It prevents some errors in non
3752 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3754 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3756 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3758 * DataGridView.cs: Call OnContentClick.
3759 * DataGridViewCell.cs: Do a null check on ValueType instead
3761 * DataGridViewCheckBoxCell.cs: Implement.
3763 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3765 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3767 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3769 * X11Keyboard.cs : Check XGetIMValues() return value in
3770 case it does not return input styles in some environment.
3772 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3774 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3776 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3778 * BindingContext.cs: Stub UpdateBinding method.
3780 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
3782 * X11Structs.cs : added couple of structs for XIM support.
3784 Release XIM in case it failed to create XIC.
3785 Use consts for XNblah string.
3786 Add support for IM style customization and XIC creation
3787 for preedit-position and preedit-callback.
3788 Right now use MONO_WINFORMS_XIM_STYLE environment variable
3789 (list of: over-the-spot | on-the-spot | root). Only root
3792 (redoing r99172 with fix.)
3794 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3796 * TreeView.cs: Center the checkbox a little better.
3798 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3800 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3801 Apply very nice patch from Ernesto Carrea that simplifies our
3802 scrollbar drawing. [From bug #376146]
3804 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3806 * TreeView.cs: Correct the location of the root node checkbox when
3807 ShowRootLines = false. Don't draw the root lines for the root node
3808 when ShowRootLines = false. [Fixes bug #377535]
3810 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3812 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3814 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3816 * MaskedTextBox.cs: Added missing attribute. Code formatting.
3817 * PageSetupDialog.cs: Added missing attribute. Code formatting.
3818 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3819 * ImeMode.cs: Added missing field.
3820 * HtmlWindow.cs: Code formatting. Fixed line endings.
3821 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3823 * HtmlHistory.cs: Code formatting. Fixed line endings.
3824 * HtmlDocument.cs: Code formatting. Fixed line endings.
3825 * ToolStripPanel.cs: Added missing IList implementation.
3826 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3828 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3830 * BindingContext.cs: Changed argument names to fix corcompare errors.
3831 * DataGridView.cs: Removed extra explicit interface implementation
3832 of IDropTarget. Code formatting.
3833 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
3834 * ComboBox.cs: Changed argument names to fix corcompare errors.
3835 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
3837 * GridColumnStylesCollection.cs: Changed argument names to fix
3838 corcompare errors. Removed extra tabs.
3839 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
3841 * Control.cs: Changed argument names to fix corcompare errors. Code
3842 formatting. Removed extra explicit IList implementation.
3843 * TextBox.cs: Changed argument names to fix corcompare errors. Code
3844 formatting. Use string.Empty instead of "".
3845 * GridItemCollection.cs: Changed argument names to fix corcompare
3846 errors. Code formatting.
3847 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
3848 corcompare errors. Code formatting.
3849 * ImageList.cs: Changed argument names to fix corcompare errors.
3850 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
3851 * DataGridViewRowCollection.cs: Changed argument names to fix
3852 corcompare errors. Code formatting.
3853 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
3854 * DataGridViewSelectedCellCollection.cs: Changed argument names to
3855 fix corcompare errors. Code formatting.
3856 * DataGridViewComboBoxCell.cs: Changed argument names to fix
3857 corcompare errors. Code formatting.
3858 * LinkLabel.cs: Changed argument names to fix corcompare errors.
3859 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
3861 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
3863 * BindingSource.cs: Changed argument names to fix corcompare errors.
3864 Removed extra explicit interface implementations.
3865 * DataGridViewSelectedRowCollection.cs: Changed argument names to
3866 fix corcompare errors. Code formatting.
3867 * ToolStripItemCollection.cs: Removed extra explicit interface
3868 implementation of IList.ReadOnly.
3869 * DataGridViewColumnCollection.cs: Changed argument names to fix
3870 corcompare errors. Code formatting.
3871 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
3872 * ListView.cs: Changed argument names to fix corcompare errors.
3873 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
3875 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
3877 * ListBindingHelper.cs: Changed argument names to fix corcompare
3879 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
3880 fix corcompare errors. Code formatting.
3881 * ToolStripPanel.cs: Removed extra explicit implementation of
3882 IDropTarget interface.
3883 * ListBox.cs: Changed argument names to fix corcompare errors. Code
3884 formatting. Removed extra tabs and spaces.
3885 * DataGridViewCellCollection.cs: Changed argument names to fix
3887 * Help.cs: Changed argument names to fix corcompare errors. Code
3889 * TabControl.cs: Changed argument names to fix corcompare errors.
3890 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
3892 * TableLayoutSettings.cs: Changed argument names to fix corcompare
3895 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3897 * ListBindingHelper.cs: When returning properties, only return those
3898 that are browsable. Also, don't do a linear search of the properties,
3899 but use the indexer of the PropertyDescriptorCollection class.
3901 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3903 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
3904 Dictionary containing the related (child) currency managers. Also,
3905 when setting DataSource, add datasource to our List if it is not a list.
3907 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3909 * PropertyGridTextBox.cs: Fix background color of the buttons.
3910 * PropertyGridView.cs: Make the entry less jumpy.
3912 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3914 * PropertyGrid.cs: Fix unused variable warnings.
3916 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3918 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
3919 double-click. It expanded it once in the mouse down and then
3920 again in the double-click handler.
3922 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3924 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
3925 TypeConverter and UITypeEditors.
3927 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3929 * Control.cs: Visibility should be set synchronously,
3930 so we must also redraw once it is and not rely on layouting or
3931 other code to repaint.
3934 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
3936 * DataGridViewCell.cs: Respect DataGridView.GridColor.
3938 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3940 * Control.cs: Invalidate when the alpha channel is less than 255,
3941 not only when control is transparent.
3943 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3945 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3946 Implement some painting convenience methods that threw NIEX.
3948 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3950 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3951 * DataGridViewLinkCell.cs: Implement.
3953 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3955 * GridEntry.cs: Report the conversion exception error description.
3958 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3960 * PropertyGridView.cs: Do not scroll to item on resize.
3963 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3965 * BindingContext.cs: When retrieving a BindingManagerBase, if the
3966 dataSource parameter is ICurrencyManagerProvider, then return
3967 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3968 instead of creating a new one.
3970 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3972 * BindingSource.cs: Implement support for Type instances as
3975 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3977 * DataGridView.cs: Minor cleanups and call CellMouseUp.
3978 * DataGridViewCell.cs: Make some painting routines internally virtual.
3979 * DataGridViewButtonCell.cs: Implement.
3981 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3983 * Control.cs: We always need to invalidate our children with
3984 transparent backgrounds when we are invalidated.
3987 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3989 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3990 and CancelCurrentEdit on CurrencyManager respectively. Implement
3991 support for ICancelAddNew too.
3993 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3995 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3996 call EndNew/CancelNew if list is ICancelAddNew.
3998 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
4000 * DataGridView.cs: Guard against an exception while painting
4001 if there are no rows.
4003 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
4005 * DataGridView.cs: Implement a bunch of keyboard commands.
4007 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
4009 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
4010 isn't set, don't call OnPaint. [Fixes bug #375300]
4012 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4014 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
4015 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
4016 hookup the remaining events related to CurrencyManager, and fire
4017 OnListChanged also for the Clear () method.
4019 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4021 * BindingSource.cs: Use Current and Position implementations in
4022 CurrencyManager instead of using our own routines, since we need
4023 to be in synch with it. Count should NEVER return a -1 value, and
4024 also report ListChanged events for both simple IList data
4025 sources (manually) as well for IBindingList ones (by hooking up an
4026 event handler for it).
4028 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4030 * BindingSource.cs: Make one .ctor call the another, to avoid
4031 duplicate code. Add the CurrencyManager property, and also for AddNew
4032 throw the proper exceptions and show better error messages.
4034 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4036 * ComboBox.cs: Only adjust selectedindex if Handle has been
4037 created. Fixes failing test.
4039 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4041 * ComboBox.cs: Adjust selectedindex if we insert a new item
4042 above the current selectedindex in a sorted ComboBox.
4045 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4047 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
4050 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4052 * DataGridViewTextBoxCell.cs: Implement stuffs.
4054 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4056 * TreeView.cs: Create the scrollbars even earlier to be
4057 double dog certain they are created before they are accessed.
4059 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4061 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
4063 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4065 * ScrollBar.cs: Create an internal safe Value setter so we
4066 won't crash if we try to set a value outside the min and max.
4067 * TextBoxBase.cs: Use safe value setter to guard against a
4068 potential NRE that is being reported by Reflector.
4070 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4072 * TreeView.cs: Create the scrollbars earlier in the constructor
4073 to attempt to guard against an NRE in SetTop in Reflector.
4075 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4077 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
4078 DataGridViewRowCollection.cs: Do not scroll column and row headers,
4079 show messagebox on data format error, use column display index
4080 correctly, make sure HitTest supports new layout stuff,
4081 make sure scrollbars support new layout stuff.
4083 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
4085 * XplatUIX11.cs : Patch by Doug Rintoul.
4086 For some IM engines, keypress events need to delay call
4087 to XPending() and XNextEvent() in the loop so that it
4088 does not mess the orders in XIM commit callback.
4089 Some KeyRelease events such as shift keys need to be
4090 processed both in the IM engine and winforms driver
4091 itself since winforms holds its own state check.
4093 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
4095 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
4097 * X11Keyboard.cs, XplatUIX11.cs :
4098 add primitive support for XIM input support (preedit-
4099 nothing and status-nothing). It requires precise event
4100 capturing (XSelectInput/"filterEvents") and different
4101 call to XFilterEvent against root window.
4102 Get composed string and send dummy WM_IME_COMPOSITION.
4103 Free XIM and XIC instances in finalizer.
4105 (This first patch does not include suggested changes
4106 by Doug Rintoul. It will follow.)
4108 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4110 * DataGridView.cs: When binding to a property, if the property
4111 doesn't have a setter, set the column to readonly.
4114 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4116 * ComboBox.cs: Guard against NRE if an arrow key is hit while
4117 we aren't dropped down. Support Home/End in DropDownList mode.
4120 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4122 * TreeNodeCollection.cs: Don't increment count until we've
4123 saved our index to return.
4126 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4128 * Label.cs: Add padding to the label's AutoSize calculation.
4131 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4133 * ListBindingHelper.cs: Actually implement GetListName method.
4135 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4137 * BindingSource.cs: Throw the propert expceptions for some methods, as
4138 well as detect the list item type for Add method if DataSource is null.
4140 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4142 * DataGridViewCell.cs: I don't know why I commented this out,
4143 putting it back for now.
4145 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4147 * DataGridViewCell.cs: Remove storage for owning column, just
4149 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4150 * DataGridViewColumnHeaderCell.cs: If the header text has been
4151 explicitly set, return it.
4154 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4156 * DataGridViewRowCollection.cs: Disable row sharing when
4157 using data binding. Its a great feature, but lets work on
4158 getting DGV usable first before we worry about optimizations.
4160 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4162 * BindingSource.cs: When resetting our internal list, compute list
4163 item type information to be used for indirect list access. Also
4164 implement/tune some properties and methods related to the list access
4166 * ListBindingHelper.cs: Add a stub for GetListName method, used from
4169 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4171 * DataGridView.cs: If RowCount is increased while ColumnCount
4172 is zero, add a column. [Fixes bug #331649]
4174 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4176 * DataGridViewRowCollection.cs: When adding new rows for
4177 databinding, make sure they are place before the add row.
4180 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4182 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4183 instead of Index order.
4185 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4187 * DataGridView.cs: If columns are added by increasing ColumnCount,
4188 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
4191 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4193 * DataGridView.cs: Turn off and on the "new row" when
4194 AllowUserToAddRows is toggled. When the handle is created,
4195 set current cell and selected cell/row/col.
4197 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4199 * ComboBox.cs: When navigating the drop down by keyboard, we
4200 need to scroll the list box if our selection moves out of the
4201 currently shown items. [Fixes bug #371990]
4203 2008-03-24 Luke Page <luke.a.page@gmail.com>
4205 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
4206 on the control. Also now handles unicode compatibility characters and
4207 stores the unicode compatibility length on the stack. Fixes Bugs
4208 #355198 and #366436.
4210 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4212 * BindingSource..cs: Take into account DataMember when re-creating the
4213 List property, and also create a specific kind of list as needed.
4215 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4217 * ListBindingHelper.cs: Add a new case for GetList () method - when we
4218 get an empty IEnumerable, try to detect whether the datamember is
4219 valid or not for that type, if true, return null, and throw exception
4222 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
4224 * ComboBox.cs: Alt-Down should drop down the list, Esc should
4225 retract it. [Fixes bug #371989]
4227 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
4229 * PropertyGrid.cs: Initialize the sorting button as pushed.
4231 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
4234 - Visually select the PropertyTab.
4235 - Filter Properties by Attributes properly.
4237 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4239 * MenuItem.cs: Remove menu item from parent when disposed.
4242 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4244 * ToolBar.cs: Don't reset layout_type if Dock = None.
4246 2008-03-21 Andreia Gaita <avidigal@novell.com>
4248 * UserControl.cs: Select the first available control when we get focus.
4251 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4253 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
4254 the content if we are in edit mode. [Fixes bug #343964]
4256 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4258 * DataGridViewCell.cs: Fix border painting for column headers.
4260 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4262 * BindingSource.cs: When setting or resetting data source,
4263 use ListBindingHelper.GetList () method, since it will get the list in
4264 case datasource is IListSource.
4266 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
4268 * DataGridViewCell.cs: Implement lots more stuffs.
4270 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4272 * PropertyGridView.cs, GridEntry.cs: Implement support for
4273 UITypeEditor.IsDropDownResizable.
4275 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
4277 * DataGridViewCell.cs: Remove unused variables, improve how
4278 several of the property getters work.
4279 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
4280 get its size from the parent row/col.
4282 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4284 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
4285 user alters manually the PropertyTabs collection via the
4286 PropertyTabs property.
4288 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4290 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
4291 new tests for them to be sure to be compatible with .net.
4293 2008-03-20 Andreia Gaita <avidigal@novell.com>
4295 * WebBrowserBase.cs: Fix attributes, add events
4296 * WebBrowser.cs: Fix Padding signature
4298 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4300 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4302 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
4304 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4305 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4306 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4307 passes the new suite of tests for it.
4309 2008-03-18 Andreia Gaita <avidigal@novell.com>
4311 * WebBrowser.cs: Add missing attributes, missing Padding and
4312 DefaultSize properties, remove extraneous getters
4314 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4316 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4319 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4321 * ComboBox.cs: Move resetting the selected index to keypress
4322 instead of textchanged. Changing the text programmatically
4323 should not trigger resetting the selected index. Fixes test.
4325 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4327 * ComboBox.cs: When the user types into the textbox, reset
4328 the selected index to -1. [Fixes bug #371672]
4330 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4332 * FileDialog.cs: Support Control-A for selecting everything
4333 in an OpenFileDialog. [Fixes bug #371564]
4335 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
4337 * DataGridView.cs: When row/column visible/height properties
4338 change, invalidate. Take the NIEX out of InvalidateRow/Column
4339 etc. We don't support them yet, but we can just invalidate
4340 everything until we do support them. (Added MonoTODO). Set
4341 proper control styles.
4342 * DataGridViewRow.cs: Don't call PaintHeader if row headers
4345 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4347 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4349 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4351 * DataGridViewRow.cs: Only paint the white background in
4352 cell bounds, the row bounds extends past the cells if the
4353 grid width isn't as wide as the DGV.
4355 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4357 * DataGridView*: Completely revamp the drawing to match the
4358 public API. Our grids now look better, and call all the
4359 appropriate methods and event to allow users to override
4360 the painting and do their own.
4362 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4364 * ListBindingHelper.cs: Implement 2.0 GetList methods.
4366 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4368 * DataGridView.cs: Implement BorderStyle.
4370 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4372 * FileDialog.cs: Apply patch from Andy Hume: Any time we
4373 are comparing attributes, make sure we only look at the
4374 one we are interested. These calls were failing if there
4375 were more than one attribute.
4378 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4380 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4382 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4384 * PageSetupDialog.cs: Stub EnableMetric.
4385 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4386 * PrintPreviewDialog.cs: Add ProcessDialogKey,
4389 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4391 * MonthCalendar.cs: Remove unused variable.
4393 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4395 * DataGridView*.cs: corcompare stuffs.
4397 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4399 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4400 The savings aren't worth the extra code to fix the optimization.
4403 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4405 * ToolBar.cs: Always call base.Dock in the Dock override so that
4406 Control's layout_type gets reset correctly.
4409 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
4411 * X11Dnd.cs: End DnD operation also for the middle mouse button.
4413 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4415 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4416 at the same time we do explicit ones, because we have to give all
4417 other controls on the container a chance to handle explicit ones
4418 first. If no one has an explicit mnemonic, then we can let the
4419 MenuStrip have a shot at implicit mnemonics.
4420 * MenuStrip.cs: Create an implicit mnemonic function.
4421 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4422 mnemonics for MenuStrips.
4425 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4427 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4428 DataGridColumnStyle.cs: corcompare stuffs.
4430 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4432 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4433 Details - This is needed after we added the bits to use any available
4434 column also for List and SmallIcon view.
4436 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4438 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4439 at the proper place, not only when changing SelectedIndex and changing
4440 the selection using keys/mouse, as .net does.
4442 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4444 * ControlBindingsCollection.cs: Implement last 2.0
4445 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4446 in the new 2.0 Add methods.
4448 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4450 * ListBox.cs: When calling SelectedIndexCollection.Clear,
4451 return if no items are previously selected - this is done to avoid
4452 firing OnSelectedIndexChanged without need to do so. Also,
4453 when creating handle ensure that the focused item is visible (as
4456 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4458 * ListBox.cs: Rewrote/refactored most of selection code. We require
4459 the following things in selection: a) keep selection sorted (both
4460 indices and items), b) SelectedIndices automatically detect the
4461 selection mode, c) SelectedIndex should be the first selected item
4462 index, d) Need to Focus/adjust scroll bar when selecting a new item,
4463 not only for SelectedIndex, which is specially important in Multi*
4464 selection modes. To achieve this we are moving the selection core to
4465 SelectedIndexCollection and make depend all selection modifications on
4469 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4471 * ToolStrip.cs: Enable implicit mnemonics for drop down
4472 menu strips. [Fixes part of bug #367692]
4474 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4476 corcompare - fix parameter names [stragglers].
4477 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4478 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4481 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4483 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4484 was a mnemonic pressed as well as Alt. Also, if nothing handles a
4485 mnemonic, let the ToolStripManager have it even if it doesn't
4486 have a matching mnemonic.
4489 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4491 corcompare - fix warning about implicit implementation
4492 * ToolStrip.cs: Add IToolStripData interface.
4493 * IToolStripData.cs: Add.
4495 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4497 corcompare - fix warning about implicit implementation
4498 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4501 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4503 corcompare - fix parameter names [N-Z].
4504 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4505 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4506 PropertyManager.cs, RichTextBox.cs,
4507 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4508 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4509 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4510 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4511 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4512 ToolStripContentPanel.cs, ToolStripDropDown.cs,
4513 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4514 ToolStripPanel.cs, ToolStripSeparator.cs,
4515 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4516 UICuesEventHandler.cs, UpDownBase.cs.
4518 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4520 corcompare - fix parameter names [G-M].
4521 GridColumnStylesCollection.cs, GridItemCollection.cs,
4522 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4523 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4524 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4525 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4526 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4528 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4530 corcompare - fix parameter names [A-F].
4531 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4532 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4533 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4534 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4535 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4536 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4537 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4539 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4541 * GridEntry.cs: Do not convert not only if the types match,
4542 but also if the property type is assigneable from the value's
4546 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4548 * PropertyGridView.cs:
4549 - Subscribe to the listbox only once and not everytime.
4550 - Update the textbox even if SetValue fails.
4551 - Close the listbox before calling TrySetValue just in case.
4554 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
4556 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4558 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4560 * ListView.cs: Implement support for custom column width based on
4561 Columns collection (we were previously using this collection only
4565 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4567 * ListViewItem.cs: For Tile view, always set bounds for the first
4568 subitem (which is the main one), and also don't let Width be larger
4569 than ListView.TileSize.Width. Improve code readibility also.
4570 * ThemeWin32Classic.cs: When painting the ListViewItem instances
4571 in Tile view, _always_ use the NoWrap flag.
4574 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
4576 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
4578 * GridEntry.cs: For MS compitability make all child properties
4579 readonly if the parent is readonly. Ugh.
4580 [Fixes bug #365945 and #365944]
4582 2008-02-29 Andreia Gaita <avidigal@novell.com>
4584 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4585 relative to the history
4587 2008-02-29 Andreia Gaita <avidigal@novell.com>
4589 * HtmlElement.cs: More handlers for mouse and key events
4591 2008-02-28 Andreia Gaita <avidigal@novell.com>
4593 * WebBrowserBase.cs: MouseClick sig changed.
4594 * HtmlHistory.cs: Implement history navigation
4595 * HtmlElement.cs: Add event handlers, and connect them.
4597 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
4600 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4601 so that DisplayNameAttribute doesn't get ignored.
4602 - Check for ParenthesizeNameAttribute and parenthesize the Label.
4603 - Add support for PasswordPropertyTextAttribute
4604 * PropertyGridView.cs: Check if an entry is a password.
4605 [Fixes bugs #365589, #365586, #365588]
4607 2008-02-28 Andreia Gaita <avidigal@novell.com>
4609 * PropertyGridView.cs: Revert the message filtering change, as we
4610 need it to block after all. Remove block parameter, unnecessary.
4612 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
4614 * UserControl.cs: Better implementation of GetPreferredSize.
4615 First step to fixing bug #361441.
4617 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4619 * Binding.cs: Actually implement data binding support for
4620 classes implementing IBindableComponent.
4621 * ControlBindingsCollection.cs: Likewise.
4623 2008-02-26 Andreia Gaita <avidigal@novell.com>
4625 * PropertyGridView.cs: Use a message filter to check when to
4628 2008-02-26 Andreia Gaita <avidigal@novell.com>
4630 * Application.cs: Change the message_filters loop so a filter
4631 can be removed while looping.
4633 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
4635 * GridEntry.cs: Optimization in ToggleValue so that it caches
4637 * PropertyGridView.cs: An optimization so that the property isn't
4638 re-read twice for each StandardValue added to the drop-down menu.
4639 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4643 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
4645 * Application.cs: Apply patch from Justin Cherniak to match
4646 MS better for ProductName, ProductVersion, and CompanyName.
4649 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4651 * Binding.cs: Actually implement 2.0 NullValue property. Also
4652 when changing the formatting related properties, only update the state
4653 if formatting_enabled is true (we don't mind otherwise).
4655 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
4657 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4660 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4662 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
4663 of GetType on the current value as it uses reflection to
4664 determine the type. This fixes the case where the new value is
4667 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4669 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4672 2008-02-24 Luke Page <luke.a.page@gmail.com>
4674 * Line.cs, TextControl.cs: Implement offset x and y so that a
4675 document doesn't have to begin at (0,0) on the viewpoint.
4676 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4677 bars and switches the text alignment (and therefore is now
4678 implemented for textbox). Fixes #321383.
4680 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4682 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4683 properties. Also when changing FormattingEnabled update the control
4684 property -as .Net does-.
4686 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4688 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4689 * Binding.cs: Add stubs for the overloads of the Add method in
4692 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4694 * Binding.cs: PullData () returns a false value if we got an exception.
4695 Also when validating the control and we get an error, instead of
4696 setting the value of the previous one, cancel the event (tested in 1.1
4699 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
4701 * TreeView.cs: Make selected_node and highlighted_node internal.
4702 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4703 to null when Nodes.Clear is called.
4706 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4708 * FontDialog.cs: Ensure that when the Font is set in code,
4709 all the gui pieces are updated accordingly.
4712 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4714 * TextRenderer.cs: Respect proposed size for MeasureString.
4715 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4716 autosize, use a proposed width to force wrapping for long text.
4719 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4721 * TreeView.cs: Factor in checkboxes = false and state images in
4722 to HitTest. [Fixes bug #363360]
4724 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4726 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4727 when drawing the selected range.
4730 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4732 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4733 ResizeRedraw control styles.
4736 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4738 * TreeView.cs: StateImages are basically custom checkboxes, so
4739 factor their size the same as real checkboxes when determining
4743 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4745 * MessageBox.cs: Make the message box wider if the form caption
4746 is longer than the text in the form.
4749 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4751 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4753 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4755 * TreeNode.cs: Guard against an NRE when the parent's
4756 StateImageList hasn't been set.
4759 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4761 * SplitContainer.cs: Add SupportsTransparentBackColor and
4762 OptimizedDoubleBuffering control styles.
4765 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4767 * Application.cs: For the app data paths and the registry key paths,
4768 ensure they are created before returning them to the user.
4771 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4773 * Application.cs: Guard against an NRE in CompanyName and
4776 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4778 * Application.cs: For CompanyName, ProductName, and ProductVersion,
4779 make sure we handle all three cases correctly: attribute is present,
4780 attribute is present but is an empty string, and attribute is not
4783 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4785 * PropertyGridView.cs:
4786 - Fix a NRE that caused a test failure
4787 - Another performance improvement - cache the standard values
4790 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4792 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4795 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
4797 * PropertyGridView.cs: Fix a big performance bug.
4799 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4801 * SelectionRange.cs: Apply patch from Andy Hume to make
4802 constructor behavior more accurate. [Fixes bug #362117]
4804 2008-02-19 Andreia Gaita <avidigal@novell.com>
4806 * Control.cs: Added a new flag is_disposing to track if the
4807 window is currently in the process of being disposed of.
4808 This is used so that, when firing visibility changes triggered
4809 by unparenting controls during Dispose, the control doesn't
4812 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4814 * ComboBox.cs: Set height to preferred height when the handle
4815 is created. [Fixes bug #360862]
4817 2008-02-18 Andreia Gaita <avidigal@novell.com>
4819 * XplatUIX11.cs: Create FosterParent with border width at 0.
4820 With the previous value of 4, everytime a control got reparented
4821 from parent = null, it's location would be shifted right and
4822 down by 4, since these coordinates would be offset by the
4823 FosterParent's border width.
4825 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
4827 * Control.cs: During diposing firstly remove ourselfes from
4828 the parent and *then* destroy our handle, because removing
4829 ourselfes from the parent controls collection causes
4830 VisibilityChange, etc events, which require a handle and end
4831 up recreating the control.
4833 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
4835 * GridEntry.cs: Set expanded state before notifying that the
4836 expansion has taken place.
4837 * PropertyGridView.cs:
4838 - Set the propertygridtextbox text to the selected
4839 StandardValue before proceeding to setting it.
4840 - Scrolling bugfixes.
4842 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4845 - Fix ValueText to not return null.
4846 - Fix conversion error reporting to actually happen.
4847 * PropertyGridView.cs: Set entry only if the text has changed.
4850 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4853 - Fix handling of a null current value.
4854 - Swallow editor exceptions.
4857 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4859 * PropertyGrid.cs: Clear current items first thing before
4860 repopulating subitems.
4862 - Handle null StandardValuesCollection.
4863 - Mark as not editable if there is no PropertyDescriptor and
4864 if the Converter cannot convert from string.
4865 [Part of fix for bugs #360666 and #358332]
4867 2008-02-15 Luke Page <luke.a.page@gmail.com>
4868 * MaskedTextBox.cs: Now skips non editable characters after a
4869 character has been entered and we are progressing to the next
4870 position in the MaskedTextBox.
4872 2008-02-15 Luke Page <luke.a.page@gmail.com>
4873 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
4874 that it changes the selection rather than just repositioning the
4875 cursor. Fixes Bug #360873.
4877 2008-02-15 Luke Page <luke.a.page@gmail.com>
4878 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
4879 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
4880 correctly. See #359330
4882 2008-02-15 Andreia Gaita <avidigal@novell.com>
4884 * XplatUIX11.cs: If the handle is null when posting a message, use the
4885 current thread queue to post instead. Fixes #332409
4887 * SendKeys.cs: Slight optimization
4889 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
4891 * PropertyGrid.cs, PropertyGridView.cs:
4892 Fix multiple scrolling and sizing issues.
4895 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4897 * PropertyGridView.cs: Ensure that drop down editors are shown
4898 in the WorkingArea of the screen.
4901 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4903 * GridEntry.cs: Fail silently when UITypeEditor is missing.
4906 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4908 * Binding.cs: Implement 2.0 DataSourceNullValue property.
4910 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4912 * PropertyGridView.cs:
4913 - Clear the controls in the drop down form after it is hidden.
4914 - Fix Width sizing of the dropdown editors to match MSFT.
4916 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4918 * PropertyGridView.cs:
4919 - Fix height for drawing the grid entry
4920 text value, so that it clips multiline text properly.
4921 - Fix unfocusing to match MSFT.
4923 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4925 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
4926 Fixes a bug where on repopulation after value changed items become
4929 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4931 * Binding.cs: For the 2.0 profile, look for a
4932 'PropertyChanged' event in the target control, and add checks for
4933 DataSourceUpdateMode property to change -or not- the data source
4934 from validation/control property change.
4936 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
4938 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4939 not compare struct with null in 2.0).
4941 2008-02-10 Luke Page <luke.a.page@gmail.com>
4943 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4944 updates the provider and if not using a provider, uses the internal document
4945 class implementation of password char. Also when showing text, uses display string
4946 from the provider, instead of the actual text.
4948 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4950 * Binding.cs: Ooooops, forgot to take into account the data_source
4951 and binding_member_info null case (it was breaking the Binding tests).
4953 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4955 * Binding.cs: Implement support for data source changes exposed by
4956 'PropertyNameChanged' events, and update the control property as
4959 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4961 * Binding.cs: Implement 2.0 WriteValue method.
4963 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4965 Commit patch from James Purcell for better AutoScale implementation:
4967 * ScaleControl should call GetScaledBounds with the control's total size rather
4968 than client size. GetScaledBounds should handle ignoring the borders in its
4969 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
4970 (for the most part they just call the base code now since that is fixed).
4971 * Added ScaleChildrenInternal to allow controls to disable scaling of children
4972 without having to override ScaleChildren (since none of .NET's controls do).
4973 This is required for most controls in Mono that have scrollbars to prevent the
4974 scrollbars from being moved/resized.
4975 * Nested ContainerControls can have a different scale mode than their parent.
4976 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4977 designer produce different results both of which look incorrect).
4978 * Default AutoScaleMode for ContainerControl should be Inherit.
4979 * Simplified workaround for ComboBox scaling issue.
4980 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
4981 1.0 style auto scaling should scale the whole control's size instead of
4982 ignoring the borders (except for Form) and the rounding is done differently to
4983 preserve control alignment.
4984 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4986 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4987 * CurrentAutoScaleDimensions should round the estimated character width instead
4989 * ListBox's GetScaledBounds should always use the height it was set to instead
4990 of the height that was passed in. This prevents rounding errors from
4991 accumulating quickly with IntegralHeight.
4994 2008-02-08 Andreia Gaita <avidigal@novell.com>
4996 * Form.cs: Add a null check (darn it).
4998 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5000 * MdiClient.cs: Make sure the requesting form actually owns the
5001 control menu items before removing them. Also, use
5002 Suspend/ResumeLayout when adding or removing items so we only
5006 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5008 * Control.cs: Guard against an NRE in ShowFocusCues.
5011 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5013 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
5014 property, as well as stubbing DataSourceUpdateMode.
5016 2008-02-08 Andreia Gaita <avidigal@novell.com>
5018 * Form.cs: When closing forms, get focus back to the active control of the
5019 active form. [Fixes #341314, corner case]
5021 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5023 * MdiClient.cs: After we move the scrollbars, invalidate the NC
5024 area, so any old scrollbar artifacts are cleaned up.
5027 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5029 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
5030 for our menus, display that control box menu instead of the 1.1
5033 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5035 * MdiControlStrip.cs: Add property to access the mdi form tied to
5037 * MdiClient.cs: Be smarter about removing and adding toolstripitems
5038 to the implicitly merged menu. Every time we clicked the form, items
5039 were getting removed and the re-added, causing the form to jump around
5040 as the menu resized.
5042 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5044 * MdiClient.cs: Make sure the NormalBounds always gets set. It
5045 was being reset by the implicit menu merge for menustrips.
5048 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5050 * Form.cs: Don't do the previous change when WindowState = Normal,
5051 or it messes up where the window is placed. Fixes test failure.
5053 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5055 * Form.cs: When becoming visible, if we are an MDI child, call
5056 SetWindowState with a dummy old_state so that changes will actually
5058 [Fixes the 2nd part of bug #325473]
5060 2008-02-07 Andreia Gaita <avidigal@novell.com>
5062 * Control.cs: Reset properties to their pre parent-change values in case
5063 the new parent == null (in which case we're basically removing the control,
5064 and don't want any events fired due to fake property changes)
5067 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
5069 * PropertyGridView.cs:
5070 - Refactor SetValue to allow setting the value
5071 when a custom editor is used, but the entry is not editable.
5072 - Remove the custom editor control on CloseDropDown.
5075 2008-02-06 Andreia Gaita <avidigal@novell.com>
5077 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
5078 reflection only on 1.1, this property is public on system.drawing on 2.0.
5081 2008-02-06 Andreia Gaita <avidigal@novell.com>
5083 * WebBrowser.cs: Do a normal page refresh by default.
5085 2008-02-05 Andreia Gaita <avidigal@novell.com>
5087 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
5088 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
5089 platforms. Fixes #359036
5091 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
5092 platform-specific flags.
5094 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5096 * Binding.cs: Add 2.0 BindableComponent property - just return control
5099 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
5101 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
5102 Jonathan for this patch. Fixes #358442.
5104 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
5106 * Form.cs: If we change the active MDI child form, let the others
5107 know they need to repaint their title bar so it will appear inactive.
5108 [Fixes part 1 of bug #325473]
5110 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
5112 * PropertyGridView.cs: Do not trucate custom editors' width
5113 and align them to the left.
5114 [Fixes #358353 and #358349]
5116 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5118 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
5119 Also fix the arguments passed to CollectionChangeEventArgs in the
5122 2008-02-04 Geoff Norton <gnorton@novell.com>
5124 * Hwnd.cs: The conversion to Quartz coordinates happens in
5125 System.Drawing. Removing this translation from here.
5127 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5129 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5130 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5131 GridItemCollection.cs:
5132 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5134 2008-02-04 Geoff Norton <gnorton@novell.com>
5136 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
5137 SYSKEYUP if any other key has been pressed in the mean time.
5140 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5142 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5143 when the item in current position is different than 0. Also, save the
5144 item index in the beginning of the operation, instead of getting the
5145 index of the item when the event is actually performed. Lastly clean
5146 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5150 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5152 * Form.cs: Alt-Minus for MDI children system menu should work
5153 with both the minus keys on the keyboard.
5156 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5158 * Control.cs: Don't invalidate on region change. The WM should
5159 take care of this automagically. Keeps us out of an infinite
5160 paint loop if someone changes the Region in the OnPaint.
5163 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5165 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5167 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5169 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5170 down the MonthCalendar only on F4, not Alt+F4.
5171 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5174 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5176 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5177 if its part of a DateTimePicker, else, use the back color.
5180 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5182 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5185 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5187 * CurrencyManager.cs: When we get a ListChanged event from our source,
5188 always fire our own ListChanged event, as .Net does.
5190 2008-02-03 Luke Page <luke.a.page@gmail.com>
5192 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
5195 2008-02-03 Luke Page <luke.a.page@gmail.com>
5197 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
5198 property. Removed if for richtext property that was always true.
5199 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
5201 2008-02-03 Luke Page <luke.a.page@gmail.com>
5203 * TextBoxBase.cs - commited patch from James Purcell that
5204 correctly sets the FixedHeight control style when the MultiLine
5205 property is changed on a TextBox control. Fixes bug 358229.
5207 2008-02-02 Luke Page <luke.a.page@gmail.com>
5209 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
5210 Fixes bug 351938 - caret is positioned correctly when drawn
5211 and when calculating textual position of caret, no longer
5212 has a NRE in certain situations.
5214 2008-02-01 Geoff Norton <gnorton@novell.com>
5216 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
5217 get that region removed from the paint event.
5218 * XplatUICarbon.cs: Remove the window mapping after disposing of
5219 window. Prevents a crash with handle reuse. Optimize exposes
5220 only onto visible windows (rare; but possible).
5222 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5224 * UpDownBase.cs: Make sure the internal textbox calls the base's
5225 OnMouseDown and OnMouseUp so the textbox will function correctly.
5226 There were notes saying it doesn't chain up, but its an internal
5227 class, so our implementation may differ.
5230 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5232 * ListBox.cs: Fix a logic error and don't process MouseDown
5233 for mouse buttons other than Left.
5235 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5237 * Control.cs: Remove HeightInternal.
5238 * ListBox.cs: Commit patch from James Purcell that correctly
5239 calculates heights for ListBoxen.
5242 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5244 * Label.cs: Apply patch from James Purcell that corrects the
5245 signature of the AutoSize property.
5248 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5250 * ListBox.cs: Don't throw [Mouse]Click events for buttons
5251 other than the left mouse button.
5253 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
5255 * Control.cs: Remove my awesome optimization as it caused some
5256 regressions with control ordering. :(
5259 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
5261 * PropertyGridView.cs: Fix a NRE on double click when there is no
5264 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5266 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
5268 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
5270 * ListBox.cs: Call MouseClick and MouseDoubleClick.
5273 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5275 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
5276 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
5277 instead of Hwnd.bmp_g.
5279 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5281 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
5282 Use the Hwnd one instead.
5284 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5286 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
5288 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5290 * Form.cs: corcompare for RestoreBounds.
5292 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5294 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5296 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5298 * Form.cs: Handle Alt-Minus for MDI children forms.
5299 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5300 Add mnemonics to the control menu.
5303 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5305 * Binding.cs: Initial implementation bits of FormattingEnabled
5306 property and BindingComplete event (2.0).
5307 * BindingCompleteEventArgs.cs: Internal methods for setting error text
5310 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5312 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5313 table.Location. [Fixes bug #354672]
5315 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5317 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5318 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
5320 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5322 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5323 of doing all the re-bound work, just invalidate and call SetControlText
5324 to set the updated text of selected item to our textbox.
5327 2008-01-28 Andreia Gaita <avidigal@novell.com>
5329 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
5330 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5331 missing properties and methods. Add Load, Unload, Error, GotFocus,
5332 LostFocus, Resize, Scroll events (only load and unload are connected)
5334 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
5336 * AccessibleObject.cs: Modified argument names to match MS.
5337 * Button.cs: Modified argument names to match MS.
5338 * BindingContext.cs: Modified argument names to match MS.
5339 * BindingMemberInfo.cs: Modified argument names to match MS.
5340 * ButtonBase.cs: Modified argument names to match MS.
5341 * ComboBox.cs: Modified argument names to match MS.
5342 * Control.cs: Modified argument names to match MS.
5343 * CheckedListBox.cs: Modified argument names to match MS.
5344 * CommonDialog.cs: Modified argument names to match MS.
5345 * DataGrid.cs: Modified argument names to match MS.
5346 * CursorConverter.cs: Modified argument names to match MS.
5347 * ControlPaint.cs: Modified argument names to match MS.
5348 * CheckBox.cs: Modified argument names to match MS.
5349 * ControlBindingsCollection.cs: Modified argument names to match MS.
5350 * BindingSource.cs: Modified argument names to match MS.
5351 * DataFormats.cs: Modified argument names to match MS.
5352 * ContainerControl.cs: Modified argument names to match MS.
5353 * CurrencyManager.cs: Modified argument names to match MS.
5354 * Application.cs: Modified argument names to match MS.
5355 * ContextMenuStrip.cs: Modified argument names to match MS.
5356 * ContextMenu.cs: Modified argument names to match MS.
5357 * BindingManagerBase.cs: Modified argument names to match MS.
5358 * WindowsFormsSection.cs: Fixed line ending.
5360 2008-01-27 Andreia Gaita <avidigal@novell.com>
5362 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5363 detecting that the dropdown toolwindow is hidden. EndLoop outside the
5366 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
5368 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5369 MS. Code formatting.
5371 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5373 * Binding.cs: Don't avoid the Format event if the control
5374 property type is object. Also, if the value retrieved by
5375 the data source is null _and_ the control proeprty type
5376 is object, return Convert.DBNull (match .Net).
5377 Fixes part of #324286.
5379 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381 * ListControl.cs: Since we are getting two BinginContextChanged events
5382 for the same binding context instance (when the control is added to
5383 form, and when the form is actually shown), take it into account only the
5384 first time for a given binding context instance.
5385 Fixes part of #324286.
5387 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5389 * PropertryGridView.cs: Ops.
5391 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5393 * PropertyGridView.cs: Close dropdown form if the owner form is
5397 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
5399 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
5400 RootGridEntry.cs, CategoryGridEntry.cs:
5401 PropertyGrid rewrite.
5402 - Rewrite all of the control logic in PropertyGrid.
5403 - Rewrite all of the ComponentModel logic in GridEntry.
5404 - Rewrite all UI work in PropertyGridView.
5405 - Many bugfixes, etc.
5407 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
5409 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5410 when all contained controls are autosize or dock-fill. Also take into
5411 account when the total percentage of column/row sizes is not 100%.
5414 2008-01-24 Andreia Gaita <avidigal@novell.com>
5417 - Save a reference to the IDocument in the instance and
5418 use that one instead of going to WebHost.Document; the document that the
5419 WebHost returns might not be the right one (in case of frames).
5420 - Use the hashcode returned from the IDocument interface.
5421 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
5422 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
5423 LinkColor, Url, VisitedColor, Window
5426 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
5427 set_Attribute, NextSibling, Parent, TagName, AppendChild,
5428 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5429 SetAttribute, Equals, equality operators.
5430 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
5431 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
5433 * HtmlElementCollection.cs: Change implementation to use a generic
5434 collection. Implemented Enumerator and CopyTo
5436 * HtmlHistory.cs: Add constructor, no implementation yet.
5438 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5439 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
5440 Equals, equality operators.
5442 * HtmlWindowCollection.cs: Implemented.
5444 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5445 has been deprecated).
5447 * WebBrowserBase.cs: Use Completed event to track document loading
5448 (Navigated has been deprecated)
5450 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
5452 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
5453 level MenuItems do not respect tabs.
5456 2008-01-23 Geoff Norton <gnorton@novell.com>
5458 * XplatUICarbon.cs: Ensure that windows are created in their initial
5459 FormWindowState. Finished fixing Fullscreen windows on Carbon
5461 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5463 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5464 be used as grab_control. Also save status of capture before show ContextMenu
5465 and restore it after close.
5467 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5469 * Control.cs: Internal FindRootParent method added to return high control
5472 2008-01-23 Geoff Norton <gnorton@novell.com>
5474 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5475 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5476 it work again. Handle HITTEST events.
5478 2008-01-23 Geoff Norton <gnorton@novell.com>
5480 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
5481 a crash in certain cases. Support for fullscreen windows in certain cases.
5483 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
5485 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5488 2008-01-23 Geoff Norton <gnorton@novell.com>
5490 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5492 2008-01-23 Geoff Norton <gnorton@novell.com>
5494 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
5496 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5498 * SplitContainer.cs: Remove unused declarations.
5499 * Binding.cs: Remove unused declarations.
5501 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5503 * Form.cs: Remove unused declaration of 'active' in Activate method.
5504 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
5505 prevent compilation warnings.
5506 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5507 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5508 * Bindings.cs: Remove unused formatting_enabled declaration.
5509 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5511 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5513 * PropertyGridView.cs: Remove usused 'ex' declaration.
5514 * DataGridView.cs: Remove unused declarations.
5516 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5518 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5520 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
5521 to Control class, it makes possible to grab menu to controls that can't
5522 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5523 WmMouseMove removed since it was used only to track menu events.
5526 - Moved all active_tracker stuff from Form.
5527 - ProcessActiveTracker added to prevent code duplicity, now mouse events
5528 can call this method instead of reimplement all necessary code handle for
5530 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5534 - Remove special handle to ToolStripOverflow, now we can grab menu to
5535 controls that can't reach Form using parent tree.
5536 - Change type of grab_control from Form to Control.
5538 2008-01-22 Geoff Norton <gnorton@novell.com>
5540 * TextBoxBase.cs: Split up the sizing of controls and placing of
5541 controls. Fixes a bug where scrollbars in Reflector could be sized
5542 wrong and have non-working thumbers.
5544 2008-01-23 Geoff Norton <gnorton@novell.com>
5546 * XplatUI.cs: Refactor environment variables to default support to the
5547 Carbon driver on the Mac.
5549 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5551 * Label.cs: Uses new LabelPainter for drawing operations.
5552 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5553 * Theme.cs: DrawLabel and LabelDefaultSize removed.
5555 2008-01-22 Geoff Norton <gnorton@novell.com>
5557 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5559 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5561 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5562 through the normal flat button code and don't draw the checkbox glyph.
5563 * Theme.cs: Button->ButtonBase signature change.
5566 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5568 * LinkLabel.cs: Uses new class LinkLabelPainter.
5570 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5572 * MessageBox.cs: Adjust right border space, we don't need to add
5573 "space_border*2" two times.
5575 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5577 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5578 becomes a wrapper around Padding.
5579 [Fixes a part of bug #354676]
5581 2008-01-22 Geoff Norton <gnorton@novell.com>
5583 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
5584 acquired. Also ensure the buffer is large enough to grab the header
5585 we need on linux boxes.
5587 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5589 * Control.cs: Implement a custom enumerator so people can delete
5590 from the Controls collection while in a foreach.
5593 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5595 * PropertyGridView.cs: Fix focusing behavior:
5596 - Tab should focus the grid text box.
5597 - Clicking on the labels shouldn't focus the grid text box.
5599 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5601 * PropertyGridView.cs: IsValueTypeGridItem should return true
5604 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5606 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5607 - Renamed GridEntry.SelectedObjects to TargetObjects to better
5608 reflect the property name role.
5609 - PropertyGrid.GetTarget is not required as the target is known
5611 - Setting values will handle value types as a special case now and
5612 populate them up in the chain.
5615 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
5617 * Hwnd.cs: Create a public property for the Graphics we keep around.
5619 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5621 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
5622 when the current object selection changes.
5623 Fixes failing test SelectedObject_Null2.B5.
5625 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5627 * PropertyGrid.cs: Process Browsable properties with
5628 DesignerSerializationVisibilityAttribute.Content as being expandable.
5629 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5630 will not be expandable. We should be nested components-friendly now.
5632 2008-01-21 Andreia Gaita <avidigal@novell.com>
5634 * WebBrowserBase.cs: Check if control was loaded properly,
5635 don't bind if it wasn't.
5637 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
5638 GetElementFromPoint, equality operators, OpenNew, Write.
5639 Remove extra set_Body
5641 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5643 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5644 that makes our AutoScale* stuff more tolerant to different orders
5645 of being set. [Fixes bug #354669]
5647 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5649 * PropertyGridView.cs, PropertyGridTextBox.cs:
5650 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5651 [Fixes #339005 and #348209]
5653 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5655 * PropertyGridView.cs: Hide the grid text box before adjusting it
5656 for the newly selected GridItem.
5659 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5661 * Form.cs: Give MDI children the opportunity to cancel the parent form
5662 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
5663 properly for both the parent and child.
5664 * Application.cs: Signature of internal method changed, pass the previous
5668 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5670 * PropertyGridView.cs: Set the property value only if it has changed.
5673 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5675 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5676 If the mouse hasn't actually moved, ignore these messages so the currently
5677 highlighted menuitem isn't reset to the one under the mouse.
5680 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5682 * PropertyGridView.cs: When the property changes Invalidate the GridItem
5683 in order for the properties with UITypeEditor.GetPaintValueSupported == true
5684 to reflect the change visually.
5687 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5689 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5690 to 2.0 button drawing.
5691 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
5692 the button text is tall enough for one line. LineLimit says it will
5693 always draw at least one line, but it is a lie.
5696 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
5698 * XplatUIStructs.cs, X11Keyboard.cs :
5699 added some more VK_* keys to be handled.
5701 2008-01-16 Andreia Gaita <avidigal@novell.com>
5703 * Control.cs: Check if there is a container before setting or getting
5704 the validation flag.
5706 2008-01-16 Andreia Gaita <avidigal@novell.com>
5708 * ContainerControl.cs: Add flag to track if a control cancels validation,
5709 so we don't fire click events.
5712 - (HandleClick) Check if validation was cancelled before firing the click
5713 events (doubleclicks are fired, but not clicks)
5714 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
5715 ContainerControl.set_ActiveControl, but in the case of non-selectable
5716 controls, like a Label, activecontrol is not set.
5718 * ButtonBase.cs: Only fire clicks if validation passes.
5722 2008-01-16 Geoff Norton <gnorton@novell.com>
5724 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5727 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
5729 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5730 SelectedPath, just display the default dialog instead of crashing.
5733 2008-01-16 Geoff Norton <gnorton@novell.com>
5735 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
5736 AddExpose instead of trusting apples compositing manager which doesn't
5737 work for our use case. Remove some dead code causing warnings and
5738 redecorate some other code to prevent warnings.
5740 2008-01-16 Geoff Norton <gnorton@novell.com>
5742 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
5743 carbon signals us to redraw. Fixes another portion of the flickering bug
5745 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5747 * Form.cs: Prevent the MdiParent property to be set when value is the same
5748 as value already set. Fixes bug #328019.
5750 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5752 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
5753 it prevents NRE when closing mdi child windows. Fixes bug #325211.
5755 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5757 * InternalWindowManager.cs: Invalidade close button after mouse up when
5758 mdi form is prevented to close.
5760 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5762 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5763 thanks to Andy Hume. Fixes bug #325433.
5765 2008-01-16 Andreia Gaita <avidigal@novell.com>
5767 * LinkLabel.cs: Reset focused_index when resellecting the control.
5770 2008-01-15 Geoff Norton <gnorton@novell.com>
5772 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
5775 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5777 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5780 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5782 * ContainerControl.cs: Setting AutoScaleMode to anything should set
5783 Form.AutoScale to false.
5784 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5785 AutoScaleBaseSize should be changed on Font change unless it has been
5789 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5791 * MenuAPI.cs: On instance of MenuTracker check if source control is
5792 ToolStripOverflow and use properly method to find form.
5795 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5797 [Fixes bug #323241 Transparent toolbar support]
5799 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5802 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5803 defined in control style to mimic win32 behavior.
5805 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
5806 it will be transparent.
5808 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5810 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5811 CreateParams for ToolBar controls.
5813 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5815 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5816 FixedToolWindow, SizeableToolWindow, or None for border styles have
5817 different minimum sizes than regular forms. Implemented to fix
5818 regression in PDN with toolbox being too wide.
5820 2008-01-14 Andreia Gaita <avidigal@novell.com>
5822 * HtmlElementCollection.cs: Implemented
5824 * HtmlElement.cs: Implemented:
5832 * HtmlDocument.cs: Implemented GetElementsByTagName.
5834 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5836 * Screen.cs: Stub BitsPerPixel to always return 32.
5838 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5840 * Form.cs: Implement RestoreBounds.
5842 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5844 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
5845 Sebastien and his fabulous magical problem-finding machine:
5846 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
5847 respect the value set.
5849 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5851 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
5852 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
5854 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5856 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
5857 messages (to match .Net), we need to remove the capture ourselves.
5859 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
5861 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
5862 will process the message and close our window.
5865 2008-01-10 Geoff Norton <gnorton@novell.com>
5867 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
5868 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
5871 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5873 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
5876 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5878 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
5879 Linux doesn't care, having a minimum matches MS and keeps the window
5880 from becoming too small to use window decorations.
5883 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5885 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
5886 ShowFocusCues. Make focus rectangles fit the text instead of the whole
5887 control. [Fixes bug #325419]
5889 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5891 * ComboBox.cs: Guard against an NRE if the user open a new form from a
5892 SelectedIndexChanged event. This closes the combobox dropdown, and we
5893 were trying to dispose it. [Fixes bug #352830]
5895 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5897 * Control.cs, Form.cs: Implement the necessary semantics for
5898 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
5899 to determine if a focus rectangle should be drawn.
5900 * PropertyGrid.cs: Fix property visibility to match override.
5901 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
5903 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5905 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
5908 2008-01-09 Geoff Norton <gnorton@novell.com>
5910 * XplatUICarbon.cs: Scroll windows in the correct direction.
5912 2008-01-09 Geoff Norton <gnorton@novell.com>
5914 * XplatUICarbon.cs: Track all created utility windows so we can hide them
5915 when the app is deactivated or spaces is enabled.
5917 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5919 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
5920 extra separation pixel for the label rect origin if SmallImageList is
5921 null, and thus we don't need that separation between icon and label
5923 Patch by Ernesto Carrea.
5926 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
5928 * StatusStrip.cs: Invalidate after completing a layout. The base
5929 OnLayout does this, but we don't call the base.
5930 * ToolStripItem.cs: Revert the previous change to invalidate after
5932 [Fixes bug #351341 better.]
5934 2008-01-07 Geoff Norton <gnorton@novell.com>
5936 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
5937 not a notification to exit the application. Listen for WM_QUIT
5940 2008-01-07 Andreia Gaita <avidigal@novell.com>
5942 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5944 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
5946 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5947 so it can repaint at the correct location.
5950 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5952 * ListControl.cs: SelectedValue should return a null value if
5953 SelectedIndex is -1. Also, when setting it, it should throw an
5954 ArgumentNullException if the value is null, as well as taking
5955 into account the String.Empty value, instead of ignoring it (we have
5956 tests for that now).
5957 Fixes part of #324286.
5959 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
5961 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5962 SelectionStart is updated after pressing enter. Fixes bug #351918.
5964 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5966 * TextControl.cs: Revert a piece r92316 that prevented the fix
5967 from working when there were multiple tags in the text box.
5970 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5972 * TextControl.cs: Apply patch from Luke Page that prevents an
5973 NRE when determining the beginning of a paragraph.
5976 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5978 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5979 caret gets moved with clicking away from a selected block of
5980 text. Fixes bug #351885.
5982 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5984 * TextControl.cs: Apply patch from Luke Page that takes line
5985 alignment into account for mouse selection, so that center and
5986 right aligned text can be selected.
5989 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5991 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5992 issues after loading an RTF file by using the correct line feeds.
5995 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5997 * TextControl.cs: When deleting multiple line selections, we need
5998 to invalidate every line beginning at the first line of the selection.
5999 Patch from Luke Page fixes bug #351791.
6001 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6003 * ListControl.cs: When getting a CurrencyManager.PositionChanged
6004 event, don't set SelectedIndex if the number of items is 1. This is
6005 because, for the first item, PositionChanged is fired _before_
6006 ItemChanged (the place where we actually populate the items), and
6007 leave us in a temporary invalid state (since items collection is
6011 2008-01-04 Geoff Norton <gnorton@novell.com>
6013 * XplatUICarbon.cs: Create native toolwindows instead of
6014 the managed drawing ones.
6016 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6018 * LineTag.cs: If the line doesn't have any characters, return
6019 0 for GetCharIndex. Fixes an AOORE exception after certain
6020 caret movements. Fixes bug #351683. Patch by Luke Page.
6022 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6024 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
6025 is hit when there is selected text, only the selected text gets
6026 deleted, not the character in front of the selection as well.
6029 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6031 * ComboBox.cs: When the values are displayed, calculate the
6032 ComboListBox scrollbar's LargeChange based on the visible area's
6033 height and the actuall ItemHeight, instead of calculating it
6034 based on MaxDropItems value, since it's not used by our _current_
6038 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6040 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6041 Patch from Luke Page that fixes issues with font colors and styles
6042 not showing up in a readonly RichTextBox. Fixes bug #324354.
6044 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6046 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
6047 from Luke Page. This one fixes bug #349926.
6049 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6051 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
6052 an item in the IBindingList source changes with
6053 ListChangedType.ItemAdded. Ignore for now firing the event for other
6054 changes, since we want to have tests for those cases as well.
6056 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6058 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
6061 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6063 * TextBoxTextRenderer.cs: Implement a cache for measuring each
6064 character. This is effective because the typical usage of a
6065 TextBox is with a limited amount of fonts and characters, and
6066 the current implementation of TextBox measures everything one
6067 character at a time. Another second or two speedup for bug #347238.
6069 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6071 * Control.cs: Rewrite the Font getter to only query the parent's
6072 Font property once instead of twice. Since this operation is
6073 recursive, the queries were growing exponentially as the control
6074 tree got deeper. Another second or two speedup for bug #347238.
6076 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6078 * Control.cs: Avoid setting a parent (and more importantly, updating
6079 the zorder of all its children) if the parent is already correct in
6080 WmShowWindow. Decreases the startup time of the test case on bug
6081 #347238 from 35 seconds to 11 seconds.
6083 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6085 * X11Dnd.cs: When the dnd operation has started and we are
6086 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
6087 This is done to match .Net, which doesn't send those messages after
6088 dnd operation was completed/cancelled.
6091 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
6093 * ToolStrip.cs: Previous change should be != null, not == null.
6096 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
6098 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
6099 user may have moved the mouse off the current item during the event.
6101 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6103 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
6104 calling GetItemAt for every MouseMove event by also taking into
6105 account whether any mouse button is pressed (probably dragging);
6106 if so, we can call GetItemAt, and if not, try to not call it
6107 (GetItemAt can be quite expensive when used with a large number of items).
6109 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6111 * ListView.cs: Implement -finally- support for dnd, by calling
6112 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
6114 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
6115 simple calculation of distances for all the items in the owner
6118 2007-12-21 Geoff Norton <gnorton@novell.com>
6120 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
6121 for windows that are originally created as invisible. Fixes missing
6122 main window in paint-mono.
6124 2007-12-21 Geoff Norton <gnorton@novell.com>
6126 * XplatUICarbon.cs: Register our D&D handler. Register our custom
6127 subclass handler for com.novell.mwfview subclassing HIView. Implement
6128 Pasteboard and Dnd methods.
6130 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6132 * ListBox.cs: When we got focus, give focus to first item if there
6133 wasn't any pervious focused item. Also update navigation to depend on
6134 SelectedIndex rather than FocusedItem, just as .Net does.
6137 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6139 * ListBox.cs: Both FindString and FindStringExact methods must do an
6140 case insensitive search, should allow the last valid index to be
6141 passed in the overload taking an initial index, and should also
6142 continue searching from the top back to the specified index when it
6145 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6147 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6148 redraw issue, and allows RichTextBox to draw colored text even while
6149 disabled or readonly.
6151 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6153 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6154 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6155 and doesn't grey text in a disabled RichTextBox.
6157 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6159 * RichTextBox.cs: Apply patch from Luke Page that adds better support
6160 for many RTF commands: quad alignment, separate formatting for blocks
6161 inside groups, and ParDef support. Makes the test case from bug #324589
6164 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6166 * LineTag.cs: Fix an error in the new Draw method that caused
6167 a crash when rendering the document on bug #324589.
6169 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6171 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6172 TextControl.cs: Apply patch from Luke Page that adds support
6173 for URL links in RichTextBox.
6174 [Fixes enhancement #342516]
6176 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
6178 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6179 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6181 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6183 * ListBox.cs: When a key gets pressed, try to find a string
6184 if the key is a character or a digit.
6187 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6189 * TableLayoutPanel.cs: Remove some unused variables.
6191 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6193 * DateTimePicker.cs: Commit patch from Luke Page that ensures
6194 we don't end up at an invalid date when we click the up/down
6195 spinner to change the month or year. Fixes bug #348682.
6197 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6199 * Application.cs: Calling Exit in 2.0 should chain to the
6200 Exit (CancelEventArgs) version so it can be cancelled.
6201 * Form.cs: Create a flag to allow raising the Closing
6202 events to be skipped. We raise them once in Application.Exit
6203 and don't want to raise them again when the Form is actually
6204 closed. [Fixes bug #349073]
6206 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
6208 * ToolStripDropDown.cs: Guard against an NRE when there
6209 hasn't been a mainform set in the application context.
6212 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6214 * ListBox.cs: When SetBoundsCore gets called, besides
6215 calling UpdateScrollBars, update the value of
6216 last_visible_index, since we could need to show more items
6217 than before, and we need to let the paint routines know that.
6220 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6222 * ListView.cs: Add DesignerSerializationVisibility attribute to
6223 InsertionMark property.
6224 * ListViewItem.cs: Add same attribute to Position property.
6226 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6228 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
6231 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
6233 * ThemeWin32Classic.cs: Don't draw the background on a
6234 flat button if there is a background image.
6237 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6239 * ListBox.cs: If we remove the item currently selected,
6240 remove it not only from SelectedItems, but also
6241 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
6242 the items count decreased and focused_item has bigger value than that.
6244 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
6246 * Control.cs: Perform our layout after we resize ourselves
6247 if we had to adjust our AutoSize. Missed commit for bug
6250 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
6252 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
6253 we can provide an implementation of AutoSize.
6256 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6258 * ListBox.cs: Add the internal overload Sort (bool paint),
6259 to indicate whether we actually need a paint or we will
6260 call Refresh ourselves. This way we don't request a paint
6261 _before_ having an updated and valid layout.
6264 2007-12-12 Andreia Gaita <avidigal@novell.com>
6266 * XPlatUIX11.cs: Send paint messages when updating a systray icon
6267 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
6268 properly invalidated.
6271 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6273 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
6274 don't simply assign it to our internal group field, but instead
6275 use our Group property, which should do all the neccessary work
6276 required to support groups. Fixes an issue reported to me (mail) by a
6277 guy using this new feature.
6279 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
6281 * Control.cs: Use Scale instead of ScaleControl to ensure the
6282 whole hierarchy gets scaled.
6285 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6287 * DateTimePicker.cs: Don't set the internal MonthCalendar's
6288 Parent property. Doing this causes the control to be hosted by
6289 the Form instead of being a popup window.
6292 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6294 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6295 at an index higher than Count, just use Add instead of Insert.
6298 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6300 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6301 DrawPictureBox, this is handled by Control.PaintBackground.
6304 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
6306 * MenuAPI.cs: When process menu keys return true by default only if menu is
6307 active. Fixes bug #342892.
6309 2007-12-09 Andreia Gaita <avidigal@novell.com>
6311 * Control.cs: check if windows are actually mapped before
6312 trying to zorder. Fixes #342509, #346955
6314 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6317 * ListViewInsertionMark.cs:
6318 * ThemeWin32Classic.cs: Implement the drawing side of the
6319 new 2.0 ListView.InsertionMark property.
6321 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
6323 * CurrencyManager.cs: Silence some debug spew.
6325 2007-12-07 Geoff Norton <gnorton@novell.com>
6327 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6328 masks for our children as well as siblings to avoid having to query
6329 Quartz for this information.
6330 * XplatUICarbon.cs: Implement a delegate based system to pass
6331 information to System.Drawing. Implement Async methods. Remove
6332 the hack for the resize thumb and imlpement a transparent Grow Box.
6333 Rework the messaging system to proplery create window's and messages,
6336 2007-12-06 Andreia Gaita <avidigal@novell.com>
6338 * X11Keyboard.cs: Use Xutf8LookupString to support international
6339 characters under alternate codepages. Patch from #340878
6341 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6343 * ListView.cs: When doing layout computations, set position in the
6344 ListView instances (we cache the position just as .Net does).
6345 * ListViewItem.cs: New internal setter method for Position. Also set
6346 position field as also available in 1.1, since we are going to use it
6347 now in the common case.
6349 2007-12-06 Andreia Gaita <avidigal@novell.com>
6351 * Control.cs: When removing controls, get the actual container
6352 to notify about active control changes. Fixes 341314.
6354 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6356 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6358 2007-12-05 Andreia Gaita <avidigal@novell.com>
6360 * Control.cs: When updating the zorder, ignore windows that are not
6361 mapped. Fixes #342509
6363 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6365 * ListViewItem.cs: Actually implement serialization on this class.
6367 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
6369 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6370 LinkCollection. Spaces to tabs, and removed extra tabs.
6372 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
6374 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6375 tests to fail (hopefully).
6377 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6379 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6380 the image margin so custom renderers can correctly place it.
6382 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6384 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6385 so custom renderers can correctly place it.
6387 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6389 * Application.cs: Let WM_CHAR messages flow through to controls
6390 hosted in Strips. [Fixes bug #343972]
6392 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6394 * ToolStripManager.cs: Guard against an NRE I ran into.
6396 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6398 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
6399 a Link is manually added to the Links collection, we need to set
6400 its owner, so it can invalidate properly.
6403 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6405 * ListView.cs: When changing ListViewItem.Position (which calls
6406 ListView.ChangeItemLocation), invalidate not only the area
6407 corresponding to the main item, but also to the area occupied
6408 by the items being moved.
6410 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6412 * ListView.cs: When changing the position of a given item,
6413 don't use item bounds, but item areas (which includes the item spacing
6414 between them). Also, use first/last position if the requested
6415 position is outside bounds (as .Net does). Invalidate the previous and
6416 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6417 in a specific position, instead of directly accessing Items collection
6418 (this is done to get the right item - remember an Item can have a
6419 different position in the grid than in the Items collection).
6421 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6423 * MessageBox.cs: Calculate text area instead of just top left, this rect
6424 area will be used in DrawString. Fixes bug #343364.
6426 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6428 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6429 screen width. Partially fixes bug #343364.
6431 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6433 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6434 code inside recalculate, it makes code more simple.
6436 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
6438 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6439 between update or add icon. Fixes bug #324344.
6441 2007-11-21 Andreia Gaita <avidigal@novell.com>
6443 * XPlatUIX11.cs: Do not treat tool windows as if they have no
6444 window manager, since that stretches the drawing area to include
6445 the window decorations, and they get hidden. Reverts r84444 and fixes
6446 #335849 and #342790 (mdi and pdn3 regression)
6448 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6450 * ListView.cs: When setting focused item, try to give focus to the
6451 previous one _only_ if the previous one remains valid.
6454 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
6456 * Application.cs: Revert r89650, as it broke a common case to fix
6457 an obscure case. Fixes bug #342606.
6459 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6461 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6463 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6465 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
6466 alignment. [Fixes #324228]
6468 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6470 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6473 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
6475 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6476 it prevent problems when empty captions. [Fixes #342141]
6478 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6480 * Label.cs: Use Size instead of None. Fixes bug #342077.
6482 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6484 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6486 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6488 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6489 but there isn't a MdiContainer.
6492 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6494 * TextControl.cs: Don't recalculate document if the recalc_start and
6495 recalc_end hasn't changed.
6498 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
6500 * DataGridViewTextBoxCell.cs: Removed CWL.
6502 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6504 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6506 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6508 * TextControl.cs: Missed some code for bug 341534 to trigger a
6509 recalculation when the font changes.
6511 2007-11-16 Andreia Gaita <avidigal@novell.com>
6513 * Control.cs: When updating the zorder, check if the child to update is
6514 the same control that is set to always be on top (i.e., scrollbars), and
6515 just put it on top directly. Fixes BadMatch error on pdn3
6517 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6519 * ListView.cs: Throw the needed exceptions for FindNearestItem.
6521 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6523 * Control.cs: Don't perform a new layout when a label changes its text,
6524 cause label handles its own autosizing.
6527 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6529 * ListView.cs: Implement 2.0 FindNearestItem methods.
6531 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6533 * ToolStripPanel.cs: Make Join at least add the control to the panel,
6534 even if the rest of what Join does isn't supported. Add some more
6535 support for vertical toolbars.
6536 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6537 [Fixes the application breaking parts of bug #341998]
6539 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6541 * ToolStripItem.cs: When determining if we have a check/image margin,
6542 we need to look at ShowCheckMargin as well as ShowImageMargin.
6544 2007-11-15 Geoff Norton <gnorton@novell.com>
6546 * XplatUIOSX.cs: Rename to...
6547 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6548 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
6550 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6552 * KeysConverter.cs: The default values should be an array of Keys, not
6553 strings. Also, the array has more values for 2.0.
6556 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6558 * Application.cs: Change ExecutablePath to use
6559 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6562 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6564 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6565 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6566 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6567 be ignored. Create a new GetLineEnding that can specify which types of
6568 line endings to look for. On Insert, only create new lines for \n and \r\n.
6571 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6573 * TextBoxBase.cs: As we loop through each line changing the font, tell
6574 the document that the line needs to be recalculated. Fixes bug #341534.
6576 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
6577 [Another round of refactoring]
6578 * Line.cs: Add DeleteCharacters.
6579 * LineTag.cs: Add Delete.
6580 * TextBoxBase.cs: Update to use new methods.
6581 * TextControl.cs: Refactor the Delete* methods.
6583 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
6585 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6586 the patch. [Fixes #324856]
6588 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6591 * ListViewItem.cs: Add an initial implementation of
6592 2.0 ListViewItem.Position getter.
6594 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6596 * ListView.cs: Add a reordered_items_indices array, to allow us
6597 to have a different sorting than that of Items (the sorting in Items
6598 could not match the actual sorting in screen). This is needed to
6599 implement a pair of 2.0 features.
6600 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6601 actual position in the ListView grid, since it could have a position
6602 different than its Index (position in ListViewItemCollection).
6604 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6606 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
6607 not draw partial lines.
6608 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6609 LineLimit flag from the base is preserved.
6610 Fixes the windows part of bug #338965.
6612 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6614 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6615 so that it can be canceled in KeyPress.
6618 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6620 * ListView.cs: In ItemControl, reset mouse-handling related
6621 fields even if we dont' have items (we still should reset them when
6622 we had items but then called Items.Clear). Partially based in a patch
6626 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
6628 * Application.cs: In ProductVersion first try AssemblyFileVersion
6629 before falling back to assembly version. Fixes bug #339787.
6631 2007-11-08 Andreia Gaita <avidigal@novell.com>
6633 * HtmlElement.cs: Implement InnerText setter.
6634 * WebBrowserBase.cs: Implement Navigated event support.
6635 Add flag to track when the browser "document" is ready to be retrieved.
6636 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6637 Make sure browser document is ready before retrieving it.
6638 Clean up cached objects (document) when moving to a new page through
6639 any of the navigation methods.
6640 Use the new Mono.WebBrowser.INavigation interface to control navigation.
6641 Implement OnNavigated event.
6643 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
6645 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6646 DrawLinkLabel, this is handled by OnPaintBackground.
6647 Fixes bug #339565, part II.
6649 2007-11-07 Andreia Gaita <avidigal@novell.com>
6651 * Control.cs: Revert r88915. Selecting text on a textbox depends on
6652 getting a Select call on click, so this call needs to be here for now.
6655 2007-11-07 Geoff Norton <gnorton@novell.com>
6657 * OSXStructs.cs: Add the kEventClassApplication constants.
6658 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
6659 application is deactivated otherwise Menu overlays linger on top of
6660 other application windows.
6662 2007-11-07 Geoff Norton <gnorton@novell.com>
6664 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6665 dont support cursors yet anyways. This allows Reflector to run.
6667 2007-11-07 Geoff Norton <gnorton@novell.com>
6669 * XplatUIOSX.cs: Implement DragSize.
6671 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6673 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6674 ItemControl, request the focus, as .Net does. This is needed after
6675 Control does not request focus anymore when it receives a
6678 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
6680 * Label.cs: Make DrawImage internal so it can be called from Theme code.
6681 Remove the DrawImage call from OnPaint.
6682 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6683 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6684 but before we draw the text for DrawLabel and DrawLinkLabel.
6687 2007-11-05 Andreia Gaita <avidigal@novell.com>
6689 * Control.cs: Remove select call on click. Fixes #325809
6691 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6693 * ListViewItem.cs: Add 2.0 Position property getter.
6695 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6697 * ListView.cs: Add 2.0 BackgroundImageTiled property.
6698 Also, to make it work properly, change item's BackColor and
6699 BackgroundImageLayout as needed.
6700 * ThemeWin32Classic.cs: Don't fill any background rectangle
6701 in ListView.ItemControl when drawing items; just let the Control
6702 base implementation fill it.
6704 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6706 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6707 as well as adding a custom 'dummy' Converter, as .net does.
6709 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6711 * PropertyGridView.cs: When clicking drop-down button,
6712 select an index in the listbox only if our standard values collection
6713 has one or more items.
6715 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6717 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6720 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6722 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6723 the value is not changed. This ensure a pushed button remains in that
6724 state when clicked again. When switching the value of PropertySort
6725 between Categorized and CategorizedAlphabetical, do not update the
6726 grid items and do not fire a PropertyChangedEvent. When clicking the
6727 sorting buttons, do not modify the PropertySort value when switching
6728 between Categorized and CategorizedAlphabetical but only update the
6731 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6733 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6735 * PropertyGrid.cs: Also put Categorized button in pushed state when
6736 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6737 for help description label.
6739 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6741 * ListView.cs: When calculating the biggest item for a given column,
6742 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6745 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
6747 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6748 value for PropertySort on 1.0 profile. PropertySortChanged event
6749 should only be fired on 2.0 profile. Fixed NullReferenceException
6750 in UpdateSortLayout when PropertyGrid contains no items.
6752 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
6754 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6757 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6759 * ListViewItem.cs: Implement 2.0 IndentCount property.
6761 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6763 * X11Dnd.cs: When sending status in a dnd operation, compare current
6764 effect with the 'allowed' field instead of 'drag_data.Allowed', since
6765 the later is only created when a Winforms application is both the
6766 source and the target, but not when we are the target only.
6767 Fixes part of #324251.
6769 2007-11-01 Geoff Norton <gnorton@novell.com>
6771 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6773 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
6774 children out of the drawing view on mac.
6775 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
6776 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6778 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6780 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6781 on the non-hosted-control part of it shouldn't do anything.
6782 Fixes part of bug #327498.
6784 2007-11-01 Andreia Gaita <avidigal@novell.com>
6786 * WebBrowserBase.cs: revert previous change, resize can be called anytime
6788 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6790 * Application.cs: When a toolstrip has the keyboard input loop, let messages
6791 it does not use flow through to controls that are hosted in menus.
6792 Same with mouse clicks.
6793 * Form.cs: Don't close all menus on click if the click is on a
6794 control hosted in a menu.
6795 Fixes part of bug #327498, and part of bug #325969.
6797 2007-10-31 Andreia Gaita <avidigal@novell.com>
6799 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6801 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
6803 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6804 Addresses an issue raised in bug #336218.
6806 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
6808 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6809 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
6811 2007-10-30 Andreia Gaita <avidigal@novell.com>
6813 * ContainerControl.cs: Check if the active control is a
6814 child of a removed control and update active_control accordingly.
6817 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6819 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6820 or the MaxDate. Fixed bug #337693.
6822 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6824 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6825 after calling SetWindowLong for a form, to force an immediate NC refresh.
6826 Fixes first part of bug #325150.
6828 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6830 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6831 simple. Fixes the last part of bug #322668.
6833 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6835 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
6836 needs to be TopMost as well, or else the MessageBox is under the form.
6837 Patch by George fixes bug #325300.
6839 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6841 * X11Dnd.cs: When starting a new drag operation, reset the static
6842 'dropped' field to false (previously the implementation didn't reset
6843 it and got confused after the first drag).
6846 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6848 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
6849 items instead of re-creating them all. For this purpose we now cache
6850 both CategoryGridEntry items and the GridEntries for the main object's
6852 * GridItem.cs: Make SetParent method abstract.
6853 * GridEntry.cs: Override the SetParent method (already there, but now
6857 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6859 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
6860 depending on its depth (as .Net does). Update the needed values in
6861 MouseDown handler. Also draw the plus/minus rect after the label,
6862 so we don't draw on top of it.
6864 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
6866 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
6867 processed by forms or controls when menu is active. [Fixes #333548]
6869 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6871 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
6872 parent doesn't have focus. This was causing ToolStripTextBoxes to take
6873 focus on mouse over.
6875 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6877 * TextControl.cs: Code cleaning, simplifying.
6879 2007-10-24 Geoff Norton <gnorton@novell.com>
6881 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
6882 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
6884 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6886 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
6887 the cap is maxvalue, not actually 0. [Fixes bug #336218]
6889 2007-10-24 Andreia Gaita <avidigal@novell.com>
6891 * SendKeys.cs: apply jpobst's patch to bug #332409
6893 2007-10-23 Andreia Gaita <avidigal@novell.com>
6895 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
6896 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
6899 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6901 * PropertyGridView.cs: If a property has an UIEditor available,
6902 make the drop-down/editor button available only if the property
6905 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6907 * PropertyGridView.cs: Don't make the grid item textbox
6908 editable when a drop-down control is available, but
6909 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
6910 true. The same bur the color of the grid item value's label.
6912 2007-10-22 Geoff Norton <gnorton@novell.com>
6914 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
6915 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
6916 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
6917 driver. Padd the bottom of all real windows so the resize thumb doesn't
6918 obscure scroll/status bars.
6920 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
6922 * WindowsFormsSection.cs: Implement.
6924 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6926 * MdiClient.cs: Maximize new active mdi child when a maximized child is
6927 closed see #325434 patch.
6929 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6931 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6934 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6936 * PropertyGridView.cs: When showing the textbox for a grid item,
6937 have two local variables to store the read-only and non-editable
6938 status of a grid item (we were previously using just one variable
6939 to do this, when actually they are slightly different).
6940 Fixes part of #325023.
6942 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6944 * PropertyGridView.cs: When showing a drop-down list, try to get the
6945 values using TypeConverter.ConvertTo (to convert to a string). Fixes
6948 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6950 * PropertyGrid.cs: When updating a property and populating sub grid
6951 items, remove the previous ones, and invalidate the specific area.
6952 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6953 area behind a grid item.
6954 * GridItemCollection.cs: Add an internal Clear method, to allow us to
6955 clean the items if needed (specially for controls implementing
6956 ICustomTypeDescriptor and returning a variable number of properties).
6959 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
6961 * TextControl.cs: Clean up and document the Insert function.
6963 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6965 * TextControl.cs: Make sure we know our start point for updating the view
6966 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
6969 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6971 * ListView: Couple of corcompare fixes.
6973 2007-10-17 Geoff Norton <gnorton@novell.com>
6975 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
6976 the title caption of real window.
6978 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6980 * ErrorProvider.cs: Add the error provider's internal window to a
6981 containercontrol when the parent changes. [Fixes bug #329714]
6983 2007-10-17 Geoff Norton <gnorton@novell.com>
6985 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
6986 When we make a new window; restore the old active window - fixes dialogs.
6988 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6990 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6991 when modifying a property, and if found then invalidate as
6993 Fixes part of #324865.
6995 2007-10-17 Geoff Norton <gnorton@novell.com>
6997 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
6998 highly experimental. Fixed coordinate translation. Fixed window locations.
6999 Initial support for clipping. Implemented NC areas and menus. Support for
7000 launching from command line from Will Johansson (wjohansson@atacomm.com).
7001 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
7002 wjohansson@atacomm.com)
7003 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
7004 Hwnds now track the existence of all of their children for Mac clipping.
7005 * XplatUI.cs: Re-enabled the native driver on the Mac.
7007 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7009 * Line.cs: Move the InsertString function to here.
7010 * TextControl.cs: Cleanup some duplicate code, move some InsertString
7011 functionality to Line.
7013 2007-10-17 Geoff Norton <gnorton@novell.com>
7015 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
7017 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
7019 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
7020 always setting value to true.
7021 * Form.cs: When changing AcceptButton, notify new and original button.
7023 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
7025 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
7026 a custom control that implements IButtonControl instead of an actual
7027 button. [Fixes bug #334244]
7029 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
7031 * Form.cs: Change SelectActiveControl to internal, we need to call it in
7034 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
7035 active control when activate a new mdi window.
7039 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
7041 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
7045 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7047 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
7048 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
7049 so we always recalculate the whole document instead of just the new part.
7052 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7054 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
7055 when the mouse was to the left of the first character in the line.
7057 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7059 * TextBox.cs, TextBoxBase.cs: When setting the document's password
7060 character, use the property instead of the variable so that the
7061 UseSystemPasswordChar property is taken into account.
7064 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7066 * FolderBrowserDialog.cs: When a node is right clicked and the "New
7067 folder" contex menu appears, actually add the new folder to it, even
7068 if the node is not currently selected. Still use SelectedNode in case
7069 there wasn't found a node under the pointer.
7072 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074 * ListViewItem.cs: When retrieving the focused state, the index check
7075 should be done only when ListView is in virtualmode, as it is an
7076 expensive check for normal mode.
7078 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7080 * ListViewItem.cs: Make the focus state information be stored
7081 in the ListView, not in the items. This is done to match the MS
7082 behaviour for items that are not yet part of a ListView control;
7083 besides that, since just one item can be focused at the same time,
7084 we save a little space in our items.
7085 Fixes part of #331643.
7087 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7089 * ComboBox.cs: When focus is lost, deselect the text. When setting
7090 text of control, select all text. Do not hide selection when control
7091 does not have focus. Fixes bug #333663.
7093 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7095 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
7096 instead of ArgumentException when SelectionLength is set to negative
7097 value. Added same check to SelectionStart. Code formatting.
7099 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7101 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
7102 or SelectionStart. Code formatting.
7104 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7106 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
7107 indicating that there was not a previous drag-and-drop operation going
7109 Fixes part of #325071.
7111 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7113 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
7114 AllowedEffect, don't let the drop operation happen.
7117 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7119 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
7121 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7123 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7126 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7128 * Line.cs: Add a method that finds the tag that contains an x-coord.
7129 * LineTag.cs: Add a method that finds the character at an x-coord using
7130 a binary search, the old way was a linear search.
7131 * TextControl.cs: Change FindCursor to use the above new methods.
7133 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7135 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7136 value different than AllowedEffect). This should be possible to
7137 indicate that dragging is not possible in some control/area.
7139 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
7141 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
7142 descent internally when font changes instead of outside code being responsible
7144 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7145 instead of accessing internal variables.
7147 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
7149 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7150 remove special treatment for ArrangeIcons since it is already arranged.
7152 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7154 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7155 the Win32 backend uses Color.
7156 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7157 Refactor to store a Color instead of a Brush for Color.
7159 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7161 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7162 away. I didn't realize I needed this when I refactored these earlier.
7164 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7166 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7167 store a Color structure and use the ResPool for back color instead of
7168 holding onto brushes.
7170 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7172 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7175 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7177 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7178 to recalculate its size. Fixes a part of bug #331052.
7180 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7182 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7183 button. Fixes a part of bug #331052.
7185 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7187 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
7189 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
7193 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7195 * TextBoxTextRenderer.cs: Don't make this a static class, as static
7196 doesn't exist in 1.1. (Thanks jb!)
7198 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7200 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
7201 class to allow us to use different backends on different platforms.
7202 Linux uses the current [Draw|Measure]String backend. Windows uses
7203 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
7204 of GDI+. This leads to better looking text and more accurate measurements
7205 on Windows, fixing many of the reported issues.
7206 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
7208 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7210 * FolderBrowserDialog.cs: When running on Windows,
7211 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
7212 since we must match both "C:" and "C:\" forms. A little hackish, but
7216 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7218 * ListView.cs: When calling EndEdit (after editing an item),
7219 create a new instance of LabelEditEventArgs to keep clean the fields
7220 in case we get a new call to BeginEdit; also do Application.DoEvents
7221 to have focus in synch. This is a fix similar to TreeView's #325244.
7223 2007-10-07 Andreia Gaita <avidigal@novell.com>
7225 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
7226 * WebBrowserBase.cs: Added dialog support, calling the
7227 WebBrowserDialogs classes for each specific dialog type.
7229 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7231 * ListView.cs: When the last item is focused and is removed,
7232 move the focus to the previous item (in Items order). This is what MS
7236 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7238 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
7239 instead of the opposite (RemoveAt call Remove). This is a better
7240 approach since we don't need to to a pair of traversals when using
7243 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7245 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
7246 check that the node actually has nodes, and if not, move to the
7247 parent node instead.
7250 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7252 * TreeView.cs: Move the previous change to the general case (to
7253 call Application.DoEvents in cases where the method was called by
7256 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7258 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
7259 call Application.DoEvents. This is neccessary when we get a call to
7260 BeginEdit from an AfterLabelEdit handler, because the focus always
7261 goes to the TreeView, even if we try to give it to our
7262 LabelEditTextBox. The call do Application.DoEvents seems to
7263 synchronize the focus, basically.
7266 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7268 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
7269 should be false. This also removes some nasty recursive paths. Fixes
7272 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
7274 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
7275 state to normal. Also resize window when cascading. Fixes #325433.
7277 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
7279 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
7280 DefaultForeColor, as drawing empty colored lines isn't very useful.
7281 [Fixes the not drawn lines part of bug #324358]
7283 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
7285 * TextControl.cs: Move Line and LineTag classes into separate files to
7286 make things easier to find.
7287 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
7288 * RichTextBox.cs: Capitalize LineTag.Length property access.
7289 - This is purely an organizational/formatting change, no logic changed. -
7291 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7293 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
7296 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7298 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7301 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7303 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7304 prevent calling of OnBackColorChanged. Fixes #325321.
7306 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7308 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7309 because control can be disabled because owner is disabled.
7311 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7313 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7314 string.Empty, test failed from previous change.
7316 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7318 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7319 is null, not String.Empty. See bug #323038.
7321 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
7323 * TextControl.cs: Change the margins to match MS a little better.
7324 Still not perfect for X11 due to some DrawString differences, but
7325 is still an improvement over the old stuff.
7326 Partially fixes #324467.
7328 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7330 * FolderBrowserDialog.cs: When using MyComputer as
7331 RootFolder, let absolute paths be considered as valid ones. Also, use
7332 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7333 for Windows compatibility.
7334 Partially fixes #325247.
7336 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7338 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7339 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7340 method, since it causes the dialog to not select folders directly
7341 under the root path (when setting SelectedPath property).
7343 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7345 * TreeNode.cs: When calling Expand/Collapse and need to call
7346 ExpandBelow/CollapseBelow respectively, take into account
7347 partially visible nodes (previously Expanding/Collapsing
7348 a partially visible node in the bottom was not updating its +- sign).
7350 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7352 * TreeView.cs: When calling Expand on a TreeNode, and we need to
7353 expand nodes below (ExpandBelow), scroll the entire Viewport
7354 area if the node is above it and not visible (instead of scrolling
7355 the area from node's Bottom, which applies only when the node is
7359 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7361 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7362 node in the bottom area (as .Net does). This is done to preserve the
7363 scroll position when ExpandAll is called before handle is created for
7364 the 1.1 profile (bottom area, as opposed to top area in 2.0).
7367 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7369 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
7370 bottom area if we are in fact not using the vertical scroll bar.
7373 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7375 * Control.cs: Comment out a double buffering optimization that doesn't
7376 take into account invalidates created in OnPaint, causing the control
7377 to never be redrawn. It would take quite a bit of work to work around
7378 this, but I left it commented with an explanation for later possible
7382 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7384 * Control.cs: Ask parent to perform a layout if control is AutoSize and
7386 * RadioButton.cs: Implement GetPreferredSizeCore.
7389 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7391 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7394 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7396 * Application.cs: Move the sync context stuff to Run instead of RunLoop
7397 so that it doesn't get uninstalled on modal forms.
7398 * Control.cs: Install a sync context when a control is created.
7399 * WindowsFormsSyncronizationContext.cs: Create a private static control
7400 to invoke on. This is easier than trying to find a created control we
7404 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
7406 * Application.cs: Install a WindowsFormsSynchronizationContext in the
7407 run loop, and uninstall it when done.
7408 * WindowsFormsSynchronizationContext.cs: Implement.
7409 [Fixes the common case in bug #327608]
7411 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
7413 * DataGridViewCellCollection.cs: Added argument checks for indexers.
7414 Use case-insensitive lookup of column name in indexer. Code
7417 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7419 * TreeNode.cs: When collapsing or expanding a node, check whether its
7420 change will affect the visible area (we were previously doing a
7421 IsVisible check, but that check is not enough since children nodes
7422 could be still visible). Fixes part of #325266.
7424 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7426 * TreeView.cs: Always select the first node when the TreeView gets
7427 focus if there is no currently selected node.
7430 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7432 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7433 node being selected is null.
7434 [Patch from Yves Bastide fixes bug #326858]
7436 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7438 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7439 whether all the parent nodes are expanded.
7440 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7441 call RecalculateVisibleOrder if all previous nodes are expanded.
7442 Before that we were doing a IsVisible check, but sometimes the node
7443 is not in the visible area, but _should_already be ready, because of
7444 all previous nodes are expanded. Fixes #325259.
7446 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7448 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7449 portion of the item is clicked.
7451 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7453 * TextControl.cs: Do not tell the system to move the cursor if the
7454 textbox isn't focused. Fixes part of bug #322668.
7456 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7458 * ComboBox.cs: When there are no items, do not show the dropdown if
7459 the down arrow is clicked. Fixes part of bug #322668.
7461 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7463 * ToolStripComboBox.cs: Manually set the size of this control in the
7464 constructor, as it doesn't seem to be the same as DefaultSize.
7465 Fixes a failing monobuild test.
7467 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7469 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7470 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
7472 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7474 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7475 Desktop. This lets it work for people who have moved their desktops
7476 from the default location on windows. For people who have not, both
7477 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
7479 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7481 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7482 but when the base constructor sets this, the control is null. Set it
7483 again in the constructor. Fixes a failing monobuild test.
7485 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7487 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7489 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7492 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7494 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7495 will handle it themselves.
7496 * ToolStripItem.cs: When deciding what the text of a tooltip should
7497 be, use the Text property instead of the text field.
7498 * ToolStripTextBox.cs: Handle tooltips.
7499 [Fixes bugs #325417 and #325973]
7501 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7503 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7504 left click. Fixes the easy part of bug #325969.
7506 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7508 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7509 bug #325406, but set a minimum for StatusStrip to 22 to keep
7510 bug #325390 fixed. I think this minimum would have been figured
7511 up automatically if the grip was actually a ToolStripItem, but it
7514 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7516 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7517 as this is apparently the actual value used by .Net. Also apply
7518 ItemPadding in Details view only, and decrease the general width padding,
7519 to have only the needed. This should fix #324340 in Windows too.
7521 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7523 * ListViewItem.cs: Don't Invalidate item if parent is inside
7524 a BeginUpdate/EndUpdate block. This prevents to have differences
7525 between the ListView and items state, as well as avoid some exceptions
7527 * ListView.cs: Make 'updating' field internal.
7529 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7531 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7532 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7533 size if appropriate.
7534 Fixes reopened bug #325414.
7536 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7538 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7539 * ToolStripItem.cs: Invalidate before and after our new autosize when
7541 Fixes reopened bug #325390.
7543 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7545 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7546 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
7549 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7551 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
7553 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7555 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7556 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7559 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7561 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
7562 item to select when the ToolStrip is selected.
7563 * ToolStripControlHost: Realign the control when the bounds or visibility
7565 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7566 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7568 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7569 base.OnPaint. Was causing text not to be drawn.
7571 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7573 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7575 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7577 * TreeView.cs: When creating the label edit text box,
7578 set is initially to Visible = false. This is done to
7579 prevent a confusion in the layout which makes it to lose
7580 focus when shown the first time. Fixes part of #82592.
7582 2007-09-13 Andreia Gaita <avidigal@novell.com>
7584 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7586 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7588 * ToolStrip.cs: Take Margin into account when calculating preferred
7589 size. Also, allow preferred size to get smaller than the explicit
7591 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7592 First step towards fixing bug #82747.
7594 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7596 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7597 full row select background over the plus/minus glyph. Also, turn
7598 off the focus rectangle for full row select since MS doesn't seem
7599 to ever paint it. [Fixes bug #81839]
7601 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7603 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7604 This was causing keyboard opened dropdowns to lose focus.
7607 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7609 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7610 ClientRectangle instead. [Fixes bug #82838]
7612 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7614 * SplitContainer.cs: We can't reset Visible on every layout because
7615 someone may have set Visible = false explicitly on a SplitterPanel.
7616 Make sure when we switch orientation the SplitterDistance does not
7617 change. Fixes two failing tests.
7619 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7621 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7622 TextRenderer, since the latter is only available in 2.0.
7624 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
7626 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7627 * SplitContainer.cs: Implement FixedPanel layouting.
7629 2007-09-12 Andreia Gaita <avidigal@novell.com>
7631 * WebBrowserBase.cs: setup shutdown routine
7633 2007-09-12 Andreia Gaita <avidigal@novell.com>
7635 * Application.cs: Let keyboard events that are targetted
7636 to non-mwf windows hosted inside mwf (as in, webbrowser),
7637 propagate properly. Fixes keyboard handling on the webbrowser.
7639 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7641 * ListView.cs: When handling MouseUp event and we are
7642 highligting a node with the mouse right button, don't trigger
7643 Before/AfterSelecting event, since we are not actually selecting
7646 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7648 * TreeView.cs: When editing a node, modify the edit text box
7649 depending on the text length (as you are typing), like MS does.
7651 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7653 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
7654 Override GetPreferredSizeCore to perform calculations. Remove custom
7655 autosize logic. [Fixes bug #82739]
7657 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7659 * TextBoxBase.cs: Modified should default to false.
7661 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7663 * Control.cs: Update the anchoring distances even when layout is supspended.
7664 Patch provided by George fixes bug #82805.
7666 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7668 * Control.cs: Provide a setter for ExplicitHeight.
7669 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7670 remove the hacks in here for requested_height.
7673 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7675 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7676 Maximum to lower that its current Value caused an ArgumentException by setting
7677 the Value to the new Maximum.
7679 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7681 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
7682 handle moves to the closest tick when it is being dragged.
7685 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7687 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7688 can't let them count as real items when calculating where to merge in the
7689 user's items. [Fixed bug #82786]
7691 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7693 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7694 who want to add a menu item directly onto a toolstrip.
7695 [Fixes bug #82775, part II]
7697 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7699 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7700 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7701 don't set it to available.
7702 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7703 [Fixes bug #82727, part II]
7705 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7707 * StatusStrip.cs: Change item placement to None if not visible.
7708 * ToolStripItem.cs: Invalidate when InternalVisible changes.
7709 These should have been committed to fix 82723, but I missed them.
7711 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7713 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7714 Click, and that it is only called once.
7715 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7716 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7720 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7722 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7724 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7725 instead of 8, just like above. Partially fixes #82734.
7727 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7729 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
7732 * ListView.cs: Remove extra space between rows in Details view (match
7734 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7737 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
7739 * Application.cs: Modified ProductVersion to return value of
7740 AssemblyInformationVersion if available, and fallback to assembly
7741 version. Fixes bug #82746. Code formatting.
7742 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7745 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7747 * Control.cs: When updating ZOrder for a child control,
7748 take into account the implicit ones (we need it in our controls
7749 using them). Fixes #82642.
7751 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7753 * ToolStripItem.cs: Add support for animated images.
7756 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7758 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
7759 visible. [Fixes bug #82727]
7761 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7763 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7764 so we repaint using the new size. [Fixes bug #82723]
7766 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7768 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7769 option. [Fixes bug #81779]
7771 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7773 * TreeView.cs: Override HandleClick because the StandardClick style is
7774 set to false. According to MSDN (and testing), the click events should
7775 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
7777 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7779 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7780 the border will disappear. Fixes reopened #82653.
7782 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7784 * Control.cs: If the control is autosize, and its preferred size changes
7785 when it lays out its children, tell its parent so it can be re-layed out.
7786 Fixing some of the fallout from r85433.
7788 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7790 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7791 and CheckBox share some code.
7793 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7795 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7796 the TrackBar, not every mouse move. [Fixed bug #82718]
7798 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7800 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7801 under 2.0 rendering. [Fixes bug #82657]
7803 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7805 * TreeView.cs: If we found a TreeNode to display a context menu, but
7806 it doesn't have one to show, let the TreeView display its menu
7807 instead. [Fixes bug #82680]
7809 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7811 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7812 OnPaintInternal instead. Give the internal TextBox a Border property
7813 so it can draw itself more correctly. [Fixes bug #82653]
7815 2007-09-06 Zoltan Varga <vargaz@gmail.com>
7817 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7819 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7821 * ComboBox.cs: Adjust combobox button state to reflect current state when
7822 back to enabled = true. Fixes first issue of #82654.
7824 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7826 * Control.cs: Fix last patch regression, prevent forms to update zorder when
7827 setting visible property.
7829 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7831 * Control.cs: Update zorder after control creation in SetVisibleCore, it
7832 fix zorder for controls initially created as non visible. Fixes #82667.
7834 2007-09-04 Everaldo Canuto <everaldo@simios.org>
7836 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
7837 mimic win32 look. Fixes #82656.
7839 2007-09-01 Zoltan Varga <vargaz@gmail.com>
7841 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
7842 Stubs for new net 3.5 classes.
7844 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7846 * ListViewItem.cs: In ListViewItemCollection operations calculate
7847 Layout for owner as well as invalidate it. Fixes part of #82642.
7849 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
7851 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
7852 when returning Enabled. [Fixes bug #82651]
7854 2007-08-30 Everaldo Canuto <everaldo@simios.org>
7856 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
7858 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7860 * ListView.cs: Put item padding info in a single place
7861 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
7863 * ThemeWin32Classic.cs:
7864 * Theme.cs: Likewise.
7866 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7868 * ListView.cs: When a ListViewSubItem instance is invalidated,
7869 invoke Invalidate on parent ListViewItem, not parent ListView.
7872 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7874 * ListView.cs, ListViewItem.cs: corcompare stuffs.
7876 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7878 * BindingMemberInfo.cs: Implement == and != operators.
7880 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7882 * HtmlElementEventArgs.cs: Implement properties.
7884 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7886 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
7888 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7890 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
7891 Add (string,string,string) to implement the imagekey. It turns out, we
7892 use the requested imagekey whereas .Net does not. So I broke ours to match
7895 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7897 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
7899 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7901 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
7903 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
7905 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
7906 up-to-date. Fixes bug #82618.
7908 2007-08-29 Everaldo Canuto <everaldo@simios.org>
7910 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
7911 reflect document changes. Fixes #82367.
7913 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7915 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
7916 as well as add new ones. This should make work the BackgroundImage
7917 property for ListView again.
7919 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7921 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
7922 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
7923 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
7925 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7927 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7930 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7932 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7933 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7935 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7937 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
7938 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7940 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7942 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7944 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7946 * GridEntry.cs: Implement GetService.
7948 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
7950 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7951 for label editting, make sure we focus back on the TreeView.
7954 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7956 * ListView.cs: Add some 2.0 overrides.
7958 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7960 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7961 because getter dont returns right value before handle creation. Thanks
7962 to George. Fixes #82569.
7964 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7966 * Theme.cs: Revert last patch, it causes error under win32.
7968 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7970 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
7971 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
7972 logical Desktop rather than the physical file system location. Fixes #82603.
7974 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
7976 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7977 for the patch. Fixes #82568.
7979 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7981 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7984 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7986 * ListViewInsertionMark.cs: New stubbed class.
7988 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7990 * FolderBrowserDialog.cs: When adding folder, immediately create the
7991 directory with temporary name and rename the directory when editing
7992 finishes. This matches MS. Ensure the node for the new folder is
7993 selected and LabelEdit is disabled, when editing is either finished
7996 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7998 * TreeView.cs: When editing label of node, ensure node is visible.
8000 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
8002 * PropertyGridView.cs: Set the value only if it has changed.
8004 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8006 * ListView.cs: Some more code refactoring to add support sorting
8007 with groups (now for Details view). Remove unused code also.
8009 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8011 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
8012 Not a big fan of reacting immediately to a field in an EventArg, but that's
8013 the way it's done. (This is part of the previous commit that got left out.)
8015 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8017 * FolderBrowserDialog.cs: Removed need for separate description field.
8018 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
8019 has focus when dialog box is displayed again, regardless of what
8020 button was pressed the previous time. Set RootFolder and SelectedPath
8021 each time dialog box is displayed. This ensures the treeview is
8022 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
8023 when it does not have focus. Added support for more special folders.
8025 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8027 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
8028 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
8029 it resets the edit_args.
8030 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
8033 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
8035 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
8036 button to match MS. Provide more meaningful exception message for
8037 invalid RootFolder value. Use zero-length string when SelectedPath
8038 is set to null. Allow non-rooted paths in SelectedPath, but ignore
8039 them in FolderBrowserTreeView. Allow folders to be created in
8040 RootFolder. Fixes bug #82576.
8042 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8044 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
8045 since we need to take into account the group headers and the margin
8047 * ListViewGroup.cs: Add a rows field to store the number of rows per
8050 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8052 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
8053 Anyways, let's just follow the lead.
8055 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8057 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
8058 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
8059 controls in GetPreferredSizeCore.
8060 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
8063 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8065 * PrintDialog.cs: Need to instantiate the form variable here too.
8067 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8069 * ListView.cs: Do some reorganization to support sorting in groups,
8070 by doing the layout sequentially in ListView.Items. Also add support
8071 for the Default Group, which should be available for items with no
8073 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
8074 for storing layout info also.
8075 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
8076 collection, as well as providing internal members to do a traversal
8077 including the default group (needed when doing layout/drawing).
8078 * ThemeWin32Classic.cs: When drawing group headers use internal
8079 ListViewGroupCollection members to take into account the default
8082 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
8084 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
8086 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8088 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
8089 been created. If handle is created, we want arror keys. If we are editing
8090 a node, we want things like enter, esc, home, end, page up, page down.
8091 Allows Esc to work for FolderBrowserDialog.
8093 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8095 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
8096 they close when ESC is pressed. Thanks Andy!
8098 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8100 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
8101 This way we can tell if this is a CommonDialog provided with mono, or one
8102 that is being implemented outside by a developer. If it is an external one,
8103 the developer is responsible for showing their own form. We were showing
8104 our blank form after the developer showed his.
8105 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
8106 PageSetupDialog.cs: Instantiate form variable in our constructor.
8109 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8111 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
8112 and always return true. [Fixes bug #81616]
8114 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8116 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
8117 TextBox. [Fixes bug #82549]
8119 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
8121 * FileDialog.cs: When Save/Open is clicked and no filename is selected
8122 or entered then do not close the dialog. Fixes bug #82539. Removed
8125 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
8127 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8128 code to this method. It is calling every time filter changes. This method
8129 will help to fix the bug #80887.
8131 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8133 * CheckBox.cs: Implement AutoSize calculation.
8135 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8137 * CheckBox.cs: Use new 2.0 rendering for 2.0.
8138 * Theme.cs: Method declarations for 2.0 rendering path.
8139 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8141 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8143 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8145 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8147 * ListViewGroupCollection.cs: Implement AddRange the right way, to
8148 only call Redraw on the parent one time.
8150 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8152 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8153 GetClipboardContent.
8154 * DataGridViewCell.cs: Implemented GetClipboardContent,
8155 GetEditedFormattedValue, GetFormattedValue.
8156 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8158 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8160 * TableLayoutStyleCollection.cs: corcompare fix.
8162 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8164 * DataObject.cs: Implemented retrieval of convertible / not convertible
8167 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8169 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8170 ourselves. This ensures the entire old bounds are repainted, in case our new
8171 size is smaller. [Fixes bug #82518]
8173 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
8175 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8176 flag to make fast handle of mouse events, without this the mouse move is
8177 handled in some manner, whether it is a mouse move or not. Fixes #81588.
8179 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8181 * ListView.cs: When doing layout calculations don't use a ref
8182 param to keep the current item; instead use its Index value (this
8183 is specially important when doing the layout with Groups
8184 and Items being sparse). Also don't take into account items added to
8185 the Group but not yet added to the main ListView.Items collection.
8187 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8189 * ListViewGroupCollection.cs: Forgot to mimic an issue
8190 in the indexer (don't assign the ListView owner for new values).
8192 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8194 * ListViewGroupCollection.cs: Make the string indexer use
8195 the int based indexer to re-use code, instead of duplicate the code.
8196 Also Redraw as needed and take into account null values.
8198 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
8200 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
8203 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
8205 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
8206 when other buttons are clicked or navigated to.
8208 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8210 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
8211 it's XplatUIX11 that attaches them.
8213 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8215 * DataGridView.cs: If a column has been added, recreate the editing row.
8218 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8220 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
8221 of the tag to draw. Makes disappearing text show up again.
8223 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8225 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
8226 Contents. Fixes #82487.
8228 2007-08-19 Andreia Gaita <avidigal@novell.com>
8230 * Added HtmlElement.cs, HtmlElementCollection.cs,
8231 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
8233 2007-08-19 Andreia Gaita <avidigal@novell.com>
8235 * BindingSource.cs: Implement this, dispose and getenumerator.
8236 * DataGridViewRowCollection.cs: Move the InvalidOperationException
8237 out of AddInternal, throw it only on public Add calls. The
8238 UsingWebBrowser sample was blowing up with this when setting the
8239 DataSource after adding DataBindings, so it's likely that .net
8240 only throws this exception when Add is called directly.
8242 * ToolStripControlHost.cs: Return the hosted control's text
8243 property, and not the ToolStripItem one (it would always return
8246 * HtmlDocument.cs: Implement GetElementById and All
8247 * WebBrowser.cs: Remove exception on set_DocumentStream.
8249 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8251 * Form.cs: Fix the max and min value for opacity (0~1).
8253 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8256 * DataGridTableStyle.cs: Default header font is now null, on getter it
8257 returns datagrid font when is null. On setter permits null.
8260 - When ResetHeaderFont set header font to null.
8261 - On EndInit set grid_style.DataGrid.
8263 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8265 * TabControl.cs: Fix regression in default padding x.
8267 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8269 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
8271 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8273 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
8274 not 2. Fixes #82229.
8276 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8278 * TabControl.cs: Fix tab size when image height is less than text height.
8279 Partially fixes #81837.
8281 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8283 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
8284 "alt + tab". It works only for Win32, for X11 theres no way to remove window
8285 from taskbar and keep it on "alt_tab". Fixes #81722.
8287 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8289 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
8290 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
8291 Fixes #80877 and #79418.
8293 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8295 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
8296 between position and one of the screen borders. Fixes #82349.
8298 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8300 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8301 the MessageBox in the taskbar. Fixes #82457.
8303 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8305 * MessageBox.cs: Fix form size when icon is set and text height is bigger
8306 than icon. Fixes #82468.
8308 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8310 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8311 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8312 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8313 Refactored HandleNCCalcSize somewhat to avoid code duplication.
8314 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8315 FormBorderStyle to decide if we're calculating a new size from the
8316 client size or not. CreateParams: Don't fake tool windows, only the X11
8317 backend manages toolwindows manually.
8319 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8321 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8322 ObjectDisposedException.
8324 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8326 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
8327 in OnLoad should not have any effect. [Fixes bug #82470]
8329 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8331 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8332 paint for controls that create their own ToolTipWindow instead of
8333 going through ToolTip.
8335 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8337 * ToolTip.cs: Make Hide internal instead of public to match MS API.
8339 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8341 * ListViewGroupCollection.cs: Use generic List instead of an
8342 ArrayList, since this collection is 2.0 only.
8344 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
8346 * ToolTip.cs (Hide): Made public to make the build work (should
8347 this not be public?).
8349 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8351 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8353 * ToolTip.cs: Add an internal Visible property to facilitate transition.
8355 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8357 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8358 PopupEventHandler.cs: Make these internal for 1.1.
8359 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8360 use ToolTipWindow internals.
8361 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
8362 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8364 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8366 * X11Dnd.cs: Add a null check.
8368 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8370 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8371 nothing else succeeds. Fixes #82453.
8373 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8375 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8376 rectangle if we're painting to another window than the one the paint
8377 message was generated on. Simplify the code somewhat, which makes
8378 PaintEventEnd also simpler.
8380 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8382 * Control.cs: When changing parent of a form, let the form decide whether
8383 XplatUI.SetParent should be called or not.
8384 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8385 recreating the handle. If the new parent's handle isn't created, don't
8386 recreate our handle, just destroy it. CreateParams: Check if the
8387 parent's handle is created before fetching it.
8389 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8391 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8392 Update calls to PaintEventStart/End to take a Message argument.
8393 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8394 take a Message argument.
8395 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8396 Message argument, and handle the case where we don't paint to the window
8397 for which the paint message was generated.
8399 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8401 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8402 Marshal.GetLastWin32Error. Plug nasty memory leak in
8403 PaintEventStart/End, we were creating a DC we weren't releasing.
8405 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8407 * ListView.cs: Add Groups support in Details view. Also have a small
8408 method to do the layout of the group header. Don't use a separate
8409 method to do the groups calculation in Icons view, since our methods
8410 are now a little simpler.
8411 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8413 * ThemeWin32Classic.cs: Likewise.
8415 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8417 * Application.cs: Add FilterMessage method and rework our message loop
8420 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8422 * Application.cs: Add some methods and stub a few methods that are
8423 pretty much never used.
8425 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
8427 * TreeNode.cs: Add some serialization methods.
8429 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8431 * ListView.cs: In ListViewItemCollection have a
8432 'is_main_collection' field to not modify ListViewItem.ListView
8433 when using it as ListViewGroup.Items (and not ListView.Items)
8434 and also don't modify selection state (.Net behaviour).
8435 Instead, set group for items contained in a ListViewGroup.Items collection.
8436 * ListViewItem.cs: Simplify some code in Group setter.
8437 * ListViewGroup.cs: use the new .ctor to pass the current instance
8438 to the ItemsCollection.
8439 * ListViewGroup.cs: Set the ListView property for ListViewGroup
8440 instances when adding/removing. Also make Remove use RemoveAt, which
8441 should perform better.
8443 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8445 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8446 that crept into the 1.1 profile.
8448 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8450 * ToolBarButton.cs: Implement ImageKey.
8452 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8454 * ToolBar.cs: Implement ScaleControl/ScaleCore.
8456 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8458 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8459 created, it might have gotten destroyed since we last checked. Fixes
8462 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
8464 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8465 tooltip will hide when mouse is moved off the control.
8468 2007-08-11 Andreia Gaita <avidigal@novell.com>
8470 * WebBrowserBase.cs, WebBrowser.cs: add implementation
8471 using Mono.Mozilla for loading and navigating webcontrol
8473 The initial implementation was done on
8474 /trunk/mozembed/tests/browser , and copied here.
8476 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
8478 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8479 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8481 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8483 * DataGridView.cs: Add support for an editing row. Fixes #82226.
8484 RowTemplateFull: throw an exception if a column doesn't have a template.
8485 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8486 add the row just before it.
8487 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8489 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8490 DataGridView field to be able to reach the grid's editing row.
8492 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8494 * ToolTip.cs: If the control's handle hasn't been created when it has a
8495 tooltip set on it, don't check to see if we need to show the tooltip. This
8496 check was causing the control's handle to be created.
8499 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8501 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8503 Handle Not Created -1 0
8507 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8509 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8512 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8514 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8515 * ToolTip.cs: Implement some properties and owner draw.
8517 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8519 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8520 show them again, since setting visibility causes a paint, causing an
8521 endless loop (instead use a temporary and set it all when it's known if
8522 they should be shown or not). Fixes #79265.
8524 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8526 * DataGridView.cs: Only do a full column/row selection if a header was
8527 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8528 isn't pressed, deselect everything before selecting something.
8530 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8532 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8533 behaviour according to bug #81075 - they are returned in the order they
8534 are selected. Fix HitTest to check if the point is within any of the
8535 headers. Allow for row/column selection when in ColumnHeader or
8536 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8537 the row and column to call when their selected state changes, and
8538 updated selected_[rows|columns] whenever SetSelected* is called.
8539 * DataGridViewBand.cs: Initialize isRow correctly. Call
8540 SetSelected[Row|Column]CoreInternal when the selected state changes, and
8541 add a SelectedInternal to avoid StackOverflows.
8542 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8543 ReadOnly no matter what.
8544 * DataGridViewSelectedColumnCollection.cs,
8545 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8546 the items in reverse order (just as MS does...)
8548 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8550 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8551 itself, not part of a mnemonic. [Fixes bug #82378]
8553 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8555 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8556 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8557 the DGV, the column, the row, or the cell itself is readonly.
8559 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8561 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8563 * FileDialog.cs: Same.
8564 * TextRendered.cs: Same.
8565 * FolderBrowserDialog.cs: Same.
8566 * TextBoxBase.cs: Same.
8567 * Application.cs: Same.
8569 * ThemeClearLooks.cs: Same.
8571 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8573 * XplatUI.cs: Added RunningOnUnix property to be used by controls
8574 instead of duplicating these checks everywhere.
8575 * FileDialog.cs: Use case-insensitive comparison for populating the
8576 DirComboBox when not running on unix. Fixes bug #82385.
8577 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
8580 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8582 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8583 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8584 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8585 cell and column selection with ctrl and shift pressed. Call the correct
8586 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8587 the corresponding virtual method (PaintBackground to paint background,
8589 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8590 either the column, row or the cell itself is selected.
8591 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8593 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8594 here. When the row is selected, don't select all cells. Each cell now
8595 queries the row to see if the row is selected.
8597 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8599 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8602 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8604 * ListView.cs: In ListViewItemsCollection check that owner is
8605 not null before trying to access it (this happens quite often
8606 using Groups). Also don't duplicate calls by calling CollectionChanged
8609 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8611 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
8612 when we are dismissed to clear keyboard mnemonics.
8613 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
8614 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8615 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8616 was activated by keyboard or the OS tells us to always draw them.
8617 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8618 [Fixes bugs #82376, #82377]
8620 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8622 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
8623 shot at having it because Alt was pressed.
8624 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8625 the first real menu item.
8626 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8627 a mnemonic if Text is null.
8630 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8632 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8633 search do check whether the item is already contained in the
8634 collection or not; instead check if the owner of the item is the same
8635 as ours. Also, remove a redundant check in the same method.
8637 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8639 * Control.cs: Allow the clip region to be set back to null.
8640 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8641 [Fixes button still showing up in bug #82370 when Show Through is turned off]
8643 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8645 * GridEntry.cs: Add a null check.
8646 * PropertyGrid.cs: When checking for existing grid entries, ignore category
8647 entries. Fixes #82297.
8649 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8651 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8654 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8656 * ListBox.cs: Implement ScaleControl.
8658 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8660 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8662 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8663 parent has a menu strip. Fixes #81689.
8665 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8667 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8668 moments, so apply some fuzzy logic to determine if the mouse is still
8669 inside a control or not. Fixes #82288 (for the third time).
8671 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8673 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8674 Don't create the child if it has been disposed already (may happen if
8675 the user closes the form the Load event).
8677 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8679 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8682 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8684 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8685 might call us after we've been destroyed, in which case our own private
8686 parent field is null. Fixes #82326.
8688 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8690 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8691 check for setting the dropdown's owner.
8693 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8695 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8696 before removing system menu items.
8698 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
8700 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8702 * MdiControlStrip.cs: Added. These are the menu items used in mdi
8704 * ToolStrip.cs: Add a null check to mnemonics.
8705 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8707 [Fixes most of bug #81689]
8709 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8711 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8713 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8715 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8717 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8719 * DataGridViewCell.cs: EditType: returns
8720 DataGridViewTextBoxEditingControl always.
8722 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
8724 * TextRenderer.cs: Remove the LineLimit string format flag from the
8725 DrawString fallback method so that things like buttons that aren't
8726 tall enough to draw a full line will still draw part of the text.
8727 [Fixes part of bug #82272]
8729 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8731 * DataGridView.cs: Implemented AutoResizeColumn(s).
8732 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8733 according to the Alignment.
8734 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8735 Implement alignment and padding when painting.
8736 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8738 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8740 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8743 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8745 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8748 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8750 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8751 hide GetPreferredSize from public API.
8752 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8753 * ToolStripItem.cs: Stub out drag and drop methods and events.
8754 * ToolStripManager.cs: Stub out Save/LoadSettings.
8755 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8756 * ToolStripPanel.cs: Fix corcompare error.
8757 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8758 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8759 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8761 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8763 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8764 bounds height instead of PreferredHeight. Puts things back the way
8765 they were for height while still fixing the width. Fixes broken unit
8768 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8770 * Binding.cs: Implement 2.0 constructors and add a null check.
8772 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8774 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8775 and fix row index (off by one).
8777 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8779 * PropertyGridView.cs: Remove debug output.
8781 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8783 * Control.cs: We need to reset the is_created flags when the handle is
8784 destroyed. Fixes #82187.
8785 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8786 client coordinates if the window doesn't have a parent.
8787 Win32GetParent returns the parent or the owner, and for top-level
8788 windows with no parent (but with an owner) we were calculating the
8789 location from the location of the owner.
8790 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8791 form has been disposed.
8792 * MdiClient.cs: Add a null-check.
8794 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8796 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8797 actually do auto-sizing. Override the internal GetPreferredSizeCore
8798 so we can provide an implementation that returns the current width
8799 and preferred height. Allows anchor = right to work with TextBox 2.0.
8802 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8804 * ListView.cs: Add support for navigating items in Groups mode, by
8805 creating a big matrix containing all rows and cols of all groups. When
8806 are in other mode than Details, pressing Up should have a similar
8807 behaviour as that one of Down (moving to the next available column if
8808 current one doesn't have an item in the requested row). Also, don't
8809 proceed to use groups if ShowGroups is false.
8810 * ListViewGroup.cs: Add an internal int field to store the starting
8811 row of the group (used by the big matrix used for navigating the
8813 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8816 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8818 * ToolStripDropDown.cs: When we do Show, start with the
8819 DefaultDropDownDirection, but if our popup menu is going to off-screen,
8820 modify the direction to keep it on screen. [Fixes bug #82210]
8822 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
8824 * FileDialog.cs: Accept any FilterIndex value, and store it
8825 unmodified. When FilterIndex is less than 1, or greater than number
8826 of filters, then default to first filter. Only add filter extension to
8827 file if user did not specifiy an extension. When type of dialog is
8828 OpenFileDialog and DefaultExt is set, then only use filter extension
8829 if: CheckFileExists is true and no file wih the default extension
8830 exists, or CheckFileExists is false, and user specified file does not
8831 exist. When CheckFileExists is true, then add first extension of
8832 selected filter that matches existing file. Perform checks for
8833 existing file, overwrite and create after extension has been added to
8834 file name. When CheckFileExists is true and type is SaveFileDialog,
8835 then only consider first filter extension if DefaultExt is set.
8836 When CheckFileExists is true, then ignore DefaultExt if file with that
8837 extension does not exist. Also perform check for existing file when
8838 type is SaveFileDialog. Changed some field to constants.
8840 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8842 * ListView.cs: Take into account the region used by header
8843 control when doing the vertical scroll (this way we invalidate
8844 the precise area, and don't get any dirty one).
8846 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
8848 * FileDialog.cs: Check for valid filterIndex on button open/save.
8851 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8853 * ListView.cs: Update some layout calculations in details view
8854 and clean the code in a pair of assignations.
8856 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8858 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
8859 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
8860 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
8861 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
8863 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8865 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
8866 performance of thread-safe Graphic methods. (Thanks rolf!)
8868 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8870 * ListView.cs: When doing the layout calculations, don't calculate
8871 scroll bars before handle is created. This is unnecessary and also
8872 calculating them before handle creation item causes a number of random
8873 bugs (which begin to appear after Chris' big patch for handle creation
8876 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8878 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
8879 for things that don't have a Graphics object. Currently, things just use
8880 the static Hwnd.bmp_g which is not thread safe.
8882 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8884 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
8885 dialog. Fixes #82187.
8887 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8889 * DataGridViewElement.cs: Initialize state.
8890 * DataGridView.cs: Forward a few Mouse events to cells. Add
8891 GetRowInternal and GetCellInternal that doesn't unshare rows.
8892 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
8893 don't use the index, but look it up. Add
8894 DataGridViewControlCollection.RemoveInternal to remove controls
8895 that Remove won't remove (scrollbars, edit control).
8896 * DataGridViewColumn.cs: Initialize State correctly.
8897 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
8898 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
8900 * DataGridViewRowCollection.cs: Implemented shared rows.
8901 * DataGridViewRow.cs: Throw exceptions as MS do.
8902 * DataGridViewCell.cs: A few properties are implemented by a
8903 Get<Property> method, so move implementation there and remove the
8904 NIEX in the method. Add a bunch of OnXInternal that DataGridView
8905 calls when necessary.
8906 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
8907 complicates matters.
8908 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
8911 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8913 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
8914 the children controls. Instead, we will just set up the proper docking for the
8915 children controls so we don't have to worry about it. [Fixes bug #82188]
8917 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8919 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
8920 canceling and correct Before/AfterLabelEdit properties as layed out in bug
8921 81847. [Fixes bug #81847]
8923 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8925 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
8926 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
8927 an explicit size based on the design-time size of the text. Since our fonts
8928 may not match this explicit size, we tend to cut off the ends of people's labels.
8930 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
8932 * Menu.cs: Add some missing methods to MenuItemCollection.
8934 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8936 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8937 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8938 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8939 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8940 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8941 * DataGridViewElement.cs: State defaults to Visible.
8942 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8943 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8945 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8947 * Control.cs: Minor 1.1 corcompare fix.
8949 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8951 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8952 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8954 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8956 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8957 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8958 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8959 DataGridViewSelectedColumnCollection.cs,
8960 DataGridViewSelectedRowCollection.cs: Corcompare work.
8962 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8964 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
8965 it is autoset by VS2005 designer and the effect is barely noticeable.
8967 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8969 * TreeView.cs: Implement HitTest.
8971 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8973 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8974 manually adding and removing the control from the Controls
8976 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8977 EditingControlInternal property that tracks the editing control.
8978 Always keeping the scrollbars in the Controls collection, as MS
8979 testing confirms is the right behaviour.
8981 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8983 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8984 according to MSDN and new test.
8986 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8988 * TreeNode.cs: Implement ToolTipText.
8989 * TreeView.cs: Implement tooltips, NodeMouse* events.
8991 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8993 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8995 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8997 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8998 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
9000 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
9002 * Control.cs, Form.cs, ContainerControl.cs,
9003 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
9004 for misc properties.
9006 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9008 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
9009 * TreeView.cs: Implement StateImageList.
9011 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9013 * Form.cs: Don't check if the current form is the active form before
9014 activating it. Fixes #81904.
9016 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9018 * Form.cs: Don't check if the current form is the active form before
9019 activating it. Fixes #81904.
9021 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9023 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
9025 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9027 * Form.cs: Don't try to position the form after loading if the form was
9028 disposed. Fixes #81969.
9030 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9032 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
9033 properties. Had to change ToolBar into ToolStrip, which required a
9036 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9038 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
9039 resized, fixes part of #79829 (vertical lines in toolbar).
9040 PropertyGrid: Refactored Populate* to something that's easier to
9041 follow at least for me, as well as splitting it up into several new
9042 methods, required to update only subitems when something has
9043 changed by a popup editor or listbox. Don't use events to check
9044 when any values are changed, since the events are unreliable (we're
9045 changing the objects the events are registered with, and if the
9046 event handling requires the objects to be immutable (objects stored
9047 in hashtables for instance), the events will never be raised).
9048 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
9049 everytime we change a value, since events are unreliable.
9050 DropDownButtonClicked: For the same reason don't compare objects to
9051 check if it has changed or not, it would require all objects to
9052 derive Equals. Fix dialog location on windows, MS is doing weird
9053 things when creating parented forms.
9054 * GridEntry.cs: Add a SelectedObject setter.
9056 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
9058 * TreeNode.cs: Add some corcompare attributes.
9059 * TreeNodeCollection.cs: Implement 2.0 stuffs.
9060 * TreeView.cs: Implement some 2.0 stuffs.
9062 2007-07-18 Andreia Gaita <avidigal@novell.com>
9064 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
9067 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
9069 * ListBox.cs: Implement custom tab offsets.
9071 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9073 * ToolStripContentPanel.cs: Support System renderer.
9074 * ToolStripControlHost.cs: Set RightToLeft to default to No.
9076 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9078 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
9080 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9082 * CheckBox.cs: Chain TextAlign to base implementation instead of
9083 maintaining another one.
9085 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9087 * ButtonBase.cs: Fix an incorrect string constant.
9089 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9091 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
9092 of creating one for measuring strings.
9094 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9096 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
9097 Implement MaxItemSize.
9099 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
9101 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
9102 for DeviceContext. Instead, use the static one available in Hwnd.
9103 Informal tests show this saves about 500k on formtest.exe.
9105 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
9107 * ContainerControl.cs: Implement 2.0 AutoScaling.
9109 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9111 * ComboBox.cs: Work around bug #82120 (bug in mcs).
9113 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
9115 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
9116 Darken the focus color.
9118 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
9120 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
9122 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9123 X, Y instead of a rect for drawing text.
9124 - For ControlPaint.DrawCheckBox, center the check a little better when the
9125 checkbox is odd width. When drawing a flat checkbox, use a white background
9126 when state != inactive.
9127 [Fixes bugs #82097, 82100]
9129 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
9131 * ListControl.cs: When changing CurrencyManager, disconnect event
9132 handlers from previous one. Fixes bug #81771. Code formatting.
9134 2007-07-15 Andreia Gaita <avidigal@novell.com>
9136 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9137 full preview invalidation from layout invalidation, and only invalidate
9138 the layout when setting zoom or other properties. Invalidation should
9139 always be done even when resetting properties with the same values as
9140 what is there. Fixes #81744 and #79830.
9142 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9144 * ListView.cs: Implement initial support for Groups. Split some of the
9145 LayoutIcons code to render a partial list of the items (needed by
9146 items contained in ListViewGroup instances). Let the
9147 ListViewItemsCollection.ListView property be modifiable (needed when
9149 * ListViewGroup.cs: Use a Bounds property rather than a Location
9150 one. Also invalidate the bounds when they get changed.
9151 * ThemeWin32Classic.cs: When drawing items, also draw the group header
9152 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9155 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9157 * ListView.cs: When space gets pressed and CheckBoxes is true,
9158 don't invoke the Begin and EndUpdate methods. We are generating
9159 a redraw of the entire control without need to do so.
9161 2007-07-13 William Holmes <billholmes54@gmail.com>
9163 * Control.cs: Changing logic in FindFlatForward and
9164 FindFlatBackward to handle multiple Controls with
9166 This fixes bug 81687.
9168 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
9170 * OSFeature.cs: Enable IsPresent.
9172 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9174 * Control.cs: Don't do anything in WmShowWindow if the control has been
9175 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9176 control is created, put on a form, the control is disposed (the
9177 form is never shown), and then we get a MapNotify, triggering a
9179 * Form.cs: Exclude the current form when sending Deactivate to all
9181 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9182 there was a race condition because assigning the handle raises
9183 events, we can get more messages, therefore trying to assign the
9184 handle again, which would fail if any of those event handlers
9185 closed/disposed the control.
9187 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9189 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
9191 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
9193 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
9194 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
9196 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
9198 * DateTimePicker.cs: If there's no part format specifier, return an
9201 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
9203 * FlatButtonAppearance.cs: Throw NotSupportedException for a
9204 Transparent BorderColor.
9206 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
9208 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
9209 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
9210 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
9211 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
9212 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
9213 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
9214 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
9216 * X11Structs.cs: Remove warnings, add ToString implementations.
9218 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9220 * XplatUIX11.cs: Translate min/max size according to the actual min/max
9221 size, and not the current size. Fixes #81798.
9223 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9225 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
9226 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
9227 to the control yet).
9229 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9231 * PropertyGridTextBox.cs: Add a method that sends any forwarded
9232 mousedowns to the contained textbox.
9233 * X11Structs.cs: More ToString implementation.
9234 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
9237 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9239 * PropertyGridView.cs: Add a null-check, fixes a few tests.
9241 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
9243 * TableLayoutPanelCellPosition.cs: TypeConverter.
9245 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9249 * PropertyGridTextBox.cs: Propagate any color changes to all contained
9251 * PropertyGridView.cs: A few color fixes.
9253 2007-07-10 Jackson Harper <jackson@ximian.com>
9255 * TextControl.cs: Remove some old unused text formatting stuff.
9257 2007-07-10 Jackson Harper <jackson@ximian.com>
9259 * TreeView.cs: Update full row select invalidation to match the
9260 newer DrawSelection... method.
9261 - Make sure to invalidate the entire width when selecting a new
9262 node, if we have full row selection enabled.
9264 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9266 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
9267 display of properties again.
9269 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
9271 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
9272 to existing collections.
9274 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9276 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
9277 that changed between 1.1 and 2.0.
9279 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9281 * PowerStatus.cs: Added. This is just a data class, it is filled
9282 in by SystemInformation.
9284 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9286 * Message.cs: Add op_Equality and op_Inequality.
9288 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9290 * MenuStrip.cs: Finish corcompare work.
9292 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9294 * LinkArea.cs: Add op_Equality and op_Inequality.
9296 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9298 * Application.cs: Add MessageLoopCallback delegate.
9300 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9302 * ListBox.cs: First set of 2.0 stuffs.
9304 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9306 * Control.cs: Make an internal Height property we can override
9307 without messing up the public API.
9308 * ListBox.cs: Override HeightInternal to always return the size
9309 the user set. [Fixes bug #80466]
9311 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
9313 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9314 paint cell borders if we haven't calculated where they go yet.
9315 [Fixes bugs #82040 and #82041]
9317 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9319 * ListView.cs: In Details view, set the location of item_control
9320 in the (0,0) position (and the header_control is thus on the
9321 item_control). This way the Bounds of the Items are relative to the
9322 ListView control (before this, they had a Bounds value without the
9323 header_control offset, which wasn't matching .Net). Fixes #82004.
9325 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9327 * ListControl.cs: When DataSource is set to null, pass an empty
9328 array of object to SetItemsCore. This is done to clean the items
9329 in the ListContol children. Fixes #81788.
9331 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9333 * ListControl.cs: Add 2.0 stuffs.
9335 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9337 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
9338 Refresh is overkill for just about every repaint request.
9340 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9342 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9343 so remove my custom Get method and fix the property getter.
9345 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9347 * Label.cs: DefaultMargin for 2.0.
9349 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9351 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
9352 reported issue where other controls with mnemonics would steal strokes
9353 from a selected ComboBox.
9355 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9357 * ScrollOrientation.cs: Make internal for 1.1.
9358 * ScrollEventArgs.cs: Add 2.0 stuffs.
9360 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
9362 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9363 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9364 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9366 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9368 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9370 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9372 * ListView.cs: Implement the so-incredibly broken 2.0
9373 VirtualItemsSelectionRangeChanged event.
9375 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9377 * ListView.cs: When enter is pressed and selection is non empty,
9378 an OnItemActivate event must be fired.
9380 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9382 * ListView.cs: Store the FocusedItem information as an
9383 int instead of a ListViewItem (needed by VirtualMode).
9384 Update the calls to SetFocusedItem to pass an index instead of
9386 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9387 the Focused state from the owner ListView.
9389 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9391 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9392 property. Also, invalidate previous focused item in the mentioned
9393 property (match .Net).
9395 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9397 * ListView.cs: Implement 2.0 FocusedItem property setter.
9399 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9401 * ListView.cs: Implement 2.0 TopItem property setter.
9403 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
9405 * StatusStrip.cs: The default renderer is System.
9406 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
9407 if the user specifies it.
9408 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9409 if we are ManagerRenderMode.
9410 * ToolStripMenuItem.cs: Calculate our text color better.
9411 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9412 from Professional to the base class based off working with the System renderer.
9413 * ToolStripSystemRenderer.cs: Added.
9415 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9417 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9419 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
9421 * ToolTip.cs: Implement 2.0 Tag property.
9423 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9425 * ListView.cs: Implement 2.0 HitTest methods.
9427 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9429 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9430 item is under the pointer or not (sugar). Also remove the TODO
9431 regarding to the cursor changes in OneClick activation.
9432 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9433 the subitems use the parent's HotFont if UseItemStyleForSubItems is
9434 true; otherwise don't show the underline style.
9436 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9438 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9439 the code to retrieve the item at position only one time. Also
9440 change cursor when Activation is ItemActivation.OneClick as well
9441 as invalidate the item if HotTracking is true (to show/hide the
9442 underline style). Add an internal HotItemIndex property to retrieve
9443 the current hot item's index.
9444 * ListViewItem.cs: Add an internal HotFont property to cache the
9445 font used when HotTracking is true and the pointer moves within the
9447 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9448 HotFont depending on the hot state of the item.
9450 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9452 * ListView.cs: Implement 2.0 HotTracking property.
9454 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9456 * ToolStripControlHost.cs: If our hosted control never got created,
9457 don't try to dispose it. [Fixes bug #81909]
9459 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9461 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9463 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9465 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
9467 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9469 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
9471 * DrawListViewColumnHeaderEventArgs.cs:
9472 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9473 using the DrawText () methods.
9475 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
9477 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9478 background which got erased in my changes yesterday.
9480 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9482 * ListViewItem.cs: Actually set bounds for subitems in Details view
9484 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9485 can invoke from the owner draw routines if we need it. Also, add
9486 support for Owner draw in Details view.
9488 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9490 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9491 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9492 ShowImageMargin setting, properly align text in a ToolStripLabel
9493 hosted on a ToolStripDropDown.
9495 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9497 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9498 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9500 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9502 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9504 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9506 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9507 location to match ToolStripMenuItems.
9509 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9511 * DrawListViewColumnHeaderEventArgs.cs:
9512 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9513 column headers in ListView.
9515 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9517 * UserControl.cs: Implement AutoSize.
9519 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9521 * DrawListViewItemEventArgs.cs:
9523 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9526 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9528 * ToolStripDropDownItemAccessibleObject.cs: Added.
9529 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9530 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9531 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9532 ToolStripTextBox.cs: corcompare work.
9534 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9536 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9537 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9538 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9541 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9543 * OSFeature.cs: Add IsPresent.
9544 * PrintPreviewControl.cs: Add RightToLeft.
9545 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9546 * SplitterPanel.cs: Add AutoSizeMode.
9548 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9550 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9551 * MdiClient.cs: Add 2.0 ScaleControl.
9552 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9553 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9555 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9557 * Form.cs: Implement some scaling methods, stub some RTL methods,
9560 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9562 * Control.cs: corcompare work.
9563 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9565 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9567 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9568 ControlPaint 2.0 stuffs.
9570 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9572 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9574 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9576 * UpDownBase.cs: Add 2.0 stuffs.
9578 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9580 * NumericUpDown.cs: Add 2.0 stuffs.
9582 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9584 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9586 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9588 * ErrorProvider.cs: Implement 2.0 stuffs.
9590 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9592 * DomainUpDown.cs: Implement 2.0 stuffs.
9594 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9596 * CheckedListBox.cs: Fix RefreshItems signature.
9598 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9600 * PictureBox.cs: Implement 2.0 stuffs.
9602 2007-06-12 Andreia Gaita <avidigal@novell.com>
9604 * TabControl.cs: Check if there are tabpages before checking
9605 the selected index - fix #81802 (font changes raise a ResizeTabs
9606 call on controls.add, which blew up nicely with no tabpages)
9608 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9611 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9613 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9616 * ListViewItem.cs: In VirtualMode the selection information
9617 resides in the ListView, rather than in the Items. Also, throw
9618 InvalidOperationExceptions when VirtualMode is being used and
9619 CheckedItemCollection is accessed.
9621 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9623 * ComboBox.cs: Add ScaleControl.
9625 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9627 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9629 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9631 * GroupBox.cs: Add 2.0 stuffs.
9633 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9635 * Panel.cs: Add autosize properties/event.
9637 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9640 - When we remove a control, remove it from the collection before performing the layout.
9641 - Setup an internal property for explicit_bounds.
9642 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9643 - Perform a layout when we set a new AutoSizeMode.
9645 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9647 * ScrollableControl.cs: Add 2.0 stuffs.
9649 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9651 * ScrollBar.cs: Add 2.0 stuffs.
9653 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9655 * Splitter.cs: Add 2.0 stuffs.
9657 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9659 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9660 to have BindingContext simply use base implementation.
9662 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9664 * ColumnHeader.cs: corcompare fix.
9666 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9668 * Button.cs: corcompare fixes.
9669 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9671 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9673 * Button.cs: Override GetPreferredSizeCore.
9674 * ButtonBase.cs: PerformLayout after changing properties that can affect
9675 AutoSize. Simplify some mouse/keyboard code.
9676 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9677 * MouseEventArgs.cs: Make Location internal for 1.1.
9678 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9679 * Theme.cs: Add CalculateButtonAutoSize.
9680 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9682 2007-06-05 Miguel de Icaza <miguel@novell.com>
9684 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9686 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9688 * ListViewItem.cs: We can't cache Bounds in VirtualMode
9689 since we can get different item instances every time we retrieve it.
9691 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9693 * ListView.cs: Work around for #81602, since an unkown an pretty
9694 infrequent condition appears only in some systems (old linux boxes, it
9697 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9699 * Button.cs: Completely reformat and a little refactor to bring
9700 this closer to Mono circa 2007.
9702 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9704 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9705 to be ButtonBase.Invalidate.
9707 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9709 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
9711 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9713 * ButtonBase.cs: Completely reformat and a little refactor to bring
9714 this closer to Mono circa 2007.
9716 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
9718 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9719 values for autosize. Fixes #80137.
9721 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9723 * Control.cs: Don't perform layout when AutoSize changes.
9724 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
9725 directly when autosizing, use SetBounds with BoundsSpecified.None.
9726 Fixes unit tests my last commit broke.
9728 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9730 * Control.cs: Perform layout when AutoSize changes.
9731 * Form.cs: Implement AutoSizing.
9733 2007-06-01 Chris Toshok <toshok@ximian.com>
9735 * DataGrid.cs: remove the XXX'ed check at the top of
9736 ProcessGridKey. fixes #80464.
9738 2007-06-01 Chris Toshok <toshok@ximian.com>
9740 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9741 adding idempotent (add/remove in Edit()), and also make sure we
9742 don't add it until after we set the text, so it's not tripped in
9743 Edit(). Fixes unit test regression.
9745 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9747 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9748 change is user explicit, not when the layout engine moves stuff. Fixes
9749 anchoring to bottom and right. [Fixes bug #81790]
9751 2007-06-01 Andreia Gaita <avidigal@novell.com>
9753 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9755 2007-06-01 Andreia Gaita <avidigal@novell.com>
9757 * ContainerControl.cs:
9758 Fire enter event for common ancestor if it is not a ContainerControl.
9759 Send focus to the active_control and not the 'value', the active
9760 control might have been changed in one of the events fired.
9761 Definitely fixes #80159.
9763 2007-06-01 Andreia Gaita <avidigal@novell.com>
9765 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9767 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9769 * PropertyGrid.cs: Anchor the help description to the bottom of the
9770 help panel and refactor SelectGridItem into a
9771 SelectGridItemInternal that can be set to null (and update it to
9772 clear the help texts when it is set to null). Set root item to null
9773 when there's no SelectedObject. Fixes #80438.
9774 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9775 when we're recalculating after a resize (only).
9777 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9779 * ListView.cs: Implement 2.0 RedrawItems method.
9781 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9783 * ListControl.cs: Disconnect PositionChanged and ItemChanged
9784 handlers from previous data manager when DataSource is set to
9787 2007-05-31 Jackson Harper <jackson@ximian.com>
9789 * TextBoxBase.cs: These seem to be the correct values.
9791 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
9793 * FileDialog.cs: When close dialog with ok set filterindex using combobox
9794 value. Fixes #81784.
9796 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
9798 * Control.cs: Implement 2.0 scaling methods.
9800 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9802 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9803 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9806 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9808 * ProgressBar.cs: Implemented missing 2.0 members.
9810 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9812 * Control.cs: Corcompare issues.
9813 * MessageBox.cs: Implemented missing 2.0 functions.
9815 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9817 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9818 Implemented more 2.0 members.
9820 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9822 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9823 null (strange, but it seems to happen when running unit tests).
9825 2007-05-30 Andreia Gaita <avidigal@novell.com>
9827 * ContainerControl.cs: Set active_control even earlier, before
9828 firing any events, and undo it if validation returns false.
9830 2007-05-30 Andreia Gaita <avidigal@novell.com>
9832 * ContainerControl.cs: Raise Validation and Enter/Leave events
9833 even if there is no Form and set active_control earlier, just
9834 before firing Enter events (toshok's patches). Fixes #80647.
9836 2007-05-30 Jackson Harper <jackson@ximian.com>
9838 * TextControl.cs: Redid the pageup/pagedown a little to simplify
9839 things and fix bug #81311.
9841 2007-05-30 Jackson Harper <jackson@ximian.com>
9843 * X11Dnd.cs: Now that we have our own event loop, we need to
9844 cancel when we get a mouseup but it won't be accepted.
9846 2007-05-30 Chris Toshok <toshok@ximian.com>
9848 * DataGrid.cs (set_CurrentCell): guard against negative
9851 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
9852 array index syntax instead of looping over the property names.
9854 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
9855 and set IsInEditOrNavigateMode to false there.
9857 2007-05-30 Jackson Harper <jackson@ximian.com>
9859 * TreeView.cs: Make sure we don't get a bad visible order when
9860 setting to the top node. Fixes some misc crashing in
9863 2007-05-30 Andreia Gaita <avidigal@novell.com>
9865 * UserControl.cs: Add 2.0 AutoSizeMode
9867 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9869 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
9871 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9873 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
9874 lines. Fixes #80285.
9876 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9878 * DataGridColumnStyle.cs: Add char trimming column header text format.
9880 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9882 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
9885 2007-05-29 Jackson Harper <jackson@ximian.com>
9887 * TreeNode.cs: Fix off by one on calculating whether or not a node
9890 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
9892 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
9893 * ScrollableControl.cs: Force an UpdateDistances when we move the
9897 2007-05-29 Andreia Gaita <avidigal@novell.com>
9899 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
9900 update the page setup screen.
9902 2007-05-29 Andreia Gaita <avidigal@novell.com>
9904 * PageSetupDialog.cs: Fix landscape mode.
9906 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9908 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
9909 IconSizeHorizontalSpacing.
9911 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9913 * ListView.cs: The declaration of prev_tooltip_item should be inside
9914 a NET_2_0 conditional (avoid a warning).
9916 2007-05-28 Andreia Gaita <avidigal@novell.com>
9918 * PageSetupDialog.cs: Implement PrintPreview control to display
9919 the preview thumbnail. Change unit conversion to use
9920 PrinterUnitConvert methods.
9922 Note: there is a huge bug in ms.net where the default margins are
9923 interpreted as centimeters (?), when in fact they are set in inches. When
9924 loading the page setup dialog initially (ms.net), the default margins
9925 are set to 1 inch, and the dialog shows them with value 10, when in fact
9926 it should be 25 (properly converted). Our dialog doesn't have this bug.
9928 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
9930 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9932 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9935 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9938 2007-05-28 Andreia Gaita <avidigal@novell.com>
9940 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9941 an IntPtr on csc (it builds fine on mcs, could it be a compiler
9942 bug?), convert the ptr to Int32 first.
9944 2007-05-28 Jackson Harper <jackson@ximian.com>
9946 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9947 recieved, we will exit the dnd tracking loop.
9949 2007-05-28 Jackson Harper <jackson@ximian.com>
9951 * X11Dnd.cs: Keep tracking until the xdnd finished event is
9952 recieved. TODO: I should probably stick a timer on the dropped
9953 event, and finish the drag if the XDND Finished event never shows
9954 (because some apps don't seem to send it).
9956 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
9958 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9961 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9963 * MonthCalendar.cs: Only mark the keypresses we actually handle as
9966 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9968 * MonthCalendar.cs: Set the size after initializing all the relevant
9969 variables. Fixes #81742.
9971 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9973 * KeyEventArgs.cs: Fix typo.
9975 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
9977 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9978 to match MS. Fixed MinDate to only accept value less than or equal
9979 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9980 Removed TODO's that are now verified by unit tests.
9982 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
9984 * TreeNodeCollection.cs: Minor corrections to exceptions to match
9987 2007-05-25 Jackson Harper <jackson@ximian.com>
9989 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9990 it's own message loop.
9991 * XplatUIX11.cs: Remove some of the dnd hooks
9993 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
9995 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9996 instead of MinimizedWindowSize.
9998 2007-05-25 Jackson Harper <jackson@ximian.com>
10000 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
10002 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10004 * KeyEventArgs.cs: Added SuppressKeyPress.
10005 * Control.cs: Added support for SuppressKeyPress.
10007 2007-05-24 Andreia Gaita <avidigal@novell.com>
10009 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
10010 problems with PieChart. suppress_validation should not be a counter,
10011 if there are several BeginInit calls, the first EndInit will
10012 activate validation. Fix exceptions thrown by set_Value.
10013 * UpDownBase.cs: ValidateText only if it's the user editing it.
10015 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10017 * ListControl.cs: FilterItemOnProperty should return the filtered
10018 item proeprty even if DataSource is null. The same applies for
10019 GetItemText. Fixes #80427.
10021 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10023 * Control.cs: If a control doesn't have a parent when it's Dock is
10024 set, but it has children, it needs to do a layout. Fixes some nested
10025 controls issues. [Fixes bug #81199]
10027 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10029 * ComboBox.cs: If there are few items in the drop down list, make it
10030 the exact size the items need, no bigger. Fixes #81612.
10032 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10034 * Application.cs: When we have captured the keyboard for a menu,
10035 check for mouse down events in case we need to close the menu.
10036 * Control.cs, Form.cs: Remove mouse down checks for menus.
10038 2007-05-24 Jackson Harper <jackson@ximian.com>
10040 * TextControl.cs: Handle tabs in non multiline mode a little
10043 2007-05-24 Jackson Harper <jackson@ximian.com>
10045 * TextControl.cs: We need to manually break apart tabbed text and
10046 move the tabs, since the system.drawing tabbing mechanism relies
10048 * TextBoxBase.cs: Move the caret properly when the user enters a
10051 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10053 * ContainerControl.cs: Don't check CanSelect before calling
10055 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
10056 release a KeyboardActive on click if it's not ours.
10058 2007-05-23 Andreia Gaita <avidigal@novell.com>
10060 * ColumnHeader.cs: Add TypeConverter
10062 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10064 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
10066 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10068 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
10070 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10072 * LinkLabel.cs: Implement public Padding property.
10074 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10076 * LinkLabel.cs: Implement public FlatStyle.
10078 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
10080 * Control.cs: Apply patch from George to call parent.PerformLayout
10081 when Visible is changed. [Fixes bugs #81118, 81718]
10083 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10085 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
10087 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10089 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
10091 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10093 * ContextMenu.cs: Implement Collapse.
10095 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10097 * ToolBarButton.cs: Implement Name.
10099 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10101 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
10102 use current_item, it prevents some NRE. Fixes #81675.
10104 2007-05-22 Andreia Gaita <avidigal@novell.com>
10106 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
10107 without updating the text.
10109 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10111 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
10112 without calling DeleteObject. [Should fix bug #81709]
10114 2007-05-22 Jackson Harper <jackson@ximian.com>
10116 * RichTextBox.cs: Set the line endings correctly, when flushing
10119 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
10121 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
10122 {Width=0,Height=0}.
10124 2007-05-22 Jackson Harper <jackson@ximian.com>
10126 * TreeView.cs: Setting top with a null node should set to the very
10129 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10131 * Form.cs: ShowDialog: destroy the handle when message loop is
10132 finished, matches MS behaviour. Refactor parts of WmClose into
10133 RaiseCloseEvents, that only raises events if they haven't already
10134 been raised. Fixes #81688 and #81521.
10135 * Application.cs: Don't call close on the form when exiting a modal
10136 loop, it will raise all the (Form)Closed/Closing events again if
10137 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10138 which doesn'r raise any events it they have been raised before.
10140 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10142 * Control.cs: Add OnPrint.
10143 * ToolStrip.cs: Add GetChildAtPoint.
10144 * ToolStripContainer.cs: Add OnRightToLeftChanged.
10145 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10147 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10149 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
10151 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10153 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10154 isn't visible anymore. Fixes #81651.
10156 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10158 * Control.cs: WmShowWindow: Update children's z-order after setting
10159 their parent. SetParent may show the window, thereby corrupting
10160 z-order, since the window will be shown on top.
10161 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10162 multiple (and redundant) WM_SHOWWINDOW messages.
10163 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10164 event has already been raised.
10165 * Form.cs: Change is_changing_visible_state to a counter, since
10166 SetVisibleCore can be called recursively. CreateHandle: when
10167 creating mdi children, send (De)Activated events.
10168 * MdiClient.cs: Update use of is_changing_visible_state.
10169 * Application.cs: OnThreadException: Surround exception handling with
10170 try/finally to ensure we always reset the error-handling state
10173 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10175 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10178 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10180 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10181 SmallIcon views, now that we have a standarized horizontal spacing.
10183 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10184 4, just like the other views (Match .Net).
10186 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
10188 * Control.cs: Delay calculating anchor distances until we actually layout.
10189 Always query the WM for the actual size and location it put us at instead of
10190 only when we send negative values.
10191 [Fixes bugs #81694, 81695]
10193 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10195 * Application.cs: Avoid a possible stack overflow when trying to exit
10198 2007-05-19 Marek Safar <marek.safar@gmail.com>
10200 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
10203 2007-05-19 Andreia Gaita <avidigal@novell.com>
10205 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
10206 * NumericUpDownAcceleration.cs,
10207 NumericUpDownAccelerationCollection.cs: Added 2.0
10210 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
10212 * RichTextBox.cs: Recalculate the document after the ScrollBars
10213 property is changed. Fixes bug #81681.
10215 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
10217 * DataObject.cs: Implement 2.0 methods.
10219 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10221 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
10222 in the center of the checkbox, not in the left-top corner.
10225 2007-05-18 Jackson Harper <jackson@ximian.com>
10227 * RichTextBox.cs: Recalculate the document after the scrollbars
10228 property is changed.
10229 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
10232 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10234 * CreateParams.cs: Make HasWindowManager marginally faster.
10235 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
10236 into Hwnd so that other drivers can use it as well.
10237 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
10238 the default location from Hwnd. Fixes MDI client windows always
10239 showing up at (0,0) in Windows (Win32 won't set the default
10240 location since the window styles aren't correct).
10242 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
10244 * TreeView.cs: Modified DoubleBuffered to just use the base
10247 2007-05-18 Jackson Harper <jackson@ximian.com>
10249 * TreeView.cs: Set the top node to the last child node when
10251 - When we get focus, if there is no selected node, use the top
10254 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
10256 * KeysConverter.cs: Add CanConvertTo.
10257 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
10258 * LinkConverter.cs: Added.
10260 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10262 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
10263 it prevents error when file dont have write access. Fixes #81669 and #81667.
10265 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10267 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
10268 button text. Fixes #79640.
10270 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10272 * Control.cs: According to MSDN controls created in the designer theres
10273 keyboard accelerators visible by default. So included check for design
10274 in ShowKeyboardCuesInternal.
10276 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10278 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
10279 text. Fixes #81621.
10281 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10283 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
10284 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
10286 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10288 * Control.cs: Finish implementation of UI State using WmChangeUIState
10289 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
10290 in some controls to check for show_keyboard_cues to draw accell keys "_".
10292 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10294 * ListBox.cs: When calculating the horizontal scrollbar
10295 in single column mode, don't use values less than 0 for
10296 Maximum. Fixes #81474.
10298 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10300 * ListBox.cs: Throw the some missing exceptions in
10301 ListBox.ObjectCollection methods.
10303 2007-05-17 Jackson Harper <jackson@ximian.com>
10305 * TextBoxBase.cs: Recalculate the document when the word wrap
10306 value has changed. This fixes 81488.
10308 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10310 * Clipboard.cs: Implement missing GetText overload.
10312 2007-05-17 Chris Toshok <toshok@ximian.com>
10314 * Control.cs (CheckDataBindings): remove the binding_context arg
10317 * CurrencyManager.cs (OnItemChanged): fix this now that
10318 BindingManagerBase is fixed. also remove the comment telling where
10319 the fix should go. We set transfering_data to true/false around
10320 the call to PushData to keep UpdateIsBinding from being called.
10321 (ListChangedHandler): remove the extra OnMetaDataChanged call for
10322 PropertyDescriptorAdded in the 1.1 case. The extra call is
10323 actually generated by System.Data generating 2 metadata changed
10324 events of its own per column add. The fix should go there. Add a
10325 comment to that affect in our test's Assert.Ignore.
10327 * BindingManagerBase.cs: Rework PullData and PushData slightly.
10328 we keep a boolean flag (transfering_data) that keeps us from
10329 calling UpdateIsBinding multiple times if we re-enter either of
10332 * ControlBindingsCollection.cs (AddCore): remove the
10333 binding_context arg to binding.Check.
10335 * Binding.cs (IsBinding): don't check if we're binding here, just
10336 return our cached value. we update it in UpdateIsBinding.
10337 (Check): don't take the binding_context arg, we'll just use our
10338 control's. Also, for some reason MS doesn't use the data member
10339 field when getting the bindingmanager for this binding. it just
10340 uses the datasource. Make this method callable multiple times,
10341 and only do the is_null_desc stuff if manager.Position != -1 (so
10342 we don't get an exception accessing manager.Current).
10343 (UpdateIsBinding): move the code from IsBinding here.
10344 (PositionChangedHandler): call Check here to we can initialize
10345 things that require a non- -1 position.
10347 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10349 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10352 2007-05-17 Andreia Gaita <avidigal@novell.com>
10354 * TabControl.cs: Add 2.0 methods and events, including
10355 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10356 * TabPage.cs: Add 2.0 methods
10358 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10360 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10361 keyboard_cues is properly handled by message method.
10363 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10365 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10367 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10369 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10371 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
10374 - WmUpdateUIState added to handle state changes, it make call to
10375 OnChangeUICues event.
10376 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10379 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
10381 * ImageKeyConverter.cs: Added.
10382 * TreeViewImageKeyConverter.cs: Added.
10384 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10386 * ToolTips.cs: Update Text if SetToolTip is called for a control
10387 already showing the tooltip, as well as restarting its timer; show
10388 tooltip if we are inside the control bounds by the time of calling
10389 SetToolTip. Inside ShowTooltip remove the check to not show the
10390 tooltip again for the active control (it is allowed by .Net to
10391 show the tooltip on the same control multiple times).
10393 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10395 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10397 2007-05-16 Andreia Gaita <avidigal@novell.com>
10399 * ContainerControl.cs: only process tab key if there are no
10400 modifier keys present, otherwise the control does the
10401 tab processing, if it needs to. Fixes #81622
10402 * TabControl.cs: Fixes calculation for which tab to select on
10405 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10407 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10409 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
10411 * Control.cs: Make IsInputCharInternal to allow controls to
10412 override it and still match MS API.
10413 * TextBoxBase.cs: Override IsInputCharInternal and always
10417 2007-05-15 Jackson Harper <jackson@ximian.com>
10419 * TextBox.cs: Disable some of the menu options when using a
10422 2007-05-15 Jackson Harper <jackson@ximian.com>
10426 * RichTextBox.cs: Some new 2.0 methods
10428 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
10430 * FileDialog.cs: On 1.0 profile, do not support multidotted
10433 2007-05-14 Jackson Harper <jackson@ximian.com>
10435 * TextBoxBase.cs: Implement some of the new 2.0 methods.
10436 * RichTextBox.cs: We need to override these methods on 2.0.
10437 * MaskedTextBox.cs: These are implemented now
10438 * TextControl.cs: This was off by one.
10440 2007-05-14 Jackson Harper <jackson@ximian.com>
10442 * TextControl.cs: Because the line endings are including in the
10443 text, we don't need to add them in anymore.
10445 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10447 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10448 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10450 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10452 * ToolBar.cs: Adjust size to default size when button theres no text and
10453 image, it fixes remaining issues from #81524.
10455 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10458 - When not flat call redraw to recalculate sizes on creare handle to match
10460 - Revert 77220 because it causes some regressions in toobar
10463 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10465 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10466 now actually enters a usable state.
10468 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10470 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10471 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10474 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10476 * ToolBar.cs: Save default_size on create handle to use later for buttons
10477 without text, needed to mimic win32 behavior.
10479 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10481 * ToolBar.cs: Fix button layour to best fit width or height according to
10482 vertical or not. Fixes #81524.
10484 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10486 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10487 toolbar size info because different styles theres different sizes.
10490 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10492 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10493 if we are using checkboxes, checked is true, and we have less
10494 than two images in StateImageList; for the 1.1 in the same scenario
10495 draw the first image if we have at least one image in StateImageList.
10496 Fixes part of #81191.
10498 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10500 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10501 the owner's Items collection on merge.
10503 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10505 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10506 * ToolStripItemCollection.cs: Lots of fixes to when events get called
10507 and parent/owner gets changed based on gert's unit tests.
10509 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10511 * MaskedTextBox.cs: Started implementing parts of it.
10513 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10515 * ListView.cs: When clicking the checkbox on the items
10516 take into account the double clicks even if we have only
10517 one image in StateImageList (only for 1.0/1.1). Also
10518 generate an extra change of checked state when we receive
10519 the second click on checkbox (match .Net behaviour).
10520 Fixes part of #81191.
10522 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10524 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10526 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10528 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10529 even if OnLoad is overriden and base.OnLoad is not called.
10532 2007-05-10 Andreia Gaita <avidigal@novell.com>
10534 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
10535 shame. (I blame my ever-persisting and annoying cold)
10537 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10539 * ListView.cs: Don't eat navigation keys. Let them flow through to
10540 KeyDown/KeyPress routines. [Fixes bug #81569]
10542 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10544 * ListView.cs: When handling keys for selecting the item based off
10545 keyboard input, do not consider keys pressed with Alt or Control. Also,
10546 correctly handle keys when the Shift key is down. [Fixes bug #81578]
10548 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10550 * Control.cs: When using UseWaitCursor, we have to store the requested
10551 Cursor to use when UseWaitCursor is turned off.
10553 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10555 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
10557 * Application.cs: Use PreProcessControlMessage instead of
10559 * PreProcessControlMessage.cs: Make internal for 1.1.
10561 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10563 * Control.cs: Add InternalContains focus property, which hast the same
10564 functionality of ContainsFocus, but also including implicit controls.
10565 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10566 since we need to know if the focus is contained in our implicit
10567 ItemControl when calculating Layout. Fixes part of #80888.
10569 2007-05-08 Everaldo Canuto <everaldo@simios.org>
10571 * ToolTip.cs: Remove center form string alignment as it must be align to
10574 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
10576 * ToolStripItemCollection.cs: Set the new item's parent and owner
10577 in Insert like we do in Add. [Fixes bug #81568]
10579 2007-05-08 Jackson Harper <jackson@ximian.com>
10581 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10582 - Off by one error in SetTop
10583 - Disable DoubeBuffering
10585 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10587 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10588 control as much as necessary in order to make it entirely visible,
10589 instead of centering the control in the container (matches MS
10590 behaviour). CalculateCanvasSize: we need to take the current scroll
10591 position into account when calculating the maximum canvas,
10592 otherwise the following scenario will fail: resize so that the
10593 scrollbars appear, use the scrollbars to scroll, resize again
10594 smaller, and now the canvas size is too small. Recalculate: when
10595 showing scrollbars make sure they start off at 0, and try to scroll
10596 the active control into view. Fixes #79540. HandleScrollBar: don't
10597 scroll anywhere if the scrollbar isn't visible.
10599 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10601 * ListView.cs: When focus changed, call Layout/Invalidate
10602 in the focused item to update the selected state (should show
10603 entire label when ListView is focused, and a part of it if is not).
10604 * ListViewItem.cs: When doing layout for LargeIcon, take into account
10605 for displaying the entire label not only the Focused state of the
10606 item, but also the Focused state of the ListView (match .Net
10609 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10611 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10612 Implement UseWaitCursor.
10614 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10615 Applying contributed patch from Sergey Volk.
10617 * Clipboard.cs: Implement SetDataObject retry logic and new overload
10619 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10621 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10623 * Control.cs: Implement DrawToBitmap.
10625 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10626 Applying contributed patch from Stefan Noack.
10628 * Control.cs: Add [Get|Set]AutoSizeMode.
10630 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10632 * MdiClient.cs: Unmerge menus when the last child is closed.
10634 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10636 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10637 * ToolStripManager.cs: Call Merge on DropDowns.
10640 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10642 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10644 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10645 visibility. We can't create forms visible, since we have to set the
10646 owner before making the form visible (otherwise Win32 will do
10647 strange things with task bar icons). The problem is that we set the
10648 internal is_visible to true before creating the control, so
10649 is_changing_visible_state is the only way of determining if we're
10650 in the process of creating the form due to setting Visible=true -
10651 this works because SetVisibleCore explicitly makes the form
10652 visibile afterwards anyways. Fixes #80775.
10654 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10656 * ThemeWin32Classic.cs: When drawing ListViewItems,
10657 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10658 or LargeIcon _and_ item is not focused (match .Net behaviour).
10660 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10662 * Control.cs, Form.cs: Fix some obsolete method warnings.
10664 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10666 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10667 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10669 2007-05-04 Andreia Gaita <avidigal@novell.com>
10671 * ContainerControl.cs: Fix active_control attribution when going
10672 up the parent chain so that the first parent container gets the control
10673 and the rest of the parent containers get the child containers (skips
10674 non-containers). Fixes #80729
10676 2007-05-04 Randolph Chung <tausq@debian.org>
10678 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10681 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10683 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10684 takes a size parameter, since the CreateParam's size isn't true for
10685 minimized forms. Fixes #81518,
10687 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10689 * Form.cs: Add OnDeactivateInternal.
10690 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10692 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10694 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10695 accessing the parent. Fixes #81508.
10697 2007-05-03 Chris Toshok <toshok@ximian.com>
10699 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10700 2.0 block, pass listposition + 1 to ChangeRecordState when a row
10701 was added before the current listposition. Fixes the
10702 TestInsertRowBeforeCurrent unit test.
10704 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
10706 * Application.cs: Add RaiseIdle.
10707 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10708 XplatUIX11.cs: Implement RaiseIdle.
10710 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
10711 corcompare work: N - Z
10715 * ScrollableControl.cs
10716 * SplitContainer.cs
10719 * SystemInformation.cs
10721 * TableLayoutControlCollection.cs
10722 * TableLayoutPanel.cs
10727 * ToolStripComboBox.cs
10728 * ToolStripContainer.cs
10729 * ToolStripContentPanel.cs
10730 * ToolStripDropDown.cs
10731 * ToolStripDropDownItem.cs
10732 * ToolStripDropDownMenu.cs
10734 * ToolStripItemCollection.cs
10735 * ToolStripMenuItem.cs
10736 * ToolStripPanel.cs
10737 * ToolStripSplitButton.cs
10740 * TreeNodeCollection.cs
10741 * TreeNodeMouseHoverEventArgs.cs
10744 2007-05-01 Everaldo Canuto <everaldo@simios.org>
10746 * ContextMenu.cs: Add public method Show with alignment property to 2.0
10747 stuff. Thanks aatdark for the patch.
10749 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10751 * GridItem.cs: Implement 2.0 Tag property.
10753 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
10755 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10756 count instead of Nodes.Length. [Fixes bug #81448]
10758 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10760 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10763 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10764 corcompare work: A - M
10765 * BindingNavigator.cs
10770 * FlowLayoutPanel.cs
10776 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10778 * Application.cs: Give toolstrips a chance to process mnemonics.
10779 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10780 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10781 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10783 2007-05-01 Jackson Harper <jackson@ximian.com>
10785 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10787 - Don't set the BoundsSpecified
10789 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10791 * Application.cs: When using the toolstrip shortcut mechanism, allow the
10792 message to pass through to a regular control if it hosted by a toolstrip.
10793 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10794 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10796 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10798 * TextRenderer.cs: Use the flags argument when using the MeasureString
10799 fallback algorithm.
10801 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10803 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10804 the MDI menu item. [Fixes bug #81483]
10806 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
10808 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10809 string. When setting Name to null, use zero-length string instead.
10811 2007-04-29 Andreia Gaita <avidigal@novell.com>
10813 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
10814 DeselectTab). Implement missing 2.0 TabPageCollection methods
10815 (Add, ContainsKey, RemoveByKey, IndexOfKey)
10817 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
10819 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10821 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
10823 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10824 Fixes bug #81479. Include details of exception when LoadFile fails.
10826 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
10828 * DrawListViewSubItemEventArgs.cs: Added missing setter
10830 2007-04-27 Andreia Gaita <avidigal@novell.com>
10832 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
10833 Hide methods (not complete). Implement missing 2.0 OnPopup event.
10835 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10837 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
10838 removed in ly last commit (it was breaking the Label edit feature).
10840 * ThemeWin32Classic.cs: When drawing a ListViewItem use
10841 StringAlignment.Near for LineAlignment (match .Net).
10843 2007-04-27 Andreia Gaita <avidigal@novell.com>
10845 * TabControl.cs: Change SetTab so it adds the tabpage to the list
10846 of controls if it isn't already there - was blowing up when doing
10847 tabcontrol.TabPages[i]=new TabPage().
10848 SetTab now does a replace by removing the page at the index.
10849 Add a new InsertTab method that inserts a page in a given index
10850 instead of replacing.
10851 Implements TabPageCollection.Insert(int, TabPage).
10853 2007-04-27 Chris Toshok <toshok@ximian.com>
10855 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
10856 internal handler that can be invoked from our subclasses.) Also,
10857 add a comment to PushData about how we need to fix it.
10859 * CurrencyManager.cs: tons of changes here. trying to get things
10860 matching the behavior of .net wrt event orders (ItemChanged,
10861 CurrentChanged, PositionChanged.) I've implemented a private .net
10862 symbol (ChangeRecordState) that appears in stack traces because
10863 it's actually easier to do this than to effective inline all its
10864 various behaviors at every call site.
10866 * RelatedPropertyManager.cs: guard against an exception here by
10867 not using parent.Current if the position is set to -1 (if the
10868 parent datasource is cleared, for instance).
10870 * Binding.cs: don't parse data in PushData (this might be wrong,
10871 but it jives with MS's behavior.) Also, don't call PushData when
10872 we get a CurrentChanged event.
10874 2007-04-27 Andreia Gaita <avidigal@novell.com>
10878 WebBrowserSiteBase.cs,
10879 HtmlDocument.cs: Added stubbed out classes, no real implementations
10882 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10884 * MainMenu.cs: In draw method without parameters call draw method with
10885 PaintEvent, another one (just rect) adjust rectangle and we dont need it
10886 as Rect property is already adjusted. Fixes #80694.
10888 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
10890 * Application.cs: Need to handle keyboard menu deselection here.
10891 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
10892 navigation, allowing keyboard to work on X11.
10893 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
10895 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10897 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
10898 menu bar. It fixes some drawing issues in menu bar.
10900 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10902 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
10903 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
10904 when <alt> key is pressed.
10906 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10908 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
10909 example just set visible to false and make this prevent from other problems.
10910 In SystrayAdd always remove pending expose. Fixes #81072.
10912 2007-04-26 Marek Safar <marek.safar@gmail.com>
10914 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
10917 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10919 * ListView.cs: Added three missing 2.0 events and corresponding
10920 EventHandlers. Added the OwnerDraw property.
10921 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
10923 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10925 * DrawListViewItemEventArgs.cs
10926 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10928 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10930 * TextControl.cs: Fixed typo in constructor
10932 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
10934 * Application.cs: Create a shortcut path so that currently selected
10935 MenuStrips can intercept keyboard events without having focus.
10936 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10937 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10938 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10939 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
10940 generate WM_SYSCOMMAND message in X11 for other platforms.
10941 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10942 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10943 * ToolStripSplitButton.cs: Add DefaultItem property.
10945 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10947 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10948 fixes some menu draw problem on Windows with border diferent from default
10949 it also fixes #81403.
10951 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10953 * Form.cs: Refactor WndProc into separate methods, just like Control is
10956 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10958 * Control.cs: set_Text: move the call to the driver into a seperate
10959 virtual method so that Form can override it.
10960 * MaskedTextBox.cs: Corcompare fixes.
10961 * Form.cs: Override UpdateWindowText and only update the styles if the
10962 form has been shown (fixes #81405).
10964 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10966 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10967 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10968 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
10969 the form lost focus or another control was clicked.
10971 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
10973 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10976 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10978 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10979 DrawListViewItemEventHandler.cs,
10980 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10982 * X11Structs.cs: More ToString implementation.
10984 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10986 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10987 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10989 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10991 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10993 * FormCollection.cs: Don't add a form if it's already in the
10995 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10996 according to behaviour and MSDN. The ownerWin32 is the active
10997 window at the moment when we call ShowDialog, not the context's
10998 main form (the context's main form may open another form that opens
10999 a form with ShowDialog, the win32 owner is the second form). Add
11000 and remove forms to the Application.OpenForms in other places to
11001 better match MS behaviour. Add an IsActive property that raises
11002 On(de)Activated only if the active state has changed (we were
11003 raising OnDeactivated before OnActivated while creating forms).
11004 * Application.cs: Refactor Enabling/Disabling of windows for modal
11005 dialog loops out to separate methods, and restore the thread
11006 context when we quit the method. Fixes #81407.
11008 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11010 * ListView.cs: In ItemControl.HandleClicks, also fire
11011 2.0 MouseClick or MouseDoubleClick events on the parent,
11012 not only the Click/DoubleClick events.
11014 2007-04-24 Andreia Gaita <avidigal@novell.com>
11016 * TableLayoutSettings.cs:
11017 - Added a GetControls method and a support structure to help the
11018 TypeConverter to enumerate the controls for serialization.
11019 - Added a new serialization constructor.
11020 - Added a isSerialized flag initialized to true on the
11021 serialization constructor so that the TableLayoutPanel.LayoutSettings
11022 setter does not throw the designed NotSupportedOperation exception
11023 when the object is built through deserialization.
11024 - Implemented GetObjectData
11026 * TableLayoutPanel.cs: Added check on LayoutSettings.
11028 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11030 * ListView.cs: Report Click and DoubleClick events to the parent
11031 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
11032 from breaking the click count state when using dialog forms (Control
11033 reports the clicks in a similar fashion). In the previous behaviour
11034 the last WM_LBUTTONUP message in a double click was sent to the
11035 ListView's form, instead of the ListView, which was breaking the click
11036 count for it. Fixes #80387.
11038 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
11040 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
11042 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
11044 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
11045 us from created dropdowns for menu items that do not have subitems.
11046 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
11047 Check HasDropDownItems before calling DropDown so a dropdown will not be
11048 created if it isn't needed.
11050 2007-04-24 Jackson Harper <jackson@ximian.com>
11052 * TreeView.cs: Set the first node to the selected node when we get
11053 focus if there is no selected node.
11055 2007-04-24 Andreia Gaita <avidigal@novell.com>
11057 * MimeIcon.cs: remove using blocks so that image streams are
11058 not disposed of. Fixes #80151
11060 2007-04-24 Jackson Harper <jackson@ximian.com>
11062 * TextBoxBase.cs: Fixup the height of textboxes when the control
11065 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
11067 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
11068 for each ToolStripItem when the parent's RightToLeftChanged is called.
11070 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11072 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
11074 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
11075 property, so that the setter can be overriden too.
11076 * TextBox.cs: Change GetContextMenuInternal() to use
11077 ContextMenuInternal.
11079 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11081 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11084 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11086 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11089 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11091 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
11092 avoid duplicate work. Mostily skeleton code, it's not working at
11095 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
11097 * NotifyIcon.cs : stub for MouseClick event
11098 * Application.cs: stub for SetUnhandledExceptionMode
11100 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
11102 * BindingNavigator.cs : Initial (partial) implementation
11104 2007-04-23 Jackson Harper <jackson@ximian.com>
11106 * TreeView.cs: Do not create the treeview's handle when setting
11107 the scroll position.
11108 - ExpandAll needs to compute the scrollbars so it knows which
11109 position to set the bar too.
11111 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
11113 2007-04-23 Jackson Harper <jackson@ximian.com>
11115 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
11118 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
11120 * ToolStripItem.cs: Make GetImageSize internal.
11121 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
11122 need to draw an item. Fixes a reported issue where images on menus
11123 that were not 16x16 were drawing incorrectly.
11125 2007-04-21 Miguel de Icaza <miguel@novell.com>
11127 * Padding.cs: Use the converter, fixes the resgen2 issue with
11130 2007-04-21 Jackson Harper <jackson@ximian.com>
11132 * TreeView.cs: Dont try to unhighlight the selected node if there
11133 isn't a selected node.
11135 2007-04-21 Jackson Harper <jackson@ximian.com>
11141 * TreeView.cs: Use the InternalBorderStyle property to set the
11142 initial border style, this forces the client rectangle to be sized
11145 2007-04-20 Jackson Harper <jackson@ximian.com>
11147 * TreeView.cs: Simplify scrolling to the last node after expanding
11149 - Fix some off by ones with setting the bottom.
11151 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11153 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11154 that. We were incorrectly doing it the other way around. Also,
11155 update ClientSize if we change the BorderStyle before the control
11158 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11160 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11161 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11162 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11163 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11164 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11165 Caption to CaptionHeight.
11166 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11167 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11168 and FixedFrameBorderSize to return value from current XplatUI driver.
11169 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11170 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11171 and FixedFrameBorderSize using win32 API. Renamed Caption to
11173 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11174 * SystemInformation.cs: Fixed typo in BorderSize.
11176 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11178 * XplatUI.cs: Added MenuAccessKeysUnderlined.
11179 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11180 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11182 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11183 value from XplatUI driver.
11184 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11185 SystemParametersInfo.
11186 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
11188 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
11191 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11193 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
11195 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11197 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
11199 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11201 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
11202 MenuStrips that contain ToolStripSeparators.
11204 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11206 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
11207 DefineStdCursorBitmap.
11208 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
11209 has been created off a standard cursor. This is used to get a
11210 bitmap of the standard cursor when Draw or DrawStretched is called
11211 in order to draw the cursor.
11212 * X11Structs.cs: Added XcursorImage and XcursorImages.
11213 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
11214 DefineStdCursorBitmap.
11215 * Cursors.cs: Update all relevant creations of Cursor to use the new
11216 internal constructor.
11218 2007-04-19 Jackson Harper <jackson@ximian.com>
11220 * TextBox.cs: Move the has_been_focused into the base control, so
11221 some of the text adding methods can manipulate it (probably time
11222 for a better name for this flag too).
11223 - Call a new version of selectall that doesn't scroll
11224 * TextBoxBase.cs: When we append text, if the document is empty,
11225 don't scroll. If the document has text already, we scroll to the
11226 end of the appended text.
11227 - When the text is changed, we reset the has_been_focused, so the
11228 next time the control gets focused, all the text is selected.
11230 2007-04-19 Jackson Harper <jackson@ximian.com>
11232 * TextControl.cs: Move the margins to the document, add a method
11233 so the margin sizes can be updated.
11234 * TextBoxBase.cs: When the border style is changed, update the
11237 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
11239 * Control.cs: Respect DefaultPadding.
11240 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
11241 padding into account.
11242 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
11244 2007-04-19 Jackson Harper <jackson@ximian.com>
11246 * TextControl.cs: Oops, we need to use the ClientRect not the
11249 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11251 * ListView.cs: In ItemControl.ItemsMouseDown, take into
11252 account the double clicks when CheckBoxes are used and
11253 the pointer is inside the checkbox. Fixes part of #81191.
11255 2007-04-18 Jackson Harper <jackson@ximian.com>
11257 * TextControl.cs: Pressing the end key shouldn't move the caret
11258 past the line ending.
11259 * TextBoxBase.cs: We can still delete if we are in the line
11260 ending and the combine will just kill the existing line ending.
11262 2007-04-18 Jackson Harper <jackson@ximian.com>
11264 * TextControl.cs: We can't move lines, then invalidate their
11265 bounds, we need to get the old bounds and combine that with the
11267 * TextBoxBase.cs: Before combining two lines for a delete, we need
11268 to invalidate the area of the old line, since that will be moved
11269 in the combine operation.
11271 2007-04-18 Everaldo Canuto <everaldo@simios.org>
11273 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
11274 with transparent background. Fixes #80482.
11276 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
11278 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
11279 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
11282 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11284 * CreateParams.cs: Add a couple of helper methods and do a less string
11285 concatenation in ToString.
11286 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
11287 overload that takes a Control parameter, since this method may be
11288 called before a control is assigned to the hwnd (from
11289 CreateWindow), and update CreateWindow to use the new overload. In
11290 GetMenuOrigin subtract the title bar from the y position if the
11291 form has a window manager (since we're painting it and not X).
11292 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
11293 CreateParams to calculate the origin (since border sizes may vary).
11294 In ScreenToMenu only subtract the title height if we actually have
11296 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11297 mdi children never have menus of themselves.
11298 * InternalWindowManager.cs: Implement menu handling like form does.
11299 Added GetMenuOrigin to calculate the menu origin, can't use the
11300 CreateParams from the form like normally since it's lying.
11301 * Hwnd.cs: Implement GetBorderSize better (in the sense more
11302 windows-like) and add Inflate and comparison operators to the
11303 Borders type. When calculating MenuOrigin and it's a form with a
11304 window manager, use the window manager to calculate it.
11306 2007-04-17 Chris Toshok <toshok@ximian.com>
11308 * Control.cs (CreateControl): turns out in 2.0 we don't need this
11309 OnBindingContextChanged thing here. It's only generated from
11310 ContainerControl.OnCreateControl. Fixes a newly written unit test
11311 - BindingTest.BindingContextChangedTest4.
11313 2007-04-17 Jackson Harper <jackson@ximian.com>
11315 * ScrollBar.cs: When setting values, make sure the current
11316 position stays within the new values range.
11318 2007-04-17 Chris Toshok <toshok@ximian.com>
11320 * Control.cs (CreateControl): talk about a bizarre corner case.
11321 Don't emit OnBindingContextChanged here if we're a parentless
11322 control (i.e. if we're a form.). Fixes
11323 BindingTest.BindingContextChangedTest2.
11325 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11327 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
11328 from win32. Fixes #81255.
11330 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11332 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11333 already present in CalculateButtonTextAndImageLayout.
11335 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11337 * XplatUIX11.cs: When setting min/max size for a window we need to
11338 translate the coordinates to x coordinates. Create an overload of
11339 SetWindowMinMax that takes a CreateParams handling this, and change
11340 SetWMStyles to call this function (can't use Control.FromHandle in
11341 the SetWindowMinMax to get the control/CreateParams from the handle
11342 because the handle might not have been assigned to the control
11343 yet). Fixes #81371.
11345 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11347 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11348 if StateImageList is non-null and it has less than two items (match MS
11349 behaviour). Also, in HandleNavKeys handle the Space key, calling
11350 the new ToggleItemsCheckState method, which tries to change the
11351 checked state of the selected items. Fixes part of #81191.
11353 2007-04-16 Jackson Harper <jackson@ximian.com>
11355 * RichTextBox.cs: namespace cleanup.
11357 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11359 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11361 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11364 * Control.cs: Call invalidate in set_Region.
11366 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11367 it dont works here.
11369 2007-04-16 Jackson Harper <jackson@ximian.com>
11371 * TextBoxBase.cs: When enter is pressed, we need to update all
11372 lines below the current.
11374 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
11376 * MdiClient.cs: Implement implicit menu merging for MDI
11377 children. When a child form is active, if it has a menustrip
11378 and the parent form has a MainMenuStrip, automatically merge
11381 2007-04-15 Andreia Gaita <avidigal@novell.com>
11383 * TabControl.cs: Refactored sizing methods to not repeat
11384 code all over the place. Tab bounds are now calculated
11385 as if alignment is top and single line, and only when
11386 setting the bounds are the positions adjusted according
11387 to alignment. Replaced hardcoded positions, spacings and
11388 paddings by getting the values the ThemeEngine.
11391 * Theme.cs: Change TabControl properties and methods so
11392 that all start with TabControl*. Added more properties
11393 to help remove hardcoded values on tabcontrol.
11394 Add CPDrawBorder3D declaration so the Theming classes
11397 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11399 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11400 on the Theming namespace, and call the appropriate methods here.
11401 Change CPDrawBorder3D to public.
11403 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11405 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11406 the control after firing the OnMouseUp event, instead of sending
11407 the message before the mentioned event. This is so we can match the
11408 MS behaviour. Fixes part of #80385.
11410 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11412 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11413 RightToLeft property.
11415 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11417 * ToolStrip.cs: Add properties and internal methods to support merging.
11418 * ToolStripItem.cs: Add MergeAction and MergeIndex.
11419 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11420 not trigger reparenting or layouts.
11421 * ToolStripManager.cs: Add Merge and RevertMerge methods.
11422 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11423 is hosting the overflow menu.
11425 2007-04-13 Jackson Harper <jackson@ximian.com>
11427 * TextControl.cs: Set the line ending correctly for the first
11430 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
11432 * Theme.cs: Update GetMethod to get the new definition for
11433 KnownColors.Update (and fix theme color updates).
11435 2007-04-12 Everaldo Canuto <everaldo@simios.org>
11437 * MessageBox.cs: Fix some test and button position.
11439 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11441 * Form.cs: Consider the implicit controls in
11442 GetRealChildAtPoint. We need it since this method
11443 is called on Form when handling the some messages in
11444 WndProc, and need to consider those implicit ones too.
11447 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
11449 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11450 if there are no ShortcutKeys set.
11451 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11452 set, use it when painting.
11454 2007-04-12 Jackson Harper <jackson@ximian.com>
11456 * TextControl.cs: Fix some off-by-one issues in line duplication
11457 and insertion in the undo manager. Also, overwrite the first tag
11458 of a line on insert, if it is just a zero lengthed tag. This
11459 prevents us from getting an extra stranded tag at the beginning of
11462 2007-04-11 Everaldo Canuto <everaldo@simios.org>
11464 * Label.cs: Remove check for handle created in CalcAutoSize, we need
11465 to calculated proper size including when handle was not created yet.
11467 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11469 * MdiWindowManager.cs: When moving a form, allow the form to be moved
11470 when the mouse is outside of it's parent's client rectangle. Fixes
11471 #79982 (take 3, part 2).
11473 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11475 * X11Structs.cs: Add a few ToString() overrides.
11476 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11477 the window location in a window-manager independent way. Reworked
11478 FrameExtents, it now actually works. Reworked AddConfigureNotify
11479 and ReparentNotify handling to use GetTopLevelWindowLocation
11480 instead of the earlier, more hacky solution. Reworked SetWMStyles,
11481 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11482 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11483 for all other windows (fixes #81281 part 1), a toolwindow is hidden
11484 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11485 and generally refactored to do as few calculations as possible
11488 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
11490 * Theme.cs: Change "reflective-contract" between MWF and SD to
11491 minimize # of calls, avoid Color serialization and avoid updating
11492 every "known colors" each time a single one is updated.
11494 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11496 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11497 when not readonly and the text is explicitly set. Code style updates.
11498 * DataGridTableStyle.cs: Removed extra line.
11499 * DataGrid.cs: Code style updates. Removed extra whitespace.
11500 * DataGridColumnStyle.cs: Code style updates. Removed extra
11503 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11505 * XplatUIX11.cs: Added comment that "fixes" #80021.
11507 2007-04-09 Jackson Harper <jackson@ximian.com>
11509 * TextControl.cs: We don't need this -1 on the line count anymore.
11511 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11513 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11514 entered value to underlying type, and convert it back to a string to
11515 apply formatting. Modified GetFormattedValue to use TypeConverter
11518 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
11520 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11521 Use SubItems property when we want to ensure there's at least one
11522 subitem. Modified SubItems property to ensure there's always at least
11523 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11524 the NRE's reported by MS.
11526 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
11528 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11529 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11530 Spaces to tabs. Removed extra tabs.
11532 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
11534 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11535 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
11537 2007-04-06 Jackson Harper <jackson@ximian.com>
11539 * TextBoxBase.cs: When a delete removes a line, recalculate all
11540 lines below that line (they need to get offsets setup correctly)
11543 2007-04-05 Jackson Harper <jackson@ximian.com>
11545 * TextControl.cs: We need to invalidate across the width of the
11546 document when we are invalidating multiple lines.
11547 * TextBoxBase.cs: Don't delete into the line ending.
11549 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11551 * ListView.cs: Restore the check for the MouseHover event
11552 in ListView. It looks like the ListView fires more than one MouseHover
11553 event when HoverSelection is true _only_ in weird-corner scenarios, but
11554 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11557 2007-04-05 Mike Kestner <mkestner@novell.com>
11559 * ListView.cs : raise MouseDown before updating selection.
11560 [Fixes #80373 tab 1&3]
11562 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11564 * ToolStripRenderer.cs: Add static method to mirror image.
11565 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11566 and RightToLeftAutoMirrorImage.
11567 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11569 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11571 * ToolStripSplitStackLayout.cs: Support Alignment property.
11572 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11574 2007-04-05 Jackson Harper <jackson@ximian.com>
11576 * TextControl.cs: Move around the line endings when crossing line
11578 - When combining lines, strip the ending text off the first line.
11580 2007-04-05 Jackson Harper <jackson@ximian.com>
11583 * TextBoxBase.cs: Try to never move the cursor into the line
11586 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11588 * ToolStripItem.cs: Make sure we aren't firing mouse events when
11589 the item is disabled. Also add a few missing methods.
11591 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11593 * ListView.cs: We don't need the MouseEnter/MouseLeave check
11594 to fire just one MouseHover event when HoverSelection is true, since
11595 .Net does fire more than one MouseHover event in that scenario. Also,
11596 fix the selection in HoverSelection, by invoking UpdateMultiSelect
11597 if MultiSelect is true, instead of only setting ListViewItem.Selected.
11598 Finally, we need to reset the Hover logic in MouseMove, even when we
11599 don't have a selected item.
11601 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11603 * ToolStrip.cs: Add several missing methods, properties, and events.
11605 2007-04-04 Chris Toshok <toshok@ximian.com>
11607 * DataGridTextBoxColumn.cs: set the bounds of the text box to
11608 (0,0,0,0) in Commit, as MS does.
11610 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11611 make sure we set CurrentRow on a row header click *before* calling
11612 Select. This moves the current cell (and the textbox) to the new
11613 row. The call to Select then hides the textbox, giving us the
11614 correct behavior. Fixes #80362.
11616 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11617 (ListChangedHandler): reorder the position/current changed events,
11618 and call UpdateIsBinding in the ItemAdded case.
11620 * GridColumnStylesCollection.cs: add some columns events, one of
11621 which raises the CollectionChanged event.
11623 2007-04-04 Jackson Harper <jackson@ximian.com>
11625 * TextControl.cs: When we delete multiple selection lines
11626 invalidate the selection area, don't need to do that for single
11627 lines because the final update view will handle it.
11629 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11631 * Control.cs: When we CreateControl, we need to also create all of the
11632 control's children. The child's OnLoad must also fire before the parent's
11633 OnLoad. Fixes the toolbox size in PDN.
11635 2007-04-04 Jackson Harper <jackson@ximian.com>
11637 * TextBoxBase.cs: When the user presses enter, insert a line
11638 ending into the text. (Maybe this would be a good spot for
11639 Environment.NewLine).
11640 * TextControl.cs: Remove undo manager hack, line endings get
11641 inserted properly now.
11643 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11646 - Remove unneeded parameters in UpdateCursor.
11647 - Fix UpdateCursor to check if menu is active.
11648 - Call UpdateCursor when menu deactivate my click.
11649 [Fixes remaining issues from #80410]
11651 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11653 * Control.cs: GetRealChildAtPoint method added, it make an
11654 recursive child control search for the point.
11656 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11659 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11661 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11663 * Form.cs: Fix mouse position when send back mouse event after closes
11666 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11668 * Form.cs: Simplify the BUTTONDOWN for active tracker.
11670 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11672 * Control.cs: Fix an issue where if a user resized a control inside
11673 a sizing method like OnResize, we would overwrite their explicit
11674 value. Also, only call DefaultSize once in the constructor instead
11675 of 4 times. Also, do not call SetBoundsCore from SetBounds if
11676 nothing actually changed.
11678 2007-04-03 Jackson Harper <jackson@ximian.com>
11680 * TextControl.cs: Don't attempt to copy text for lines with no
11681 text in them (technically this shouldn't happen, but we aren't
11682 always inserting line endings when we should be).
11684 2007-04-03 Jackson Harper <jackson@ximian.com>
11686 * TextBoxBase.cs: Calculate the scrollbars before calculating the
11687 document, because this sets some of the document size properties
11690 2007-04-03 Jackson Harper <jackson@ximian.com>
11692 * TextBoxBase.cs: We need to calculate maximums even if this is
11693 not a multiline control, because the maxs are used for scrolling.
11694 - Display the caret after doing a page up/down, we need to
11695 manually display it because a proper CaretMoved event isn't
11696 triggered (this is because of the way the math is done to
11697 determine how far to scroll).
11699 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11701 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11702 (ToolBar was relying on SetBoundsCore to default the values sent
11703 base off of BoundsSpecified.)
11705 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11707 * DateTimePicker.cs: Change Text so that when a null value or empty
11708 string is assigned to the test we always raise ValueChanged and
11709 TextChanged (earlier implementation would only raise ValueChanged
11710 if the current date value was different from DateTime.Now).
11712 2007-04-03 Andreia Gaita <avidigal@novell.com>
11714 * ButtonBase: Call update after invalidation, fixes #80194
11716 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11718 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11721 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11723 * XplatUIX11.cs: SetWMStyles: If the control is a form with
11724 FormBorderStyle = None, don't give the window any decorations.
11727 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11729 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11730 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11731 to check for is a mix of several styles (such as WS_CAPTION for
11733 * Control.cs: Don't paint an area bigger than the client area when
11734 painting the background colour. Add an internal GetCreateParams.
11735 Update calls to XplatUI.CalculateWindowRect due to API change.
11736 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11737 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11738 the size if it hasn't been handled by any windows. When creating
11739 and moving windows, X wants the location of the entire window, but
11740 the size of the client window, so add
11741 TranslateClientRectangleToXClientRectangle,
11742 TranslateWindowSizeToXWindowSIze and
11743 TranslatedXWindowSizeToWindowSize to cope with this, and call them
11744 before every window creation and move. Update CalculateWIndowRect
11745 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11746 In AddConfigureNotify don't do anything if the hwnd is a zombie
11747 (fixes the BadWindow we were getting while running the tests),
11748 always calculate the offsets when it's a parentless window, not
11749 only when reparented, and translate the window size, since we're
11750 getting the client size of the whole window, excluding entire
11752 * Theme.cs: Added BorderSizableSize.
11753 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11754 anymore. Update calls to XplatUI.CalculateWindowRect due to API
11756 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11757 change. Fake the window styles here instead of in XplatUIWin32 so
11758 that all back-ends get the same window styles (and it's Form that's
11759 deciding when to use wm, not the Win32 backend anyways)
11760 * Hwnd.cs: Completely reworked GetWindowRectangle and
11761 GetClientRectangle - they are now passed a CreateParams and they
11762 only use Style and ExStyle to determine the rectangles (they should
11763 now work just like Win32AdjustWindowRectEx - though quite a few
11764 special cases are probably missing). They should also be 100%
11765 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11766 == rect), and all numbers (borders, menu sizes) are taken from the
11767 current theme. Added a GetBorders helper function that will return
11768 the borders for any given CreateParams (including captions and
11769 menus), and GetBorderSize that returns the given border size only.
11770 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11771 Hwnd.GetClientRectangle.
11773 2007-04-02 Chris Toshok <toshok@ximian.com>
11775 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11776 logic between the values we present to the user and the values
11777 which are stored in the column's property. Also, don't call
11778 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11780 2007-04-02 Jackson Harper <jackson@ximian.com>
11782 * TextBoxBase.cs: Scroll faster!
11784 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11786 * StatusStrip.cs: Layout fixes for PDN.
11787 * ToolStrip.cs: Set item's available to true, and placement to main when
11789 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11790 changing in setter before doing any work, add InternalVisible.
11791 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11792 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11795 2007-04-02 Jackson Harper <jackson@ximian.com>
11797 * TextBox.cs: LBUTTON does not make the textbox select all of it's
11800 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11802 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11803 Makes ToolStripComboBoxes show up again.
11805 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11807 * ListView.cs: Add a hover_pending field in ListView
11808 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11809 cycle (we are resetting the MouseHover logic in XplatUI
11810 to handle HoverSelection). Fixes #80429.
11812 2007-04-02 Jackson Harper <jackson@ximian.com>
11814 * TextControl.cs: Make sure the attributes get set on the last
11816 - Still have to do the end tag if we have stepped all the ways to
11819 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
11821 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11822 on an internal libgdiplus call when the information is already
11823 available via the public API.
11825 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11827 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11828 control is removed from a control collecftion.
11829 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11830 Fixes FormPropertyTest (failed on rare occasions).
11831 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11832 of Win32SetParent (when changing from no parent to a parent it
11833 might add the new parent's location in screen coordinates to this
11834 window's location).
11835 * Form.cs: Rework ChangingParent once again, now the handle is
11836 recreated whenever a FormWindowManager is added or removed (that is
11837 whenever a normal form is parented or abandoned). Also change
11838 CreateParams so that all non-toplevel windows always get the
11839 specified sice (StartupPosition is never considered for
11840 non-TopLevel forms).
11841 * ContainerControl.cs: Add ChildControlRemoved, the container control
11842 needs to be notified when a control is removed from it's
11843 collection, in the case the removed control is the active control.
11845 2007-04-02 Jackson Harper <jackson@ximian.com>
11847 * RichTextBox.cs: Use the new methods for setting the font and
11848 color, these methods set the specified attribute without
11849 overriding the other attributes.
11851 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11853 * ToolStripPanel.cs: Fixes for better layouts in PDN.
11855 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
11857 * TextBox.cs: Added internal ChangeBackColor method to special-case
11858 Color.Empty. Added check for invalid ScrollBars value.
11859 * TextBoxBase.cs: Added internal ChangeBackColor method.
11860 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
11861 internal ChangeBackColor method to special-case Color.Empty. Added
11862 check for invalid ScrollBars value.
11864 2007-03-30 Everaldo Canuto <everaldo@simios.org>
11866 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
11868 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11870 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
11871 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
11872 [Based on submitted patch from Olivier Duff.]
11874 2007-03-30 Jackson Harper <jackson@ximian.com>
11876 * TextBox.cs: Only select all on initial focus if the user has not
11877 specified a selection area.
11879 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11881 * UserControl.cs: Override CreateParams.
11883 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11887 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11888 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
11889 check for is a mix of several styles (such as WS_CAPTION for instance).
11890 * Control.cs: Don't paint an area bigger than the client area when painting
11891 the background colour. Add an internal GetCreateParams. Update calls to
11892 XplatUI.CalculateWindowRect due to API change.
11893 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
11894 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
11895 hasn't been handled by any windows. When creating and moving windows, X
11896 wants the location of the entire window, but the size of the client
11897 window, so add TranslateClientRectangleToXClientRectangle,
11898 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
11899 to cope with this, and call them before every window creation and move.
11900 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
11901 removing DeriveStyles). In AddConfigureNotify don't do anything if the
11902 hwnd is a zombie (fixes the BadWindow we were getting while running the
11903 tests), always calculate the offsets when it's a parentless window, not
11904 only when reparented, and translate the window size, since we're getting
11905 the client size of the whole window, excluding entire window.
11906 * Theme.cs: Added BorderSizableSize.
11907 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11908 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
11909 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
11910 Fake the window styles here instead of in XplatUIWin32 so that all
11911 back-ends get the same window styles (and it's Form that's deciding when
11912 to use wm, not the Win32 backend anyways)
11913 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
11914 they are now passed a CreateParams and they only use Style and ExStyle
11915 to determine the rectangles (they should now work just like
11916 Win32AdjustWindowRectEx - though quite a few special cases are probably
11917 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
11918 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
11919 sizes) are taken from the current theme. Added a GetBorders helper
11920 function that will return the borders for any given CreateParams
11921 (including captions and menus), and GetBorderSize that returns the given
11923 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11924 Hwnd.GetClientRectangle.
11926 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11928 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11929 layout of the mdi children is handled by CreateParams. Fixes
11932 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11934 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11937 * Form.cs: When active tracker mouse down is not processed, send event
11938 back to control inside mouse position. [Fixes #81227]
11940 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11942 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11943 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11944 stealing focus from the active form on Windows. (Control will be made
11945 visible in ShowWindow.)
11947 2007-03-29 Mike Kestner <mkestner@novell.com>
11949 * ImageList.cs : add internal Changed event.
11950 * ListView.cs : hook up to StateImageList.Changed to perform
11951 invalidations when the the state icon list changes. [Fixes #81191]
11953 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11955 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11956 to prevent tooltips from stealing focus from the active form on Windows.
11958 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11960 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
11962 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11964 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11966 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11969 2007-03-29 Jackson Harper <jackson@ximian.com>
11971 * TextControl.cs: When deleting text from non multiline textboxes,
11972 we need to update the entire document, because line offsets will
11975 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11977 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11978 added to theme, now we can create themes that uses diferent notify engines
11979 like notification-daemon from galago project or growl for Mac OS.
11981 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11983 * NotifyIcon.cs: Prevent Balloon to show in task bar.
11985 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11987 * XplatUIX11.cs: Prevent system to open more than one balloon.
11989 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11990 some compiler warning messages.
11992 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11996 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11998 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
11999 implemented, this methods is used by NotifyIcon.BalloonWindow class.
12001 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
12004 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12006 * ListViewItem.cs: Forgot to make Invalidate internal.
12008 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12010 * ListView.cs: Add a InvalidateSelection method to
12011 invalidate methods which are currently selected, and call
12012 it when setting FullRowSelect and HideSelection, instead of
12015 2007-03-28 Chris Toshok <toshok@ximian.com>
12017 * XplatUIX11.cs (UnmapWindow): reindent this block.
12019 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
12020 the selection_start if we're moving the selection (that is, not
12021 extending it). Fixes bug #80461.
12023 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12025 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
12026 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
12027 create private ControlCollection.
12029 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12031 * Control.cs: We need to call OnVisibleChanged for our implicit
12032 children as well as our normal children. Fixes scrollbars in
12033 comboboxes not showing up.
12035 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12037 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
12038 the check for IsHandleCreated first. The check in CreateHandle is not
12039 good enough because CreateHandle can be overriden, and the override
12040 should not be called if the handle is already created.
12042 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12044 * ToolStrip.cs: Remove MonoTODO for tooltips.
12045 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
12046 * ToolStripContainer.cs: Add custom ControlCollection class.
12047 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
12048 * ToolStripDropDown.cs: Add some missing properties/methods.
12049 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
12050 * ToolStripItem.cs: Remove MonoTODO for tooltips.
12051 * ToolStripManager.cs: Add IsShortcutDefined.
12052 * ToolStripOverflow.cs: Override LayoutEngine.
12053 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
12054 * ToolStripSeparator.cs: Add ImageKey.
12056 2007-03-28 Jackson Harper <jackson@ximian.com>
12058 * TextControl.cs: If a char delete removes a line ending, we need
12059 to update the ending style.
12060 - Make sure the line ending calcs get called.
12062 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12064 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
12065 it was making the new code not work. Fixed a typo in the new code
12066 as well. Fixes #79826.
12068 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12071 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
12072 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
12073 - SystrayBalloon method implemented.
12074 [Add support for notifyicon balloon on win32, #79149]
12076 2007-03-27 Mike Kestner <mkestner@novell.com>
12078 * ThemeWin32Classic.cs : update StateImageList selection to mirror
12079 the ms behavior when only one image is added to the list.
12082 2007-03-27 Jackson Harper <jackson@ximian.com>
12084 * TextControl.cs: Improvements to non multiline line ending
12087 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12089 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
12091 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12094 - Balloon message handling added.
12095 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
12097 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12098 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
12099 to SystrayBalloon to me like other Systray method, also a
12100 handle parameter added.
12102 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12104 * ListView.cs: Show scrollbars even when items.Count == 0
12105 but the columns Width is bigger than the ListView.Width.
12106 Also, when columns.Count == 0 set layout_wd and layout_ht
12107 to the ClientRectangle values, so we don't show any scrollbar
12110 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12112 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
12114 2007-03-27 Jackson Harper <jackson@ximian.com>
12116 * RichTextBox.cs: The RTF library decodes the text properly for us
12119 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12121 * ListView.cs: Display HeaderControl even when columns.Count == 0.
12122 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12123 ListView header (HeaderControl), instead of Control.BackColor.
12125 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12127 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12128 Fixes tab control issues where controls would not show up because they
12129 never received their OnVisibleChanged call.
12131 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12133 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12136 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12138 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12139 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12140 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12141 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
12142 the handle. Fix WindowState by using the internal variable until we are
12143 sure that we've been shown.
12144 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12148 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12150 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12151 (at least borders). Fixes #79386 on Linux (with a small difference
12152 in behaviour: when trying to resize a caption-less window metacity
12153 shows the sysmenu. Resizing is still possible though).
12154 * XplatUIWin32.cs: When setting window styles send request an extra
12155 WM_NCCALCSIZE when it's a form without title (due to no text and no
12156 caption), since Win32 seems to calculate it wrong the first time we
12157 get the message, though the second time things work as they should.
12158 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12159 newly reparented window might show up unparented. Update
12160 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12161 there's no title text. Fixes #79386.
12163 2007-03-27 Mike Kestner <mkestner@novell.com>
12165 * ListBox.cs : don't perform invalidations if the handle hasn't been
12166 created. [Fixes #80753]
12168 2007-03-27 Mike Kestner <mkestner@novell.com>
12170 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12173 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12175 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
12176 needed to implement Balloon.
12178 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12180 * ListViewItem.cs: In the constructors that take
12181 an array of strings, don't use ListViewSubItemCollection.AddRange
12182 method to add items, since we need to have a different behaviour (in
12183 the constructors we add an item for each null string, opposed to
12184 the behaviour of AddRange, which adds nothing).
12186 2007-03-26 Andreia Gaita <avidigal@novell.com>
12188 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
12190 2007-03-26 Jackson Harper <jackson@ximian.com>
12192 * TextControl.cs: Draw and measure line endings when in non
12194 - When searching the text, count the end of the last line as a
12197 2007-03-26 Jackson Harper <jackson@ximian.com>
12199 * RichTextBox.cs: The selection_start and selection_end don't
12200 really track the correct tags for the selection. So we'll manually
12201 compute the correct tag here.
12203 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12205 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
12206 and Continuous styles. Fixes #79469.
12208 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
12210 * ToolStrip.cs: Implement Tooltips.
12211 * ToolStripItem.cs: Create internal method for determining tooltip.
12213 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
12215 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
12217 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12219 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
12220 it prevents a problem thak keeps icon visible after application
12223 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12225 * NotifyIcon.cs: Balloon properties and methods created.
12227 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12228 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
12230 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
12232 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
12234 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
12236 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
12237 parameter indicates which aspects were explicit/user-set.
12238 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
12240 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
12242 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
12243 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
12244 SmallChange, and Value (2.0).
12245 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
12247 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12249 * ListView.cs: Always set item_control.Width in LayoutDetails
12250 if View is Details. Setting it later in CalculateScrollBars
12251 in a not-so-corner scenario (the sum of columns width is
12252 not bigger than the ListView width when handle is created, and then
12253 that sum gets bigger by increasing the width of the columns)
12254 causes a very weird recursion path (which shouldn't be happening,
12255 since header_control sets it in CalculateScrollBars too). This bug
12256 appeared after Chris' fixes for handle created issues, so probably
12257 it's related to some handle-creation time.
12259 2007-03-23 Chris Toshok <toshok@ximian.com>
12261 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
12262 case where there's an add row, just so we don't end up in a case
12263 where it's not displayed (this happens when the row is partially
12264 obscured). Fixes bug #79574.
12266 2007-03-23 Jackson Harper <jackson@ximian.com>
12270 * RichTextBox.cs: Preserve line endings in the lines text buffer,
12271 also added an enum that represents the line ending type.
12273 2007-03-23 Andreia Gaita <avidigal@novell.com>
12275 * NumericUpDown.cs: Fix logic so Text and Value properties are not
12276 messed with in every method call, but only from DownButton,
12277 UpButton, UpdateEditText() and ValidateText. Fixes #80346
12279 2007-03-23 Chris Toshok <toshok@ximian.com>
12281 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
12282 format objects if the format spec is "". Fixes bug #80889.
12284 2007-03-22 Miguel de Icaza <miguel@novell.com>
12286 * ToolStripPanel.cs (Join): added stubs to build PDN3
12288 * Control.cs (AutoScrollOffset): Add.
12290 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
12291 property, its only implemented for Win32, on X11 it defaults to
12292 some hardcoded value.
12294 * ToolStripItem.cs (AllowDrop): Add property
12296 2007-03-22 Mike Kestner <mkestner@novell.com>
12298 * ListView.cs : in FullRowSelect Details mode, only enable box
12299 selection if the user clicks over the "item" column outside of the
12300 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
12302 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12304 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12305 handle is not created yet.
12306 * Form.cs: Select: Don't call CreateHandle if the handle is already
12307 created, avoids a stack overflow on Windows when we are recreating
12309 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12310 they are made visible, and override AfterTopMostControl to keep
12311 them on top when other controls are brought to front.
12312 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12313 or force_*scroll_visible is true (old implementation always shows
12314 scrollbars when needed, no matter what auto_scroll was set to).
12315 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12316 IsHandleCreated check.
12318 2007-03-22 Andreia Gaita <avidigal@novell.com>
12320 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12321 row or col separator.
12322 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12324 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12326 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12328 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12330 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12331 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
12332 every time. Fixes #80410.
12334 2007-03-22 Chris Toshok <toshok@ximian.com>
12336 * BindingSource.cs (AddNew): partially implement.
12338 remove a couple of NotImplementedException's
12339 to get bug #81148 closed.
12341 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12346 - UpdateCursor method added to update the screen cursor.
12347 - GetAvailableCursor method added to return cursor for enabled tree,
12348 it searches for cursor on control and it's parent's for enabled control.
12349 - Call UpdateCursor method on setter of Cursor property.
12350 - On setter of Enabled call UpdateCursor when it is false, we need to
12351 change cursor to normal (or to this parent cursor) because cursor
12352 setting theres no effect to disabled controls.
12353 - Some minor source changes to follow the coding style guidelines.
12355 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
12358 2007-03-22 Chris Toshok <toshok@ximian.com>
12360 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12363 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12365 * XplatUIX11.cs: Implement default locations for forms.
12366 * Form.cs: Completely rework startup location for forms. Fixes #79964.
12367 * Hwnd.cs: Add previous_child_startup_location (to track the current
12368 startup location for any child forms of the current form) and
12369 previous_main_startup_location (to track the startup location for
12370 the current toplevel form).
12372 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12374 * Control.cs: Don't trigger a layout if an implicit control is added
12375 that isn't visible. Also, don't notify the owner when an implicit control
12376 is added. (Owners shouldn't even know about their implicit controls.)
12378 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12380 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12381 to save some re-layouts.
12383 2007-03-21 Everaldo Canuto <everaldo@simios.org>
12385 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12388 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12390 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12391 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12393 2007-03-21 Mike Kestner <mkestner@novell.com>
12395 * ListView.cs : disable selection update for non-left button clicks
12396 with mods and over selected items. [Fixes #80524]
12398 2007-03-20 Jackson Harper <jackson@ximian.com>
12401 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12404 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12406 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12407 very probably a more complicated calculation there. Update the
12408 textbox' ForeColor and BackColor when the ComboBox' colors are
12409 changed. Change the border change in LayoutComboBox to only affect
12410 the textbox, not all the calculations there. Seems to fix most of
12413 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12415 * ComboBox.cs: Handle Home and End keys as well as all combinations of
12416 modifiers + navigation keys as input keys, enables advanced text
12417 selection in the combobox (like Shift+Left Arrow for instance).
12418 ComboTextBox now overrides Focused and returns whatever
12419 ComboBox.Focused returns, since it really should be focused
12420 whenever the ComboBox is. Fixes #80795. Also make the border around
12421 the text box one pixel bigger, as mentioned in #79436.
12423 2007-03-20 Jackson Harper <jackson@ximian.com>
12425 * TreeView.cs: Don't offset the images, this was causing some
12426 artifacts when expanding/collapsing with images that were the
12427 exact height of the treenode.
12429 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12431 * TrackBar.cs: Query the theme for the correct value when the mouse
12432 moves and the thumb is pressed.
12433 * Theme.cs: Added TrackBarValueFromMousePosition
12434 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12435 implementation was updating the trackbar value when drawing, now
12436 the drawing methods only draw. Fixes #80900. Refactored the
12437 calculations out to TrackBarValueFromMousePosition and
12438 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12439 according to the mouse position whenever it wants to. Changed the
12440 light coloured pen when drawing the thumb from ControlLight to
12441 ControlLightLight, because the ControlLight is the same colour as
12442 the background so the 3D effect is lost.
12444 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12446 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12447 defined. Fixes #80784.
12449 2007-03-20 Marek Habersack <mhabersack@novell.com>
12451 * ContextMenuStrip.cs: align with the change introduced in
12454 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12456 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
12457 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
12460 2007-03-19 Chris Toshok <toshok@ximian.com>
12462 * Control.cs (WmPaint): don't make use of the Handle property
12463 after an event is emitted, as the user could have closed the
12464 form/destroyed the control. Store the Handle in a local variable
12465 and make use of that. Fixes bug #80768.
12467 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12469 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12470 behavior in X11 environments.
12472 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12474 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12475 because on setter of topmost we dont call SetTopmost when handle is not
12478 2007-03-20 Jackson Harper <jackson@ximian.com>
12480 * TextControl.cs: Need to use SelectionLength () not
12481 selection_length, since that var is reset to -1.
12482 - Draw the caret when we don't have focus.
12483 * TextBox.cs: The selectall actually doesn't occur until the first
12485 * TextBoxBase.cs: Need to update the caret position after a
12488 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12490 * ListView.cs: Enable scrolling when using Tile view.
12492 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12496 * XplatUIDriver.cs: Abstract SetOwner method created.
12498 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
12499 must be implemented and was masked as todo.
12501 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
12504 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
12505 cheking for null owner to remove transient. The SetTopmost will be change
12508 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12509 SetTopmost. Now owned forms will work properly in win32 and X11.
12511 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12513 * MdiWindowManager.cs: Update function name.
12514 * Form.cs: After closing a form MdiParent is always null.
12515 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12516 better what it should do: necessary book-keeping when the form is
12517 closed, it should not close the form itself.
12519 2007-03-19 Andreia Gaita <avidigal@novell.com>
12521 * ListViewItem.cs: Fix back and fore color. The subitems only
12522 use their own colors if they are set, otherwise use the listview's
12523 colors. Don't set default colors on constructor for subitem.
12526 2007-03-19 Mike Kestner <mkestner@novell.com>
12528 * ListView.cs : make box selection for Details views with
12529 FullRowSelect conform to MS behavior when clicking in the "item"
12530 column and clicking outside the defined columns.
12531 [Fixes case 5-6 of #80374]
12533 2007-03-19 Chris Toshok <toshok@ximian.com>
12535 * ScrollableControl.cs: create the controls from within the ctor,
12536 but don't actually add them until our handle is created. this
12537 fixes a NRE possibility jpobst found (if you override OnLayout in
12538 a subclass, it's called before your ctor). Also, add a
12539 IsHandleCreated guard to UpdateSizeGripVisibility as well.
12541 2007-03-19 Jackson Harper <jackson@ximian.com>
12543 * TextBox.cs: Reduce the amount of invalidation we do.
12544 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12545 some of them are true by default on MS.
12546 - Add some functions to reduce the amount of invalidates we do.
12547 * TextControl.cs: Less invalidation.
12549 2007-03-19 Chris Toshok <toshok@ximian.com>
12551 [ Fixes #81773, and *seems* to fix #81553 as well ]
12553 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12554 AccumulateDestroyedHandles. We need to do it *after* we send
12555 WM_DESTROY, as the user's code can access Control.Handle in
12556 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
12557 move the WM_DESTROY/zombie handling to before the call to
12558 XDestroyWindow. For some reason without this ordering
12559 FormTest.RecreateHandle hangs. This ordering is semantically
12560 equivalent, however, as XDestroyWindow is async anyway.
12562 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
12564 * RichTextBox.cs: Reset backcolor_set after setting default.
12566 2007-03-19 Chris Toshok <toshok@ximian.com>
12568 * ScrollableControl.cs: the scroll position should not effect the
12569 canvas size. commit patch from georgegiolfan@yahoo.com, which
12570 fixes some really bizarre behavior on resizing. Fixes bug #80778.
12572 2007-03-19 Chris Toshok <toshok@ximian.com>
12574 * ScrollableControl.cs: clean this up a bit. create the
12575 scrollbars in the ctor and just show/hide them as needed. Also,
12576 make hscroll_visible/vscroll_visible internal to Recalculate, and
12577 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12578 everywhere else. This seems to fix the scrollbars appearing
12579 beneath the content for me (i have *no* idea why that is,
12582 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12584 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
12585 some redundacy for stuff in Anchor and Dock that base will take care of.
12588 2007-03-19 Mike Kestner <mkestner@novell.com>
12590 * ListView.cs : make box selection for Details views without
12591 FullRowSelect dependent on the text bounds, not item bounds.
12592 * ListViewItem.cs : add an internal property to obtain the TextBounds
12593 in Details view. [Fixes case 1-4 of #80374]
12595 2007-03-19 Andreia Gaita <avidigal@novell.com>
12597 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12598 we're < 2.0. #78448 && #80316
12600 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12602 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12603 have the same style available as the previously selected one. Also,
12604 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
12606 2007-03-19 Jackson Harper <jackson@ximian.com>
12608 * TextControl.cs: Add an alignment property that all new lines
12610 - Make sure to use the align shift when calculating the line's X
12612 * TextBox.cs: Set the alignment on the document as well as on all
12613 the document lines.
12615 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12617 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12618 throw if setting the parent of an mdichild that already has an
12619 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12620 AssemblyProductAttribute in the assembly, use the type's namespace (as
12621 MS seems to do). CreateControl: don't create the handle if the control
12622 is not visible (according to MS behaviour and spec). SetTopLevel: Only
12623 create handle if the control is not a form. Change FocusInternal to
12624 virtual so that it can be overriden by Form.
12625 * TextBox.cs: Update call to FocusInternal.
12626 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12627 form is not a toplevel form when it's a mdi child, so update is_toplevel
12628 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12629 hasn't been created. Show (IWin32Window): Don't allow this overload for
12630 toplevel windows. CenterToParent/CenterToScreen/Select: create the
12631 handle as MS does. SetVisibleCore: if called on a MdiChild and the
12632 parent isn't visible yet, save the visibility and restore it when the
12633 parent is made visible.
12634 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12635 methods, since the visibility of the scrollbars can be changed from
12636 several places, not only from AutoScroll.
12639 2007-03-19 Jackson Harper <jackson@ximian.com>
12641 * RichTextBox.cs: Enable shortcuts by default.
12642 * TextBoxBase.cs: Add conditional shortcuts.
12644 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12646 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
12648 2007-03-19 Chris Toshok <toshok@ximian.com>
12650 [ Fixes bug #80604]
12652 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12653 swallow the message we're waiting on, instead of delivering it, as
12654 this is only used for the WM_SHOWWINDOW raised from
12655 MapWindow/UnmapWindow, and the message needs to be generated
12656 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12657 before doing the Map/Unmap. Also make sure that the Hwnd is still
12658 alive after the message has been handled.
12660 *before* the window is shown.
12662 * Control.cs (CreateControl): guard a few more things inside the
12663 if (!is_created) block, as we might end up being called again -
12665 (WmShowWindow): call CreateControl if we're showing the control.
12667 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12669 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12670 controls without a handle if they have any parent with a handle. In
12671 Dispose add a check whether the handle is created or not before
12672 calling BeginInvoke, this removes the need of the extra disposing
12673 parameter (which was bogus anyway since it didn't prevent the
12674 invoke from happening, it only skipped the check for an existing
12675 handle, meaning that the invoke would call on an inexistent
12678 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12680 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12681 appears in taskbar.
12683 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12686 - Fixed a problem that dont show help button for messages with 3 buttons.
12687 - Refactory button size and position calculations, now dont use fixed
12688 values, also fixed button sizes (#80043) and form's border space.
12689 - AddButton method created, now all other AddButton methods call this one.
12690 - Some other source code cosmetic changes.
12692 2007-03-18 Jackson Harper <jackson@ximian.com>
12694 * RichTextBox.cs: Don't do this all fonts must match check if
12695 there is only one char selected.
12697 2007-03-18 Jackson Harper <jackson@ximian.com>
12699 * TreeView.cs: ScrollWindow works properly now, so we don't need
12700 to screw around with the scroll area. This fixes some artifacts
12701 when expanding and collapsing.
12703 2007-03-18 Jackson Harper <jackson@ximian.com>
12705 * TextBoxBase.cs: Allow updating the selection position when the
12706 cursor is outside the textarea, but we have a capture.
12707 * TextControl.cs: A special case for when the cursor is outside
12708 the bounds of the TB.
12710 2007-03-18 Jackson Harper <jackson@ximian.com>
12712 * TextBoxBase.cs: Remove image pasting code for now. There is no
12713 way to get an image on the clipboard right now anyways.
12715 * RichTextBox.cs: Use the new RTF Picture class for pictures.
12717 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12720 - Set window properties in constructor intead of on CreateParams.
12721 - Remove topmost from Window ExStyle.
12722 - Set ShowInTaskbar to false.
12723 - Set form border to FixedDialog.
12724 - Some cosmetic changes and remove unneeded comments.
12725 - It fixes itens 2,3 and 4 of bug #80043.
12727 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
12729 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12730 none was explicitly set. Fixes part of bug #79949.
12732 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12734 * ToolStripComboBox.cs: Add AutoComplete*.
12736 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12738 * ToolStripComboBox.cs: Add FlatStyle.
12740 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12742 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12743 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12745 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12747 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12748 CheckBox.cs, RadioButton.cs, BindingSource.cs,
12749 DataGridColumnStyle.cs: Remove warnings.
12751 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12753 * Menu.cs: MergeMenu: Check menu argument for null before looping over
12755 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12756 visibility of mdi child forms. FormSizeChangedHandler: update the
12757 maximized size if size has changed while maximized.
12758 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12759 creating the handle.
12760 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12761 avoid creating the handle if not created.
12762 * XplatUI.cs: Update debug output.
12763 * XplatUIStructs.cs: Added ToString's for a couple of structs.
12765 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12767 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12769 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
12770 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12771 Implement keyboard shortcuts.
12773 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12775 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12776 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
12777 ColorDialog and all derived classes.
12779 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12781 [ Fixes bug #79828 ]
12784 - Rename ToolBarButtonInfor to ToolBarItem.
12785 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12786 - Maintain an array of ToolBarItem, used instead of ToolBarButton
12787 collection to be able add same button more than one time on a toolbar.
12788 - Refactory all properties and methods to use ToolBarItem.
12790 * ToolBarButton.cs:
12791 - Remove all propeties and methods that is now in ToolBarItem.
12792 - Rectangle propery now gets the rectangle from first ToolBarItem to
12793 mimic win32 behavior.
12794 - Size calculation and layout methods also removed.
12796 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12797 ToolBarItem instead of ToolBarButton to right drawing buttons when
12798 same button/separator was added more than one time to ToolBar.
12800 * ThemeNice.cs: Same as above.
12802 2007-03-15 Andreia Gaita <avidigal@novell.com>
12804 * XplatUIX11.cs: Fire extra MouseMove events right after
12805 MouseDown and MouseUp, emulating win32's <censored> behaviour
12806 for apps that rely on it.
12808 2007-03-15 Jackson Harper <jackson@ximian.com>
12811 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12812 it is drawn on the controls client window and there is no NC
12814 - Set the background color to gray on 2.0 when we are readonly.
12816 2007-03-15 Chris Toshok <toshok@ximian.com>
12818 [ Fixes bug #81144 ]
12820 * XplatUIX11.cs: implement VirtualScreen independently of
12821 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12824 2007-03-15 Chris Toshok <toshok@ximian.com>
12826 * Hwnd.cs: add an internal field for the cached_window_state.
12828 * XplatUIX11.cs: cache the window state, invalidating the cache
12829 (and thus re-querying the X server) only when we see an update to
12830 the _NET_WM_STATE property.
12832 2007-03-15 Chris Toshok <toshok@ximian.com>
12834 * BindingSource.cs: get a lot of the unit tests working.
12836 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12838 * Control.cs: Modify UpdateStyles to store distances when bounds >=
12839 0 instead of just bounds > 0. [Fixes bug #80912]
12841 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12843 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
12846 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
12848 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
12849 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
12850 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
12851 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
12853 2007-03-15 Chris Toshok <toshok@ximian.com>
12857 * Control.cs: add Ivan's fix for 81101, with a slight modification
12858 - you can set control.Target to null.
12860 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
12862 * ToolStripItem.cs: If our OwnerItem is null, we can't use
12863 HideDropDown, use Hide instead to prevent an NRE.
12866 2007-03-14 Jackson Harper <jackson@ximian.com>
12868 * TextBoxBase.cs: Mess with the creation stuff a little. We need
12869 to calculate the document before the handle is created, in some
12870 cases. (Actually just one case).
12872 2007-03-14 Jackson Harper <jackson@ximian.com>
12874 * TextBoxBase.cs: Need to display the caret after letting the base
12875 wndproc handle the focus methods, because the caret display
12876 methods check the focus state.
12877 - Try to display the caret after updating it's position with SelectWord.
12878 - Don't need to do an immediate update on this recalc, since there
12879 will be an invalidate anyways.
12881 2007-03-14 Jackson Harper <jackson@ximian.com>
12883 * TreeView.cs: Some workarounds so that we can match event order a
12886 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
12888 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
12889 #80803. Avoid NullReferenceException when Control does not have
12890 parent. Fixed different blinkstyle issues. Only subscribe to Tick
12891 event a single time. Only draw error icon when control is created and
12892 visible. Fixes failing unit tests.
12894 2007-03-14 Andreia Gaita <avidigal@novell.com>
12896 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
12897 Selecting events. Fire Leave and Enter events when changing tabs.
12899 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
12901 * TreeView.cs: Add TreeViewNodeSorter.
12902 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
12904 2007-03-14 Chris Toshok <toshok@ximian.com>
12906 * Form.cs: go ahead and remove the RecreateHandles that jpobst
12907 removed earlier and I had him add back it. It turns out metacity
12908 *does* in fact handle the MOTIF_WM_HINTS property changing, it
12909 just doesn't redraw the window titlebar until you resize the
12910 window. This also means we aren't recreating the entire window
12911 hierarchy on X when you change this property. And it looks better
12914 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12917 * ListView.cs: Collecting selection information
12918 is now done in SelectedIndexCollection rather than in
12919 SelectedListViewItemCollection. This is done so we can
12920 have the selection information code in one single place
12921 (virtual mode selection information entirely depends on
12922 SelectedIndexCollection).
12924 2007-03-13 Miguel de Icaza <miguel@novell.com>
12926 * ErrorProvider.cs: Add stubs for ISupportInitialize
12928 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12930 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12931 in the right order with the right values, from the Checked property,
12932 just as MS does (instead of triggering them from ListView).
12934 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12936 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12938 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
12939 the correct handler in OnItemCheck method (ItemCheckEventHandler
12940 instead of EventHandler). This used to throw an InvalidCastException.
12942 2007-03-13 Jackson Harper <jackson@ximian.com>
12944 * TextBoxBase.cs: Calculate the document before the handle is
12945 created, so there isn't an extra invalidate called.
12947 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
12949 * Form.cs: Don't set owner in ShowDialog until we are sure
12950 that we aren't going to throw an exception. [Fixes bug #80773]
12952 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
12954 * TreeView.cs: Make it compile.
12956 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12958 * Control.cs: Another place we don't call SizeFromClientSize.
12959 * Form.cs: Another place we don't call SizeFromClientSize.
12962 2007-03-12 Jackson Harper <jackson@ximian.com>
12964 * TreeView.cs: Basically emulating some strangness here with
12965 exanding nodes and setting node positions when windows aren't
12967 - Also attempting to walk the node tree less than previously, and
12968 just use visible order calculations for determining offsets.
12969 - oops made scrolling backwards.
12970 * TreeNode.cs: We need to start nodes with a zero visible order,
12971 because the order calcs are based on the first nodes order.
12973 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12975 * Form.cs: Don't exit the program if RecreateHandle is called on
12978 2007-03-12 Chris Toshok <toshok@ximian.com>
12980 * XEventQueue.cs: remove the use of PostQuitState.
12982 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
12983 WM_QUIT message in GetMessage, return false (and if we're in the
12984 nested WaitForHwndMessage, repost the WM_QUIT message).
12986 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12988 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12989 or the MaximizeBox properties. [Part of bug #80640]
12991 2007-03-12 Everaldo Canuto <everaldo@simios.org>
12993 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12996 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12998 * ToolStripItem.cs: Fix some tests I broke by checking Visible
12999 instead of visible.
13001 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
13003 * FileDialog.cs: Use text of File name combobox to determine what
13004 files the user selected. Added tokenizer to parse the file names.
13007 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13009 * Control.cs: We can't call SizeFromClientSize in the constructor,
13010 but we still need to do the same work, so make an internal version.
13013 2007-03-12 Jackson Harper <jackson@ximian.com>
13017 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
13020 2007-03-12 Jackson Harper <jackson@ximian.com>
13022 * TextBoxBase.cs: Now that the handles are being created a little
13023 later, we need to make sure that the document is recalculated when
13024 the handle is created.
13026 2007-03-11 Everaldo Canuto <everaldo@simios.org>
13028 * Theme.cs: GetLinkFont abstract method added.
13031 - Remove CalcTrimRectangle, no longer needed.
13032 - Factor also remove, position issues must be fixed in libgdiplus.
13033 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
13034 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
13035 care about font used to draw links.
13036 - Set TabStop to true when control is "Selectable", control is selectable
13037 when have one or more links. Fixes #80501 (test case is also added).
13038 - Set the LinkArea values after links change, LinkArea values must be
13039 based in first link position and size, a test case was created.
13040 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
13041 the attribute must be true LinkArea.Length > 0. The same was applied to
13044 * ThemeWin32Classic.cs:
13045 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
13047 - Use CPDrawStringDisabled to draw disabled text instead of hard code
13049 - Draw focus rectangle for every parts focused, including parts that
13050 is on another line, its because regions returns various rectangles
13051 and not only one. Needed to mimic W32 look.
13052 - Uses Graphics.Clip to delimite region painted, it mean that now
13053 complete text is passed to DrawString, with this we solve layout
13054 issues without create another text renderer.
13055 - Uses Region.Intersect to fix some flickers problems, now only needed
13056 parts will redrawed.
13057 - This changes fixes #79614 and some other unreported issues, on Linux
13058 some layout problems still remain, the problem is under
13059 MeasureCharacterRanges but it is an libgdiplus bug.
13061 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
13063 * TextBox.cs: Set for foreground color.
13064 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
13065 this is already done in Control.
13067 2007-03-10 Jackson Harper <jackson@ximian.com>
13069 * TextBox.cs: Set the background color, but reset the
13070 backcolor_set flag which is just for the user setting the
13073 2007-03-09 Chris Toshok <toshok@ximian.com>
13075 * Control.cs: really remove the call to XplatUI.SetVisible from
13076 CreateHandle(), like I said I did when I merged the branch.
13078 * BindingSource.cs: implement some more of this stuff.
13080 2007-03-09 Jackson Harper <jackson@ximian.com>
13082 * TextBox.cs: Don't explicitly set our background colors.
13084 * TextBoxBase.cs: Draw readonly text.
13085 - Need to invalidate when backcolor or readonly are changed.
13087 2007-03-09 Jackson Harper <jackson@ximian.com>
13089 * TextBoxBase.cs: Don't set the forecolor until the handle is
13091 - Do not raise OnPaint, and removed some old debug code.
13093 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
13095 * ScrollableControl.cs: Fix mouse wheel scrolling.
13097 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
13099 * Control.cs: Wire up MouseDoubleClick event.
13101 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
13103 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
13105 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
13106 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
13107 item is added. This logic was moved to ToolStrip.OnItemAdded.
13110 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13112 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
13114 2007-03-08 Jackson Harper <jackson@ximian.com>
13116 * TreeView.cs: Show the correct image for selected node (this used
13117 to work, not sure how the code got deleted). Also implemented 2.0 feature
13120 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13123 * ListViewItem.cs: Cache index in items when retrieving them
13126 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13128 * ToolStripItem.cs: Don't return the explicit_size if we are using
13129 AutoSize. Fixes invalidation issue when user has explicitly set a
13130 size and has AutoSize = true.
13132 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13134 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13136 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13138 * DataGridView.cs: Remove event handler from DataView when a
13139 DataTable is used as DataSource.
13141 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13143 * Control.cs: Create internal setter for client_size to allow it to be
13144 set without triggering resizing code.
13145 * Form.cs: Calculate client_size in constructor, only change client_size
13146 in FormBorderStyle property if Handle has been created.
13147 [Fixes #80574, #80791]
13149 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
13151 * SystemInformation.cs: Add TerminalServerSession.
13153 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13155 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13158 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13160 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13161 Handle before we were supposed to. Now checks ActivateOnShow property
13163 * Control.cs: Add internal ActivateOnShow property.
13164 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13165 for ActivateOnShow.
13166 * Hwnd.cs Remove no longer needed no_activate field.
13168 2007-03-07 Jackson Harper <jackson@ximian.com>
13170 * TreeView.cs: Implement owner draw tree nodes. And a couple more
13172 * DrawTreeNodeEventHandler.cs: Add
13173 * DrawTreeNodeEventArgs.cs: Correct default value.
13175 2007-03-07 Chris Toshok <toshok@ximian.com>
13177 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13178 to be called before NativeWindow.WndProc. Put the HwndCreating
13179 magic there to hook up our Hwnd's to handles.
13181 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
13183 * DataGridView.cs: Comment out debug code.
13185 2007-03-07 Chris Toshok <toshok@ximian.com>
13187 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
13188 to make the rest of the world happy]
13190 * Control.cs (CreateHandle): there's no need to call
13191 XplatUI.SetVisible here, it's effectively done by
13192 XplatUI.CreateWindow on X now, and always was on windows.
13194 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
13195 shortcircuit out of the loop if we have a message loop running on
13198 [Changelog from merge]
13200 2007-03-05 Chris Toshok <toshok@ximian.com>
13202 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
13203 causes handle creation.
13205 2007-02-28 Chris Toshok <toshok@ximian.com>
13207 * ApplicationContext.cs: Add a flag to make sure we only raise the
13208 ThreadExit event once (ExitThreadCore can be indirectly called
13209 from a few places.) I don't like the additional flag, but it
13210 makes the event ordering/count correct.
13212 * Application.cs (MWFThread.LoopCount): don't use an enumerator
13213 without locking the collection. An enumerator doesn't give us any
13214 protection from modification anyway. Lock the thread hash and
13215 replace the complicated enumerator loop with a foreach.
13216 (Application.CloseForms): make internal so it can be called from
13217 ApplicationContext. This should probably be moved to MWFThread.
13218 (Application.ExitThread): don't call MWFThread.Current.Exit()
13219 here. just call XplatUI.PostQuitMessage. We'll exit the thread
13220 when the runloop exits (in response to WM_QUIT.)
13221 (Application.RunLoop): add a comment (and check) for
13222 context.MainForm being null after setting context.MainForm.Visible
13223 = true. This is because you're perfectly free to dispose of a
13224 form in VisibilityChanged. Chalk this up to another case where we
13225 need to synchronously generate WM_ACTIVATE from Control.Show.
13226 Also, add handling for WM_QUIT here so we'll exit the loop.
13228 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
13229 fact that we don't wait if we're only unmapping the whole_window
13230 makes me a bit nervous, but it doesn't seem to cause any problems
13233 also, add a comment about the stupid, broken and wrong resetting
13234 of PostQuitState to false in GetMessage().
13236 In PostQuitMessage, we need to add a WM_QUIT message to the
13237 thread's queue. We use the FosterParent to get the right
13240 Lastly, in SetVisible, we need to unmap both windows, since the
13241 waiting only happens when we're unmapping the client window. So
13242 now, the *only* time we unmap just the whole_window is in the hack
13243 for resizing a control to 0,0.
13245 2007-02-21 Chris Toshok <toshok@ximian.com>
13247 * Application.cs (CloseForms): rewrite this so that we don't
13248 modify the list while we're traversing it.
13250 2007-02-20 Chris Toshok <toshok@ximian.com>
13252 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
13253 of OnHandleCreated.
13254 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
13255 handle is created. otherwise we'll create it here.
13256 (VerticalScrollEvent): same here.
13258 * Application.cs (CloseForms): call Form.Dispose, don't post
13261 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
13262 here. Application should Dispose() of the Form's.
13264 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
13265 WM_DESTROY as well.
13266 (MapWindow,UnmapWindow): only actually do the waiting for
13267 SHOWWINDOW if the control we're dealing with is a Form.
13268 (CreateWindow): if the control isn't a form, SendMessage
13269 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
13271 * Control.cs (SetVisibleCore): always use is_visible here, not
13272 value. If we use value, we can end up re-setting something
13273 visible if, for instance, you do Control.Hide() in a delegate
13274 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
13276 2007-02-20 Chris Toshok <toshok@ximian.com>
13278 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
13279 the message we need. PeekMessage returning false should not be a
13280 condition under which we exit the loop.
13282 2007-02-15 Chris Toshok <toshok@ximian.com>
13284 * Control.cs (Refresh): only refresh if we've got a handle and are
13286 (CreateAccessibilityInstance): CreateControl() here.
13287 (UpdateChildrenZOrder): complicate the code loop even more by
13288 taking into account controls that haven't had their handle
13289 created, and those that aren't visible. But on the flip side,
13290 simplify the code by splitting it into two loops. one which
13291 builds up the list of child controls we're interested in, and the
13292 other that sets the z order of those children.
13294 2007-02-14 Chris Toshok <toshok@ximian.com>
13296 * Control.cs: Control.AccessibilityObject causes the control to be
13297 created, not just the handle.
13299 2007-02-14 Chris Toshok <toshok@ximian.com>
13301 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13302 problem on X where a window might have its handle created (and be
13303 visible) while the window is unmapped. calling XConfigureWindow
13304 on an unmapped window is bad, and generates X errors.
13306 2007-02-13 Chris Toshok <toshok@ximian.com>
13308 * Control.cs (CreateHandle): don't loop over our children setting
13309 their parent here. do it when in WndProc when we're shown.
13310 (UpdateChildrenZOrder): make this internal so we can call it from
13312 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13313 creating its handle. Also, remove the calls to PerformLayout from
13314 here. they're done in ScrollableControl.OnVisibleChanged. Also,
13315 OnVisibleChanged only seems to be called directly here for the
13316 toplevel control. It's propagated down the window hierarchy by
13317 calls to child.OnParentVisibleChanged.
13318 (OnVisibleChanged): don't do layout here - it's done (oddly
13319 enough, according to a glance at stack traces on ms.net..) in
13322 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13323 z order of our children before calling PerformLayout.
13325 2007-02-12 Chris Toshok <toshok@ximian.com>
13327 [big change, fixes #80020]
13329 * AccessibleObject.cs: we need to make owner internal again to fix
13330 some of ControlAccessibleObject.
13332 * Control.cs: lots of changes here. add support for WM_CREATE,
13333 for which we generate OnHandleCreated. Remove the OnHandleCreated
13334 call from CreateHandle. Also add support for WM_SHOWWINDOW where
13335 we create child controls. leave the MonoTODO's for the
13336 accessibility calls, but fix the exceptions so the tests pass.
13338 Add the InvalidOperationExceptions to Invoke methods, and remove a
13339 couple of InvokeInternal methods we aren't using.
13341 Also, add a couple of CreateHandle calls in places where we know
13342 the handles are being created but our code doesn't reference
13345 Make SetVisibleCore call OnVisibleChange if the handle isn't
13346 created. If the handle is created, we rely on XplatUI.SetVisible
13347 generating the event synchronously.
13349 Lastly, make sure we don't use this.Handle inside CreateHandle,
13350 because we can call back into client (and that code can dispose of
13353 * XplatUIStructs.cs: misc/cleanup.
13355 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13356 although we don't populate the wParam properly.
13357 (CreateWindow): generate WM_CREATE.
13358 (MapWindow,UnmapWindow): make these calls synchronous, at great
13359 performance expense (particularly in the unmap case), to match
13362 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13364 (set_MdiParent): don't recreate the handle unless it's been
13367 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13370 * NativeWindow.cs: this is probably the weirdest part of the
13371 patch. We need a way to link up the window being created to the
13372 WM_CREATE message. Since we can only be creating one window at a
13373 time on a given thread, we keep track of a per-thread reference so
13374 we can dispatch it properly. We also need to keep track of the
13375 Hwnd currently being created so that the win32 backend doesn't
13378 * XplatUIWin32.cs: a similar change to the one we made in
13381 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13383 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13384 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13385 to draw the menu shortcut string.
13387 2007-03-07 Jackson Harper <jackson@ximian.com>
13389 * TreeNode.cs: Add the 2.0 collapse method.
13391 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13393 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13395 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13397 * DataGridView.cs: Change DataSource will clear column and row
13398 lists. Call Invalidate() to reflect DataSource change.
13400 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13402 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13403 and a new row is added to it.
13405 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13407 * DataGridView.cs: Add columns when DataSource is en empty list but
13408 is a System.Data.DataView (from a System.Data.DataTable).
13410 2007-03-06 Andreia Gaita <avidigal@novell.com>
13412 * Label.cs: Implement AutoEllipsis (2.0)
13414 2007-03-06 Jackson Harper <jackson@ximian.com>
13416 * TreeView.cs: Implement 2.0 TopNode setter property.
13417 - Use a local var instead of the skipped_nodes field for computing
13418 how many nodes to skip. Otherwise we won't scroll because the
13419 valuechanged handler checks if skipped_nodes is equal to the new
13421 - Implement 2.0 Sort method.
13422 - Add useless 2.0 DoubleBuffer property
13423 - Implement 2.0 LineColors property. Lets you change the color of
13424 the lines in the tree. Terribly useful for creating non cohesive
13426 - Implement 2.0 image key feature.
13428 2007-03-06 Jackson Harper <jackson@ximian.com>
13430 * TreeView.cs: We can't get the bounds of the nodes before raising
13431 the AfterSelect event, because that event could change the node's
13432 bounds (scrolling, font change, etc).
13434 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13436 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13437 * Form.cs: Don't recreate handle when creating FormWindowManager, just
13438 update window styles. In CreateParams us VisibleInternal instead of
13439 VIsible to get the actual visible flag set for this form.
13440 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13441 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13442 handle the case when the form is already maximized, in which case
13443 it should be restored. Fixes #81043.
13445 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13447 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13449 2007-03-05 Jackson Harper <jackson@ximian.com>
13451 * TreeViewHitTestInfo.cs: implement.
13453 2007-03-05 Jackson Harper <jackson@ximian.com>
13455 * InternalWindowManager.cs: class status fix.
13457 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13459 * InternalWindowManager.cs: All windows that have a parent
13460 are confined to their parent when they're being moved.
13463 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
13465 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13466 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13468 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13470 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13471 buttons invisible before deciding which ones should be visible
13472 (fixes minimize/maximize buttons showing up in toolwindows). Remove
13473 an unused variable.
13474 * InternalWindowManager.cs: Remove warning.
13476 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13478 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13479 to throw an InvalidOperationException is virtual mode is being used.
13481 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13483 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13484 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13485 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13486 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13487 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13488 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13490 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13492 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13493 driver.KeyboardDelay from XplatUI.KeyboardDelay
13494 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13495 (patch by Sergey Volk)
13497 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13499 * ToolWindowManager.cs: Added, contains logic for
13501 * CreateParams.cs: Add a few helper methods and an
13502 internal variable to know which control the CreateParams belongs
13504 * Control.cs: Call Form.ChangingParent when the
13505 parent is about to be changed.
13506 * XplatUIX11.cs: DeriveStyles (): Set
13507 caption_height for all windows that have captions and are children.
13508 Update to use ToolWindowManager instead of InternalWindowManager
13510 * XplatUIWin32.cs: Set fake window styles for all
13511 windows that have window managers.
13512 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13513 now duplicated for mdi windows when they are
13514 maximized, first for the buttons the window itself has, then for
13515 the buttons that appear in the menu bar. Makes things a little
13516 easier). Updated UpdateWindowDecorations, SetWindowState and the
13517 mouse eventhandlers accordingly.
13518 * Form.cs: Add ChangingParent (), contains the
13519 logic of what should happen when the parent changes. In MdiParent
13520 don't set things that ChangingParent () is doing. When handling
13521 WM_CLOSE, we can close the form if there are any other modal forms
13522 and the current form is a descendent of the modal form.
13523 * InternalWindowManager.cs: A lot of refactoring,
13524 the title buttons are now extracted to a separate container class
13525 that takes care of all button code (clicks, tooltips, etc). Moved
13526 Iconic|Maximized|Normal Bounds properties to this class from
13527 MdiWindowManager, so that the window state logic can succeed for
13528 other than mdi wm's. Implemented general window state change logic.
13529 Moved CreateButtons to ThemeWin32Classic, since the theme might
13530 override which buttons are available when as well as the exact
13532 * FormWindowManager.cs: Added, contains logic for
13534 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13535 which buttons go where (and if they are at all visible).
13536 Removed special handling of maximized windows, since they aren't special.
13537 In DrawManagedWindowDecorations don't try to draw the text if it is
13539 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
13540 use whatever the wm gives us.
13542 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13544 * ButtonBase.cs: Add 2.0 properties.
13545 * Button.cs: Override Draw for 2.0.
13546 * Control.cs: Add Entered and Selected properties.
13547 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13548 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13549 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13551 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13553 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13555 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
13557 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13559 * XplatUIWin32.cs: Register a new class with Windows each time we get
13560 a new ClassStyle. [Fixes bugs #79432, #80817]
13561 * Controls.cs: Set the correct ClassStyle in CreateParams.
13562 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13564 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
13566 * ListView.cs: Add fireEvent argument to ReorderColumn since the
13567 ColumnReordered event must not be signaled when modifying DisplayIndex
13568 of a ColumnHeader. Added internal ReorderColumns method which takes
13569 care of drawing, and updating the internal DisplayIndex of the
13570 ColumnHeader. Added AddColumn method which is invoked from
13571 ColumnHeaderCollection when adding or inserting columns, and which
13572 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13573 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13574 Recalculated dispay indices after removing a ColumnHeader.
13575 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13576 match MS. Allows last display index to be returned after ListView
13577 is disposed. Update actual location of ColumnHeader when DisplayIndex
13580 2007-03-01 Everaldo Canuto <everaldo@simios.org>
13582 * LinkLabel.cs: Improve CalcTrimRectangle.
13584 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13586 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13588 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13589 get rectangle as a result value.
13591 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13593 * LinkLabel.cs: Theres some diferences between rectangle return from
13594 MeasureCharacterRanges and the area used for DrawString to fix this
13595 CalcMeasurementFactor method was created, it calcules the diferences
13596 to be use later to adjust rectangle in draw operations. Fixes #80473.
13598 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13599 to adjust draw rectangle.
13601 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13603 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13604 text and some other changes to reduce and optimize source code.
13606 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13608 * RadioButton.cs: Implement 2.0 event.
13609 * RelatedImageListAttribute.cs: Implement new class.
13611 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13613 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13615 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13617 * CheckBox.cs: Implement 2.0 functionality.
13619 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13621 * ListView.cs: Refactor Add and AddRange methods of
13622 ListViewItemCollection, to not update the ListView
13623 everytime an item is added in AddRange. Also move the update
13624 code to a new CollectionChanged method, and call it
13625 from other methods that need it as well (this should also fix some
13626 bugs when Sorting is used).
13628 2007-02-27 Jackson Harper <jackson@ximian.com>
13630 * TextControl.cs: Try to never let the caret stay in a non-text
13632 * TextBoxBase.cs: Update the caret.
13634 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
13636 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13637 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13638 delete POINT structure, duplicate of one in XplatUIStructs.
13639 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13641 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
13643 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13644 edit box since otherwise the Label would immediately be set (even if
13645 the user did not modify the label). In OnKeyDown set Handled to true
13646 if Return or Escape was pressed. In ColumnHeaderCollection unlink
13647 columns that are to be removed. In ListViewItemCollection unlink items
13648 that are to be removed.
13650 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
13652 * TextRenderer.cs: If we set a GDI clip region, we need to clear
13653 it when we are done. [Fixes bug #80949]
13655 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13657 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13659 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13661 * ListView.cs: I forgot to commit the changes for ListView
13662 in my previous patch.
13664 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13666 * Clipboard.cs: Partially implement an overload of SetDataObject.
13667 * Form.cs: Implement ShowWithoutActivation.
13668 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13670 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13672 This is a first set of changes to make the Virtual mode works,
13673 by avoiding the retrieval of ListViewItem instances until
13676 * ListView.cs: Store item position in the ListView instead of the
13677 ListViewItem, this way we don't request the Bounds property of
13678 ListViewItem inside the ListView calculations, as well as cache the item
13679 size in item_size field. Store indexes instead of ListViewItem
13680 instances in the matrix used by icon view. Add a ItemMatrixLocation
13681 struct to hold the row and col info of the matrix info.
13683 * ListViewItem.cs: Don't store the location anymore, and only cache
13684 the rectangles for GetBounds. Use the ListView.GetItemLocation
13685 method to retrieve the actual location.
13687 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13689 * TextRenderer.cs: Add clipping support, thanks to George.
13692 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13694 * ListViewItem.cs: Cancel label edit when item is removed from
13696 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13697 event before the edit textbox is displayed. Added CancelEdit method
13698 which is used end to editing while ignoring the value set by the
13699 user. In EndEdit, set focus to ListView to avoid losing focus to
13700 other controls. In ListViewItemCollection.Clear, cancel editing of
13701 any of the items. In Remove, cancel editing of item being removed.
13702 Avoid udplicate code by modifing RemoveAt to invoke Remove.
13704 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13706 * FileDialog.cs: Update FSEntry when move is successful. Fixes
13709 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13711 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
13712 compatible with non X11 systems. Fixes #80901.
13714 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13716 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13717 whether the item should be unselected and reselect. We do no want this
13718 when we're starting to edit the label. Do not fire the
13719 SelectedIndexChanged event from ListView when its already been fired
13720 by modifying ListViewItem.Selected. Fixes bug #80943.
13722 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13724 * TextRenderer.cs: Previos commit logic was backwards.
13726 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13728 * TextRenderer.cs: Don't add padding on MeasureText if we were
13729 sent the NoPadding flag.
13731 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13733 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13734 after DrawButton. To prevent image overlaps button borders SetClip and
13735 ResetClip added before and after draw image. Fixes #79129.
13737 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13739 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
13740 window size, it fix problem when you run under win32 that theres
13741 Size diferent than ClientSize. Also fix controls size and positions
13742 to mimic Win32. Fixes #80837.
13744 2007-02-22 Everaldo Canuto <everaldo@simios.org>
13746 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
13747 menu area to fix some problems for non X11 systems. Fixes #80613.
13749 2007-02-22 Jackson Harper <jackson@ximian.com>
13751 * TreeNode.cs: When a node is expanded, set its is_expanded flag
13752 even if it doesn't have any children.
13754 2007-02-22 Jackson Harper <jackson@ximian.com>
13756 * TreeView.cs: Calculate the top node 'on the fly', this
13757 eliminates issues where you need to click on the tree before
13758 scrolling it to get the top node computed correctly.
13759 * TreeNodeCollection.cs: We don't need to mess with the top node
13762 2007-02-22 Jackson Harper <jackson@ximian.com>
13764 * DataGridViewRow.cs: Fix typo so height can actually be set.
13765 Patch by Peter Grimm.
13767 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13769 * FileDialog.cs: Fixed support for renaming files and directories.
13770 * ListView.cs: Do not lose focus when edit is canceled. Process
13771 Escape as regular key (to prevent closing of dialogs).
13773 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13775 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13776 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13778 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13780 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13781 did not modify label.
13782 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13783 modified the text. Reset Label when user presses Escape in edit mode.
13784 Move focus to ListView after having cancelled or finished editing the
13787 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
13789 * ComboBox.cs: Removed unnecessary initializations. Marked items field
13790 private. Clear textbox when Text is set to null and SelectedIndex is
13792 * FileDialog.cs: Removed unnecessary initializations. Removed
13793 workarounds for ComboBox bugs that are now fixed. Modified
13794 DefaultExt, InitialDirectory and Title property to change null to
13795 zero-length string in getters. Avoid directly accessing fields.
13797 2007-02-20 Jackson Harper <jackson@ximian.com>
13799 * TextControl.cs: Remove RecalAlignments call, that was some
13800 debugging leftovers.
13801 - Don't use the line indent when we shouldn't.
13802 * RichTextBox.cs: Add support for paragraph left indents.
13804 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13806 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13807 Seems like the class status pages doesn't catch params differences.
13809 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13811 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13813 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13815 * ComboBox.cs: Setting Text should have no effect if item text of
13816 selected item exactly matches value. First lookup text using
13817 case-sensitive comparison, and fallback to case-insensitive comparison.
13818 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
13819 allow startIndex to be last index. Changed ArgumentOutOfRangeException
13820 paramname to match MS. Restart from first item if string is not found
13821 after startIndex. Fixed paramname of ArgumentNullException that is
13822 thrown for null value in ObjectCollection.Contains.
13824 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13826 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13828 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13830 * ListControl.cs: In SelectedValue use value.Equals to compare for
13831 equality instead of ==, otherwise it will fail for strings.
13834 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13836 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
13837 since the caret won't show up unless ShowSelection is true.
13840 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13842 * Application.cs: When disabling all forms but the main form, do not
13843 disable any descendants of the main form (such as mdi children or
13844 other parented forms). Fixes #80822 on Windows.
13845 * Form.cs: If we have a parent, set the WS_CHILD style.
13846 * Control.cs: Update the window styles if the control whose parent has
13847 changed is a form (the WS_CHILD style has to be switched).
13849 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13851 * XplatUIStructs.cs: MsgUIState structure added.
13853 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13855 * FileDialog.cs: Removed need for separate fileName field. On 2.0
13856 profile, do not check filename(s) for illegal character if filename(s)
13857 were set non-interactively but always check on 1.0 profile. Fixed NRE
13858 in DefaultExt and only strip off first leading dot. Improve exception
13859 message when invalid Filter is set. Do not ignore InitialDirectory if
13860 it does no exist. Store specified Title, and if empty use default
13861 title (depending on type of dialog). Added an internal DialogTitle
13862 property for retrieving dialog title. Fixed logic of displayed dir to
13863 more closely match MS. Avoid setting ComboBox.Text to a zero-length
13864 string as its buggy.
13865 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
13866 FileName is a zero-length string (it can never be null). Override
13867 DialogTitle property to set default title of dialog box.
13868 * SaveFileDialog.cs: Override DialogTitle property to set default
13869 title of dialog box.
13871 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13873 * FileDialog.cs: Modify default text of filename and filetype labels
13874 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
13875 after we've updated the SelectedIndex. Fixes part of bug #80887.
13876 * SaveFileDialog.cs: Set text of filetype label.
13878 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13880 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
13881 label field. Needed by latest Jackson's fixes for ListView.
13883 2007-02-16 Andreia Gaita <avidigal@novell.com>
13885 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
13886 print preview images.
13888 2007-02-16 Jackson Harper <jackson@ximian.com>
13890 * ListView.cs: Make AfterLabelEdit work correctly.
13891 * FileDialog.cs: After changing the name of the folder, we have to
13892 make sure that it is created, or that we pop up an error because
13895 2007-02-16 Jackson Harper <jackson@ximian.com>
13897 * X11Dnd.cs: Implement aliases on mime handlers, so things like
13898 System.String are mapped to text.
13899 - Handle dataobjects, getting all the possible formats out of them
13900 - We dont need the drag event args before we give feedback. This
13901 allows feedback cursors to be immediate before selections have
13904 2007-02-16 Jackson Harper <jackson@ximian.com>
13906 * TextBoxBase.cs: Modified the method for inserting images to
13907 taking a line and position instead of tag and position.
13908 * RichTextBox.cs: Handle PngBlip data by inserting the png image
13910 * TextControl.cs: Allow images to be inserted as the first tag of
13912 - Fix some off by one issues when we assume the first tag is a
13913 text tag, not an image tag.
13915 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13917 * ListView.cs: Set focus to ListView when ItemControl gets a
13918 WM_RBUTTONDOWN message, to mimic .Net behaviour.
13919 Fixes part of #80467.
13921 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13923 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
13924 validate Text input (if null or empty string reset Value to default
13925 value). Fixes #80830.
13927 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13929 * ListView.cs: Set owner as null for columns and items when
13930 Dispose is invoked. Fixes #80607.
13932 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
13934 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13935 showing DropDowns, don't show a Grip when doing Flow layout.
13936 [This fixes the toolbox in PDN 2.72.]
13937 * ToolStripItem.cs: Add Anchor property and some internal properties to
13938 reduces needed changes to FlowLayout.
13939 * ToolStripOverflow.cs: Remove unused variable.
13940 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13941 use it in the layout calculations.
13943 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13945 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13946 reported in #79640.
13948 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13951 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13953 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
13954 MeasureString format, it can make button very large in some cases, it is
13955 strange but is what win32 do.
13957 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13959 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
13962 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13963 rendering, the value is based on MenuAccessKeysUnderlined.
13965 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13967 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13970 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13972 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13973 and use MenuAccessKeysUnderlined instead.
13975 2007-02-13 Andreia Gaita <avidigal@novell.com>
13977 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13978 A selected control would not get a Focus call if:
13979 - the default active control of the container is the same as
13980 the one that was selected
13981 - we are switching from one container to another
13982 Under these conditions, the container being selected already has
13983 an active_control, which is the same as the one being activated,
13984 so set_ActiveControl would always return and not send the Focus
13985 call. Fix to check if the currently active control of the container
13986 is actually focused.
13988 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
13990 * StatusStrip.cs: Implement the spring layout.
13991 * ToolStripControlHost.cs: Make sure the hosted control's visibility
13992 always matches the host.
13993 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13994 and TextAfterImage.
13996 2007-02-13 Andreia Gaita <avidigal@novell.com>
13998 * Control.cs: Code reorganization only.
13999 - Reorganize the WndProc cases so that each case has it's own handling method,
14000 to help with the no-line-numbering stack traces.
14001 - Formatting changes (it's vstudio's fault, really :p)
14003 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14005 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
14006 Thread.CurrentUICulture to match DateTimePicker's (and MS)
14009 2007-02-12 Jackson Harper <jackson@ximian.com>
14012 * TextBox.cs: By default we have a non multiline document
14013 - use the multiline property instead of the internal variable
14014 * TextBoxBase.cs: Treat multiline and non multiline the same in
14016 - Use the documents multiline flag instead of tracking it ourself
14017 * TextControl.cs: Attempt at getting multiline to match MS
14018 behavior. Lines now track an offset, which is either their X or Y
14019 offset depending on whether or not we are in multiline mode.
14020 - Update all the methods to understand that lines have an X value.
14021 - Fix crash in Undo::Duplicate when empty lines are deleted.
14023 2007-02-12 Everaldo Canuto <everaldo@simios.org>
14025 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
14026 code moved to properties PreferredHeight and PreferredWidth. It solve the
14027 all problems when preferred sizes must be recalculated. Fixes #80801.
14029 2007-02-12 Everaldo Canuto <everaldo@simios.org>
14031 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
14032 font height when compatible_text_rendering is false. Partially fix #80801.
14034 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14036 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
14038 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14040 * Form.cs: Improved exception messages in ShowDialog.
14042 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14044 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
14045 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
14046 if not set. Fixes bug #80764. Avoid accessing current_settings field
14049 2007-02-08 Everaldo Canuto <everaldo@simios.org>
14051 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
14054 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
14055 public in 2.0 and for easy maintenance and dont break compatibility it is
14058 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14060 * ToolStripItem.cs: Implement using images from ImageList.
14062 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14064 * DateTimePicker.cs: Change default date-formatting culture from
14065 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
14066 seems to be the way MS does it.
14068 2007-02-08 Andreia Gaita <avidigal@novell.com>
14070 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
14071 (the 6 was cut off on the right side)
14073 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14075 * Form.cs: Tell MenuStrips to close when the form is clicked.
14076 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
14077 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
14078 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
14079 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
14080 support for Overflow, where items that do not fit are automatically
14081 reparented to a drop down menu.
14082 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
14083 Also: fixes bug #80747.
14085 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14087 * ComboBox.cs: Remove warning (unused code).
14088 * ScrollableControl.cs: Remove warning for 1.1 profile.
14090 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14092 * Form.cs: Remove a warning.
14094 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14096 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
14097 'g' specifier, not documented anywhere, but seems to always show up
14098 as a single space (might have something to do with the DateTime 'g'
14099 specifier, which is the era format, but since DateTimePicker can't
14100 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
14101 won't crash if the format has an unmatched quote. Now shows
14102 single-character formats correctly. Fixes #80744.
14104 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14106 * StatusStrip.cs: Stretch property needs to call base.Stretch,
14107 not this.Stretch to fix stack overflow. [Fixes bug #80760]
14109 2007-02-07 Chris Toshok <toshok@ximian.com>
14111 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
14112 background color. it overwrites the background image we've
14113 already painted. Fixes #80599.
14115 2007-02-07 Chris Toshok <toshok@ximian.com>
14117 * DataGrid.cs: return immediately from Edit() when there are no
14118 columns. Fixes #80662.
14120 2007-02-07 Chris Toshok <toshok@ximian.com>
14122 * MessageBox.cs: fix #80625. don't always show the Help button in
14123 2.0. use the displayHelpButton parameter to determine if we
14124 should show it. Also, make the internal show_help field private.
14126 2007-02-07 Chris Toshok <toshok@ximian.com>
14128 * Control.cs (SetVisibleCore): check in the proposed patch for
14129 80604, and set is_visible before calling CreateControl.
14131 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
14133 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
14134 MonoInternalNote. This is added automagically by VS2005, so let's not crash
14137 2007-02-06 Everaldo Canuto <everaldo@simios.org>
14139 * MenuAPI.cs: hotkey_active internal field added, it is required because
14140 we need to know when hotkeys must be draw, before this change a keystate
14141 Navigating was used but we can have menu in navigating state without
14142 hotkeys. Fixes #80694.
14144 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14146 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14148 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14149 corresponding events and methods to be internal for 1.1 profile and
14150 public for 2.0 profile (required by SizeGrip).
14151 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14152 implicit control list). Don't set the size nor the location of the
14153 SizeGrip anymore as it's not needed.
14154 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14155 draw directly on the captured control (fixes #80656). Removed
14156 ShowGrip (it wasn't used anywhere), redraw (always true), added
14157 GetDefaultSize and GetDefaultRectangle to calculate defaults.
14158 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14159 be called from SizeGrip.
14161 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14163 * Timer.cs: Throw ArgumentException if Interval <= 0.
14165 2007-02-05 Jackson Harper <jackson@ximian.com>
14167 * TreeView.cs: We need to check scrollbar visibility when window
14168 visibility is updated, because non visible trees don't ever add
14170 * Cursor.cs: We want the override cursor to be reset to NULL when
14171 we set current cursor to the default cursor.
14173 2007-02-05 Jackson Harper <jackson@ximian.com>
14175 * TextControl.cs: Don't have crlfs when we are non multiline.
14176 - Consolidate the line position.
14178 2007-02-05 Jackson Harper <jackson@ximian.com>
14180 * X11Keyboard.cs: BACK+CTRL gets a special char code.
14182 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14184 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14185 handling LeaveNotify->NotifyUngrab in order to send
14186 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
14187 after calling XUngrabPointer, so we call WindowUngrabbed directly
14188 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
14189 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
14190 MouseCaptureChanged correctly. Also create handles if changing
14191 Capture (matches MS behaviour).
14193 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14195 * SizeGrip.cs: Make the last change 2.0 only.
14197 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14199 * SizeGrip.cs: If resizing and the capture is lost, revert any size
14200 changes to initial size (fixes #80597).
14202 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14204 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
14206 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14208 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
14209 background) and only allow dragging if enabled. This way the
14210 sizegrip can be used to fill the open square that otherwise would
14211 have been shown in the bottom right corner of ScrollableControl
14212 when ScrollableControl is not suppose to support sizing.
14213 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
14214 sizegrip is shown and enabled, and hook up with necessary events.
14216 2007-02-01 Chris Toshok <toshok@ximian.com>
14218 * DataGridTextBoxColumn.cs: clean up the
14219 GetFormattedString/GetColumnValueAtRow combination of functions.
14220 Also fix UpdateUI, and the initial state of
14221 IsInEditOrNavigateMode.
14223 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
14224 aren't supposed to scroll the textbox here, we're supposed to
14225 scroll the datagrid.
14227 2007-02-01 Chris Toshok <toshok@ximian.com>
14229 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
14230 setting the position.
14232 2007-02-01 Chris Toshok <toshok@ximian.com>
14234 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
14235 here, since the most recent focus fixes keep us from generating
14236 the Leave event when our textbox gets focus.
14237 (Edit): we should be passing null for the column style's
14238 instantText parameter.
14240 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
14242 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
14243 raised. Fixes menu text/icons not showing up in PDN.
14245 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
14247 * Control.cs: Remove code in constructor that makes every
14248 control with WS_CHILD set have initial location -1, -1.
14250 2007-01-31 Jackson Harper <jackson@ximian.com>
14252 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
14254 * XplatUIX11.cs: Give teh keyboard to teh dnd.
14256 2007-01-31 Jackson Harper <jackson@ximian.com>
14258 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
14259 - Remove some debug code.
14261 2007-01-31 Jackson Harper <jackson@ximian.com>
14263 * XplatUIX11.cs: If you set the override cursor during a grab, it
14264 should actually override the grab cursor. This comes into play
14265 when you are setting custom cursors in a DND feedback method.
14267 2007-01-31 Jackson Harper <jackson@ximian.com>
14269 * X11Dnd.cs: Add support for handling the QueryContinue and
14270 GiveFeedback events.
14271 - Cancel drag and drop actions when the escape key is clicked.
14272 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
14273 can handle the ESCAPE key.
14274 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
14275 done when dnd events are continued after the button is released.
14276 - Add a new helper method so that dnd can translate key events.
14278 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
14280 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
14281 make it more obvious what is happening.
14283 2007-01-30 Jackson Harper <jackson@ximian.com>
14285 * XplatUIX11.cs: Don't break when handling button release in drag
14286 and drop operations. We need that BUTTONUP message to get through
14287 so capture is released.
14288 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
14289 this is handled automatically when the mouse is down.
14291 2007-01-30 Jackson Harper <jackson@ximian.com>
14293 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
14294 is closed, so we need to make sure that we aren't changing the
14295 dialog result when the OK (Open or Save) button has been clicked
14296 and we are closing the window ourselves. Note we don't need to
14297 worry about the cache being written in this case, because it was
14298 already done in the previous FilOk call.
14300 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14302 * DateTimePicker.cs: Remove a warning.
14303 * ComboBox.cs: Remove a couple of warnings.
14305 2007-01-29 Chris Toshok <toshok@ximian.com>
14307 * XplatUIX11.cs: don't crash, and remove the icon if the user has
14308 set one, if SetIcon is passed a null icon.
14310 2007-01-29 Andreia Gaita <avidigal@novell.com>
14312 * TextBox.cs: Redraw when the password characters changes
14313 * TextControl.cs: Check if textbox has a password char and draw
14314 a line of password chars instead of the text in the line. LineTag gets
14315 an extra Draw() method which allows document.Draw to override the text
14316 that will be drawn. Removes 1024 char limitation on length of passworded
14319 2007-01-29 Jackson Harper <jackson@ximian.com>
14321 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
14322 single chars is not.
14324 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
14326 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14327 one pixel. Fix a StackOverflowException caused by an overload wrongly
14330 2007-01-26 Everaldo Canuto <everaldo@simios.org>
14332 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14333 also remove ProcessArrowKey and put the code inside ProcessKeys.
14335 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
14337 * PaddingConverter.cs: Added.
14339 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14341 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14342 ShowPanels is false (fixes #80600). Only draw up to 127 characters
14343 of text (fixes #80601). For panels clip the text to draw to the
14344 panel (fixes #80603).
14346 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14348 * ComboBox.cs: Fixed implementation of ResetText.
14350 2007-01-25 Jackson Harper <jackson@ximian.com>
14352 * TextControl.cs: For the last char of a line we need to use the
14353 line size, not that chars width, since it won't actually be
14354 computed since the right side of a char is based on the start of
14355 the left side of the next char, and the next char does not exist.
14357 2007-01-25 Chris Toshok <toshok@ximian.com>
14359 * Splitter.cs: fix the new unit tests, and reindent some switch
14362 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14364 * ComboBox.cs: Implemented 2.0 methods and events.
14365 * TextBoxBase.cs: Added OnTextUpdate, so that
14366 ComboBox.ComboTextBox can inform ComboBox of it.
14368 2007-01-25 Jackson Harper <jackson@ximian.com>
14370 * TextControl.cs: Respect ShowSelection when deciding whether or
14371 not to display the caret, this allows comboboxes to have carets
14372 when the combotextbox does not have focus.
14374 2007-01-25 Jackson Harper <jackson@ximian.com>
14376 * TextControl.cs: Add a Suspend/Resume for updating, basically the
14377 same as the Suspend/Resume for recalc, except this will do actual
14379 - New Undo manager, works much like the MS version.
14381 * TextBoxBase.cs: The Cut operation is undoable.
14383 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14385 * TextBoxBase.cs: Don't antialias text. Makes it look way better
14386 on Windows (no difference on Linux).
14388 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14390 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14391 we don't want to activate any windows. Fixes #79433.
14393 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
14395 - ButtonBase.cs: Fix capitalization of parameter: disposing.
14398 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
14401 - Move to using System.ComponentModel.EventHandlerList
14402 - Replace Refresh with Invalidate
14403 - Clear the mime filecache on closing
14404 - Some other memory reducing work. After beeing closed FD now uses
14405 only about 300 KB for the fdo mime stuff plus the memory of the
14407 * Mime.cs: Changed coding style and removed unnecessary commented
14408 code. Some more memory memory reducing work.
14410 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14412 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14413 a few other missing 2.0 properties.
14414 * Theme.cs: Added DrawFlatStyleComboBox.
14415 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14417 2007-01-24 Chris Toshok <toshok@ximian.com>
14419 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14420 wake_waiting flag, not just when there's data to be read. if we
14421 don't, then future wakeup's won't reach us and we'll be doomed to
14422 wait for the entire 1 second timeout forever (unless there are X
14425 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14427 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14428 until you pass Items.Count, not Items.Count - 1 like 1.1.
14430 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
14432 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14434 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14436 * ToolStripContainer.cs: The recent Dock fix exposed that I was
14437 adding the panels in the wrong order.
14439 2007-01-24 Jackson Harper <jackson@ximian.com>
14441 * TextBoxBase.cs: When we move the caret we also need to move the
14442 selection, this fixes some random crashing after doing select
14443 text, unselect, delete a char, paste.
14445 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14447 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14449 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14451 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14452 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
14453 * ToolBar.cs: Force redraw in BackgroundImageChanged.
14455 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14458 - Implement support for vertical toolbars. Fixes #80539;
14459 - Call LayoutToolBar when resize, it fix some other problems in layout.
14460 - Rename requested_height to requested_size, as we can have width on it
14461 when toolbar is vertical.
14462 - Create a private property "Vertical" that uses Dock to verify when
14463 toolbar is vertical or not.
14464 - Set ControlStyles when change Dock property.
14465 - Refactory in LayoutToolBar to have better variables names and to support
14467 - Fixes default value for ButtonSize when button count is equal zero, size
14468 must be (39, 36) test case writed.
14470 2007-01-23 Chris Toshok <toshok@ximian.com>
14472 * Control.cs: fix the checks so that they work correctly for mdi
14475 2007-01-23 Chris Toshok <toshok@ximian.com>
14477 * Control.cs: ControlCollection seems to have super-secret
14478 abstraction breaking knowledge of Mdi containers. allow MdiClient
14479 to add toplevel controls.
14481 2007-01-23 Chris Toshok <toshok@ximian.com>
14483 * Control.cs: throw an ArgumentException if a toplevel control is
14484 added to our control collection from ControlCollection.Add, as
14485 well as from ControlCollection.IList.Add. This fixes the
14486 ControlSetTopLevelTest.TestTopLevelAdd unit test.
14488 Also, in ControlCollection.IList.Add, don't through an
14489 ArgumentNullException, throw an ArgumentException, when value ==
14490 null. This matches MS.
14492 2007-01-23 Chris Toshok <toshok@ximian.com>
14494 * BindingSource.cs: initial, incomplete, implementation of
14497 2007-01-23 Jackson Harper <jackson@ximian.com>
14500 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14501 that I can fix a broken unit test (TextBoxTest::ClearUndo)
14503 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14505 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14507 2007-01-23 Andreia Gaita <avidigal@novell.com>
14509 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14510 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14511 IndexOfKey() for 2.0
14513 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14515 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14516 to prevent it from changing z-order.
14517 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14518 leave UI updates in MdiWindowManager.
14519 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14520 1 sized (NC handling goes weird on Linux otherwise).
14521 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14522 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14523 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14524 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14525 and SetWindowState(s) to allow for changing the size of an activated child
14526 before activating it (reduces a lot of flicker).
14528 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14530 * Form.cs: Changing FormBorderStyle has different semantics based
14531 on whether the Form is visible or not. If not visible, don't change
14532 the Size. But InvalidateNC needs to be called to force the window
14533 to pick up the changes and redraw itself. [Fixes bug #80574]
14535 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14538 * ContainerControl.cs: ProcessCmdKey.
14539 * ErrorProvider.cs: new constructor.
14540 * Form.cs: fix AutoValidateEvent compiler warning.
14541 * Label.cs: fix OnAutoSizeChanged compiler warning.
14542 * MenuStrip.cs: fix CanOverflow compiler warning.
14543 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14544 * TextBox.cs: Dispose.
14545 * ToolStrip.cs: CanOverflow, re-enable double buffering.
14546 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14547 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14548 * ToolStripItem.cs: Overflow, RightToLeft properties.
14550 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14552 * Form.cs: Move the layout of the main form to MdiWindowManager.
14553 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14554 do a layout of the main window to update MdiClient's client area to
14555 the right area. Fixes #80533. Remove the calculation of nc size,
14556 it was just wrong and the correct one is the same as for
14557 InternalWindowManager.
14559 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
14561 * Control.cs: Setting Anchor or Dock needs to reset the other
14562 to its default. [Fixes bug #80556]
14564 2007-01-20 Chris Toshok <toshok@ximian.com>
14566 * CheckedListBox.cs: class status changes.
14568 * ScrollableControl.cs: same.
14570 * RichTextBox.cs: same.
14572 * ContainerControl.cs: same.
14574 * ListView.cs: same.
14576 * NotifyIcon.cs: same.
14578 * MenuStrip.cs: same.
14580 * RadioButton.cs: same.
14582 * CheckBox.cs: same.
14584 * PrintPreviewDialog.cs: same.
14588 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
14590 * TreeNode.cs: Apply Alan's patch for Name property.
14592 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14594 * Form.cs: Implemented SizeGripStyle.
14595 * SizeGrip.cs: Check for minimum and maximum size for the
14596 control being resized and only resize if size has actually
14599 2007-01-19 Chris Toshok <toshok@ximian.com>
14601 * DataGridColumnStyle.cs: stop setting _readonly in the
14602 PropertyDescriptor setter. fixes a unit test failure.
14604 also, rename ParentReadOnly to TableStyleReadOnly, and have it
14605 just consult our table style (if we have one). We don't need to
14606 consult the datagrid readonly attribute because that's passed in
14607 as the _ro arg to Edit. this simplifies things a little.
14609 * DataGrid.cs: use CurrentColumn instead of
14610 current_cell.ColumnNumber just to simplify some of the code.
14612 switch the order of some things in the CurrentCell setter to keep
14613 the previous cell from getting a textbox again -
14614 EnsureCellVisibility causes scrolling to happen, which calls Edit.
14615 So we need to set the new cell before calling it.
14617 call Edit in OnEnter, as does Microsoft.
14619 also, make sure the current table style isn't the one we create
14620 initially when checking to see if it's different than the one
14621 we're setting it to in BindColumns (this fixes #80421).
14623 * GridTableStylesCollection.cs: table styles can have "" for a
14624 mapping name. part of the fix for #80421.
14626 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14627 Edit significantly.
14629 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14631 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14632 and less GDI object leaky-er.
14634 2007-01-18 Andreia Gaita <avidigal@novell.com>
14636 * LinkLabel.cs: Add opaque control style
14638 2007-01-18 Jackson Harper <jackson@ximian.com>
14640 * TextControl.cs: Calculate width properly.
14641 - Don't store the tag's X offset, this can be figured out very
14643 - When getting the caret tag make sure to get the last empty tag.
14645 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14647 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14650 * Control.cs: Color.Empty shouldn't count for previous transparent
14653 2007-01-18 Jackson Harper <jackson@ximian.com>
14657 * TextControl.cs: Starting to merge in some pieces of my older
14658 undo work. Basically just some slight cleanup of the undo API.
14660 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14662 * TrackBar.cs: Fix signature of RightToLeftLayout.
14663 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14664 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14665 * Application.cs: Implemented UseWaitCursor.
14667 2007-01-18 Jackson Harper <jackson@ximian.com>
14669 * TextControl.cs: We can't skip tags if any part of the tag is
14672 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14674 * ContainerControl.cs: Override OnLayout.
14676 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14678 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14680 * ContextMenuStrip.cs: Make sure context menu is shown on top of
14683 2007-01-18 Chris Toshok <toshok@ximian.com>
14685 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14686 (leftover from the container_selected days, I'd wager). fixes bug
14689 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14691 * Control.cs: Apply patch from George to fix the new testcase on
14692 bug #80451. We can't just check for Color.Transparent, we need
14693 to check if the back color's alpha channel is < 255.
14695 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14697 * Form.cs: Move setting show_icon = true to before the constructor
14698 so that the base constructor has that information when it calculates
14699 the form's size. Was causing forms to be (6, 6) bigger than they
14700 were supposed to be. Thanks for catching this Rolf!
14702 2007-01-18 Jackson Harper <jackson@ximian.com>
14704 * TextControl.cs: When replacing a selection we need to invalidate
14705 from the initial selection start, because selection start is moved
14706 to the end of the replacement.
14708 2007-01-18 Andreia Gaita <avidigal@novell.com>
14710 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14712 2007-01-18 Chris Toshok <toshok@ximian.com>
14714 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14717 2007-01-17 Everaldo Canuto <everaldo@simios.org>
14719 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
14720 layout methods and properties from ToolBarButton must be available
14721 into ToolBarButtonInfo.
14723 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14725 * Control.cs: If the control has a transparent background, we
14726 need to refresh it when it moves and when it's parent's background
14727 image changes. [Fixes bug #80451]
14729 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14731 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
14733 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14735 * XplatUIWin32.cs: Implement proper double buffering for Windows.
14736 [Fixes bug #80447, and probably speeds up things as well]
14738 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14740 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14741 * XplatUIWin32.cs: We need to recalculate NC size after changing
14742 window style to toolwindow (otherwise the client rectangle will be
14743 3 pixels to small for some reason).
14744 * MdiWindowManager.cs: Revert NC size calculations to match how
14745 they are calculated only based on window styles (to match
14746 Win32AdjustWindowRectEx, since otherwise when setting size or
14747 location, Control will call Win32AdjustWindowRectEx to update client
14748 size, which would provoke a paint, then we'd get a NCCALCSIZE and
14749 calculate a different value of client size causing another paint
14751 * InternalWindowManager.cs: When moving or resizing a window only
14752 update size or location if they actually changed.
14753 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14754 (seems to match Windows behaviour better). Cleaned up
14755 ManagedWindowDecorations to draw what's needed and nothing else
14756 (was drawing borders and lines where they shouldn't be)
14757 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14758 (style = 0xFFFF) and takes into account caption height when
14759 calculating window rectangle.
14761 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14763 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
14764 can be added to toolbar multiple times, we need to maintain a list of
14765 button information for each positions.
14767 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14769 * ToolBar.cs: Some small stetic changes.
14771 2007-01-16 Jackson Harper <jackson@ximian.com>
14773 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14774 that allow us to have nested recalc = false blocks.
14775 - Add paste support for images in the RichTextBox
14776 * RichTextBox.cs: flush the text after the color is changed, so
14777 the change takes effect.
14778 - Use SuspendRecalc
14779 - Some extra debugging info
14780 * TextControl.cs: Tags no longer track their length, it is just
14781 computed from the next tags length, this makes things a little
14782 simpler and reduces places that we have to track length changes.
14783 - Refactored the linetag class a little so we could make it
14784 a base class for different kinds of tags
14785 - Created a image tag, a tag that can have a single image inserted
14787 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14788 that we can call suspend multiple times.
14789 - Add some debugging methods
14791 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14793 * MdiClient.cs: Add ActivatePreviousChild for
14794 mdi child window navigation.
14795 * Form.cs: Use MdiClient.ActivateNextChild/
14796 ActivatePreviousChild instead of Form.SelectNextControl
14797 to select the next/previous child since
14798 SelectNextControl doesn't do it in the same order
14799 as mdi children should do it.
14801 2007-01-16 Chris Toshok <toshok@ximian.com>
14803 * Control.cs: remove container_selected field.
14805 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14807 * MdiClient.cs: Update main form's ActiveChild when
14808 updating keyboard focus for the mdi child.
14810 2007-01-16 Jonathan Pobst <jpobst@novell.com>
14812 * Control.cs: PreferredSize fix.
14814 * Form.cs: Add several 2.0 events, properties, and methods.
14816 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
14818 * Form.cs: Provide meaningful message when MdiParent is assigned a
14819 Form that is not an MdiContainer.
14821 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14823 * MdiClient.cs: Update main form's ActiveChild when
14824 activating a mdi child.
14826 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14828 * MdiWindowManager.cs: Fix NRE when merging menus and main form
14829 doesn't have a menu.
14831 * Form.cs: Request NCRecalc after creating a mdi child window.
14832 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
14833 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
14835 * MdiClient.cs: Add new method SendFocusToActiveChild that either
14836 sends keyboard focus to the active child, or to the MdiClient
14837 if there are no child forms.
14839 2007-01-15 Chris Toshok <toshok@ximian.com>
14841 * ListView.cs: drop the *Internal overrides, just do our work in
14842 ItemControl's WndProc instead.
14844 * UpDownBase.cs: a few large changes. Fix up the Selectable state
14845 of the various controls, and forward the events properly (in the
14846 same manner as MS) from the textbox to the UpDown. Also the
14847 ActiveControl of the UpDownBase gets set properly now. Finally,
14848 we don't call UpdateEditText from the ctor. Fixes bug #79957.
14850 * NumericUpDown.cs: set Text in the ctor.
14852 * DomainUpDown.cs: call UpdateEditText in the ctor.
14854 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
14855 so even a Selectable = false textbox can be focused if you click
14858 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
14859 just add their handling in their respective WndProc's. Also add
14860 an explicit FocusInternal method that doesn't consult CanFocus
14861 before calling Select(this).
14863 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
14864 do our work in WndProc instead.
14866 * TabControl.cs: same.
14868 * ComboBox.cs: same.
14870 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14872 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
14875 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14878 * ThemeWin32Classic.cs: Don't draw the item text outside
14879 item bounds in Details view, as well as use trimming.
14882 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14884 * Form.cs: Implement Form.ShowIcon.
14886 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
14887 null, which when combined with the DlgModalFrame window style removes
14888 the icon from the title bar.
14890 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14892 * Control.cs: Call OnMouseClick after OnClick. (2.0)
14894 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14896 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
14897 menu when mdi child windows theres a menu, uses insert to get icon
14898 at first position. Partially fix #80006.
14900 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14902 * Clipboard.cs: Implement 2.0 methods.
14904 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14906 * Menu.cs: Implement Insert method of MenuItemCollection class
14909 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14911 * ListView.cs: Implement 2.0 FindItemWithText method.
14913 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14915 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
14916 to calculate menu bar size. Fixes #80290.
14918 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14920 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
14922 2007-01-11 Chris Toshok <toshok@ximian.com>
14924 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14927 2007-01-11 Chris Toshok <toshok@ximian.com>
14929 * LinkLabel.cs: make sure to call base.Select in our Select method
14930 if it turns out we're going to be selected (i.e. if we have a link
14931 that is going to receive focus). That way our container's
14932 ActiveControl is updated properly.
14934 2007-01-11 Chris Toshok <toshok@ximian.com>
14936 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14937 they have 1 or more links. this fixes the crash gert reported.
14939 2007-01-11 Andreia Gaita <avidigal@novell.com>
14941 * ContainerControl.cs: Remove ContainerSelected flag, not needed
14944 * Control.cs (Controls.Add): Check if control to be added to the collection
14945 is a top level control, and throw an ArgumentException if it is.
14946 Remove ContainerSelectedFlag, not needed anymore.
14948 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14949 top most control doesn't activate the form. This fixes a problem in the
14950 MessageBox, where the default button wouldn't get focus because the form
14951 was activated before being Loaded - when the Owner is set, SetTopMost is
14952 called, and it would activate it.
14954 2007-01-11 Jonathan Pobst <jpobst@novell.com>
14956 * Button.cs: When clicked and setting the parent form's DialogResult,
14957 use FindForm instead of Parent, since parent could be a container
14958 control and not the Form. Fixes bug #80495.
14960 2007-01-10 Chris Toshok <toshok@ximian.com>
14962 * Form.cs: move the call to SendControlFocus into the same
14965 2007-01-10 Chris Toshok <toshok@ximian.com>
14967 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14968 It breaks in the face of the new ActiveControl stuff, and should
14971 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14972 activecontrol's focus if it's not already set, after we set
14973 ActiveControl, but before we call OnActivated. Re-fixes #79667
14974 after the previous focus/active control fixes regressed it.
14976 * Control.cs: reindent some code.
14978 2007-01-10 Chris Toshok <toshok@ximian.com>
14980 * Splitter.cs: clearing some outstanding changes from my tree.
14981 Replace all accesses (not writes) to the internal dock_style field
14982 with the Dock property.
14984 2007-01-10 Chris Toshok <toshok@ximian.com>
14986 * Control.cs: make FireEnter, FireLeave, FireValidating, and
14987 FireValidated virtual.
14989 * Form.cs: override and don't chain up calls to FireEnter and
14992 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14994 * ListView.cs: Add more text padding space when using
14995 auto resize for columns (the previous value didn't work fine).
14997 * ThemeWin32Classic.cs: Update text position inside columns,
14998 to match the appeareance of .Net.
15000 * ColumnHeader.cs: When using auto resize, only the Width should
15001 depend on the sub items, not the Height. Also, set width after
15002 auto resizing (the value of Width should never remain as -1 or -2).
15004 2007-01-10 Chris Toshok <toshok@ximian.com>
15006 * Application.cs: fix compilation errors when debug is enabled.
15008 2007-01-10 Chris Toshok <toshok@ximian.com>
15010 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
15011 add some nice ascii art pictures and explanation of the process).
15012 (GetMostDeeplyNestedActiveControl): new utility function we need
15013 because our ActiveControl can refer to a child container with its
15016 * Form.cs (OnActivated): remove the call to SelectActiveControl
15017 from here, since you can override this method and not chain up,
15018 and winforms still sets the active control.
15019 (OnCreateControl): also remove the unnecessary SelectActiveControl
15021 (WndProc): it's actually called from the WM_ACTIVATE block, just
15022 before calling OnActivated.
15024 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
15025 inside the else. the ActiveControl setter will end up setting
15026 focus on @control. This keeps us from setting it again (and
15027 generating an extra LostFocus/GotFocus pair).
15028 (Select (bool, bool)): reindent.
15030 2007-01-10 Jonathan Pobst <jpobst@novell.com>
15032 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
15033 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
15034 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
15035 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
15036 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
15037 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
15038 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
15039 ToolStripTextBox.cs: Another wave of corcompare work.
15041 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15043 * ColumnHeader.cs: Implement 2.0 AutoResize method using
15044 the Width property.
15046 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
15047 methods by callling Column.AutoResize method on columns.
15049 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
15051 * Control.cs: Provide proper implementations of PreferredSize
15052 and GetPreferredSize (2.0).
15054 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
15056 * Form.cs: Remove one character (!) to make my previous OnClosing
15057 stuff work for modal windows like MessageBox.
15059 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15062 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
15063 ListView.Columns to get the last displayed column. Fixes #80452.
15065 2007-01-09 Everaldo Canuto <everaldo@simios.org>
15067 * Label.cs, LinkLabel.cs: Source code identation fixes.
15069 2007-01-08 Everaldo Canuto <everaldo@simios.org>
15071 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
15072 we dont need to invalidate only borders because when we invalidate four
15073 border lines the invalidate's generates a complete redraw of button,
15074 because it now invalidate a complete rect some other redraws operations
15075 are fixed. Fixes #80196.
15077 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
15078 Remove ToolBarInvalidateEntireButton as it is not used.
15080 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
15082 * Form.cs: Make sure that both OnClosing and OnFormClosing are
15083 called for 2.0 profile.
15084 * CloseReason.cs: Make class internal for 1.1.
15086 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
15088 * ToolStripManager.cs: Implement FindToolStrip functionality.
15089 * ToolStrip.cs: Register and unregister with ToolStripManager.
15091 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
15093 * Control.cs: This was messy. 2.0 moves much of ControlCollection
15094 to ArrangedElementCollection. Implemented this with as few #if's as
15095 possible (which is still too many).
15097 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
15099 * Control.cs: Implement SizeFromClientSize() [2.0].
15101 2007-01-07 Everaldo Canuto <everaldo@simios.org>
15103 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
15104 use Theme.BorderSize to calculate area instead of static value 1,
15105 by the way use new BorderStaticSize instead Border3DSize when
15106 border_static is true. Fixes #79537.
15108 * XplatUIOSX.cs: Fix call to GetClientRectangle.
15110 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
15113 2007-01-06 Everaldo Canuto <everaldo@simios.org>
15115 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
15117 2007-01-06 Everaldo Canuto <everaldo@simios.org>
15119 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
15120 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
15123 - border_static field added, it will used to define when a control
15124 theres 3D border but it must be static (thin).
15125 - In GetWindowRectangle use Theme.BorderSize to calculate area
15126 instead of static value 1, by the way use new BorderStaticSize instead
15127 Border3DSize when border_static is true.
15129 * XplatUIX11.cs, XplatUIOSX.cs:
15130 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15132 * Theme.cs: BorderStaticSize field added.
15134 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15136 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15138 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15140 * Control.cs: Under InternalBorderStyle call RecreateHangle to
15141 mimic same behavior than win32 that set border only in CreateParams,
15142 it fix problems under CreateParams overrides. Fix #79442 and partial
15145 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15146 of thi control you must call recreate handle.
15148 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15149 need to do anything as RecreateHangle will take care about borders.
15151 2007-01-05 Mike Kestner <mkestner@novell.com>
15153 * ListView.cs: hack to eliminate Lost/Got focus notifications on
15154 cycles between the ItemControl and parent. Fixes #80388.
15156 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
15158 * Control.cs: Lazy init layout engine. Do not directly use
15159 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15161 2007-01-05 Chris Toshok <toshok@ximian.com>
15163 * DataGrid.cs: don't forceably rebind columns in SetDataSource
15164 unless our list manager has changed (i.e. unless we have reason to
15165 believe our columns have changed). Fixes #80422.
15167 also, disable the call do BindColumns in
15168 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
15169 1.1 the event isn't raised in response to a column addition on a
15172 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15174 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15175 that inheritors can not call it if they choose. Fixes bug #80456.
15177 2007-01-05 Andreia Gaita <avidigal@novell.com>
15179 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
15180 doesn't blow up with a null exception on marshalling.
15182 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15184 * Control.cs: Implement several 2.0 protected properties and methods.
15185 Ensure that all necessary events are being called when properties
15188 2007-01-05 Mike Kestner <mkestner@novell.com>
15190 * ListView.cs: implement PgUp/PgDn for Details view. Also
15191 fixes First/LastVisibleIndex to use the item_control.ClientRect
15192 instead of the parent control. Fixes #80378.
15194 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
15196 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
15197 determine whether to use yard-pound or not (bug #78399).
15199 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15201 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
15202 problems. So it is time to bring back the old popupbutton colors.
15204 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15207 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
15208 property by using the internal information of the
15209 columns order in ListView.
15211 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
15213 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
15214 Add 2.0 Tag properties.
15216 * LinkArea.cs: Add 2.0 ToString method.
15218 2007-01-03 Chris Toshok <toshok@ximian.com>
15220 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
15221 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
15222 when we're editing, which fixes #80047.
15224 2007-01-03 Chris Toshok <toshok@ximian.com>
15226 * Form.cs: apply patch contributed by Dominik Seichter. fixes
15229 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
15231 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
15232 property and implementation.
15234 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
15235 for MdiWindowListItem property.
15237 * ToolStripDropDown.cs: Don't consider hidden menu items while
15238 laying out the menu.
15240 2007-01-03 Andreia Gaita <avidigal@novell.com>
15242 * SendKeys.cs: window handle is not needed in win32, so just
15243 get the active window for X after parsing keys and don't use
15244 it when building the message; it is passed by parameter to the
15245 Xplat method and used there to build the message instead. Also,
15246 wait for events to be processed on SendWait, as opposed to Send,
15247 which doesn't wait :) Playing with threads and Send() completely
15248 hangs on ms.net, only SendWait() works.
15251 X11Display.cs: Check for valid window handle.
15253 2007-01-03 Jackson Harper <jackson@ximian.com>
15255 * TextControl.cs: Need to prevent wrap calculations when replacing
15256 text (this was there before i removed it accidently).
15257 - Don't update the cursor during the positioning, just set it to
15258 selection_start at the end of the operaion.
15260 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15263 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
15265 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15267 * MonthCalendar.cs: Added Click and DoubleClick events again,
15268 but this time they only hide Control's Click and DoubleClick.
15270 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
15272 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
15273 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
15275 2007-01-02 Jackson Harper <jackson@ximian.com>
15277 * TextBoxBase.cs: We move the caret with the split now, so we
15278 don't need to explicitly move the caret after splitting. This
15279 fixes the caret bumping down an extra line on Enter.
15281 2007-01-02 Miguel de Icaza <miguel@novell.com>
15283 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
15286 * ScrollableControl.cs: Add Scroll event.
15288 2007-01-02 Mike Kestner <mkestner@novell.com>
15290 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
15291 to fix all hdr height padding codepaths. Fixes #80207.
15293 2007-01-02 Chris Toshok <toshok@ximian.com>
15295 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15296 setting it to the Control defaults anyway, and it being after the
15297 Dock set was screwing up layout.
15298 (set_Dock): don't short circuit out of setting base.Dock. Also,
15299 no need to call UpdateStatusBar here, as it'll be re-layed out if
15302 2007-01-02 Mike Kestner <mkestner@novell.com>
15304 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15305 to header height for width == -1. Fixes the rest of #80207.
15307 2007-01-02 Mike Kestner <mkestner@novell.com>
15309 * ListView.cs: rework the mouse event forwarding everaldo added
15310 to translate the coordinates to the parent control not
15311 raise the parent events until after we've done our work. Hover
15312 needs more work, in the case where HoverSelection is on, because
15313 the item control receives more than one MouseHover per Enter
15314 event, so we need to ensure only the "first" hover gets forwarded.
15315 Opening a minor bug for that.
15317 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
15319 * CheckedListBox.cs: Fixed SelectionMode to match MS.
15320 * ListControl.cs: Implemented AllowSelection property. Removed extra
15322 * ListBox.cs: Implemented AllowSelection property.
15324 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15326 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15327 SelectedItem, it prevent for errors when you must disable item
15328 before perform click. Fixes #80409.
15330 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15332 * MenuAPI.cs: Prevent second level and beyond submenus to close
15333 until first level when move out side of popup.
15335 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15338 - Down submenu positin in three pixels.
15339 - Closes sub menu when mouse leaves from menu. Fixes #80402.
15341 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15343 * ThemeWin32Classic.cs:
15344 - Fix popup menu size adding one pixel on the top.
15345 - Down menu item border from two to one to mimic Win32.
15346 - Some source identation fixes.
15348 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15350 * ThemeWin32Classic.cs: Use float numbers to calculate size and
15351 position of menu arrows, it fix wrong arrow size.
15353 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15355 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15356 instead of line, it simplify draw operation and fix it using 3D
15357 borders to mimic Win32.
15359 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
15361 * StatusStrip.cs: Add implementation of the sizing grip.
15363 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15364 StatusStrip rendering.
15366 2006-12-31 Chris Toshok <toshok@ximian.com>
15368 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
15369 override the layout style (anchor/dock) of the control. assign to
15370 Dock instead. Fixes bug #80416.
15372 * ToolStrip.cs: same.
15374 2006-12-31 Andreia Gaita <avidigal@novell.com>
15376 * ContainerControl.cs: Use ContainerSelected flag to check if
15377 a Container is directly selected, or if Select is called on a
15378 non-container. If a container is directly selected, focus events
15379 should not be raised.
15380 Apply #80411 patch to throw exception on set_ActiveControl if
15381 control is the same as the current one.
15383 * Control.cs: Use ContainerSelected flag (see above).
15384 Add invalidation check to raise event but not invalidate if
15386 Apply #80411 patch.
15389 2006-12-31 Everaldo Canuto <everaldo@simios.org>
15391 * MenuAPI.cs: After click, dont close popup menu when menu is
15392 ContextMenu. Fixes #80399.
15394 2006-12-30 Chris Toshok <toshok@ximian.com>
15396 * ContainerControl.cs: make sure we throw the exception if the
15397 container control doesn't contain the control we're setting
15400 2006-12-30 Chris Toshok <toshok@ximian.com>
15402 * Control.cs (SetTopLevel): fix the exception raised by
15403 SetTopLevel for child controls.
15404 (set_Anchor): call UpdateDistances when setting the anchor type.
15405 This fixes bug #80336.
15407 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15409 * Theme.cs: For now, revert back to 8pt font.
15411 2006-12-29 Everaldo Canuto <everaldo@simios.org>
15413 * MenuAPI.cs: Set popup as active when open a ContextMenu.
15416 2006-12-29 Chris Toshok <toshok@ximian.com>
15418 * Control.cs: reorder the code in OnResize to give the same event
15421 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
15423 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15424 TileHorizontally and TileVertically.
15426 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
15428 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15429 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15430 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15431 Corrected copyright and email adress.
15433 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15435 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15436 of Exception in FullPath property if no TreeView is associated with
15439 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15441 * Theme.cs: Marked default_font as private, and initialize it in ctor
15442 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15444 * ThemeGtk.cs: Removed default_font intialization.
15445 * ThemeWin32Classic.cs: Removed default_font initialization.
15447 2006-12-28 Chris Toshok <toshok@ximian.com>
15449 * Control.cs: fix a couple of place where we were creating handles
15450 more aggressively than we should be. Fixes ControlRefresh unit
15453 2006-12-28 Chris Toshok <toshok@ximian.com>
15455 * Control.cs: contrary to what the comment said, Control.Dock does
15456 not supercede Control.Anchor - the last one you assign to decides
15457 the layout behavior. so we need to keep track of which was the
15458 last set. Also, fix some of the affected property arguments in
15459 PerformLayout calls, and remove an redundant parent.PerformLayout
15462 Add a VisibleInternal property, which returns is_visible. We
15463 can/should get rid of all the usage of this field elsewhere.
15465 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15467 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15468 control style, not DoubleBuffer. Added UseDoubleBuffering property
15469 that indicates whether doublebuffering is enabled and supported.
15470 (comment from and code based on Gert Driesen's patch in #80324).
15473 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15475 * Control.cs: Fixed a NRE.
15477 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15479 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15482 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15484 * Control.cs: Rewrote double buffering, now a seperate
15485 class handles all the buffering, no Graphics is disposed of
15486 until the painting is finished (earlier implementation
15487 would crash if the control was resized in the OnPaint,
15488 since it would cause the double buffer to be recreated
15489 and the old one disposed), a separate Graphics is
15490 created for every paint (MS behaviour and anyways the state
15491 of the Graphics would have to be saved and restored otherwise)
15493 * XplatUIDriver.cs:
15495 * XplatUI.cs: Added and implemented GetOffscreenGraphics
15496 so that we can get the graphics for the back buffer without
15497 having to create a new one and remove the offscreen_dc parameter
15498 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15500 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15502 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15503 Also make virtual all the key-related methods.
15505 * ListViewItem.cs: Make virtual the key related methods for
15506 ListViewSubItemCollection.
15508 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15512 * ThemeWin32Classic.cs:
15513 * Theme.cs: Initial support for Tile view in ListView,
15514 as well as the implementation of the required bits for it (Item
15517 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15519 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15520 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15521 Provide useful exception messages.
15523 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15525 * TrackBar.cs: Remove a warning.
15526 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15527 when used by DateTimePicker, fixes #80287. This also requires that
15528 MonthCalendar implements it's own drawing for the yearly updown control,
15529 otherwise the Capture tracking would be too complicated. Removed the Click
15530 and DoubleClick events (according to comments they were hiding the base class
15531 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15532 raise these events, not that they cannot be raised. It is possible to raise
15533 them by calling OnClick and OnDoubleClick). Added two internal fields in
15534 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15535 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15536 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15537 event, no longer needed.
15539 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15541 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15542 true if new value differs from current value.
15544 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15546 * Control.cs: ControlCollection.Count must be public. Fixed build of
15549 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15551 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15553 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15555 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15557 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15559 * Control.cs: Invalidates control including when Width and Height is
15560 equal zero or is not visible, only Paint event must be care about
15561 this. Fixes #79913.
15563 2006-12-26 Chris Toshok <toshok@ximian.com>
15565 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15566 more corcompare work.
15568 * DataGridView.cs: fix compiler warning.
15570 * ColumnHeader.cs: some corcompare work, and also take the
15571 opportunity to make the internal fields private.
15573 * ListView.cs: fix the fallout from the above field change.
15575 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15577 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15578 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15579 ToolStripTextBox.cs: Fixes to events and corcompare.
15581 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15583 * ListView.cs: Call owner.OnMousexx event to propagate events from
15584 item to ListView. Fixes #80367.
15586 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15588 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15589 if value is less than one. ItemHeight should not be set to a value
15590 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
15591 Removed extra tabs.
15593 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15595 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15596 * ToolStripStatusLabel.cs: Add Spring for Moma.
15598 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15600 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15601 Fixed code formatting. Removed debug code.
15602 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15604 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15606 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15607 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15608 ArgumentOutOfRangeException if ColumnCount is negative. In
15609 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15610 less than 4 or higher than 32768.
15611 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15612 Fixed FormatProvider to return CurrentCulture unless explicitly set.
15613 Fixed IsFormatProviderDefault to return true if FormatProvider has
15614 not been explicitly set.
15616 2006-12-25 Chris Toshok <toshok@ximian.com>
15618 * Application.cs: add a couple of 2.0 events.
15620 2006-12-25 Chris Toshok <toshok@ximian.com>
15622 * Control.cs: fix compiler warning.
15624 * AxHost.cs: corcompare fixes.
15626 * ApplicationContext.cs: corcompare fixes.
15628 2006-12-25 Chris Toshok <toshok@ximian.com>
15630 * Control.cs: only update dist_right/dist_bottom if the
15631 width/height is > 0. this fixes anchored controls being resized
15632 smaller until they disappear and then resized larger again.
15634 2006-12-25 Chris Toshok <toshok@ximian.com>
15636 * Control.cs: a couple of changes. Remove dist_left and dist_top,
15637 since they're nothing more than X/Left and Y/Top, respectively.
15639 Also, move back to a per-control Bitmap/Graphics for
15640 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15641 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
15644 2006-12-25 Miguel de Icaza <miguel@novell.com>
15646 * MessageBox.cs: Implemented overload that takes a new "bool
15647 displayHelpButton" by adding a new internal field "show_help".
15648 When clicked this will raise the HelpRequested on the owner or the
15651 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15652 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15654 * ListView.cs: Add support ColumnWidthChanged and
15655 ColumnWidthChanging.
15657 Add support for ColumnReordered event.
15658 (ReorderColumn): Add NET_2_0 specific support for cancelling the
15661 Very nice codebase!
15663 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15665 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15667 2006-12-24 Chris Toshok <toshok@ximian.com>
15669 * GridTablesFactory.cs: 2.0 corcompare work.
15671 * ToolStripContainer.cs: add "override" to
15672 ContextMenuStripChanged, and remove the local event object.
15674 * ToolStripDropDown.cs: same with a couple properties.
15676 * ToolStripPanel.cs: same with AutoSizeChanged event.
15678 * TextBoxBase.cs: add "override" to AutoSizeChanged.
15680 * Form.cs: add the remaining 2.0 events, and do some corcompare
15683 * DateTimePicker.cs: add "new" to padding.
15685 * ButtonBase.cs: use Control's use_compatible_text_rendering.
15687 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15689 * DataGridView.cs: PaddingChanged is overridden.
15691 2006-12-24 Chris Toshok <toshok@ximian.com>
15693 * Control.cs: corecompare work here too.
15695 * DataGridViewElement.cs, DataGridView.cs,
15696 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15697 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15698 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15699 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15702 2006-12-24 Miguel de Icaza <miguel@novell.com>
15704 * Control.cs: Switched the error message on the console for a
15705 todo. A review of the code will have to cope with this anyways
15706 (since its a large feature, it is in our radar) and it was
15707 producing too much output when running PDN.
15709 * ToolStripComboBox.cs: Set the text when the SelectedIndex
15710 changes. Applications depend on this (PDN 2.72)
15712 2006-12-23 Chris Toshok <toshok@ximian.com>
15714 * TableLayoutSettings.cs: finish up the corcompare work for this
15717 2006-12-23 Chris Toshok <toshok@ximian.com>
15719 * Control.cs: make SetImplicitBounds internal, do some futzing
15720 with LayoutEngine so that it's available in 1.1, and remove the
15721 entire duplicated code mess from PerformLayout. Use
15722 System.Windows.Forms.Layout.DefaultLayout instead.
15724 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15726 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15728 * Form.cs: Add MainMenuStrip property.
15730 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15732 * Control.cs: Add ContextMenuStrip property and implementation.
15733 Fix ContextMenu implementation to show menu centered on control when
15734 activated using the keyboard instead of showing at screen (0,0).
15736 * ToolStripDropDown.cs: Fix needed overload of Show ().
15738 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15740 * Menu.cs: Name property added for 2.0 profile.
15742 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15744 * Menu.cs: Update information about FindMenuItem, method to be
15747 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15749 * MenuAPI.cs: When deselect items deselect also selected subitems.
15751 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15753 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15754 FindSubItemByCoord to found itens that is not active, also an
15755 cheking added to FindSubItemByCoord to search for items only
15756 in visible popup windows. Fixes #80274.
15758 2006-12-22 Everaldo Canuto <everaldo@simios.org>
15760 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15761 internal property, it be care about change ExStyle.
15763 2006-12-22 Andreia Gaita <avidigal@novell.com>
15765 * ContainerControl.cs: set activeControl for parent forms up the
15766 tree when the new activecontrol is a container.
15767 When validating the active control, if it is a container, also
15768 raise up the validation for it's active control. Fixes #80280
15770 * Control.cs: Add internal property flag and check to prevent
15771 Focus events from getting raised when Select() is called for
15772 a ContainerControl. There are still too many focus events being
15773 raised at the moment though.
15774 Cleaned up the code a bit.
15776 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15778 * Control.cs: Added all missing 2.0 events.and
15779 fixed a couple of corcompare issues.
15780 * TrackBar.cs: Implemented missing 2.0 bits.
15781 * MonthCalendar.cs,
15782 * DateTimePicker.cs,
15783 * MdiClient.cs: Fixed some corcompare issues.
15785 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15787 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15788 SplitterPanel.cs: corecompare work.
15790 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15792 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15793 Clean up warnings for BackgroundImageChanged and PaddingChanged
15794 events now that they are implemented in Control.cs.
15796 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15798 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15800 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15801 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15802 of TableLayoutPanel and supporting cast.
15804 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15807 - GrabWindow now confines the mouse pointer to the confine window.
15808 - Added Win32ClipCursor and Win32GetClipCursor.
15811 - Added CaptureWithConfine to be able to capture and confine
15814 * InternalWindowManager.cs:
15815 - Call CaptureWithConfine instead of Capture if we're an
15816 MdiChild (fixes #79982).
15818 2006-12-21 Chris Toshok <toshok@ximian.com>
15820 * DataGrid.cs: guard against the initial state of selection, where
15821 selection_start == -1. make sure we only select from index >= 0.
15824 2006-12-21 Chris Toshok <toshok@ximian.com>
15826 * Control.cs: we don't need to be so draconian with
15827 UpdateDistances, and we thusly don't need to call it before
15828 calling PerformLayout in ResumeLayout. Fixes bug #80289.
15830 2006-12-21 Daniel Nauck <dna@mono-project.de>
15833 TextBox.cs: Implemented AutoComplete properties.
15835 2006-12-20 Chris Toshok <toshok@ximian.com>
15837 * DataGridView*.cs: some corecompare work.
15839 2006-12-20 Jackson Harper <jackson@ximian.com>
15841 * XplatUIX11.cs: We need to hide the caret when deleting it,
15842 otherwise you get carets left lying around everywhere.
15843 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
15844 prevents getting some weird half drawn caret tracers when
15846 * TextControl.cs: Attempt to reduce the number of times we need to
15847 recreate the caret.
15849 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
15851 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
15853 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15855 * DateTimePicker.cs:
15856 - Implemented missing 2.0 bits.
15857 - Changed some default values to match MS.
15859 2006-12-20 Jackson Harper <jackson@ximian.com>
15861 * TextBoxBase.cs: When changing the font across the document we
15862 can't recalculate after changing each line, since that will cahnge
15864 - PreferredHeight is a little different than i thought.
15865 - When backspacing, move the caret before we do the actual char
15866 delete, because when that delete crosses a wrap boundary the
15867 positional information will change.
15869 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15871 * Control.cs: Added some missing 2.0 bits:
15872 BackgroundImageLayout, BackgroundImageLayoutChanged,
15873 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
15874 add IBindableComponent and IDropTarget implementation.
15876 * MonthCalendar.cs:
15877 - Added all missing 2.0 features:
15878 BackgroundImageLayout, RightToLeftLayout,
15879 OnHandleDestroyed, RightToLeftLayoutChanged,
15880 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
15882 - Rewrote all the BoldDate code, it was completely broken.
15883 - Fixed all the tests (the tests can now be re-enabled, the
15884 problems were not with the tests, but with the control, it was
15887 * DateTimePicker.cs: Changed the location where the
15888 MonthCalendar is shown.
15890 2006-12-19 Chris Toshok <toshok@ximian.com>
15892 * DataGridView.cs: add IDropTarget implementation.
15894 * ToolStripPanel.cs: add IDropTarget implementation.
15896 2006-12-19 Jackson Harper <jackson@ximian.com>
15898 * TextControl.cs: soft now means something different than what it
15899 used to mean, we want to move the caret regardless of whether or
15900 not this break was soft (would we really have wanted the caret
15901 to not move with the break in the old context?)
15902 * TreeView.cs: Make sure we factor in the vert scrollbar when
15903 calculating the horizontal scrollbar's maximum.
15905 2006-12-19 Andreia Gaita <avidigal@novell.org>
15907 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
15908 check for keywords in alternate casing, close bug #80049.
15910 2006-12-19 Chris Toshok <toshok@ximian.com>
15912 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
15913 methods (which all do nothing).
15915 * IDropTarget.cs: add the 4 missing methods.
15917 2006-12-19 Chris Toshok <toshok@ximian.com>
15919 * TableLayoutRowStyleCollection.cs: corcompare work.
15921 * TableLayoutSettings.cs: same.
15923 * TableLayoutStyle.cs: same.
15925 * TableLayoutColumnStyleCollection.cs: same.
15927 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
15929 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15930 TableLayoutPanel I've had in my local tree for way too long.
15932 2006-12-19 Miguel de Icaza <miguel@novell.com>
15934 * TableLayoutSettings.cs: Finish the public API (still needs all
15935 the logic to update on changes).
15937 * TableLayoutPanelCellPosition.cs: new file.
15939 * TableLayoutRowStyleCollection.cs,
15940 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15941 TableLayoutSettings.cs: Track the final 2.0 table api.
15943 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15945 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15946 and Image List 2.0 members for ColummnHeader.
15947 * ListView.cs: Add key-related 2.0 methods for
15948 ColumnHeaderCollection.
15950 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15952 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15953 ArgumentNullException if items argument is null. Ignore null item in
15954 arrays. Removed extra tabs.
15956 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15958 * MonthCalendar.cs: Fixed InvalidCastException.
15960 2006-12-19 Jackson Harper <jackson@ximian.com>
15962 * TextControl.cs: Don't increment the position here.
15963 - When calculating char positions only add in the line break size
15964 for hard line breaks.
15966 2006-12-19 Andreia Gaita <avidigal@novell.org>
15968 * SendKeys.cs: Changed some things to match ms.net behaviour
15969 when parsing shifted capital letters.
15971 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
15972 Add window handle as parameter to SendInput. X11 needs the
15973 window handle, and the handle being passed to it in the keys
15974 queue is the active control handle (which windows needs), not
15977 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
15978 to support SendKeys on X.
15980 * X11Keyboard: Implement helper method to lookup a linux keycode
15981 given the virtual keycode. Added table of keycode-2-virtualkey
15982 values to support this.
15984 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15986 * ListView.cs: Add support for SelectedIndexCollection
15987 and SelectedItemCollection 2.0 methods. Implement support
15989 * ListViewItem.cs: Add support for ListViewSubItemCollection
15990 2.0 methods. Also, fix an incorrect behavior of AddRange method
15991 (it shouldn't call Clear).
15992 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15994 2006-12-19 Jackson Harper <jackson@ximian.com>
15997 * TextBoxBase.cs: New args for FormatText
15998 * TextControl.cs: Rewrote the main drawing method, this version
15999 feels a little easier to understand and debug to me. Hopefully it
16000 does to others also
16001 - Fix FormatText to OR in the new formating values. Added
16002 FormatSpecified param, basically this works in the same way as
16003 BoundsSpecified in Control.
16004 - Set the caret properties when the caret is positioned.
16005 - When wrapping text make sure that we calculate the width of the
16007 - when calculating alignments we might have wrapped down to the
16008 next line, so don't search for an individual tag, search for the
16010 - We need to invalidate the selection area when we replace the
16013 2006-12-19 Daniel Nauck <dna@mono-project.de>
16015 * Application.cs: add Restart () 2.0 support
16017 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16019 * MenuItem.cs: Invalidate menu item rectangle after change Enable
16020 property. Fixes #80268.
16022 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16024 * MenuAPI.cs: Dont trigger select event when closes top menu
16025 item. Fixes #80270.
16027 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16029 * MenuAPI.cs: When you click on menuitem only trigger onselect
16030 event for top menu itens. Fixes #80271.
16032 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16034 * MdiWindowManager.cs: Make IconicBounds depend on
16035 the bottom of MdiClient, not the top (fixes #80267)
16037 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16039 * MdiClient.cs: Added missing 2.0 attribute
16041 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16043 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
16044 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
16046 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16048 * MenuAPI.cs: Fix click when menuitem is not popup,
16049 this regression was caused by last commit (#80272).
16051 2006-12-17 Everaldo Canuto <everaldo@simios.org>
16053 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
16054 fire click event or close menu. Fixes #80272.
16056 2006-12-17 Daniel Nauck <dna@mono-project.de>
16058 * ListViewHitTestInfo.cs: add
16060 2006-12-17 Daniel Nauck <dna@mono-project.de>
16062 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
16063 * FlatButtonAppearance.cs: add
16064 * DockingAttribute.cs: add
16066 2006-12-17 Chris Toshok <toshok@ximian.com>
16068 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
16069 and rebind our columns when it does - this way, if you make
16070 changes to the DataTable (or set the Table attribute on a DataView
16071 after setting it as the DataGrid's DataSource, the changes are
16072 made visible.) Fixes bug #80107.
16074 2006-12-17 Daniel Nauck <dna@mono-project.de>
16076 * ListViewGroup.cs: add internal Location property for layouting.
16077 * Theme.cs: add abstract ListViewGroupHeight function.
16078 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
16080 2006-12-16 Andreia Gaita <avidigal@novell.com>
16082 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
16083 Added reset of selected index to 0 when adding first tab page.
16086 * NumericUpDown.cs: Fix NET_2_0 check
16088 2006-12-16 Daniel Nauck <dna@mono-project.de>
16090 * ListViewGroup.cs: fixed DefaultValueAttribute value
16092 2006-12-16 Daniel Nauck <dna@mono-project.de>
16094 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
16096 2006-12-15 Miguel de Icaza <miguel@novell.com>
16098 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
16099 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
16100 ScrollableControl.cs: Add a handful of methods that are
16103 2006-12-15 Chris Toshok <toshok@ximian.com>
16105 * XplatUIWin32.cs: initial implementation of the Reversible
16106 drawing functions. there are some problems. DrawReversibleFrame
16107 doesn't seem to work at all for Dashed FrameStyle, and in the
16108 Thick case there are drawing errors at the corners (we probably
16109 need to bind Rectangle instead of doing moveto/lineto's.)
16111 2006-12-16 Andreia Gaita <avidigal@novell.com>
16113 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
16114 to send blocks of key messages. Send accumulates keys to send with Flush,
16115 while SendWait sends all keys immediately.
16117 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16118 XplatUIX11.cs, XplatUIX11-new.cs:
16119 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
16120 to Win32 SendInput.
16121 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
16123 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
16124 testing for ms.net on this class is very tricky, as the tests run too fast
16125 to allow the hook to release, essentially freezing the keyboard and the
16126 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
16129 2006-12-16 Daniel Nauck <dna@mono-project.de>
16131 * Padding.cs: fixed serialization compability to MS ("_var" field names),
16132 added missing attributes.
16134 2006-12-15 Daniel Nauck <dna@mono-project.de>
16136 * ListViewGroup.cs: Added missing attributes.
16137 * ListViewGroupCollection.cs: Added missing attributes.
16139 2006-12-15 Daniel Nauck <dna@mono-project.de>
16141 * ListViewItem.cs: fixed ListViewSubItem text property.
16143 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16145 * Control.cs: Added missing 2.0 attributes
16147 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16149 * MdiClient.cs: Added missing 2.0 attribute.
16150 * MonthCalendar.cs: Added some missing 2.0 attributes
16153 2006-12-15 Daniel Nauck <dna@mono-project.de>
16155 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16157 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
16159 * MainMenu.cs: Add the new 2.0 constructor to help out people
16160 using the MainMenu in VS2005.
16162 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16164 * MdiChildContext.cs: Removed it, no longer used.
16165 * MdiClient.cs: Added missing 2.0 attributes.
16167 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16169 * InternalWindowManager.cs: Fix a NullRef with previous
16170 changes for toolwindows.
16172 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16175 - Added AfterTopMostControl to allow for certain controls
16176 to always stay on top when normal controls are brought to
16180 - (DrawInversibleRectangle): Get window rectangle from Win32
16181 in stead of from control, since Win32 doesn't calculate
16182 screen coords correctly from control's Location if it
16183 have docked siblings.
16185 * MdiWindowManager.cs:
16186 - Correct the control menu popup location when clicked on
16187 the maximized form icon. (fixes #80223.1)
16188 - Don't show moving rectangle if mouse hasn't moved from
16189 the original clicked point.
16190 - Removed FormGotFocus handler (not used).
16191 - Calculate the control buttons location from the main
16192 window's size and not client size (fixes #79770).
16193 - Form is now closed when the form icon is double-clicked
16195 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
16197 * InternalWindowManager.cs:
16198 - Moved some MDI-only methods to MdiWindowManager.
16199 - Removed unused properties and methods.
16200 - Unified method naming for methods handling wm messages.
16201 - Moved all message handling to seperate methods for
16204 * ThemeWin32Classic.cs:
16205 - DrawManagedWindowDecorations now draws the title bar
16206 with a gradient brush.
16207 - Add a CPDrawButtonInternal that allows us to specify
16208 light, normal and dark colors for the buttons (control
16209 buttons for MDI children were drawn with the same light
16210 color as the background, therefore loosing the 3D effect).
16213 - Add a CapturedControl property that is used to
16214 determine the control to resize (defaults to parent).
16215 Needed for MdiClient, since its SizeGrip's parent is
16216 MdiClient, but the control to resize is the main form.
16219 - Set SizeGrip's CapturedControl to the main form in order
16220 to resize the main form and not the MdiClient.
16221 - Override AfterTopMostControl to leave the scrollbars
16224 2006-12-15 Daniel Nauck <dna@mono-project.de>
16226 * ListView.cs: fixed ListViewItemCollection AddRange and
16227 implemented ListViewItemCollection AddRange 2.0 support.
16229 2006-12-15 Daniel Nauck <dna@mono-project.de>
16231 * ListViewGroup.cs: Add.
16232 * ListViewGroupCollection.cs: Add
16233 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
16234 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
16235 stub for ImageKey 2.0 support.
16237 2006-12-14 Mike Kestner <mkestner@novell.com>
16239 * ListView.cs: add text padding to the autocalculation for columns
16240 of width -2. Fixes #80207.
16242 2006-12-14 Mike Kestner <mkestner@novell.com>
16244 * ListView.cs: add some index guarding for partial row navigation
16245 logic. Fixes #80250.
16247 2006-12-14 Mike Kestner <mkestner@novell.com>
16249 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
16250 are added or inserted to the collection. Fixes #81099.
16252 2006-12-13 Everaldo Canuto <everaldo@simios.org>
16254 * MenuAPI.cs: Closes menu when right click out side of popup
16255 it fix problem in ContextMenu and MainMenu. Fixes #80252.
16257 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16259 * ListViewItem.cs: Fix dumb error.
16261 * ListView.cs: Add Find and ContainsKey methods in
16262 ListViewItemCollection, and also return true for IsReadOnly
16263 and IsFixedSize (changes for 2.0).
16265 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
16267 * Control.cs: Allow Region to be set to null.
16269 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16271 * MdiWindowManager.cs: Remove unused (commented out) code.
16272 * Form.cs: When the MdiChild is maximized, the form needs
16273 WM_NCMOUSELEAVE, so request it.
16274 * InternalWindowManager.cs:
16275 - Added tooltips to control buttons.
16276 - Removed duplicated control button handling code.
16277 - Removed unused (commented out) code.
16279 2006-12-12 Everaldo Canuto <everaldo@simios.org>
16281 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
16282 was used because we must set cursor without trigger ChangeCursor event
16283 and without change Cursor control property. Fixes #79963.
16285 2006-12-12 Andreia Gaita <avidigal@novell.com>
16287 * Control.cs: Check if Region setter value is null, and ignore
16289 2006-12-12 Jackson Harper <jackson@ximian.com>
16291 * TextControl.cs: We were almost always drawing one more line then
16292 needed, since the GetLineByPixel will return the last line found
16293 at that pixel. In most cases though, we were invalidating up to
16294 the junction between two lines.
16295 - Improve debug code.
16297 2006-12-12 Chris Toshok <toshok@ximian.com>
16299 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16300 and FillReversibleRectangle.
16302 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16303 and FillReversibleRectangle.
16305 * XplatUIWin32.cs: add stubs which do nothing for
16306 DrawReversibleFrame, DrawReversibleLine, and
16307 FillReversibleRectangle.
16309 * XplatUIOSX.cs: add stubs which raise NIE for
16310 DrawReversibleFrame, DrawReversibleLine, and
16311 FillReversibleRectangle.
16313 * XplatUIX11.cs: add working implementation for
16314 DrawReversibleFrame, DrawReversibleLine, and
16315 FillReversibleRectangle.
16317 * ControlPaint.cs: implement DrawReversibleFrame,
16318 DrawReversibleLine, and FillReversibleRectangle, by calling into
16319 the appropriate XplatUI method.
16321 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16323 * Form.cs: Make MdiClient have the focus even if it's
16324 not selectable, since it should receive WM_KEY* and WM_MOUSE
16325 messages. Fixes #79907.
16327 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16329 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16330 queried after the window is created.
16332 * XplatUIX11.cs: Added SendParentNotify to implement
16333 WM_PARENTNOTIFY logic. Fixes #79965.
16335 * Control.cs: Added MakeParam.
16337 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16339 * MdiClient.cs: Resume Layout before setting window
16340 states (fixes #80201).
16342 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16344 * MenuAPI.cs: Deselect a menu item after performing
16345 the click (fixes #80197).
16347 2006-12-11 Jackson Harper <jackson@ximian.com>
16349 * TextBoxBase.cs: We need to cap this value, since Maximum -
16350 ViewPortHeight can be less than zero.
16351 - Only do selection with the left mouse button.
16352 * TextBox.cs: Don't tell the world that we have a context menu.
16353 * Control.cs: New method so that we can control whether or not the
16354 context menu is visible outside MWF.
16356 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16358 * ToolBarButton.cs: Fix text positon.
16360 2006-12-11 Miguel de Icaza <miguel@novell.com>
16362 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16364 * Control.cs (DoubleBuffered): Add implementation.
16366 * Application.cs (OpenForms): Add.
16368 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16370 * Form.cs: Use opacity instead of Opactiy to determine if we need
16371 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
16373 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16375 * Control.cs: Fix NRE if Control.Site was set to null.
16377 2006-12-11 Chris Toshok <toshok@ximian.com>
16379 * Control.cs: ControlCollection.Remove should return if the arg is
16380 null, and ControlCollection.SetChildIndex should raise a ANE.
16382 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
16384 * Control.cs: Verify value set for Dock property. Code formatting
16387 2006-12-11 Jackson Harper <jackson@ximian.com>
16389 * TextControl.cs: Draw the caret and the selection when a flag is
16391 * TextBoxBase.cs: We want to draw the caret and the selection for
16392 TextBox but not for TextBoxBase.
16393 - If the window is resized and scrolling is no longer needed (the
16394 whole doc is visible) set the scroll position to zero.
16395 - The default SelectWord (the one TextBox uses) should move the
16396 caret to the end of the word.
16397 - SelectAll moves the caret to the end of the selection.
16398 * TextBox.cs: We don't selectall on focus, we just do it when the
16399 control is created.
16401 2006-12-11 Mike Kestner <mkestner@novell.com>
16403 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16405 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16407 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
16409 * ListViewItem.cs: Add Name 2.0 property.
16411 2006-12-11 Andreia Gaita <avidigal@novell.com>
16413 * TabControl.cs: Set visibility on selected or default tab
16414 when tabcontrol handle is created, so that it's contents
16415 actually show up (duh). Fixes #80193
16416 Don't redraw the control if there is no handle created, as
16417 the selected index might be completely invalid. Added some tests
16420 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16422 * ToolBar.cs: Uses maximun width and height of all buttons as
16423 button rectangle when ButtonSize specified, it looks strange but
16424 is what happens in Win32. Fixes #80189.
16426 2006-12-11 Jackson Harper <jackson@ximian.com>
16428 * TextControl.cs: Need to track undo levels ourself, since
16429 compound actions will mess them up.
16431 2006-12-10 Andreia Gaita <avidigal@novell.com>
16433 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16434 SelectedIndex value is changed (even if it's not valid).
16435 Reset SelectedIndex to 0 when the handle is created and if
16436 the current index is invalid.
16437 Fixes SelectdeIndex unit tests and #80128
16439 2006-12-08 Chris Toshok <toshok@ximian.com>
16441 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16442 calls EndEdit, it needs to be called before we set current_cell to
16443 its new value. Otherwise, we end up committing the value in the
16444 textbox to the new cell as well. Fixes bug #80160.
16446 2006-12-08 Chris Toshok <toshok@ximian.com>
16448 * Form.cs (set_CancelButton): if the button's DialogResult is
16449 None, set it to Cancel. Fixes bug 80180.
16451 2006-12-08 Jackson Harper <jackson@ximian.com>
16453 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16454 to watch ourselves when setting the canvas size and setting the
16457 2006-12-08 Chris Toshok <toshok@ximian.com>
16459 * DataGrid.cs: comment out the two MakeTransparent calls for the
16460 time being so people using trunk (and not 1.2.2) on windows can
16461 actually use the datagrid. This deals with bug #80151.
16463 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16465 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16466 Graphics.DrawImage (image, int, int, int, int) overload instead
16467 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
16468 the dpi difference and was blurring images it drew.
16471 2006-12-08 Chris Toshok <toshok@ximian.com>
16473 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16474 rowcnt is 0 (such as with an empty datasource), and make sure we
16475 initialize not_usedarea.Y to cells.Y, so we don't draw over the
16476 other areas (caption, parent row, etc, etc). Fixes bug #80095.
16478 2006-12-08 Chris Toshok <toshok@ximian.com>
16480 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16483 2006-12-08 Chris Toshok <toshok@ximian.com>
16485 [ Fixes bug #80167 ]
16487 * ThemeWin32Classic.cs: don't draw the image if the button's flat
16488 style is FlatStyle.System.
16490 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16491 ButtonBase.flat_style private, and switch uses of it to the public
16494 2006-12-08 Chris Toshok <toshok@ximian.com>
16496 [ Fixes bug #80121 ]
16498 * ThemeWin32Classic.cs: center the caption text in the datagrid
16501 * DataGrid.cs: lessen the amount we add to the caption height from
16502 6 to 2. 6 was making it huge.
16504 2006-12-08 Andreia Gaita <avidigal@novell.com>
16506 * UpDownBase: Handle MouseWheel call directly instead of capturing
16507 the inner textbox's OnMouseWheel. Fixes #80166
16509 2006-12-08 Jackson Harper <jackson@ximian.com>
16511 * TextControl.cs: We need to invalidate the textbox when we empty
16512 it (how had this not been discovered before?)
16514 2006-12-08 Jackson Harper <jackson@ximian.com>
16516 * TextBoxBase.cs: Reworked the mouse down code so I could get it
16517 to behave like MS, we now ignore the eventargs.Click and just
16518 track state ourself, which we were already doing anyways.
16519 - Constrain the double click handler to the double click size.
16521 2006-12-08 Chris Toshok <toshok@ximian.com>
16523 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16524 direction if that scrollbar isn't shown. fixes bug #80158.
16526 2006-12-08 Andreia Gaita <avidigal@novell.com>
16528 * NumericUpDown.cs: Update value on getter. Fixes #79950
16530 2006-12-08 Chris Toshok <toshok@ximian.com>
16532 * MenuItem.cs: add back in the event cloning code. I didn't know
16533 how to do it in the face of the EventHandlerList work i'd done
16534 last week. Fixes bug #80183.
16536 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16538 * Control.cs: Add an invalidate to the BackgroundImage setter.
16541 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16543 * ToolStrip*: Add some small properties reported by MoMA, fix event
16544 firing and default properties based off of unit tests, and add some
16545 attributes based off of the class status page.
16547 2006-12-07 Jackson Harper <jackson@ximian.com>
16549 * TextBoxBase.cs: Take HideSelection into account when determining
16550 whether or not to show the selection.
16551 * RichTextBox.cs: After inserting the RTF into the document move
16552 the cursor to the beginning of the document.
16554 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16556 * Control.cs: Remove static ArrayList "controls" which maintained
16557 a reference to every control created.
16558 * Application.cs: Create a static FormCollection to maintain a reference
16559 to every form created. Use it in places that formerly enumerated through
16560 the controls one looking for forms.
16561 * Form.cs: Add and remove self from above FormCollection.
16563 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
16565 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16566 not libgdk (though it makes me wonder why I didn't have any
16569 2006-12-07 Chris Toshok <toshok@ximian.com>
16571 [ you had to know this was coming after that last commit...]
16573 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16574 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16575 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16578 2006-12-07 Chris Toshok <toshok@ximian.com>
16580 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16581 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16582 all the behavior we need for double buffering.
16584 * XplatUIDriver.cs: implement the 3 double buffer methods using a
16585 client side Bitmap, just like the old Control-based double buffer
16586 code did. The methods are virtual, so each XplatUI driver
16587 subclass can replace the implementation to use a faster, platform
16590 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16591 double buffer code, and clean things up a bit in the process.
16593 2006-12-06 Chris Toshok <toshok@ximian.com>
16595 * Control.cs: reindent WndProc.
16597 2006-12-06 Chris Toshok <toshok@ximian.com>
16599 [ I wanna be like BenM when I grow up ]
16601 * Hwnd.cs: create a single static Graphics object on the static
16602 Bitmap we create. use this for our text measurements.
16604 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16605 This was causing us to allocate a backbuffer for every control,
16606 even when it wasn't flagged as double buffered. Instead use the
16607 single graphics instance. This might have implications for
16608 multithreaded applications. If we run into problems we can switch
16609 to creating 1 Graphics per control, on the static Hwnd bitmap.
16611 this change nets us a 7M savings in private dirty mappings when
16612 running FormsTest.exe.
16614 2006-12-06 Chris Toshok <toshok@ximian.com>
16616 * ListView.cs: the BackgroundImage override is just to set
16617 attributes. chain up to base.BackgroundImage.
16619 * RichTextBox.cs: same.
16621 * ToolBar.cs: same, but we need to also redraw the toolbar when it
16622 changes, so instead a handler for BackgroundImageChanged.
16624 * Control.cs: make background_image private.
16626 2006-12-06 Chris Toshok <toshok@ximian.com>
16628 * ScrollBar.cs: change the assignment of cursor to Cursor. not
16629 sure we even need this assignment, but roll with it for now.
16631 * Control.cs: make the cursor field private.
16633 2006-12-06 Chris Toshok <toshok@ximian.com>
16635 * Form.cs: we don't need to explicitly set ImeMode to
16636 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16637 behavior in the face of ImeMode.Inherit.
16639 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16640 change the ctor's assignment to use ImeMode instead of ime_mode.
16642 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16643 ImeModeInherit. Only check for the parent's imemode (and return
16644 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16645 This fixes the button unit test, which sets both ImeMode and
16646 DefaultImeMode to ImeMode.Disable.
16648 also make the ime_mode field private.
16650 2006-12-06 Chris Toshok <toshok@ximian.com>
16652 * Control.cs: make control_style private.
16654 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
16655 setting the styles to true, then setting them to false instead of
16656 reverting to their previous values.
16658 also, call SetStyle on the scrollbars instead of using
16659 control_style directly.
16661 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
16663 * FormCollection.cs: Implement. [2.0]
16665 2006-12-06 Chris Toshok <toshok@ximian.com>
16667 * Control.cs: make tab_stop private.
16669 * Label.cs: set TabStop, not tab_stop. reformat some event
16670 add/remove methods to make them more compact.
16672 2006-12-06 Chris Toshok <toshok@ximian.com>
16674 * RadioButton.cs: fix TabStop handling.
16676 2006-12-06 Chris Toshok <toshok@ximian.com>
16678 * TextBox.cs: remove the explicit assignments to has_focus.
16681 * ButtonBase.cs: remove the assignment to has_focus. Control will
16684 2006-12-06 Chris Toshok <toshok@ximian.com>
16686 * ButtonBase.cs: remove all uses of is_enabled from this code.
16687 it's always true when any of the code containing the checks is
16690 2006-12-06 Chris Toshok <toshok@ximian.com>
16692 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16693 with different semantics (some are present in both 1.1 and 2.0
16694 profiles) so that we match MS's behavior in our unit tests.
16696 2006-12-06 Jackson Harper <jackson@ximian.com>
16698 * TextControl.cs: Make this operation undoable.
16699 * TextBoxBase.cs: Factor the border width into the preferred
16701 - implement Modified as per the spec.
16703 2006-12-06 Chris Toshok <toshok@ximian.com>
16705 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16707 2006-12-06 Chris Toshok <toshok@ximian.com>
16709 * Control.cs: make right_to_left and context_menu fields private.
16711 2006-12-06 Chris Toshok <toshok@ximian.com>
16713 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16714 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16715 Control.child_controls private. switch all uses over to
16718 2006-12-06 Chris Toshok <toshok@ximian.com>
16720 * System.Windows.Forms/GroupBox.cs,
16721 System.Windows.Forms/AccessibleObject.cs,
16722 System.Windows.Forms/ErrorProvider.cs,
16723 System.Windows.Forms/Control.cs,
16724 System.Windows.Forms/UpDownBase.cs,
16725 System.Windows.Forms/ScrollBar.cs,
16726 System.Windows.Forms/DateTimePicker.cs,
16727 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16728 System.Windows.Forms/ToolTip.cs,
16729 System.Windows.Forms/RadioButton.cs,
16730 System.Windows.Forms/LinkLabel.cs,
16731 System.Windows.Forms/Splitter.cs,
16732 System.Windows.Forms/TextBoxBase.cs,
16733 System.Windows.Forms/ToolStripTextBox.cs,
16734 System.Windows.Forms/ContainerControl.cs,
16735 System.Windows.Forms/ThemeWin32Classic.cs,
16736 System.Windows.Forms/SizeGrip.cs,
16737 System.Windows.Forms/ToolStripDropDown.cs,
16738 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16739 private. switch all uses over to Control.Parent.
16741 2006-12-06 Chris Toshok <toshok@ximian.com>
16743 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16744 Control does this before calling emitting these events.
16746 * TabControl.cs: same.
16748 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16749 Control.client_rect.
16751 * ButtonBase.cs: use the ClientSize property instead of the
16754 * ScrollableControl.cs: same.
16756 * Control.cs: another pass at making properties private. also,
16757 move the initialization of tab_stop to the ctor.
16759 2006-12-05 Andreia Gaita <avidigal@novell.com>
16761 * TabControl.cs: Let the selected index be set freely if the
16762 control handle is not yet created.
16764 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16766 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
16767 internal until I can rewrite DefaultLayout.
16768 * ToolStrip.cs: Fix build error and some general cleaning.
16769 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16770 Fix build errors caused by making some of Control's fields private.
16772 2006-12-05 Jackson Harper <jackson@ximian.com>
16774 * TextControl.cs: Redo Insert a little so that it use IndexOf
16775 instead of Split, this prevents it from messing up on things like
16776 \n\n\n. Also more effecient since the split array doesn't need to
16778 * TextBoxBase.cs: AppendText doesnt handle multiline and non
16779 multiline text differently, this is the first of many fixes that
16780 will make multiline/non-multiline the same thing as far as the
16781 TextBoxBase is concerned.
16782 - Don't split the text and insert lines, this can lose some line
16783 endings (like is the last line a soft or hard break). Instead use
16785 - Fix an off by one when combining all the lines in the Text
16787 - Remove separate multiline handling from the Text getter/setter.
16789 2006-12-05 Chris Toshok <toshok@ximian.com>
16791 * ButtonBase.cs: a few changes:
16793 - don't reinitialize internal Control fields in the ctor when they
16794 have the same values as Control sets them.
16796 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
16797 this before calling those methods.
16799 - we don't need to call Refresh for anything. use Invalidate
16802 - OnEnabledChanged doesn't need to redraw at all - Control.cs
16803 calls Refresh in its OnEnabledChanged.
16805 - several of the events we were registered for in the ctor to
16806 redraw ourselves already include calls to Invalidate in the
16807 property setters that raise the events. remove the extra
16810 - reformat a switch statement that was 83274658 columns wide.
16812 2006-12-05 Mike Kestner <mkestner@novell.com>
16814 * ComboBox.cs: fix a unit test regression from a TextBox
16815 SelectionLength return of -1 when there's no selection.
16817 2006-12-05 Chris Toshok <toshok@ximian.com>
16819 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16820 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16821 cleaning up some of the internal Control fields being used by
16824 2006-12-05 Mike Kestner <mkestner@novell.com>
16826 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
16827 listbox after AddImplicit calls since it defaults to hidden. Add a
16828 hack to preserve requested heights across DropDownStyle changes.
16830 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16832 * PropertyGrid.cs: Hide FindFirstItem method from public API.
16834 2006-12-05 Chris Toshok <toshok@ximian.com>
16836 * DataGridView.cs: fix compiler warnings.
16838 * PrintControllerWithStatusDialog.cs: same.
16840 * ToolBar.cs: same.
16842 * FolderBrowserDialog.cs: same.
16844 * Splitter.cs: same.
16846 * DataGridViewComboBoxCell.cs: same.
16848 * XplatUIWin32.cs: same.
16850 * PictureBox.cs: same.
16852 * Win32DnD.cs: same.
16854 * PageSetupDialog.cs: same.
16856 * FileDialog.cs: same.
16858 * PrintDialog.cs: same.
16860 * DataGridTextBoxColumn.cs: same.
16862 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
16864 2006-12-05 Chris Toshok <toshok@ximian.com>
16866 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
16867 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
16868 System.ComponentModel.EventHandlerList work.
16870 2006-12-05 Jonathan Chambers <joncham@gmail.com>
16872 * DrawTreeNodeEventArgs.cs: Added.
16874 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16876 * InternalWindowManager.cs: Remove an unused field.
16878 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16880 * InternalWindowManager.cs:
16881 - Save the point where the title bar is clicked.
16883 * MdiWindowManager.cs:
16884 - Only allow moving of the window as long as the
16885 clicked point on the title bar does not get out of
16886 MdiClient's rectangle. Fixes #79982.
16889 - Added Horizontal/VerticalScrollbarVisible.
16890 - Simplified the scrollbar sizing algorithm.
16891 - Cache the difference in scrolled value in
16892 H/VBarValueChanged and move the calculation out
16895 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16897 * Control.cs: Make the Console.WriteLine in WndProc
16900 2006-12-05 Chris Toshok <toshok@ximian.com>
16902 * ToolStripManager.cs, ToolStripButton.cs,
16903 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
16904 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
16905 ToolStripSplitButton.cs, ToolStripSeparator.cs,
16906 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
16907 ToolStripProgressBar.cs, ToolStripContainer.cs,
16908 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
16909 to using System.ComponentModel.EventHandlerList.
16911 2006-12-04 Chris Toshok <toshok@ximian.com>
16913 * LinkLabel.cs: fix up compiler warnings.
16915 * TableLayoutSettings.cs: same.
16917 * TreeView.cs: same.
16919 * ToolBar.cs: same.
16921 * TabControl.cs: same.
16923 * RichTextBox.cs: same.
16925 * ListViewItem.cs: same.
16927 * PropertyGrid.cs: same.
16929 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16933 * TextRenderer.cs: fix up compiler warnings.
16937 * Form.cs: corcompare fixes.
16939 * PictureBox.cs: fix up compiler warnings.
16941 * ImageListStreamer.cs: same.
16943 * TrackBar.cs: corcompare fix.
16945 * Control.cs: fix up compiler warnings.
16947 * SplitterPanel.cs: same.
16949 * NumericTextBox.cs: same.
16951 * ImageList.cs: same.
16953 * StatusStrip.cs: same.
16955 * ProgressBar.cs: corcompare fix.
16957 * ToolStripButton.cs: fix up compiler warnings.
16959 * ToolStripStatusLabel.cs: same.
16961 * ToolStripSplitButton.cs: same.
16963 * ToolStripSeparator.cs: same.
16965 * ToolStripProgressBar.cs: same.
16967 * ToolStripDropDownMenu.cs: same
16969 * ToolStripDropDown.cs: same.
16971 * ToolStripDropDownButton.cs: same.
16973 * ToolStrip.cs: same.
16975 * ToolStripControlHost.cs: same.
16977 * ToolStripContentPanel.cs: same.
16979 * ToolStripDropDown.cs: same.
16981 * ToolStripContainer.cs: same.
16983 * ToolStripPanel.cs: same, and add "new" where we need it to work
16984 with the new ArrangedElementCollection.
16986 * ToolStripItemCollection.cs: add "new" where we need it to work
16987 with the new ArrangedElementCollection.
16989 2006-12-04 Andreia Gaita <avidigal@novell.com>
16991 * TabControl.cs: Fix default tab selection to after TabControl
16992 gets focus and not before. Fixes #80128
16994 2006-12-04 Chris Toshok <toshok@ximian.com>
16996 * DataGridTableStyle.cs: remove the gross calling of
16997 datagrid.Refresh from here. It's a broken idea and it doesn't
17000 * DataGrid.cs: instead, just register/unregister from the
17001 DataGridTableStyle events in CurrentTableStyle. we play it
17002 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
17003 even though some would most likely not require it. Fixes bug
17004 #80115 (and one portion of #80117 as a side effect).
17006 2006-12-04 Chris Toshok <toshok@ximian.com>
17008 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
17009 so the textbox (if any) goes away. Fixes bug #80117.
17011 2006-12-04 Chris Toshok <toshok@ximian.com>
17013 * DataGridColumnStyle.cs: set the column's readonly property
17014 initially based on the property descriptor's IsReadOnly. Fixes
17017 2006-12-04 Chris Toshok <toshok@ximian.com>
17019 * ComboBox.cs: wrap the dropdown style changing work in
17020 SuspendLayout/ResumeLayout. Fixes bug #79968.
17022 2006-12-04 Jackson Harper <jackson@ximian.com>
17024 * TextBoxBase.cs: Fix off by one, since these are one-based.
17025 * TextBox.cs: Select all the text when we get focus. The TextBox
17026 does this but the RTB does not.
17028 2006-12-04 Chris Toshok <toshok@ximian.com>
17030 * DataGridTextBoxColumn.cs: remove some spew.
17032 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
17033 but some part of me is saying "it shouldn't be here.." At any
17034 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
17037 2006-12-04 Chris Toshok <toshok@ximian.com>
17039 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
17040 to reassign the propertydescriptor.
17042 2006-12-04 Jackson Harper <jackson@ximian.com>
17045 * TextControl.cs: Remove some unused variables. Maybe this will
17046 patch things up between mike and I.
17047 - don't split lines less then one char wide, if the viewport is
17048 that small text won't be visible anyways.
17050 2006-12-04 Jackson Harper <jackson@ximian.com>
17052 * TextBoxBase.cs: Default selection length is -1, need to do some
17053 more testing on windows to see when this is used for the property.
17054 - Redid the Lines [] property to that we properly remove soft line
17056 - added support for preserving carriage returns
17057 - CanUndo is not a variable like 'is undo enabled' it just returns
17058 true if there is undo operations available.
17059 - AppendText doesn't need to grab the last tag itself anymore,
17060 this happens automatically when we move the cursor.
17061 * TextControl.cs: Add CompoundActions to the undo class. This
17062 allows combining the other operations into one big option. ie a
17063 paste will combine { delete old, insert new, move cursor }
17064 - Add InsertString undo operation
17065 - New method for deleting multiline text
17066 - Add carriage returns to lines. So we can preserve carriage
17067 returns when text is 'roundtripped'
17069 2006-12-04 Chris Toshok <toshok@ximian.com>
17071 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
17072 minimum 0. Fixes the scrollbar exception in bug #80136.
17074 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17077 * MdiWindowManager: Removed unused fields and methods.
17079 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17081 * StatusBar.cs: Update all panels when a AutoSize=Contents
17082 panel needs updating.
17084 * StatusBarPanel.cs: Remove twidth and only use initialize.
17087 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17089 * Form.cs: When a form's MdiParent is set add it directly
17090 on top of the z-order in stead of relying on MdiClient's
17091 ActivateChild to do it. Fixes #80135.
17094 - Remove original_order, mdi_child_list is already doing
17096 - Create mdi_child_list on construction in
17097 stead of first use (avoids a few null checks).
17099 * MenuItem.cs: Use an already existing list of mdi children
17100 to get the correct order of children and remove the other
17103 2006-12-04 Chris Toshok <toshok@ximian.com>
17105 * PropertyGridView.cs: cached_splitter_location is only used in
17106 !DOUBLEBUFFER code.
17108 * PropertyGrid.cs: implement the ComComponentNameChanged event
17109 using Events, hoping that would fix the warning. Looks like a
17110 compiler bug instead (#80144).
17112 * PropertyManager.cs: remove unused method.
17114 2006-11-04 Everaldo Canuto <everaldo@simios.org>
17116 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
17117 include parentesis to fix expression evaluation. Fixes #79634.
17119 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17122 - Changes to fix behavior in Menu control, some reported in #80097
17123 and other detected during behavior refactory like a select event
17125 - Remove unneded "if's" conditions.
17126 - Created an internal to flag when popup is active in control, we need
17127 it because in .NET you can have menu active but without popup active
17128 when you active menu using popup without visible items.
17129 - Mimic win32 behavior for Select and Popup events.
17130 - Dont open popup menu when you dont have visible subitems.
17131 - Do nothing when click on disabled menu item.
17132 - Some small changes to follow the coding style guidelines.
17133 - Unselect menu only when another control gives focus. Fixes #80097.
17134 - Remove unused code.
17136 * MenuItem.cs: internal VisibleItems method to check if menu
17137 theres visible subitems, it will be usefull to fix some
17138 behavior in Menu control.
17140 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17142 * Timer.cs: Tag property for 2.0 profile.
17144 2006-12-01 Chris Toshok <toshok@ximian.com>
17146 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17148 * Win32DnD.cs: comment out some unused fields.
17150 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17151 some unused properties/methods.
17153 * XplatUIX11.cs: fix MousePosition so we override the base class's
17154 property instead of conflicting with it.
17156 * PictureBox.cs: comment out some unused fields
17158 * OSXStructs.cs: make some struct fields public.
17160 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17161 MousePosition so we override the base class's property instead of
17162 conflicting with it.
17164 * X11Dnd.cs: comment out some unused fields
17166 * X11DesktopColors.cs: fix some struct field visibility to quiet
17169 * X11Dnd.cs: remove some debug code.
17171 * ThemeClearlooks.cs: comment out unused field.
17173 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17175 * ThemeGtk.cs: comment out some unused pinvokes.
17177 * Timer.cs: remove some unused fields.
17179 * ThemeClearlooks.cs: comment out unused field.
17181 * UpDownBase.cs: comment out unused field.
17183 * DataObject.cs: comment out unused field.
17185 * DataGridBoolColumn.cs: reomve unused field.
17187 * DataGrid.cs: remove unused field.
17189 * Cursor.cs: remove old ToBitmap code.
17191 * ControlPaint.cs: remove unused method.
17193 * ScrollBar.cs: remove unused fields.
17195 * ComboBox.cs: remove unused field, and chain up to
17196 AccessibleObject ctor.
17198 * ListBox.cs: remove unused field.
17200 * ButtonBase.cs: wrap a couple fields in NET_2_0.
17202 * GridEntry.cs: remove unused fields.
17204 * Binding.cs: remove unused fields.
17206 * AxHost.cs: remove unused method.
17208 * ContainerControl.cs: remove unused field.
17210 * ScrollableControl.cs: remove unused fields.
17212 2006-12-01 Chris Toshok <toshok@ximian.com>
17214 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
17215 the Where/WhereString stuff. it's easy enough to CWL
17216 Environment.StackTrace.
17218 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
17219 unused private fields.
17221 2006-12-01 Jackson Harper <jackson@ximian.com>
17223 * TextControl.cs: Do not update the view while inserting multiline
17224 text. If we update the view we might wrap lines, before entering
17225 the new lines, which causes the new line insertion calculations to
17226 be totally fubared.
17227 - Remove an old TODO
17228 - Make debug output a little nicer
17230 2006-12-01 Chris Toshok <toshok@ximian.com>
17232 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
17234 2006-12-01 Chris Toshok <toshok@ximian.com>
17236 [ fix the majority of the CS0108 warnings we've been suppressing ]
17238 * TreeView.cs: mark BackgroundImageChanged as 'new'.
17240 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
17241 to "LayoutToolBar" to quiet mcs.
17243 * TabControl.cs: mark our ControlCollection class as 'new'.
17245 * TextBoxBase.cs: mark some events as 'new'.
17247 * Splitter.cs: TabStop is 'new'.
17249 * ControlBindingsCollection.cs: mark a few methods as new since
17250 they change the visibility from protected to public.
17252 * RadioButton.cs: DoubleClick -> base class, and remove unused
17255 * MonthCalendar.cs: ImeMode property -> base class, and mark many
17258 * NumericUpDown.cs: TextChanged -> base class.
17260 * CheckedListBox.cs: mark our ObjectCollection class as new to
17263 * FolderBrowserDialog.cs: make HelpRequest event new and have it
17264 muck with the base class.
17266 * StatusBar.cs: fix some mcs warnings about Update being the same
17267 name as a base class method.
17269 * RichTextBox.cs: mark some events as new, and make them do things
17270 to the base class impl.
17272 * UserControl.cs: mark TextChanged as new, and have it manipulate
17275 * UpDownBase.cs: mark some things new.
17277 * CheckBox.cs: mark DoubleClick "new", and add some text about
17278 what we need to look at.
17280 * Panel.cs: make the events "new", and manipulate the base
17281 version. these are just here for attributes.
17283 * AccessibleObject.cs: make owner private.
17285 * Control.cs: deal with AccessibleObject.owner being private.
17286 cache our own copy if we need it.
17288 * Button.cs: add "new" to the DoubleClickEvent.
17290 * ListBox.cs: no need to track our own has_focus here. let
17291 Control.has_focus do it for us. Also some other work to clear up
17292 warnings about not overriding base class methods of the same name.
17294 * ComboBox.cs: clear up some warnings about not override base
17295 class methods of the same name.
17297 2006-12-01 Chris Toshok <toshok@ximian.com>
17299 * Form.cs: flag a few things as "new" to quiet some of the mcs
17304 * PrintPreviewDialog.cs: same.
17306 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
17307 now DGV isn't so horrible on the class status page. also, move
17308 all events to using System.ComponentModel.EventHandlerList. my
17311 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17313 * MdiWindowManager.cs:
17314 - Set form to active mdi child if shown,
17315 and update the active mdi child to the next
17316 remaining child in the z-order if the form is hidden.
17319 - Track if the form has been visible and if its
17320 visibility is beeing changed, so that the MdiClient
17321 can properly decide the ActiveMdiChild. The MdiClient
17322 cannot track this since the form can change visibility
17323 before MdiClient is created.
17326 - Don't activate anything of the parent form is changing
17328 - Rework ActiveMdiChild to only return visible mdi
17329 children and take into account several other corner
17332 2006-12-01 Chris Toshok <toshok@ximian.com>
17334 * IBindableComponent.cs: new 2.0 interface.
17336 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
17338 * DataGrid.cs: Font for caption area is bold by default.
17340 2006-12-01 Everaldo Canuto <everaldo@simios.org>
17342 * Menu.cs: Tag property for 2.0.
17344 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17346 * ThemeWin32Classic.cs: Adjust menu separator drawing.
17348 2006-12-01 Chris Toshok <toshok@ximian.com>
17350 * TreeView.cs: doh, the Begin* events should be
17351 TreeViewCancelEventHandler.
17353 2006-12-01 Chris Toshok <toshok@ximian.com>
17355 * Form.cs: Form.ControlCollection already stores off the
17356 form_owner field. don't access the base class's internal "owner"
17359 * Control.cs: make all the fields in Control.ControlCollection
17360 private. there's no need for any internal fields here.
17362 2006-12-01 Chris Toshok <toshok@ximian.com>
17364 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17365 OnHandleCreated. Fixes bug #80109.
17367 2006-12-01 Chris Toshok <toshok@ximian.com>
17369 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17370 SplitContainer.cs, Control.cs, StatusStrip.cs,
17371 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17372 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17373 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17374 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17375 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17376 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17377 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17378 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17379 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17380 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17382 do most of the work to convert our code over to use
17383 System.ComponentModel.Component.Events for
17384 adding/removing/dispatching events.
17387 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17389 * DataGridView.cs: Fix an ArgumentNullException reported
17390 twice today in IRC.
17392 2006-11-30 Mike Kestner <mkestner@novell.com>
17394 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
17395 grabbed listbox. Fixes #80036 and #80101.
17397 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17399 * Message.cs: Changed ToString() to match MS.
17401 2006-11-30 Jackson Harper <jackson@ximian.com>
17403 * TextBoxBase.cs: You can still change the selected text on a read
17405 * TextControl.cs: Lower magic number for wrap calculations. This
17406 lets text get closer to the right (far) edge.
17408 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17410 * Control.cs: Tweak 2.0 layout properties.
17411 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17412 * TextRenderer.cs: Add a new overload.
17413 * ToolStrip*: Huge amount of changes and new features.
17415 2006-11-30 Mike Kestner <mkestner@novell.com>
17417 * ComboBox.cs: fixes for LargeChange and Maximum to get the
17418 scroll range correct. Fixes #79994.
17420 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17422 * MdiWindowManager.cs: Update main form's text when
17423 a form is closed. (fixes #80038)
17425 2006-11-30 Everaldo Canuto <everaldo@simios.org>
17428 - Fix an regression in ButtonSize.
17429 - Get ImeMode default value change to "Disable".
17430 - Get ShowTooltips default value change to true, default value is
17431 "false" but after make a test in .NET we get "true" result as default.
17433 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
17435 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17437 2006-11-29 Chris Toshok <toshok@ximian.com>
17439 * XplatUIWin32.cs (GetWindowTransparency): check return value of
17440 GetLayeredWindowAttributes. if it's 0, return 1.0, as
17441 SetWindowTransparency hasn't been called.
17443 2006-11-29 Chris Toshok <toshok@ximian.com>
17445 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17447 (set_AllowTransparency): reorder things a little so that the
17448 WS_EX_LAYERED style is removed properly.
17450 2006-11-29 Chris Toshok <toshok@ximian.com>
17452 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17454 * Form.cs: only call the XplatUI transparency method (get/set) if
17455 SupportsTransparency says it's supported. Otherwise fallback to
17456 doing nothing (in the set case) or returning the instance field we
17457 cache (in the get case).
17459 * XplatUIStructs.cs: add TransparencySupport flag enum.
17461 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17462 change to SupportsTransparency.
17464 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17465 TransparencySupport.None from SupportsTransparency.
17467 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17468 TransparencySupport.Set from SupportsTransparency.
17470 * XplatUIWin32.cs: implement GetWindowTransparency calling
17471 GetLayeredWindowAttributes, and implement SupportsTransparency by
17472 checking whether or not both
17473 GetWindowTransparency/SetWindowTransparency are available
17474 entrypoints. We need to do this since SetWindowTransparency is
17475 available as of win2k, but GetWindowTransparency requires winxp.
17478 * XplatUI.cs: Add GetWindowTransparency, and change
17479 SupportsTransparency to allow for either/both Get/Set.
17481 2006-11-29 Chris Toshok <toshok@ximian.com>
17483 * DataGrid.cs: keep from going into an infinite loop redrawing a
17484 datagrid that has no datasource. Fixes bug #80033.
17486 2006-11-29 Chris Toshok <toshok@ximian.com>
17488 * MenuItem.cs: fix the NRE when we assign text (and therefore call
17489 Invalidate) before the mainmenu has been assigned to a control.
17491 2006-11-29 Chris Toshok <toshok@ximian.com>
17493 * DataGrid.cs: detect when we should be double the double click
17494 row/column autosize stuff, although that codepath has yet to be
17495 written. part of the work for bug #79891.
17497 2006-11-29 Chris Toshok <toshok@ximian.com>
17499 * Binding.cs (SetControl): fix unit test.
17501 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17503 * PageSetupDialog.cs: Validate the margins and set them in
17505 * NumericTextBox.cs: New class to mimic the behavior of the
17506 textboxes used in the printing dialogs.
17508 2006-11-29 Andreia Gaita <avidigal@novell.com>
17510 * Form.cs: Revert previous change (remove call UpdateBounds
17511 from form constructor), because it messes with the handle creation
17512 order, and that one needs lots and lots of love.
17513 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17514 for valid printer and throw InvalidPrinterException if document
17515 is set but printer not valid), adding a MonoTODO. Once
17516 handle creation is done properly, we can put this back in.
17518 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17520 * MenuItem.cs: Create a invalidate method for menu item, to be
17521 calling from set text, it make text changes to imadiate update
17522 on screen. Fixes #80013.
17524 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17526 * ToolBar.cs: Fixes and simplify toolbar button layout, it
17527 fixes bug #80070 and some other problem on toolbar buttons
17530 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17532 * ThemeWin32Classic.cs: Paint toolbar toggle button background
17533 with dotted brush. Fixes #79564
17535 2006-11-28 Andreia Gaita <avidigal@novell.com>
17537 * Form.cs: Removed call to UpdateBounds on Form
17538 constructor, it was causing a call to CreateHandle
17539 before it was supposed to.
17540 * PrintControllerWithStatusDialog: Applied patch
17541 by Chris Toshok to hide controller when there are
17542 no printers available.
17543 PrintDialog.cs: initialize printer settings to
17544 null - correct DefaultValues test #5
17545 * PrintPreviewControl.cs: Move PrintController
17546 initialization to GeneratePreview
17547 * PrintPreviewDialog.cs:
17548 - Remove Preview generation from Document_set(). It is
17550 - Throw InvalidPrinterException on CreateHandle if
17551 a Document is set but there are no printers or
17552 printer is not valid.
17553 * ThemeWin32Classic: don't paint PrintPreviewControl
17554 if there is nothing to paint
17556 2006-11-28 Miguel de Icaza <miguel@novell.com>
17558 * Form.cs: Add another popular method.
17560 * TabPage.cs: ditto.
17562 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17564 * MenuItem.cs: Fixed a warning.
17565 * InternalWindowManager: Fixed a warning.
17567 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17570 - When cloning a menu also clone MdiList and clone the
17571 window menu items properly (as the forms and menuitems
17572 are kept in an internal hashtable, these need updating
17574 - Rewrote the window menu code, menu items are added in the
17575 order the forms were added to their parent, and they are
17576 updated every time the window menu is shown (before the
17577 list was only generated once, in the current order of the
17578 forms, and would never be updated). A checkmark is shown
17579 next to the item corresponding to the active mdi child.
17581 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17583 * XplatUIStructs.cs:
17584 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17587 - Added TME_NONCLIENT to TMEFlags.
17588 - Handles WM_NCMOUSEMOVE in GetMessage to
17589 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17591 * MdiWindowManager:
17592 - Now merges mdi child menu to parent menu when maximized.
17593 - Recalculate NC areas of both mdi child and mdi parent.
17595 on window state and size changes.Fixes #79844 (3).
17596 - Handle WM_NCCALCSIZE to properly calculate borders.
17599 - Add/remove to the mdi containers list of mdi children
17600 in the order they are added.
17601 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
17602 to the maximized mdi child.
17604 * InternalWindowManager.cs:
17605 - Only execute a click on the control buttons on the mouse up,
17606 not on the mouse down. Show the state of the button
17607 (was only showing Normal state, never Pressed state). The
17608 pressed button now follows the mouse (if you click the Close
17609 button and move the mouse over the Maximize button, the
17610 Maximize button will be shown as pressed). Since Win32 does
17611 not generate WM_NCLBUTTONUP if you release the button outside
17612 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17615 * ThemeWin32Classic.cs:
17616 - Draw a missing border around mdi child forms. Fixes #79844 (2).
17619 - Added a list of forms which contains the order the forms are
17620 added to the mdi parent.
17621 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17622 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17623 - If the active form changes set the scrollbars to the top
17624 of the Z order, otherwise the form could hide them.
17625 - Scrollbars are now sized according to ClientSize, not
17626 to Size, and they take into account the other scrollbar
17627 to determine maximum.
17629 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17632 * XplatUIDriver.cs:
17636 - Added RequestAdditionalWM_NCMessages for windows to
17637 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17638 Currently only implemented in XplatUIWin32.
17640 2006-11-27 Chris Toshok <toshok@ximian.com>
17642 * Hwnd.cs: only add the hwnd to the windows hash in
17643 set_WholeWindow and set_ClientWindow if whole_window/client_window
17644 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
17646 2006-11-27 Mike Kestner <mkestner@novell.com>
17648 * ComboBox.cs: remove redundant OnDropDown call. It is called
17649 from the ComboListBox.ShowWindow code. Fixes #79969.
17651 2006-11-27 Chris Toshok <toshok@ximian.com>
17653 * Hwnd.cs: remove the setters for ExposePending and
17654 NCExposePending - noone uses them.
17656 2006-11-27 Jackson Harper <jackson@ximian.com>
17658 * TextControl.cs: new param for ReplaceSelection which determines
17659 whether we select the new selection, or set the cursor to the end
17660 of the new selection.
17661 * TextBoxBase.cs: Use new param for ReplaceSelection. When
17662 pasting, select the new text.
17663 * RichTextBox.cs: Use new param for ReplaceSelection.
17665 2006-11-27 Jackson Harper <jackson@ximian.com>
17667 * TextBoxBase.cs: Set the selection to the caret after the caret
17668 is moved, otherwise they get out of sync.
17670 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17672 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17675 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17677 * ThemeWin32Classic.cs:
17678 - Fix toolbar drop down arrow position.
17679 - Fix drop down appearance when ToolBar.Appearance is normal,
17682 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
17684 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17685 * Control.cs: Same.
17686 * UpDownBase.cs: Same.
17687 * ButtonBase.cs: Same.
17688 * ScrollBar.cs: Same.
17689 * TrackBar.cs: Same.
17690 * PictureBox.cs: Same.
17691 * UserControl.cs: Same.
17693 * ListControl.cs: Same.
17694 * TextBoxBase.cs: Same.
17695 * ListView.cs: Same.
17696 * RichTextBox.cs: Same.
17697 * TreeView.cs: Same.
17699 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
17702 - Text label for where
17703 - Text label comment was not shown
17705 2006-11-23 Everaldo Canuto <everaldo@simios.org>
17707 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17709 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17711 * InternalWindowManager.cs:
17712 - Handle WM_PARENTNOTIFY to activate the form
17713 if any child control is clicked.
17714 - The form is only sizable if not minimized.
17716 * MdiWindowManager.cs:
17717 - Save the IconicBounds if the form is moved.
17718 - Rework SetWindowState, now the window bounds
17719 are stored only if the old window state is Normal.
17722 - In SetWindowStates store the old window state if
17723 the window is maximized and restore window state if
17724 the window looses focus.
17725 - Don't handle any scrollbar value changes if
17726 initializing the scroll bars. Fixes #79771.
17727 - Reworked ArrangeIconicWindows. Current algorithm
17728 tests bounds agains all other minimized windows, if
17729 any intersections create new bounds (going left to
17730 right, bottom to top) and then test again. When
17731 successful the bounds are saved and never computed
17732 again. Fixes #79774.
17734 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17736 * InternalWindowManager.cs: Added HandleTitleBarUp.
17738 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17740 * NumericUpDown.cs: In .NET 1.1, user entered text is still
17741 hexadecimal in ParseUserEdit.
17744 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17746 * MdiWindowManager.cs:
17747 - Handle a click on the form's icon to show the
17748 system menu (when maximized). Fixes #79775.
17749 - Change the existing click handler for the form's
17750 icon when not maximized to show on MouseUp.
17753 * Form.cs: In OnResize only layout the mdi child's
17754 parent if it actually has a parent. Might not if
17755 the window is closing.
17758 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17760 * MdiClient.cs: Ignore active MDI client for text of parent, if
17761 child has no text set.
17763 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17765 * ToolBar.cs: Fixed ToString to match MS.
17767 2006-11-22 Andreia Gaita <avidigal@novell.com>
17770 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
17771 update inner values on set. Fixes #79966.
17772 - Override OnLostFocus to update value on NET 2. Fixes #79950.
17773 - Fix hexadecimal parsing.
17775 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
17776 parent. Fixes #79957
17778 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17780 * Control.cs: After calling SetWindowsPos in SetBoundsCore
17781 the actual size has to be queried, since if height /
17782 width is negative Win32 changes it to 0.
17783 Fixes #79999 on Windows.
17785 * XplatUIX11.cs: Set height / width to 0 if negative
17786 in SetWindowPos. Fixes #79999 on Linux.
17788 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17790 * ThemeWin32Classic.cs: Fix text redenring when button is
17793 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17795 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17796 and later navigate by mouse. Fixes #79528.
17798 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17800 * ToolBar.cs: Set default value for TabStop to false in
17801 constructor, it fixes remaining behavior of bug #79863.
17803 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17805 * MdiWindowManager.cs:
17806 * InternalWindowManager.cs:
17807 - Moved a few methods specific to Mdi from
17808 InternalWindowManager to MdiWindowManager.
17811 2006-11-21 Chris Toshok <toshok@ximian.com>
17813 * XplatUIOSX.cs: stub out InvalidateNC.
17815 * XplatUIWin32.cs: implement InvalidateNC using the call I found
17816 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17818 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17820 * XplatUIDriver.cs: add InvalidateNC abstract method.
17822 * XplatUI.cs: add InvalidateNC.
17824 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17826 * ToolBar.cs: Invalidate complete button area when pressed status
17828 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17829 * ThemeWin32Classic.cs: Increase vertical and horizontal position
17830 by 1 when button is pressed.
17832 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17834 * ToolButton.cs: Invalidate middle of DropDown button when
17835 ToolBar theres DropDownArrows.
17836 * ThemeWin32Classic.cs: Change position of DropDown arrow and
17837 fix DropDown drawing operations.
17839 2006-11-20 Chris Toshok <toshok@ximian.com>
17841 * NativeWindow.cs: fix the formatting of functions ('{' on the
17842 following line), and enable the thread exception dialog.
17844 * Application.cs: remove the duplicate exception catching from
17847 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17849 * Toolbar.cs: Triggers button click event when click on icon
17850 of dropdown ToolBarButton. Fixes #79912.
17852 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17855 * ThemeWin32Classic.cs:
17856 - Added a property WindowBorderFont to enable themeing
17857 of mdi child windows' Text.
17859 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17861 * InternalWindowManager.cs:
17864 * MdiWindowManager.cs:
17865 - If mdi child is maximized, set mdi parent's
17866 text to "Parent - [Child]". Fixes #79770.
17867 - If there is any maximized mdi child windows, only the active
17868 window (and any new windows) is maximized, the rest are normal.
17869 - On a WindowState change only save mdi child's window bounds
17870 if the old window state was normal. Fixes #79774.
17871 - The scroll bars are now calculated on hopefully all
17872 necessary events. Fixed #79771 / #79844->6 / #79906.
17873 - MdiClient.SizeScrollBars() now takes into account docked
17874 controls in the parent when calculating available space.
17875 - InternalWindowManager now always repaints the entire title
17876 area. Fixes #79844->1/4/5.
17877 - Added RequestNCRecalc on mdi child windowstate changes.
17880 2006-11-20 Mike Kestner <mkestner@novell.com>
17882 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
17883 in the MouseUp handler of the listbox and move the return handling
17884 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
17886 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17888 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
17890 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17892 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
17893 working in 1.2.x anymore. So, updated.
17895 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
17897 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
17898 NumberGroupSeparator of current culture instead of assuming en-US.
17901 2006-11-17 Mike Kestner <mkestner@novell.com>
17903 * Control.cs: Add the concept of implicit bounds setting so that
17904 dock/undock round trips preserve explicitly set size/locations.
17907 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17909 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
17910 can't handle those filters. (Fixes bug #79961)
17912 2006-11-17 Chris Toshok <toshok@ximian.com>
17914 [ fixes the exit/crashes associated with #79835. it's clearly
17915 suboptimal though, we need to figure out a better way to solve
17918 * PrintPreviewControl.cs: deal with the new invalid printer
17921 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
17922 and return false (so CommonDialog.ShowDialog doesn't actually show
17925 * PrintDialog.cs: enable/disable the Ok button depending on
17926 whether or not the printer is valid.
17928 * CommonDialog.cs (ShowDialog): only actually show the form if
17929 RunDialog returns true.
17931 2006-11-17 Jackson Harper <jackson@ximian.com>
17933 * TextControl.cs: When soft splitting a line, mark it as a soft
17934 split line. Also carry over the current line break to the next
17937 2006-11-17 Chris Toshok <toshok@ximian.com>
17939 * XplatUIX11.cs: when scrolling a window with an invalid area, we
17940 only want to shift the part of the invalid area that overlaps the
17941 area we're scrolling. we also don't want to clear the invalid
17942 area unless the invalid area was entirely contained within the
17945 2006-11-16 Chris Toshok <toshok@ximian.com>
17947 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17948 also make sure to free the memory returned by XGetWindowProperty
17951 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17953 2006-11-16 Chris Toshok <toshok@ximian.com>
17955 * XplatUI.cs: add a new super secret way to get at the totally
17956 unsupported X11 backend.
17958 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
17960 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17962 2006-11-16 Jackson Harper <jackson@ximian.com>
17964 * TreeView.cs: Allow more explicit setting of top node position
17965 for scrollbars. Slower algo, but more accurate.
17966 - CollapseAll should maintain the current top node.
17967 * TextBoxBase.cs: When positioning the caret, use the line, pos
17968 method, since the x, y method does not grab the correct tag, and
17969 the caret height never gets set correctly. (Maybe I should just do
17970 away with the caret having its own height, and always use the
17971 carets current tag for height).
17973 2006-11-16 Jonathan Pobst <monkey@jpobst.com
17975 [Fixes 79778, 79923]
17977 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17978 Parent to the FosterParent instead.
17980 2006-11-16 Jackson Harper <jackson@ximian.com>
17982 * TreeView.cs: Need to recalc the topnode when we expand or
17983 collapse. The scrolling methods can't handle this on their own,
17984 since they use differences between the last scroll position, and
17985 those difference get completely messed up since we are expanding
17986 nodes. This problem should probably be fixed in the scrolling
17987 methods, so they can figure out exactly where they are, but this
17988 will slow things down a little.
17989 * ThemeWin32Classic.cs: Special case for groupboxes with empty
17990 strings, makes nunit-gui look a lot nicer.
17992 2006-11-16 Chris Toshok <toshok@ximian.com>
17994 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17995 the broken multithreaded event handling we have in here. File
17996 this entry under "Why we should move to the new X11 backend".
17998 Any thread can make it into UpdateMessageQueue, which gets events
17999 from the X socket - some of which could belong to hwnds being
18000 managed by a different thread. We can also have multiple threads
18001 in UpdateMessageQueue at the same time, with each one reading from
18002 the X socket. This leads to many problems, with the following
18005 We can't use hwnd.Queue.Enqueue anywhere in here and must use
18008 The MotionNotify compression we do can't work across threads
18009 (without locking the entire queue, perhaps) since we call
18010 hwnd.Queue.Peek, so we just punt and don't compress motion events
18011 unless the owning thread is the one which got the X event.
18013 ConfigureNotify is another fun one, since it modifies the hwnd's
18014 bounds and then enqueues the event. We add a lock to Hwnd which
18015 is held when setting configure_pending to true (and enqueuing the
18018 There is a race wrt the wake socket. we need to make sure that
18019 only 1 thread is waiting on that socket, or else a thread could
18020 sleep waiting for data that never comes. It's difficult (but not
18021 impossible) to make happen, because it seems to require something
18022 like the following:
18024 1. Thread 1 polls on wake_receive
18026 2. poll returns saying there's data to be read on
18029 3. Thread 2 polls on wake_receive and immediately returns
18030 saying there's data to be read.
18032 4. Thread 2 reads the wakeup byte from wake_receive
18034 5. Thread 1 attempts to read the wakeup byte from
18037 6. Thread 2 exits (due to a form closing, perhaps).
18039 7. Thread 1 blocks forever.
18043 Fixing the Expose handling isn't done yet, and the races inherent
18044 in that piece of code are responsible for the drawing mistakes you
18045 see when generating expose events in a MT app (like NPlot). This
18046 one is the likely to be the hardest to bandaid, and it doesn't
18047 appear to cause anything but drawing problems. The other issues
18048 caused apps to exit or hang.
18050 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
18051 called from a different thread than the one that should be calling
18054 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
18056 2006-11-15 Chris Toshok <toshok@ximian.com>
18058 * Application.cs: null out the context's MainForm when we exit
18059 RunLoop. Fixes a newly checked in unit test as well as the last
18060 ODE from bug #79933.
18062 2006-11-15 Chris Toshok <toshok@ximian.com>
18064 * Form.cs (set_Owner): allow a null value so we can clear the
18066 (Dispose): set all our owned_form's Owner properties to null, and
18067 clear the owned_forms collection.
18068 (WM_CLOSE): clean up this a little bit.. still not right though.
18070 * ApplicationContext.cs: OnMainFormClosed should only call
18071 ExitThreadCore if the main form isn't recreating. Fixes unit
18074 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18078 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
18080 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18084 * Hwnd.cs: Add a flag to show a window, but not activate it, to
18085 keep popup window types from stealing focus from the main form
18088 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
18090 * MenuAPI.cs: Set above flag to true.
18092 2006-11-15 Chris Toshok <toshok@ximian.com>
18094 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
18095 the button being released is not in wParam.
18097 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18099 * Form.cs: Add the released button to MouseEventArgs.Button
18100 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
18103 2006-11-15 Chris Toshok <toshok@ximian.com>
18105 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
18106 GetText(). untested because it's unused in our implementation.
18107 Control.Text always caches the text, even if
18108 ControlStyles.CacheText is not set.
18112 2006-11-15 Chris Toshok <toshok@ximian.com>
18116 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
18117 message. no hiding, no disposing.
18119 in the WM_CLOSE handler, hide the form if it's modal.
18121 2006-11-15 Chris Toshok <toshok@ximian.com>
18123 * XplatUIX11.cs: use AddExpose instead of sending a message.
18124 fixes textbox border drawing.
18126 2006-11-15 Chris Toshok <toshok@ximian.com>
18128 * PropertyGridView.cs: keep from crashing on mouse move/down when
18129 the property grid is empty.
18131 2006-11-14 Jackson Harper <jackson@ximian.com>
18133 * TextControl.cs: Make PageUp and PageDown more like the MS
18135 * TextBoxBase.cs: When we set the text property position the
18136 cursor at the beginning of the document.
18138 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18140 * Form.cs: if a mdi child's WindowState has changed
18141 before it's creation, it would display wrong control
18144 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
18146 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18149 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18151 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
18152 the window gets to paint its borders even if the window is
18155 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
18156 otherwise the old control buttons would still be painted
18157 if the window gets bigger.
18159 * PaintEventArgs.cs: add an internal method so that the clip
18160 rectangle can be changed.
18162 2006-11-13 Chris Toshok <toshok@ximian.com>
18164 [ fixes bug #79745 ]
18166 * NotifyIcon.cs: lots of cleanup.
18168 * X11Structs.cs: add an enum for XEMBED messages.
18170 * XplatUIX11.cs: reindent one of the giant switch statements, it
18171 was taking up an additional tab stop, and this file is already way
18172 too wide for my laptop's screen.
18174 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
18175 we get it, resize the hwnd to the WMNormalHints max_width/height.
18177 2006-11-13 Jackson Harper <jackson@ximian.com>
18179 * TextBoxBase.cs: Compute the value changes for the mouse wheel
18182 2006-11-13 Chris Toshok <toshok@ximian.com>
18184 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18185 #79898. force a reference to the Region to stick around so the
18186 unmanaged object isn't collected (rendering our handle in the MSG
18189 2006-11-13 Chris Toshok <toshok@ximian.com>
18191 * XplatUIX11.cs: fix #79917 for window managers which support
18193 using XStoreName on the raw utf8, and we need to convert to
18194 COMPOUND_TEXT if it's non-latin1.
18196 2006-11-13 Chris Toshok <toshok@ximian.com>
18198 * Form.cs (set_DialogResult): we need to set closing to false if
18199 we're setting our result to None. fixes bug #79908.
18201 2006-11-13 Jackson Harper <jackson@ximian.com>
18203 * TextControl.cs: When formatting text, compute the adjusted tag
18204 lengths correctly, using FindTag for the end tag instead of trying
18205 to figure it out outselves.
18206 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
18207 the item, ItemHeight doesn't work, because trees with large
18208 imagelists use those for their height
18209 * TreeView.cs: ActualItemHeight factors in the image height
18210 - compute left edge of checkboxes correctly
18211 - when expanding/collapsing move the bottom down one pixel, so we
18212 aren't moving part of the node
18214 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18216 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
18217 stack in PaintEventStart so that it won't get disposed by the gc
18218 before reaching PaintEventEnd.
18220 2006-11-13 Jackson Harper <jackson@ximian.com>
18222 * TextBoxBase.cs: Don't select the word if we are on a line with
18224 - We don't need to position the caret on mouse up, since the mouse
18225 move handler should be doing this
18226 - When double clicking a blank line, the caret is advanced to the
18229 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
18231 * TreeNodeCollection.cs: Avoid duplicating indexer code.
18233 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
18235 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
18236 Fixes part of bug #79910.
18238 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
18240 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
18241 (bug #79903). Some minor string updates to match ms.
18243 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18245 * FileDialog.cs: Don't add an extension if the filename
18246 already ends with that extension.
18248 2006-11-10 Jackson Harper <jackson@ximian.com>
18250 * TreeView.cs: Use the currently highlighted node for the
18251 BeforeSelect event.
18252 * TextBoxBase.cs: There is no need to expand selection on
18254 - CanUndo means 'is there any undo operations', not 'is undo
18255 allowed on this textcontrol. Fixed ClearUndo unit test.
18257 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
18259 * Button.cs: only perform click when button is Selectable (so as
18260 not to activate default buttons when they're disabled)
18262 * Control.cs: Rewrite of the SelectNextControl and related
18263 methods. HandleClick now selects next control if the current one
18266 * Form.cs: OnActivated selects next active control only if Load
18267 has already occurred. If Load hasn't run, there's no point in
18268 selecting here, Load might change the state of controls.
18270 * FocusTest.cs: Tests marked as working again for these fixes
18272 2006-11-10 Chris Toshok <toshok@ximian.com>
18274 * XplatUIX11.cs: a couple of fixes.
18276 - use XInternAtoms with almost all the atoms we need to register,
18277 instead of many, many calls to XInternAtom. should help a bit on
18278 startup time, at the expense of making the code look a little
18281 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
18282 isn't reparented (which seems to be a clue that we're running fon
18283 compiz) and they have an Owner form. This fixes the tool windows
18284 in paint.net when running under compiz.
18286 - when setting the opacity of a window, support both the case
18287 where the window has been reparented and also when it hasn't been.
18288 Since compiz/beryl doesn't seem to reparent windows, and these are
18289 the only window managers which support translucency, I'm not sure
18290 why we need the hwnd.reparented case at all.. but leave it in.
18291 now we get translucent windows in paint.net under compiz/beryl.
18293 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18295 * FileDialog.cs: Always return the value for FilterIndex that
18296 was set. Internally convert it to values that make sense.
18298 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18300 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18302 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18304 * Toolbar.cs: Change default value of DropDownArrows to true, the
18305 signature still using false to make it compatible with MS but the
18306 initial value is true. Fixes #79855.
18308 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18310 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18311 only available on Linux.
18313 2006-11-09 Everaldo Canuto <everaldo@simios.org>
18315 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18316 reduce number of calls to redraw method during toolbar creation.
18318 2006-11-09 Mike Kestner <mkestner@novell.com>
18320 * ListView.cs : raise SelectedIndexChanged when an item is selected
18321 programmatically via the Item.Selected property. Gert's nice
18322 ListViewSelectedIndexChanged test fixture now runs clean.
18324 2006-11-09 Mike Kestner <mkestner@novell.com>
18326 * ListView.cs : raise SelectedIndexChanged when a selected item is
18327 removed from the item collection using Remove or RemoveAt.
18329 2006-11-09 Mike Kestner <mkestner@novell.com>
18331 * ListView.cs : raise SelectedIndexChanged once per selected item
18332 for compat with MS. Fixes #79849+.
18334 2006-11-09 Chris Toshok <toshok@ximian.com>
18336 * TabControl.cs: initialize row_count to 0, and set it to 1 when
18337 we need to (if we have any tab pages). Fixes unit test.
18339 2006-11-09 Chris Toshok <toshok@ximian.com>
18341 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18342 width is 0, not 3. Fixes a unit test.
18344 2006-11-09 Mike Kestner <mkestner@novell.com>
18346 * ListView.cs : use Implicit scrollbars so that focus isn't
18347 stolen from the listview when they are clicked. Fixes #79850.
18349 2006-11-09 Chris Toshok <toshok@ximian.com>
18351 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18352 have a root item. Fixes #79879.
18354 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
18358 - An ArgumentException is now thrown if a wrong filter
18359 is applied (matches ms). The previous filter doesn't change
18360 anymore if an exception is thrown.
18361 - Changing the FileName property also affects FileNames
18362 * ColorDialog.cs: The length of the CustomColors array is always
18363 16. It doesn't matter if we use a smaller array or null to update
18364 or change the custom colors property.
18365 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18366 for RootFolder if we get a undefined value.
18368 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18370 * StatusBarPanel.cs:
18371 - Width is set to MinWidth if Width is smaller than
18372 MinWidth. Fixes #79842.
18373 - MinWidth now always overrides Width (MSDN says MinWidth
18374 is set to Width when AutoSize = None, but they do not
18376 - Style has now the the correct default value.
18378 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18381 - The control is completely invalidated on
18382 Got/LostFocus to draw the focus rectangle correctly.
18383 - When AutoSize then height is always 45 (width for
18384 vertical controls).
18386 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18387 on the mouse when moved and it doesn't move when grabbed
18388 until the mouse moves as well. Also fixed some wrong
18389 calculations when clicking on the thumb (control thought
18390 click was outside of thumb and didn't grab it).
18391 Fixes some of the issues in #79718.
18393 2006-11-08 Everaldo Canuto <everaldo@simios.org>
18395 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18397 2006-11-08 Chris Toshok <toshok@ximian.com>
18399 * PropertyGridView.cs: only call ToggleValue if the item is not
18402 2006-11-08 Jackson Harper <jackson@ximian.com>
18404 * TextBoxBase.cs: The RichTextBox and textbox have very different
18405 word selection methods. Implement the textbox's simple word
18406 selection here, and let the RichTextBox override and provide it's
18408 - Don't do extra selection on mouseup
18409 * RichTextBox.cs: Use the documents word selection algorithm, I
18410 think ideally, this function will be pulled into the
18411 RichTextBox.cs code someday.
18413 2006-11-08 Chris Toshok <toshok@ximian.com>
18415 * RootGridEntry.cs: new class to represent GridItemType.Root.
18417 * CategoryGridEntry.cs: reformat, and add boilerplate.
18419 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18420 returns the UI parent anyway, and we need special handling to
18421 implement the GetTarget method in the face of it. Also, implement
18424 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
18425 a root grid item, and use that instead of PropertyGrid.grid_items.
18426 Also, make use of TypeConverters (and add limitted support for
18427 ICustomTypeDescriptors) when initially populating the grid.
18428 Arrays now show up more or less properly.
18430 2006-11-08 Chris Toshok <toshok@ximian.com>
18432 * Application.cs: set the modal dialog to non modal after we close
18433 it. Fixes bug #79866.
18435 2006-11-08 Jackson Harper <jackson@ximian.com>
18437 * TextControl.cs: When combining lines carry over the line end
18438 style from the end line.
18439 - Invalidate the selected area when setting it, if it is visible.
18440 * TextBoxBase.cs: Only rich text box can do full line selects.
18441 - Make sure to set the cursor position when there is a click,
18442 otherwise two clicks in separate areas could cause a large chunk
18445 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18447 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
18450 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18452 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18453 time. Remove tooltips when ToolButton click events. Fixes #79856.
18455 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18457 * MenuAPI.cs: Ignore right click for menu actions and fixes
18458 menu border when clicked. Fixes #79846.
18460 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18462 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18463 MouseState after create wParam for message, this fixes mouse button
18464 equal none in mouse up events.
18466 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
18468 * Control.cs : Focus() now calls Select to set the Container's
18469 Active Control and to give it focus. To avoid infinite recursion
18470 (because ActiveControl also calls Focus at one point), a check
18471 is made in Focus with the help of a new internal variable
18474 2006-11-07 Mike Kestner <mkestner@novell.com>
18476 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18477 if there's a selection. Fixes #79849.
18479 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
18481 * PropertyGrid.cs: Avoid fixed height of help description label.
18482 Fixes part of bug #79829.
18484 2006-11-07 Chris Toshok <toshok@ximian.com>
18486 * XplatUIX11.cs: fix #79790 again, by using the
18487 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18489 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18491 * ToolBar.cs: Fix left click checking.
18493 2006-11-07 Chris Toshok <toshok@ximian.com>
18495 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
18497 2006-11-07 Chris Toshok <toshok@ximian.com>
18499 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
18500 PropertyManager unit tests.
18502 * PropertyManager.cs: make property_name internal.
18504 2006-11-07 Chris Toshok <toshok@ximian.com>
18506 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18507 pass a unit test. Also, don't set image_index to anything in
18508 response to setting the ImageList property.
18510 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18512 * ToolBar.cs: Ignore click events when mouse button is not a
18513 left button, only accepts other button for dropdown menus.
18516 2006-11-07 Chris Toshok <toshok@ximian.com>
18518 * DataGrid.cs: make the back and parent row buttons a little less
18521 2006-11-07 Jackson Harper <jackson@ximian.com>
18523 * TextBoxBase.cs: When converting to Text don't put line breaks in
18524 for soft line breaks.
18525 * TextControl.cs: There is an initial "fake" line in the document,
18526 this is now a soft break line, so that an extra line feed doesn't
18527 get added to the end of documents.
18529 2006-11-07 Chris Toshok <toshok@ximian.com>
18533 * CurrencyManager.cs: if the list is readonly, don't bother
18534 checking if IBindingList.AllowNew is true.
18536 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18537 for non-DataRowView datasources.. or rather, make it not crash.
18538 (DataGridPaintRelationRow): make sure we limit the row painting to
18539 the area not covered by the row header, and make our cell width at
18540 least large enough to cover the relation area. This allows grids
18541 that have relations but no rows to render correctly.
18542 (DataGridPaintRowContents): same type of changes here.
18543 (SetDataSource): move back to always calling
18544 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
18545 navigating back through relations.
18546 (HitTest): handle the case where we have no cells but have
18547 relations. Right now we generate a hit in cell 0 of whatever the
18548 row is, not sure if this is strictly correct, but it works for our
18551 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18552 bother doing anything.
18554 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
18556 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18557 early version of StatusStrip. Not responsible for eaten
18558 application or firstborn children.
18560 2006-11-06 Chris Toshok <toshok@ximian.com>
18562 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18563 call GetTabRect with a -1 index. Fixes #79847.
18565 2006-11-06 Jackson Harper <jackson@ximian.com>
18567 * TreeNodeCollection.cs: Update scrollbars after clearing.
18569 2006-11-06 Chris Toshok <toshok@ximian.com>
18571 * NumericUpDown.cs: fix the ToString method for some unit test
18574 2006-11-06 Chris Toshok <toshok@ximian.com>
18577 - set the initial SelectedGridItem if we can.
18579 - Exclude non-mergable properties only if we're merging > 1
18580 object. Merging 1 object isn't really merging, obviously.
18582 - Handle PropertySort.NoSort just like Alphabetical, which is
18583 wrong of course, but at least gets things on the screen.
18585 * PropertyGridView.cs:
18586 - Add method "FindFirstItem" which finds the first property grid
18587 item, so we can select it by default.
18589 - make use of GridEntry.CanResetValue.
18591 - Don't call RedrawBelowItemOnExpansion here anymore, the
18592 individual GridEntry's will do that.
18594 - Remove the ITypeDescriptorContextImpl internal class.
18597 - this class needs to implement ITypeDescriptorContext, as it's
18598 what MS's PropertyDescriptorGridEntry does, which means we can
18599 remove the ITypeDescriptorContextImpl internal class from
18600 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
18602 - keep a reference to our PropertyGridView, and move the call to
18603 RedrawBelowItemOnExpansion here from PGV. This means
18604 programmaticly setting Expanded actually does something visible.
18606 - add a CanResetValue() function which takes into account our
18607 possibly multiple "selected_objects" in the merged case. Shifting
18608 PropertyGridView to use this method fixes another unreported
18609 crasher found running the test for #79829.
18611 - when Top or Bounds is updated, make sure the PropertyGridTextBox
18612 is updated to reflect this.
18614 * CategoryGridEntry.cs: the ctor takes the PGV now.
18616 2006-11-06 Jackson Harper <jackson@ximian.com>
18618 * TextControl.cs: These are 1 based.
18619 * TextBoxBase.cs: When setting the selected text, don't change the
18620 selected text tags, this is done by ReplaceText, just position the
18621 cursor at the end of the new text.
18623 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18625 * ListView.cs: Allow label edit only when, when LabelEdit is
18628 2006-11-06 Jackson Harper <jackson@ximian.com>
18630 * TextControl.cs: If a suitable wrapping position isn't found,
18631 just wrap right in the middle of a word.
18633 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18635 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18638 2006-11-06 Jackson Harper <jackson@ximian.com>
18640 * TreeView.cs: Can't use the VisibleCount property when setting
18641 scrollbar heights, because this doesn't take into account whether
18642 or not the horz scrollbar just came visible.
18644 2006-11-05 Everaldo Canuto <everaldo@simios.org>
18646 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18647 activated. Fixes #79369, #79832.
18649 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
18651 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18652 had to remove support for links that point to a directory. FileInfo
18653 returns no usefull information (means, the directory they point to)
18654 for such links. Replaced some empty string ("") with String.Empty.
18656 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18658 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
18659 NullReferenceException when attempting to remove node that is not in
18660 collection. Throw NullReferenceException when null is passed to
18661 Remove. Allow first element of the collection to be removed. Fixes
18662 bug #79831. In GetEnumerator ().Current return null if positioned
18663 before the first element of the collection. In GetEnumerator ().Reset,
18664 position before first element of the collection.
18666 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18668 * PropertyGrid.cs: To match MS, remove default title and description
18669 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18672 2006-11-04 Chris Toshok <toshok@ximian.com>
18674 * Theme.cs: add a Clamp method, just for kicks.
18676 * ThemeWin32Classic.cs: clamp all color components to [0..255].
18678 2006-11-04 Chris Toshok <toshok@ximian.com>
18680 * Form.cs: if the form isn't visible, Close() does nothing.
18682 2006-11-03 Chris Toshok <toshok@ximian.com>
18684 * Form.cs (Close): if the form is modal, don't Dispose of it, only
18686 (WndProc): don't Dispose after handling the WM_CLOSE message.
18688 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18689 them as such, instead of using casts from Control to Form. Also,
18690 don't Dispose of the modal dialog when we fall out of the loop -
18691 Close() it instead.
18695 2006-11-03 Chris Toshok <toshok@ximian.com>
18697 * Control.cs (Dispose): only go through the dispose thing if we're
18698 @disposing, and we haven't already been disposed. Fixes bug
18701 * Form.cs: no reason to call "base.Dispose()" here instead of
18704 2006-11-03 Mike Kestner <mkestner@novell.com>
18706 * ComboBox.cs : use ToString instead of casts in AddItem for
18707 sorting functionality. Fixes #79812.
18709 2006-11-03 Chris Toshok <toshok@ximian.com>
18711 * Application.cs: pave the way for actually using the thread
18712 exception dialog. it's ifdefed out at the moment.
18714 2006-11-03 Chris Toshok <toshok@ximian.com>
18716 * ThreadExceptionDialog.cs: until we get a better layout, actually
18717 hide the details textbox and label when we shouldn't see them.
18719 2006-11-03 Jackson Harper <jackson@ximian.com>
18721 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18722 multiline textboxes anymore. This method also determines the
18723 width/height of a textboxes canvas area.
18724 - Sorta a revert of the last patch. For multiline just position
18725 the controls, then bail. This way the scrollbar width won't be
18728 2006-11-03 Everaldo Canuto <everaldo@simios.org>
18730 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18731 it dont need. Fixes #79537.
18733 2006-11-02 Jackson Harper <jackson@ximian.com>
18735 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
18736 send the status after firing the DndOver event.
18738 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18740 * TrackBar.cs: Now orientation only switches height / width if
18741 the control's handle is created (Win32 does it like this). Also
18742 fixed a typo in ToString() for a test to pass, changed the
18743 exception thrown in set_LargeChange and set_SmallChange to
18744 match Win32 behaviour, and added TrackBar tests to the unit
18747 2006-11-02 Chris Toshok <toshok@ximian.com>
18749 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18750 not _NET_WM_STATE_NO_TASKBAR.
18752 2006-11-02 Jackson Harper <jackson@ximian.com>
18754 * TextControl.cs: Increment count by one, since in the update view
18757 2006-11-02 Jackson Harper <jackson@ximian.com>
18759 * TextBoxBase.cs: Use client rectangle not bounds for checking if
18760 the mouse is in the client rectangle (duh).
18762 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18764 * TrackBar.cs: Fixed trackbar jumping around when clicking
18765 on it - the trackbar was not detecting correctly at which
18766 side of the thumb the click was done. (fixes #79718)
18768 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18770 * ListBox.cs: scroll visible area when change SelectedIndex to
18771 a non visible area. Fixes #79481.
18773 2006-11-01 Jackson Harper <jackson@ximian.com>
18775 * TextControl.cs: When replacing the selection move the selection
18776 start/end/anchor to the end of the new text.
18778 2006-11-01 Jackson Harper <jackson@ximian.com>
18780 * XplatUIWin32.cs: When setting the parent change the controls
18781 visibility to it's visibility flag, not to it's old parents
18782 visibility (.Visible walks the parent chain).
18784 2006-11-01 Chris Toshok <toshok@ximian.com>
18786 * XplatUIX11.cs: revert the #79790 fix, as the simple.
18787 XSetTransientForHint fix breaks paint .net's tool windows. more
18788 work needed for that one.
18790 2006-11-01 Chris Toshok <toshok@ximian.com>
18792 * ScrollBar.cs: throw ArgumentException instead of Exception in
18793 LargeChange/SmallChange setters. fixes unit tests.
18795 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18797 * ContainerControl.cs: reverted rev.67183 (which was itself
18798 a reversion of rev.66853... eh).
18800 * Control.cs: Fixes Reflector hang by changing Focus() call
18801 to what it was before rev.66643 (calling Select() here sets
18802 ActiveControl, which in some situations calls back Focus and
18803 eventually does a stack overflow). Temp fix.
18804 Changes to GetNextControl() to not look for children to select when
18805 parent cannot be selectable (so it looks for siblings instead)
18807 2006-10-31 Mike Kestner <mkestner@novell.com>
18809 * CheckedListBox.cs : off by one error in returned index from
18810 ObjectCollection.Add. Fixes #79758.
18812 2006-10-31 Chris Toshok <toshok@ximian.com>
18814 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18815 calls for the textbox/spinner, to keep from recursing to the point
18816 where we crash. Fixes #79760.
18818 2006-10-31 Chris Toshok <toshok@ximian.com>
18820 * ListControl.cs (set_SelectedValue): don't throw exceptions on
18821 null/"" value, just return. matches ms's behavior and fixes some
18824 2006-10-31 Chris Toshok <toshok@ximian.com>
18826 * Control.cs (set_Capture): make a logic a little easier to
18829 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18830 if it's being destroyed. A necessary fix surely, but a bandaid
18831 also, to fix the stuck capture problem in bug #78413.
18833 2006-10-31 Chris Toshok <toshok@ximian.com>
18835 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
18836 convention of clearing hwnd.ClientRect when we set the
18837 width/height (so it'll be recalculated by Hwnd).
18839 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18841 * ContainerControl.cs: reversed Contains check from
18842 ActiveControl due to hanging problems. This fix
18843 partly regresses #79667 (button does not have
18844 initial focus), so this might be a symptom for
18845 a larger parenting problem (set_ActiveControl
18846 is being called but the child control does
18847 not have the parent set yet?)
18849 2006-10-31 Mike Kestner <mkestner@novell.com>
18851 * MenuAPI.cs : fix keynav when menu is click activated.
18853 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
18855 * ToolStrip*: Version 0.2.
18857 * MenuStrip.cs: Version 0.1.
18859 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
18861 2006-10-30 Chris Toshok <toshok@ximian.com>
18863 [ fixes the oversized notify icon issue in bug #79745 ]
18865 * NotifyIcon.cs: scale the icon down to the size we're given by
18866 the XplatUI layer (this would be faster if we did it once instead
18867 of whenever we paint..) Also, remove the WM_NCPAINT handling,
18868 since it's never invoked.
18870 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
18871 pixels high by default, so let's hardcode our systray icon to that
18872 size. The SYSTEM_TRAY protocol should really have a way for
18873 client apps to query for the correct icon size.. but oh well. A
18874 couple of patches to deal with the screwy client_window ==
18875 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
18876 instance, and also make sure we don't XSelectInput twice).
18878 2006-10-30 Chris Toshok <toshok@ximian.com>
18880 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
18881 recreating forms. Control recreation is the bane of my existence.
18882 Fix it in a way that keeps everyone happy.
18884 2006-10-30 Chris Toshok <toshok@ximian.com>
18886 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
18887 just non-CHILD ones. otherwise sometimes scrollbars end up with
18888 client_windows not being resized to the proper size (ReportBuilder
18889 shows this extremely well).
18891 2006-10-30 Chris Toshok <toshok@ximian.com>
18893 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
18894 for non-WS_EX_APPWINDOW windows. This is what keeps them from
18895 showing up in the gnome taskbar. Fixes bug #79790.
18897 2006-10-30 Chris Toshok <toshok@ximian.com>
18899 * ApplicationContext.cs: guard against a NRE.
18901 * Application.cs: null out the old MainForm for the context, so we
18902 don't try to use it again once it's disposed. Fixes bug #79783.
18904 2006-10-30 Chris Toshok <toshok@ximian.com>
18906 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
18907 BindingContext, set the data source directly, otherwise do the
18908 lazy approach - the actual ListManager will be created when we get
18909 a BindingContext. Fixes bug #79700.
18911 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18913 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18914 XplatUIX11.cs: Remove old 2 parameter SetVisible.
18916 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
18918 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18920 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
18921 of SetVisible that allows a window to be shown, but not activated.
18922 This is needed on Windows for MenuStrip, and can probably be used
18923 with MainMenu and ComboBox to fix the focus stealing issues on
18926 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18928 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
18930 * PictureBox.cs: Fix the output of the ToString method.
18932 2006-10-29 Chris Toshok <toshok@ximian.com>
18934 * Control.cs (get_TopLevelControl): fix bug #79781.
18936 2006-10-29 Chris Toshok <toshok@ximian.com>
18938 * ListControl.cs (set_DataSource): throw Exception here, not
18939 ArgumentException, to match MS behavior.
18941 2006-10-29 Chris Toshok <toshok@ximian.com>
18943 * Form.cs: remove the try-catch's around calls to GetWindowState.
18944 We can just check the return value.
18946 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18949 * XplatUI.cs: Add note about additional return value for
18952 2006-10-29 Chris Toshok <toshok@ximian.com>
18954 * Control.cs (CreateHandle): when we create our handle, we also
18955 create the handles of our child controls. Fixes one of the
18956 Control unit tests (CH11).
18958 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18960 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18962 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18964 * ThemeClearlooks.cs: A little speedup.
18966 2006-10-27 Chris Toshok <toshok@ximian.com>
18968 * Control.cs: implement Control.FromChildHandle in a way that
18969 matches the docs (and fixes the failed test.)
18971 2006-10-27 Chris Toshok <toshok@ximian.com>
18973 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18976 * DataGrid.cs: implement ResetForeColor such that the tests
18979 2006-10-27 Chris Toshok <toshok@ximian.com>
18981 * ToolBarButton.cs: setting text/tooltiptext to null results in it
18982 being set to "". Fixes bug #79759.
18984 2006-10-27 Jackson Harper <jackson@ximian.com>
18986 * TextControl.cs: We need to clear the entire selection area when
18987 setting the start, otherwise multiline selections are still
18990 2006-10-26 Chris Toshok <toshok@ximian.com>
18992 * PropertyGridView.cs:
18994 - ifdef all the code specific to the double
18995 buffer case, and provide some alternatives in the non-doublebuffer
18996 code, which makes heavy use of XplatUI.ScrollWindow to move things
18997 around without having to invalidate (and cause flicker). There
18998 are still some drawing problems in the non-doublebuffered case, so
18999 DOUBLEBUFFER is defined by default.
19001 - Fix the way dropdowns are handled. now we explicitly watch for
19002 the events which might cause the dropdown to close, and break out
19003 of the nested event loop there. This gets rid of all Capture
19004 code, at the expense of the Msg special casing. Seems to work,
19005 though, and fixes bug #79743.
19007 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
19008 * Control.cs: SetIsRecreating now recreates implicitly added
19009 child controls as well. Finally fixes #79629. The flag passed to
19010 SetIsRecreating has also been removed since it wasn't used.
19012 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19014 * PageSetupDialog.cs: Clean some code, fix some bits,
19015 add some checks, and add a printer sub-dialog.
19017 2006-10-26 Chris Toshok <toshok@ximian.com>
19019 * PropertyGrid.cs: make set_SelectedObject call
19020 set_SelectedObjects, and move the duplicate logic to the
19021 SelectedObjects setter. Also, raise SelectedObjectsChanged.
19023 * PropertyGridView.cs: hide the textbox when we get a
19024 SelectedObjectsChanged event.
19028 2006-10-26 Chris Toshok <toshok@ximian.com>
19030 * PropertyGridView.cs: deal with the type converter not supporting
19031 GetStandardValues() or GetStandardValues() returning null, which
19032 is does in the default case. Fixes #79742.
19034 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
19036 * CheckedListBox.cs: nunit no longer crashes when selecting
19037 Project/Edit menu option
19039 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
19041 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
19042 is no menu selected. fixes #79739
19044 2006-10-25 Chris Toshok <toshok@ximian.com>
19046 * PropertyGridView.cs: factor out the splitter invalidation code
19047 into the SplitterPercent setter, and for kicks implement the
19048 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
19049 amount in either direction.
19051 2006-10-25 Chris Toshok <toshok@ximian.com>
19053 * PropertyGridView.cs: do some cleanup of the brush used to draw
19054 text - read only fields should be grayed out. not sure how to do
19055 this with the textbox, though. but the textbox's should also be
19056 readonly now at least. Also, hide/show the textbox when resizing
19059 * CursorConverter.cs: use System.Reflection when getting the
19060 properties of Cursors, as TypeDescriptor.GetProperties isn't
19061 returning static properties.
19063 2006-10-25 Chris Toshok <toshok@ximian.com>
19065 * PropertyGridView.cs: factor out the up/down handling, and reuse
19066 it for page up/down. also add End/Home support.
19068 2006-10-25 Chris Toshok <toshok@ximian.com>
19070 * PropertyGridView.cs:
19072 - ensure the selected grid item is visible in the scrolled area,
19075 - fix Keys.Down handling when you're on the last item in the
19078 2006-10-25 Mike Kestner <mkestner@novell.com>
19080 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
19081 clicks too. Fixes #79725.
19083 2006-10-24 Chris Toshok <toshok@ximian.com>
19085 * PropertyGrid.cs: use property.Converter instead of
19086 TypeDescriptor.GetConverter(property.PropertyType), so we catch
19087 TypeConverters declared on the property as well as on the
19088 PropertyType. Fixes bug #79678.
19090 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
19092 * MimeIcon.cs, Mime.cs:
19093 Fallback to the default platform handler if no shared mime info
19094 stuff exists (fixes #79693).
19096 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19097 * ContainerControl.cs: Incorrect contains check in ActiveControl
19098 from previous fix (duh).
19100 2006-10-20 Chris Toshok <toshok@ximian.com>
19102 * PropertyGridView.cs: the dropdown should be MIN(number of items
19103 in list, 15). Fixes #79551.
19105 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19106 Fixes #79384, #79394, #79652, #79667
19109 - Modal windows are now destroyed in the proper order for windows
19111 * ContainerControl.cs:
19113 - ActiveControl setter has more conditions on when to return:
19114 - if we're reselecting the active control, but it actually
19115 didn't have focus (window hidden or some such), it runs
19116 - if the active control being selected doesn't actually
19117 exist in the container, it returns
19121 - The ShowDialog now gets the current form as the owner when
19122 invoking without parameters, and correctly activates the owner
19127 - MessageBox now catches the Escape key to exit
19129 2006-10-20 Chris Toshok <toshok@ximian.com>
19131 * PropertyGridView.cs: fix a number of issues (bug #78565, and
19132 most of bug #79676):
19134 - you can navigate around the property grid with the arrow keys.
19136 - the dropdown is sized properly when the pg has a vertical
19139 - fix the indentation for subentries, and properly select the
19142 - fix the gray bar's drawing (only draw it to the last element,
19143 not for the height of the control. Also make sure we draw that
19144 last horizontal grid line.
19146 - use the same mechanism the datagrid uses wrt the editing textbox
19147 when scrolling/resizing/etc. Namely, we hide it first, do the
19148 operation, then show it again (if it's still visible).
19150 - aggressively remove a lot of unnecessary refreshes (and also
19151 calls to Invalidate(). call more limited variants, and only redraw
19156 - when we're populating the merged collection, fill in the UI
19157 parent with either the passed in item, or the category item we
19160 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19162 * GridItem.cs: drop some fully qualified names.
19164 * GridEntry.cs: add a "UIParent", which is basically the parent
19167 * GridItemCollection.cs: add an IndexOf method.
19169 2006-10-20 Mike Kestner <mkestner@novell.com>
19171 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
19172 a working win32 NC invalidation mechanism, we can't invalidate
19173 menus. [Fixes #79705]
19175 2006-10-20 Mike Kestner <mkestner@novell.com>
19177 * ListBox.cs : don't update the VScrollbar if the list is empty,
19178 just hide it. [Fixes #79692]
19180 2006-10-20 Jackson Harper <jackson@ximian.com>
19182 * RichTextBox.cs: Handle some special chars better, and don't skip
19183 the entire group when we encounter a special char that we don't
19186 2006-10-18 Chris Toshok <toshok@ximian.com>
19188 * PropertyGridView.cs: address a number of issues from bug #79676,
19189 mostly of the cosmetic variety.
19191 - The highlight rectangle for indented items not extends all the
19194 - Indented items aren't indented so much.
19196 - the dropdown is properly sized width-wise if the pg has a
19197 vertical scrollbar.
19199 2006-10-18 Chris Toshok <toshok@ximian.com>
19201 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
19202 systray stuff is rather convoluted to begin with.
19204 systray icons are a single window for some reason (that I haven't
19205 figured out yet), and for them, client_window == whole_window.
19206 Given the way the tests are structured elsewhere to determine
19207 which paints are pending (client vs. nc), that situation will
19208 always yield PAINT, not NCPAINT. So, if we have a pending
19209 nc_expose and no pending expose, remove the hwnd from the paint
19210 queue, and also set nc_expose_pending to false, to keep us from
19211 blocking further expose's adding the hwnd to the paint queue.
19213 phew. like i said, a rather convoluted change. Fixes the
19214 notifyicon repaint issues in bug #79645.
19216 2006-10-18 Chris Toshok <toshok@ximian.com>
19218 * Form.cs: when getting the backcolor of the form, don't get
19219 base.BackColor, as this allows parents to influence the background
19220 color. This breaks mdi forms. Instead, if the background_color
19221 is empty, return the default.
19223 2006-10-18 Chris Toshok <toshok@ximian.com>
19225 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
19226 to being private instead of internal static.
19228 * Control.cs: remove all the stupid ParentWaitingOnRecreation
19229 crap, it wasn't working for more deeply nested controls anyway,
19230 and we already have the is_recreating flag - use that instead.
19231 Before calling DestroyHandle in RecreateHandle, recurse through
19232 the control tree setting it to true. this returns the recreate
19233 code to much of its original simplicity, while now guaranteeing we
19234 actually recreate everything we're supposed to. This change gets
19235 fyireporting actually showing mdi children.
19237 2006-10-17 Chris Toshok <toshok@ximian.com>
19239 * Form.cs: remove some debug spew, and collapse some duplicate
19240 code at the end of SetClientSizeCore.
19243 - add some more debug spew here too wrt Destroy handling.
19244 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
19245 in Control's handling of WM_DESTROY.
19246 - Remove the handling of zombie window DestroyNotifies from the
19247 event loop - we don't need it. Now the only DestroyNotifies we
19248 actually handle are ones generated by X.
19249 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
19250 match gtk's (functioning) handling of this. This keep metacity
19251 from leaving droppings in the form of wm borders with no window
19252 contents all over the place.
19255 - add a bunch of debug spew wrt control recreation.
19256 - fix a bug where we weren't tracking Visible properly on
19258 - fixed the WM_PAINT double buffer handling to support re-entrant
19259 calls (yes, i know it's gross, but it's happening to us).
19261 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19262 * ThemeWin32Classic.cs: changed drawing of selected days
19263 to make them look better.
19265 2006-10-16 Chris Toshok <toshok@ximian.com>
19267 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
19268 drawing_stack. Nuke the ClientDC/NonClientDC properties.
19270 * XplatUIX11.cs: move away from using hwnd.client_dc and
19271 hwnd.non_client_dc and on to a stack of dc's (and in window's
19272 case, PAINTSTRUCT's), so we can deal with nested Paint calls
19273 without puking or not disposing of Graphics objects.
19275 * XplatUIOSX.cs: same.
19277 * XplatUIWin32.cs: same.
19279 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19281 * FileDialog.cs: Don't call on_directory_changed inside
19282 OnSelectedIndexChanged (it changes the SelectedIndex too).
19283 Instead move it to OnSelectionChangeCommitted.
19285 2006-10-13 Chris Toshok <toshok@ximian.com>
19287 * XplatUIX11.cs: more Destroy work. the current code does the
19288 following things, in order:
19290 1. Enumerates all handles of all controls at or below the one
19291 being destroyed, in pre-order. As it is doing this, it marks the
19292 handles as zombie and clears all references to them.
19294 2. calls XDestroyWindow on the window passed in.
19296 3. SendMessage's WM_DESTROY to all he handles in the accumulated
19299 2006-10-13 Chris Toshok <toshok@ximian.com>
19301 * XplatUIX11.cs: set hwnd.zombie to true before calling
19302 SendMessage (WM_DESTROY). this keeps us from marking the new
19303 window a zombie, and also keeps us from calling sendmessage at
19306 2006-10-13 Jackson Harper <jackson@ximian.com>
19308 * TextControl.cs: Do not show the caret and selection at the same
19309 time. Reduces ugliness by 35%.
19311 2006-10-13 Chris Toshok <toshok@ximian.com>
19313 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19314 zombie after we do the recursive call, so we actually do call
19315 SendMessage on the children controls.
19316 (GetMessage): if we find a pending paint event for a zombie hwnd,
19317 remove the hwnd from the paint queue, or else it will always be
19318 there (and we'll effectively loop infinitely)
19320 2006-10-13 Mike Kestner <mkestner@novell.com>
19322 * MenuItem.cs : add Selected format under keynav too.
19325 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
19327 * PropertyGrid.cs: Fixed some NRE's and small difference between our
19328 implementation and that of MS.
19330 2006-10-13 Chris Toshok <toshok@ximian.com>
19332 * Control.cs (OnInvalidated) only futz with the invalid_region if
19333 the control is double buffered. this fixes the apparent hang in
19334 the ListView unit tests. Someone needs to make the
19335 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19337 2006-10-13 Chris Toshok <toshok@ximian.com>
19339 * PropertyGridView.cs:
19341 - do a little refactoring so that only one place calls
19342 dropdown_form.Hide, and that is CloseDropDown. make everywhere
19343 else call that. Also make it Refresh, since there are redraw bugs
19344 otherwise (we should take a look at that...)
19346 - do a little more refactoring work to share the body of code
19347 involved with the drop down. it was duplicated in the code
19348 dealing with the listbox handling and in the code dealing with the
19351 - add a Capture to the dropdown form's control once it's
19352 displayed, and add a MouseDown handler that checks to make sure
19353 the position is inside the control. If it's not, close the
19354 dropdown. This fixes #78190.
19356 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19357 if the value is different than the initial value.
19359 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
19361 * Control.cs: see #78650
19362 - Fixed GetNextControl for several cases:
19363 - Changed FindFlatForward to return
19364 correct sibling control when more than one
19365 control has same TabIndex as the currently
19367 - Changed FindFlatBackward to loop children
19368 from last to first and apply same logic as in
19370 - Changed FindControlForward to search for
19371 children when control is not a container
19372 but has children, or search for siblings if
19373 control is a container...
19374 - Changed FindControlBackward to continue
19375 searching for child controls when hitting
19378 - Fixed Focus method to update ActiveControl
19379 (FocusTest.FocusSetsActive failure)
19382 - Focus rectangle now refreshes when gaining
19384 - Removed grab for Tab key on IsInputKey that
19385 was keeping tab navigation from working (#78650)
19387 2006-10-13 Chris Toshok <toshok@ximian.com>
19389 * PropertyGridView.cs:
19390 - Rewrite SetPropertyValue to loop over SelectedGridItem's
19393 - Deal with GridItem.Value == null a few places.
19396 - replace the PopulateGridItemCollection with a pair of methods
19397 which compute the intersection of all the properties in the
19398 SelectedObjects array. Fixes #79615.
19400 - Throw ArgumentException from set_SelectedObjects if there's a
19403 - Add GetTarget method which can be used to traverse up the
19404 GridItem.Parent chain. It depends on the assumption that
19405 selected_objects for different GridEntries are always in the same
19406 order (a safe assumption). Use this method and loop over all the
19407 selected objects in the entry when calling RemoveValueChanged and
19410 * GridEntry.cs: Make this handle multiple selected objects.
19411 .Value returns null if not all the selected objects share the same
19414 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
19415 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19416 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19417 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19418 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19419 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19420 add additional functionality.
19422 2006-10-12 Mike Kestner <mkestner@novell.com>
19424 * ErrorProvider.cs : new ToolTipWindow ctor sig.
19425 * HelpProvider.cs : new ToolTipWindow ctor sig.
19426 * ToolTip.cs : remove ToolTip param from Window sig since it is
19428 * ToolBar.cs : add tooltip support. Fixes #79565.
19430 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19432 * ComboBox.cs: move the events in set_SelectedIndex to
19433 after the call to HighlightIndex in order to avoid
19434 possible recursion and subsequent problems with the call
19435 to HighlightIndex and include a range check in
19436 set_HighlightIndex. Fixes #79588
19438 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19440 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
19441 to ui thread's settings instead of sunday.
19442 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19444 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19446 * DateTimePicker.cs
19448 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19449 and implement missing functionality (selecting different parts
19450 of the date and edit them individually with the keyboard).
19452 2006-10-11 Chris Toshok <toshok@ximian.com>
19454 * Control.cs (OnInvalidated): fix NRE relating to last change.
19456 2006-10-11 Chris Toshok <toshok@ximian.com>
19458 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19459 atoms in _NET_WM_STATE here if the window is maximized. We need
19460 to do this because we're *replacing* the existing _NET_WM_STATE
19461 property, so those atoms will be lost otherwise, and any further
19462 call to GetWindowState will return Normal for a window which is
19463 actually maximized. Fixes #79338.
19465 2006-10-11 Jackson Harper <jackson@ximian.com>
19467 * TextControl.cs: Special case for setting selection end to
19468 selection start, we basically kill the anchor.
19469 - some todo comments.
19471 2006-10-11 Chris Toshok <toshok@ximian.com>
19473 * Control.cs: switch to using an "invalid_region" to track which
19474 parts of the image buffer need updating. This is more code than
19475 the simple fix from r66532. That version just attempted to always
19476 fill the entire buffer on redraw, which turns out to be
19477 inefficient when invalidating small rectangles. This version
19478 simply adds the invalid rectangle to the invalid region. When we
19479 get any WM_PAINT message we see if it can be filled using the
19480 image buffer, and if it can't (if the paint event's clip rectangle
19481 is visible in the invalid region) we first fill the image buffer.
19482 So, the image buffer is still a cache, we just fill it lazily.
19484 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19485 need it any longer.
19487 2006-10-11 Chris Toshok <toshok@ximian.com>
19489 * XplatUIX11.cs (SetWindowPos): we need to update both position as
19490 well as size after calling XMoveResizeWindow. This keeps us from
19491 ignoring future SetWindowPos calls. Fixes the disappearing
19492 DateTimePicker in the ToolBarDockExample from bug #72499.
19494 2006-10-11 Chris Toshok <toshok@ximian.com>
19496 * TextBoxBase.cs: reorder things a bit when it comes to
19497 resizing-causing-recalculation. we were recalculating the
19498 document when our position was changed, which shouldn't happen.
19499 We only care about size changes. Clear up some more redundant
19500 recalculation calls while I'm at it. This makes the toolbar dock
19501 example snappy when you're just dragging toolbars around (since it
19502 causes a relayout whenever you move one.)
19504 2006-10-11 Chris Toshok <toshok@ximian.com>
19506 * ToolBarButton.cs (get_Rectangle): this only returns
19507 Rectangle.Empty if Visible == false, or Parent == null.
19508 Parent.Visible doesn't matter.
19510 2006-10-10 Chris Toshok <toshok@ximian.com>
19512 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19513 by .net 1.1, so switch to an internal method instead.
19515 2006-10-10 Chris Toshok <toshok@ximian.com>
19517 * Control.cs (WM_PAINT): when a control is double buffered we draw
19518 initially to the ImageBuffer and then copy from there. But when a
19519 parent control which has child controls is double buffered, the
19520 initial drawing doesn't encompass the entire ClientRectangle of
19521 the parent control, so we end up with uninitialized bits (this is
19522 easily seen by dragging the top toolbar in
19523 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
19524 manually set the ClipRectangle of the paint_event (only the one we
19525 use to populate the ImageBuffer) to ClientRectangle. Fixes more
19526 of the nastiness in bug #72499.
19528 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19529 which we use in Control.cs's WM_PAINT handling.
19531 2006-10-10 Jackson Harper <jackson@ximian.com>
19533 * TextBoxBase.cs: Finish off the autoscrolling stuff.
19535 2006-10-10 Chris Toshok <toshok@ximian.com>
19537 * Cursor.cs: Apply a slightly different patch to the one suggested
19540 2006-10-10 Jackson Harper <jackson@ximian.com>
19542 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19543 not the parent form.
19544 * TextControl.cs: use difference in old line count vs new count to
19545 calculate how many lines were added, this takes into account soft
19546 line breaks properly.
19548 2006-10-10 Chris Toshok <toshok@ximian.com>
19550 * LinkLabel.cs: don't call MeasureCharacterRanges against a
19551 rectangle located at 0,0 and the size of the text. Use
19552 ClientRectangle instead. This fixes rendering of non-left aligned
19555 2006-10-10 Jackson Harper <jackson@ximian.com>
19557 * TextBoxBase.cs: When we set the selection start position the
19559 * TextControl.cs: Need to update the caret when we decrement it to
19561 - Make sure that the selection_visible flag gets reset to false if
19562 the selection isn't visible. Before this you could get it set to
19563 visible by changing the selection start, then changing the end to
19566 2006-10-09 Jackson Harper <jackson@ximian.com>
19568 * TreeView.cs: Don't update scrollbars when we aren't visible.
19569 * TreeNodeCollection.cs: Only need to update scrollbars if being
19570 added to an expanded visible node or the root node.
19572 2006-10-09 Chris Toshok <toshok@ximian.com>
19574 * XplatUIX11.cs (SendMessage): fix NRE.
19576 2006-10-09 Jackson Harper <jackson@ximian.com>
19578 * TextBoxBase.cs: Implement horizontal autoscrolling.
19579 * TextControl.cs: Add a movement types that allows moving forward
19580 and backwards without wrapping.
19582 2006-10-09 Mike Kestner <mkestner@novell.com>
19584 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19585 with focus "expansion" of labels. Fixes #79532 and then some.
19586 * ThemeWin32Classic.cs : add LineLimit to ListView label format
19589 2006-10-09 Jackson Harper <jackson@ximian.com>
19591 * TextBoxBase.cs: Set the default max values to MaxValue since
19592 we use the scrollbar for autoscrolling and the default value is
19593 100. If we don't do this the caret won't keep up with typing
19594 after about 18 characters.
19595 * TextControl.cs: Make sure the selection is offset by the
19596 viewport x. This fixes selection when using auto scrolling.
19598 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
19600 * Form.cs: The active control should be selected after the
19601 OnLoad so that any child control initialization that affects
19602 the selection is done. Fixes #79406
19604 2006-10-06 Chris Toshok <toshok@ximian.com>
19606 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19607 to have no evil effects.
19609 - Stop selecting StructureNotifyMask on non-toplevel windows.
19611 The only way children should be resized is by using the SWF api,
19612 and we already send WM_WINDOWPOSCHANGED messages in those cases.
19613 Toplevel windows can be interacted with via the window manager,
19614 and so we keep the input mask there.
19616 The other event StructureNotifyMask gives us (that we care
19617 about) is DestroyNotify. The code is already structured such
19618 that it assumes we won't be getting a DestroyNotify event for
19619 the window we pass to XDestroyWindow (which is what
19620 StructureNotifyMask is supposed to guarantee.) So, that code
19621 shouldn't be affected by this either.
19623 - Stop selecting VisibilityChangeMask altogether.
19625 We weren't doing anything with the resulting events anyway.
19627 This vastly reduces the number of X requests and events we see
19628 when resizing/laying out a large ui.
19630 2006-10-06 Chris Toshok <toshok@ximian.com>
19632 * ScrollableControl.cs (DisplayRectangle): we need to take into
19633 account the DockPadding regardless of whether or not auto_scroll
19634 == true. rework this slightly to this effect, and fix bug #79606,
19635 and part of #72499 (you can now see the drag handles and drag
19638 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
19640 * ListViewItem.cs: Collections of selected and checked items are now
19641 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19642 we mark the collection "dirty".
19643 * ListView.cs: Marked collections readonly. Modified UpdateSelection
19644 to only clear SelectedItems when a new item is selected and MultiSelect
19645 is enabled. CheckedItems and SelectedItems now subscribe to Changed
19646 event of ListViewItemCollection, and mark its list dirty whenever
19647 that event is fire. This allows us to return selected/checked items
19648 in the same order as they are in the Items collection. This matches
19651 2006-10-06 Chris Toshok <toshok@ximian.com>
19653 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19654 right mouse clicks. Fixes bug #79593.
19656 2006-10-06 Chris Toshok <toshok@ximian.com>
19658 * Splitter.cs: doh, fix splitters that don't want to cancel the
19659 movement when you drag them. Also, impose the limits on the
19660 values we send to the SplitterMovingEvent. Fixes #79598.
19662 2006-10-06 Jackson Harper <jackson@ximian.com>
19664 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19665 since we use this for auto scrolling also.
19667 2006-10-05 Chris Toshok <toshok@ximian.com>
19669 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
19670 beginning to think that most datagrid column types don't need this
19671 method. Fixes bug #79392.
19673 2006-10-05 Chris Toshok <toshok@ximian.com>
19675 * DataGrid.cs: move back to a more lazy scheme for creating the
19676 CurrencyManager, so we aren't updating it every time you set
19677 either DataSource or DataMember. Also, don't call
19678 RecreateDataGridRows if the currency manager hasn't changed.
19680 2006-10-05 Chris Toshok <toshok@ximian.com>
19682 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19683 emitted, SelectedIndex should already be updated. Fixes bug
19686 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
19688 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19689 ToolStripTextBox.cs: Initial commit.
19690 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19692 2006-10-05 Jackson Harper <jackson@ximian.com>
19694 * TabControl.cs: We need to invalidate the tab control area when
19695 new ones are added (duh).
19697 2006-10-03 Chris Toshok <toshok@ximian.com>
19699 * Form.cs (ProcessDialogKey): if the focused control is in this
19700 form and is a button, call its PerformClick method here. Fixes
19703 2006-10-04 Jackson Harper <jackson@ximian.com>
19705 * TabPage.cs: Ignore setting of Visible, and add an internal
19706 method for setting the controls visibility. TabPage's Visible
19707 property is a little strange on MS, this seems to make us
19708 compatible, and fixes cases where people set all the tab pages to
19710 * TabControl.cs: Use the new internal setting on tab pages
19713 2006-10-03 Mike Kestner <mkestner@novell.com>
19715 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19717 2006-10-03 Mike Kestner <mkestner@novell.com>
19719 * ListView.cs : use is_visible instead of Visible to check if
19720 scrollbars should be placed/sized. Also some max_wrap_width
19721 love for LargeIcon view. [Fixes #79533]
19723 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
19726 Make set_TextAlign() do actually update the align. Fixed #78403.
19728 2006-10-03 Chris Toshok <toshok@ximian.com>
19730 * DataGrid.cs: fix a crash when switching datasources if the
19731 vertical scrollbar is at someplace other than Value = 0. Also,
19732 reduce the number of recalculation passes we do in SetDataSource
19735 2006-10-03 Jackson Harper <jackson@ximian.com>
19737 * TextBoxBase.cs: Move the if value the same bail check up, we
19738 don't want to empty the document if it is already empty, this
19739 seems to severly mess up the caret. TODO: I should probably fix
19740 the empty statement to update teh caret somehow.
19742 2006-10-03 Chris Toshok <toshok@ximian.com>
19744 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19745 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19746 reflection, an internal row type, properties on said type, etc.)
19747 will work with our datagrid. Fixes #79531.
19749 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19751 * FileDialog.cs: Don't crash if a path is not accessible
19752 (System.UnauthorizedAccessException). Fixes #79569.
19753 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19754 a ':' too. Return unknown icon for those paths/files.
19756 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
19758 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
19759 GetContainerControl returns null.
19761 2006-10-02 Chris Toshok <toshok@ximian.com>
19763 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19764 call to XGetWindowAttributes instead of "handle". fixes an X
19765 error using notifyicon after the NotifyIconWindow to Form base
19768 2006-10-02 Chris Toshok <toshok@ximian.com>
19770 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19771 server grab and looping we need to do to get down to the most
19772 deeply nested child window.
19773 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19774 QueryPointer again after the WarpPointer so we can generate a
19775 proper (fake) MotionNotify event to be enqueued in the destination
19777 (GetCursorPos): call QueryPointer.
19781 2006-10-02 Jackson Harper <jackson@ximian.com>
19783 * NotifyIcon.cs: Derive the notify icon from a form, so things
19784 like FindForm work on it.
19785 - Swallow the WM_CONTEXTMENU message, since that is generated on
19786 mouse down, and context menu is a mouse up kinda guy. I believe
19787 the correct fix here is probably to make the notify icon entirely
19788 NC area, but this seems to work fine for anyone not manipulating
19791 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
19793 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19794 ToolStripItemCollection.cs, ToolStripLabel.cs,
19795 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19796 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19797 Initial implementation.
19798 * TextRenderer.cs: Provide padding to MeasureText.
19800 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
19802 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19803 of ButtonBaseAccessibleObject. Fix bug #79552.
19805 2006-10-02 Jackson Harper <jackson@ximian.com>
19807 * MdiWindowManager.cs: When maximizing use the containers client
19808 rect, not it's bounds, so nc area is accounted correctly.
19809 - Use the parent form's size for the menu position, since the
19810 client isn't always the full form size.
19812 2006-10-01 Chris Toshok <toshok@ximian.com>
19814 * ScrollableControl.cs: make sure neither right_edge or
19815 bottom_edge are < 0, since they're used as LargeChange for the
19816 horiz/vert scrollbars respectively. Fixes #79539.
19818 2006-10-01 Chris Toshok <toshok@ximian.com>
19820 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19821 the xplatuix11 code can cause us to destroy/recreate our handle.
19825 - this code can be invoked many times for the same Hwnd. Make
19826 sure we only destroy the client window once (the first time this
19827 method is called). This fixes bug #79544.
19828 - Remove the call to the improperly bound XSync. why we had two
19829 bindings to this, I will never know, but this call resulted in
19830 events being discarded from the queue(!).
19831 - correct a misunderstanding of _XEMBED_INFO - the second atom is
19832 not our current state but the state we wish to be in. So, 0 if
19833 we don't want to be mapped. Change it to 1.
19834 (SystrayRemove): The XEMBED spec makes mention of the fact that
19835 gtk doesn't support the reparent of client windows away from the
19836 embedder. Looking at gtksocket-x11.c seems to agree with this.
19837 The only avenue we have for removing systray icons is to destroy
19838 them. We don't want the handle to go away for good, though, so
19839 call InternalRecreateHandle on the NotifyIconWindow. Fixes
19842 2006-10-01 Chris Toshok <toshok@ximian.com>
19844 * Form.cs (WndProc): inline the native_enabled variable usage into
19845 the cases in which it's used. Fixes #79536.
19847 2006-09-29 Mike Kestner <mkestner@novell.com>
19849 * ListView.cs : toggle the selection state for ctrl clicks in
19850 multiselect mode. [Fixes #79417]
19852 2006-09-29 Mike Kestner <mkestner@novell.com>
19854 * ListView.cs : kill CanMultiSelect and refactor the selection
19855 code to support multiselection in the absence of mod keys. Steal
19856 arrow/home/end keys by overriding InternalPreProcessMessage to
19857 restore regressed keynav behavior.
19860 2006-09-29 Jackson Harper <jackson@ximian.com>
19862 * MdiClient.cs: Repaint the titlebars when the active window is
19865 2006-09-29 Chris Toshok <toshok@ximian.com>
19867 * Application.cs: when entering a runloop with a modal, make sure
19868 the hwnd is enabled. Fixes #79480.
19870 2006-09-29 Chris Toshok <toshok@ximian.com>
19872 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
19873 when ListManager.CanAddRows == false, bump us back one.
19875 * DataGridColumnStyle.cs (ParentReadOnly): remove the
19876 listmanager.CanAddRows check. This makes ArrayLists uneditable
19877 using a datagrid, which is not right.
19878 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
19879 is an IEditable, but call property_descriptor.SetValue regardless.
19882 2006-09-29 Chris Toshok <toshok@ximian.com>
19884 * DataGridBoolColumn.cs: we need to test equality in the face of
19885 possible null values (as is the case with the default NullValue).
19886 This patch keeps us from crashing in that case.
19888 2006-09-29 Jackson Harper <jackson@ximian.com>
19890 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
19891 here, since it will get called for every node collection in the
19892 tree. This is now done in the treeview once the sorting is
19894 * TreeView.cs: Recalculate the visible order, and update the
19895 scrollbars after sorting, set the top nope to the root so that the
19896 recalc actually works.
19898 2006-09-29 Chris Toshok <toshok@ximian.com>
19900 * LinkLabel.cs: more handling of the default link collection in
19901 the face of LinkArea manipulation. The default link collection
19902 contains 1 element (start=0,length=-1). If the user sets LinkArea
19903 to anything and the links collection is the default, clear it.
19904 Then only add the link if its nonempty. Fixes #79518.
19906 2006-09-29 Chris Toshok <toshok@ximian.com>
19908 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
19909 piece correctly when we hit a '\n'. Fixes #79517.
19911 2006-09-29 Chris Toshok <toshok@ximian.com>
19913 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
19914 change the binding of gdk_init_check to take two IntPtr's, and
19915 pass IntPtr.Zero for both of them. Fixes #79520.
19917 2006-09-29 Mike Kestner <mkestner@novell.com>
19919 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
19922 2006-09-28 Jackson Harper <jackson@ximian.com>
19924 * XplatUIX11.cs: When translating NC messages make sure we go from
19925 whole window to screen, not client window to screen.
19926 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19927 method doesn't exist
19928 - Skip over controls that aren't forms when arranging.
19930 2006-09-28 Jackson Harper <jackson@ximian.com>
19932 * XplatUIWin32.cs: Clip the rect to the parent window.
19933 * XplatUIStructs.cs: Add clipping modes struct.
19934 * InternalWindowManager.cs: New private method that factors title
19935 bar heights in when calculating the pos of an NC mouse message.
19936 - Use SendMessage to force a paint when the form's size is changed
19937 instead of painting the decorations immediately.
19938 - Don't let the NC button click messages get to DefWndProc,
19939 because they will attempt to handle windowing themself, and this
19940 messes up z-order (it will put them in front of the scrollbars).
19941 * XplatUIX11.cs: Make sure that we don't reset window managers if
19942 we already have one (ie the window is an MDI window).
19944 2006-09-28 Chris Toshok <toshok@ximian.com>
19946 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
19947 menu code really needs going over.
19949 2006-09-27 Chris Toshok <toshok@ximian.com>
19951 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
19952 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19953 window is maximizable. So, we need to make sure that even if we
19954 clear the border/wm frame of those functions, they're still
19955 available (basically, we remove the decoration without removing
19956 the function). Half the fix for #79338.
19958 2006-09-27 Chris Toshok <toshok@ximian.com>
19960 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19963 2006-09-27 Chris Toshok <toshok@ximian.com>
19965 * Splitter.cs: reorder things a bit so that we don't actually
19966 draw/move the splitter until after calling OnSplitterMoving. This
19967 lets users cancel/disallow the movement by explicitly setting
19968 event.SplitX/SplitY. Fixes #79372.
19970 2006-09-27 Jackson Harper <jackson@ximian.com>
19972 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19973 because it is most likely on a window being destroyed, and that
19974 will give us an X11 error.
19976 2006-09-27 Chris Toshok <toshok@ximian.com>
19978 * PropertyGridView.cs: half of the fix for #78190. Clicking on
19979 the dropdown button now toggles between showing and hiding the
19980 dropdown. Also, get rid of dropdown_form_showing and just use
19981 dropdown_form.Visible. We still don't do a grab, but I'll leave
19982 that part to someone who has handled Capture-fu before.
19984 2006-09-27 Chris Toshok <toshok@ximian.com>
19986 * DataGrid.cs: return false if alt isn't pressed when '0' is
19987 pressed. this keeps the '0' key from being swallowed, and fixes
19990 2006-09-27 Chris Toshok <toshok@ximian.com>
19992 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19993 Calling Refresh (in response to a scrollbar event) screws up the
19994 scrollbar painting. Fixes bug #78923.
19996 2006-09-27 Chris Toshok <toshok@ximian.com>
19998 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19999 then insert into hashtable" blocks threadsafe.
20001 2006-09-27 Chris Toshok <toshok@ximian.com>
20003 * MessageBox.cs (CreateParams): the styles should be |'ed with our
20004 baseclass's, since otherwise the
20005 ControlBox/MinimizeBox/MaximizeBox assignments above have no
20006 effect. This gets the close button back in messageboxes.
20008 2006-09-27 Chris Toshok <toshok@ximian.com>
20010 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
20011 flag, not just != 0. this makes flags that are actually multiple
20012 bits (like WS_CAPTION) work. fixes bug #79508.
20014 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
20016 * PageSetupDialog.cs: add support for getting and settings the
20017 paper size, source and orientation.
20019 2006-09-26 Chris Toshok <toshok@ximian.com>
20021 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
20022 and caption == "", we need to remove the resize handles as well as
20025 * Control.cs (set_Text): turns out that setting Text on a form
20026 should change the WM styles on the window, since if ControlBox ==
20027 false, the only way to get a window border is to have a non-""
20028 Text property. check winforms/forms/text.cs for an example. so,
20029 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
20030 update both window styles and title. This fixes a lot of dialogs
20031 (including the preferences dialog in MonoCalendar.)
20033 2006-09-26 Chris Toshok <toshok@ximian.com>
20035 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
20036 control isn't a Form), call Win32ShowWindow to hide the window,
20037 but don't update the control Visible property. When we reparent
20038 back to a parent control, call SetVisible in order for the
20039 window's visibility to be reinstated.
20041 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
20044 * Control.cs (ControlCollection.Remove): remove that value.Hide()
20045 call for good, since it breaks MonoCalendar (and other things I'm
20046 sure.) Also, set all_controls to null *after* the owner calls,
20047 which end up regenerating it.
20048 (ChangeParent): allow new_parent to be == null, passing
20049 IntPtr.Zero down to XplatUI.
20051 this fixes #79294 the right way.
20053 2006-09-26 Mike Kestner <mkestner@novell.com>
20055 * GridEntry.cs : internal SetParent method.
20056 * PropertyGrid.cs : attach to property changed on the proper
20057 target if we have a hierarchical grid with subobjects. Setup
20058 GridItem.Parent for hierarchical items.
20059 * PropertyGridView.cs : Set value on the correct target for
20060 hierarchical grids. [Fixes #78903]
20062 2006-09-26 Chris Toshok <toshok@ximian.com>
20064 * Control.cs (ChildNeedsRecreating): this should return true if
20065 either we're being recreated and the child is in our list, or our
20066 parent is waiting for our recreation.
20068 2006-09-26 Chris Toshok <toshok@ximian.com>
20070 * Control.cs (ControlCollection.Remove): reinstate the
20071 value.Hide() call as suggested in bug #79294.
20073 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
20075 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
20076 coordinates (versus a relative move).
20078 2006-09-26 Chris Toshok <toshok@ximian.com>
20080 * Control.cs: rework child recreation a little bit. It turns out
20081 that we race between the DestroyNotify the WM_DESTROY message. If
20082 the parent gets its DestroyNotify before the child gets the
20083 WM_DESTROY message, the child ends up not recreating (since the
20084 parent finishes its recreation on DestroyNotify, and the child
20085 checks ParentIsRecreating.)
20087 So, instead we store off a list of all the child controls which
20088 need to be recreated when the parent control starts to recreate
20089 itself. Then, when child controls get their WM_DESTROY message we
20090 check to see if they're in the parent's pending recreation list,
20091 and if so, we recreate. This removes all dependency on ordering
20092 from the code and fixes the initial MonoCalendar upgrade dialog.
20094 2006-09-26 Jackson Harper <jackson@ximian.com>
20096 * TextControl.cs: Use the Line to get the length of the line,
20097 since soft line breaks can change the end line.
20099 2006-09-26 Chris Toshok <toshok@ximian.com>
20101 * Control.cs (ControlCollection.AddImplicit): don't add the
20102 control again if it's already in one of our lists. This keeps us
20103 from adding controls over and over again for comboboxes when their
20104 handle gets recreated (as the combobox adds implicit controls in
20105 OnHandleCreated). Fixes the X11 errors in bug #79480.
20107 2006-09-26 Jackson Harper <jackson@ximian.com>
20109 * TextControl.cs: When deleting characters make sure that any
20110 orphaned zero lengthed tags get deleted.
20111 - Fix ToString for zero lengthed tags.
20113 2006-09-25 Jackson Harper <jackson@ximian.com>
20115 * TextControl.cs: When getting a tag at the location there can be
20116 multiple tags at the same spot, these are 0-lengthed tags that
20117 appear when extra formatting has been stuck in a location. We
20118 need to pull out the last of these 0 lengthed tags.
20120 2006-09-25 Jackson Harper <jackson@ximian.com>
20122 * TextControl.cs: Fix print out in debug method.
20123 * TextBoxBase.cs: When text is set bail if we are setting to the
20126 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
20128 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20129 It is now possible to change the selected index in a FontXXXListBox
20130 with the up and down arrow keys from the FontXXXTextBoxes.
20131 Also, send the FontXXXTextBox mouse wheel event to the corresponding
20132 FontXXXListBoxes to match ms.
20134 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
20136 * SystemInformation.cs: Return a clone of the theme's MenuFont because
20137 anyone can dispose it, anytime. All other properties returns enums,
20138 structs or basic types so they don't need such tricks.
20140 2006-09-22 Jackson Harper <jackson@ximian.com>
20147 * XplatUIDriver.cs: Update interface to add a primary selection
20148 flag, so the driver can use the primary selection buffer if
20150 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20152 * RichTextBox.cs: We need to supply the data object to paste now
20153 (so we can choose to supply CLIPBOARD or PRIMARY).
20154 * TextBoxBase.cs: Supply data object to paste (see above).
20155 - Middle click uses the primary selection data object.
20157 2006-09-21 Chris Toshok <toshok@ximian.com>
20159 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20160 of SetWMStyles. It's still a rat's nest and is largely
20161 order-dependent which I dislike immensely. This also fixes the X
20162 button disappearing from toplevel forms.
20164 2006-09-21 Mike Kestner <mkestner@novell.com>
20166 * ListBox.cs: move Jordi's click/dblclick raising code to the
20169 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
20171 * ListBox.cs: Fixes 79450
20173 2006-09-21 Mike Kestner <mkestner@novell.com>
20175 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20176 to deal with people updating the TreeNodeCollection after the tree
20177 is disposed. "Fixes" 79330.
20179 2006-09-20 Jackson Harper <jackson@ximian.com>
20181 * TextControl.cs: Push the cursor record onto the undo stack
20182 before the delete action. This fixes 78651.
20184 2006-09-20 Jonathan Chambers <joncham@gmail.com>
20186 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
20187 CreateParams. Fixes 79329.
20189 2006-09-19 Chris Toshok <toshok@ximian.com>
20191 * XplatUIX11.cs: a couple of blanket code massage passes to clean
20192 things up a bit. First, get rid of the NetAtoms array (and the NA
20193 enum), and just embed the atoms as static fields. Also, add a
20194 couple of functions (StyleSet and ExStyleSet) to clean up all the
20195 bitmask testing of styles.
20197 * X11Structs.cs: remove the NA enum, not needed anymore.
20199 2006-09-19 Chris Toshok <toshok@ximian.com>
20201 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
20202 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
20203 added cleanup to get MessageBox titles appearing again, which were
20204 broken by my earlier fix for caption-less/ControlBox-less windows.
20206 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
20208 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
20209 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
20210 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
20211 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
20212 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
20213 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
20214 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
20215 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
20216 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
20217 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
20218 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
20220 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
20221 ToolStripButton.cs: Stubs needed for above.
20222 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
20224 2006-09-15 Chris Toshok <toshok@ximian.com>
20227 - make the MessageQueues hashtable Synchronized.
20229 - SendMessage: if the Hwnd is owned by a different thread, use the
20230 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
20231 thread. Fixes bug #79201.
20233 2006-09-15 Chris Toshok <toshok@ximian.com>
20235 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
20236 ControlBox == false, we disallow maximize/minimize/close. If the
20237 form Caption is "" we also disallow move (and get rid of the Title
20238 decoration). Unfortunately, regardless of how things are set,
20239 we're stuck with the Title and WM menu.
20241 2006-09-15 Chris Toshok <toshok@ximian.com>
20243 * Application.cs: add locking around the static message_filters
20244 ArrayList, part of #79196.
20246 2006-09-15 Chris Toshok <toshok@ximian.com>
20248 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
20249 Form.ControlBox == false, the window has no titlebar nor resize
20250 handles. fixes bug #79368.
20252 2006-09-15 Chris Toshok <toshok@ximian.com>
20254 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
20255 >= 0. Fixes bug #79370.
20257 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
20258 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
20260 Add properties: LayoutEngine, Margin, DefaultMargin.
20261 Add method: GetPreferredSize.
20262 Move layout logic from PerformLayout to layout engines.
20264 2006-09-13 Chris Toshok <toshok@ximian.com>
20266 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
20267 fix for #79326 broke #78718, so this change addresses that.
20269 - in SendWMDestroyMessages remove the call to
20270 CleanupCachedWindows, since we might be recreating the control and
20271 need to maintain the references to right Hwnd handles. Also, set
20272 the zombie flag to true for each of the children in the hierarchy
20273 instead of calling hwnd.Dispose. This will cause GetMessage to
20274 ignore all events for the window except for DestroyNotify.
20276 - In GetMessage, ignore messages except for DestroyNotify for
20279 * Control.cs: revert the is_recreating fix from the last
20280 ChangeLog. It's definitely "right", but it breaks switching from
20281 an MDI form to a non-MDI form. Will need to revisit that.
20283 * Hwnd.cs: add a zombie flag, which means "the
20284 client_window/whole_window handles are invalid, but we're waiting
20285 for the DestroyNotify event to come in for them". Set the flag to
20286 false explicitly if setting WholeWindow/ClientWindow, and also
20289 2006-09-13 Chris Toshok <toshok@ximian.com>
20291 * XplatUIX11.cs: rework window destruction slightly.
20293 - when destroying the windows associated with a control, we don't
20294 need 2 separate XDestroyWindow calls. Just the one for the
20295 whole_window (or for client_window if whole_window is somehow
20296 IntPtr.Zero -- can this happen?) is enough.
20298 - reworked SendWMDestroyMessages slightly, so we always dispose
20299 the child control hwnd's after sending the messages.
20301 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20302 the two places it was used (one was even using hwnd.Handle and the
20303 other hwnd.client_window. ugh), adding another call in
20304 SendWMDestroyMessages. We need this new call because now the
20305 DestroyNotify events in the queue will be ignored for the child
20306 controls (as their hwnd's were disposed, and the window id's
20307 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20309 - this fixes bug #79326.
20311 2006-09-13 Chris Toshok <toshok@ximian.com>
20313 * Control.cs: don't always set is_recreating to false at the end
20314 of RecreateHandle, since sometimes we're not done (and won't be
20315 until WndProc handles the WM_DESTROY message). Also, set
20316 is_recreating to false in the WM_DESTROY handling code. Part of
20317 the fix for bug #79326.
20319 2006-09-13 Miguel de Icaza <miguel@novell.com>
20321 * X11DesktopColors.cs: Start the droppage of debugging messages.
20323 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20325 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
20327 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20329 2006-09-12 Chris Toshok <toshok@ximian.com>
20331 * DataGrid.cs (get_ListManager): if the list_manager is null, try
20332 to create it using SetDataSource. Fixes bug #79151.
20334 2006-09-11 Chris Toshok <toshok@ximian.com>
20336 * XEventQueue.cs: add a DispatchIdle property.
20338 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20339 either the queue is null, or the queue has DispatchIdle set to
20341 (DoEvents): set queue.DispatchIdle to false around the
20342 peek/translate/dispatch message loop in this method. This keeps
20343 Application.Doevents from emitting idle events. Part of the fix
20346 2006-09-11 Chris Toshok <toshok@ximian.com>
20348 * DataGrid.cs (set_DataSource): make this work for both the
20349 winforms/datagrid test and ReportBuilder. It seems as though when
20350 we've created a ListManager (or maybe it's if we have a
20351 BindingContext?), when we set the DataSource it clears the
20352 DataMember to "". otherwise we reuse the datamember. Fixes bug
20355 2006-09-11 Chris Toshok <toshok@ximian.com>
20357 * XplatUIX11.cs: deal with queue being null, which happens in all
20358 the Clipboard functions. Fixes one of the two problems mentioned
20361 2006-09-11 Chris Toshok <toshok@ximian.com>
20363 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20364 button on various spots (including outside the menu) works closer
20365 to MS, and doesn't crash. Fixes #79343.
20367 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
20369 * ListView.cs: Do not initialize item_sorter in init. To match MS,
20370 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20371 and the internal comparer is set. When a new ListViewItemSorter is set,
20372 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20373 was specified. No further processing is necessary if SortOrder is set
20374 to it's current value. If Sorting is modified to None, and View is
20375 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20376 (either custom or our internal ItemComparer) to null, on 1.0 profile
20377 only set item_sorter to null if its our internal IComparer. If Sorting
20378 is modified to Ascending or Descending, then use our internal IComparer
20379 if none is set, and if the current IComparer is our internal one then:
20380 on 2.0 profile always replace it with one for new Sorting, and on 1.0
20381 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20382 Enum.IsDefined to verify whether a valid View value is specified in
20383 its setter. Automatically sort listview items when listview is
20384 created. In Sort, do nothing if ListView is not yet created, or if
20385 no item_sorter is set (no Sorting was set, Sorting was explicitly set
20386 to None or ListViewItemSorter was set to null). Added Sort overload
20387 taking a bool to indicate whether the ListView should be redrawn when
20388 items are sorted (we use this in ListViewItemCollection to avoid double
20389 redraws). Modified our internal IComparer to take the sort order into
20390 account. In Add and AddRange methods of ListViewItemCollection, also
20391 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20392 view), but use overload with noredraw option to avoid double redraw.
20393 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20394 true when View is Tile, and do the same when attempting to set View to
20395 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20396 for selected/checked indices, as it involves overhead when sorting is
20397 done while these collections are not used all that often. Instead
20398 we'll build the indices on demand. Modified IList implementation of
20399 CheckedIndexCollection to use public methods if object is int.
20400 Modified CheckedListViewItemCollection to hide checked items if
20401 ListView.CheckBoxes is false. Removed LAMESPEC remark in
20402 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20403 IList implementation in SelectedIndexCollection to use public methods
20404 if object is int. Modified SelectedListViewItemCollection to hide
20405 selected items if listview is not yet created.
20406 * ListViewItem.cs: CheckedIndices list no longer needs to be
20407 maintained separately (see ListView changes). Also clone font, fixes
20410 2006-09-11 Mike Kestner <mkestner@novell.com>
20412 * ComboBox.cs: if we are updating the contents of the currently
20413 selected index, refresh the control or the textbox selection.
20416 2006-09-11 Mike Kestner <mkestner@novell.com>
20418 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
20419 the 'specified' logic has been moved there. This seems like a bug
20420 in Control.cs, since our current SetBoundsCore completely ignores
20421 the specified parameter. Peter's commit seems to indicate that is
20422 the way the MS control implementation works. [Fixes #79325]
20424 2006-09-10 Jonathan Chambers <joncham@gmail.com>
20426 * XplatUI.cs: Set default_class_name to be composed
20427 of current domain id. This allows MWF to be loaded in multiple
20430 2006-09-09 Miguel de Icaza <miguel@novell.com>
20432 * X11Keyboard.cs: If we are unable to obtain the input method, do
20433 not call CreateXic to create the input context. Should fix
20436 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
20438 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20439 Simplified gnome support by adding more pinvokes to get the
20440 icon for a file or mime type.
20442 2006-09-08 Jackson Harper <jackson@ximian.com>
20444 * MenuAPI.cs: Deslect popup context menu items before closing the
20445 window, so that you don't see the previously selected item
20446 selected when you reopen the menu.
20447 * TextControl.cs: Update the cursor position even if we don't have
20448 focus. This fixes typing in things like the ComboBox. I'm not
20449 totally sure we should always set the visibility if we don't have
20450 focus, but couldn't find any corner cases where the cursor showed
20451 up when it shouldn't.
20453 2006-09-08 Chris Toshok <toshok@ximian.com>
20455 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20456 our arrays are length 256. & 0xff before indexing. Fixes the
20457 crash in bug #78077.
20459 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20461 * ThemeWin32Classic.cs:
20462 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20463 is true. Handle that check box too.
20465 2006-09-07 Chris Toshok <toshok@ximian.com>
20467 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
20470 2006-09-07 Chris Toshok <toshok@ximian.com>
20472 * Control.cs: in set_BackColor only do the work if
20473 background_color != value.
20475 * XplatUIX11.cs: move the clearing of invalid areas (both client
20476 and nc) to the same block of code where we set (nc_)expose_pending
20477 to false. That is, move it from PaintEventEnd to PaintEventStart,
20478 so things that cause invalidates from within OnPaint will trigger
20479 another call to OnPaint. Fixes bug #79262.
20481 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
20483 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20484 * FileDialog.cs: Fix typo
20486 2006-09-07 Jackson Harper <jackson@ximian.com>
20488 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
20489 for tab pages if they have any.
20491 2006-09-06 Mike Kestner <mkestner@novell.com>
20493 * Splitter.cs: use the "current" rect when finishing drag handle
20494 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
20496 2006-09-06 Mike Kestner <mkestner@novell.com>
20498 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20499 support offset splitters. [Fixes #79298]
20501 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
20503 * Mime.cs: Fixed a bug that could override the global mime type
20506 2006-09-05 Jackson Harper <jackson@ximian.com>
20508 * TabControl.cs: Better calculation method for setting the slider
20509 pos. Prevents crashes on really wide tabs.
20510 - Draw Image on tab pages if an image list is used.
20512 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20514 * MonthCalendar.cs: When Font changes, the Size should be
20515 updated to fit the new font's space requirements.
20517 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
20519 * ListBox.cs: If the items are cleared with Items.Clear set
20522 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20524 * MonthCalendar.cs: Handle arrow keys as input keys. Also
20525 fire DateChanged event instead of DateSelected event when
20526 the date was changed by keyboard interaction.
20528 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20530 * DateTimePicker.cs: Handle DateChanged for the associated
20531 month_calendar control, and set month_calendar.Font from
20532 OnFontChanged method, as well as resize the height of the
20533 control when needed. Make PreferredHeight proportional.
20535 2006-09-01 Chris Toshok <toshok@ximian.com>
20537 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20540 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20542 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
20544 * FileDialog.cs: Set ClientSize instead of window size, to allow space
20545 for decorations (Fixes #79219)
20547 2006-09-01 Mike Kestner <mkestner@novell.com>
20549 * ComboBox.cs: first stab at sorting plus some selection handling
20550 fixes to bring us more in line with MS behavior. Also switches back
20551 to index based selection. Alternative patches for index-based
20552 selection were provided by Jackson Harper, Carlos Alberto Cortez,
20553 and latency@gmx.de on bug 78848. I assume they were similar to this
20554 code I've had simmering in my tree forever.
20557 2006-09-01 Chris Toshok <toshok@ximian.com>
20559 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20560 when setting list position guard against ending up with a -1 index
20561 (the other part of the fix for #78812). Should probably make sure
20562 we don't need the analogous fix in the ItemDeleted case.
20565 - in SetDataSource, work around the fact that the way
20566 OnBindingContextChanged is invoked will cause us to re-enter this
20567 method. I'll remove the hack once I investigate
20568 OnBindingContextChanged.
20570 - fix the logic in set_DataSource and set_DataMember (basically
20571 what to do if the other of the two is null.)
20573 - in OnListManagerItemChanged, we need to take into account the
20574 edit row when deciding whether or not to call RecreateDataGridRows
20575 (part of the fix for #78812).
20577 2006-09-01 Jackson Harper <jackson@ximian.com>
20579 * Splitter.cs: Don't do anything if there is no control to affect
20580 (prevents us from crashing in weird tet cases).
20581 * TreeView.cs: Bounding box for the mouse movement reverting
20582 focus/selection back to previously selected node. This matches
20583 MS, and makes the tree a lot more useable.
20584 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20585 use clipping so they are not drawn. This fixes when the control
20586 is set to have a transparent background, or if it was over an
20589 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
20591 * MimeIcon.cs: Improved handling for reading default icons when
20592 using gnome (2.16 made it necessary). Check and read svg icons
20593 first, then 48x48 and then 32x32 icons.
20595 2006-08-31 Chris Toshok <toshok@ximian.com>
20597 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20600 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20601 ProcessKeyPreview. Fixes part of #77806.
20603 * DataGrid.cs: big patch.
20605 - revert the queueing up of DataSource/DataMember if inside
20606 BeginInit/EndInit calls. That's not the way the datagrid achieves
20607 its delayed databinding. Instead, call SetDataSource in
20608 OnBindingContextChanged. This mimic's MS's behavior, and fixes
20611 - Also, it wasn't mentioned in #78811, but the test case exhibits
20612 behavior that was lacking in our datagrid implementation - Columns
20613 that have mapping names that don't exist in the datasource's
20614 properties aren't shown. Yuck. To fix this I added the bound
20615 field to the column style, and basically any calculation to figure
20616 out anything about columns uses a loop to find the bound columns.
20617 still need to investigate if I can cache an array of the bound
20618 columns or if the indices must be the same.
20620 - When setting CurrentCell, we no longer abort if the cell being
20621 edited was in the add row. This fixes the other part of #77806.
20623 - The new code also fixes #78807.
20625 * ThemeWin32Classic.cs: perpetrate the same disgusting
20626 column.bound field hack, and only render bound fields.
20628 2006-08-31 Chris Toshok <toshok@ximian.com>
20630 * DataGridColumnStyle.cs: add bound field. this field is true if
20631 the datasource has a property corresponding to the mapping name.
20633 * DataGridTableStyle.cs: set the bound field on the column styles
20634 depending on whether or not we have a column for that property.
20636 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
20638 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
20639 splitter control (fixes #79228)
20641 2006-08-31 Chris Toshok <toshok@ximian.com>
20643 * DataGridColumnStyle.cs: we need to delay the assignment of
20644 property descriptor until the last possible moment due to the lazy
20645 databinding stuff in the datagrid. Also, fix the exceptions
20646 thrown by CheckValidDataSource to match MS.
20648 2006-08-31 Jackson Harper <jackson@ximian.com>
20650 * Form.cs: When activated select the active control, if there is
20651 no active control, we select the first control.
20652 * XplatUIX11.cs: If there is no focus control when we get a
20653 FocusIn event, find the toplevel form and activate it. This
20654 occurs when you popup a window, it becomes the focus window, then
20655 you close that window, giving focus back to the main window.
20657 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20659 * MonthCalendar.cs:
20660 * ThemeWin32Classic.cs: Cache Font in bold style, as well
20661 as StringFormat with Center alignments in MonthCalendar,
20662 instead of creating new ones when drawing the control.
20663 Also, draw the month name in bold style.
20665 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
20668 - PerformLayout(): It would seem MS performs the fill even if the
20669 control is not visible (part of #79218 fix)
20670 - ResetBackColor(): Use the setter to reset the color, to allow
20671 overriders to catch the change.
20673 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20674 - CreateHandle(): dito (part of $79218 fix)
20675 - Don't set an icon if we have a dialog
20676 * ScrollableControl.cs:
20677 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20678 - ScrollIntoView(): No need to scroll if control is already visible
20679 (resolves fixme and fixes #79218)
20681 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20683 * MonthCalendar.cs: Change proportions in SingleMonthSize
20684 to match the aspect of the original control.
20686 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
20688 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20689 get updated when they get maximized.
20691 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
20693 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20695 2006-08-29 Chris Toshok <toshok@ximian.com>
20697 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20699 2006-08-29 Jackson Harper <jackson@ximian.com>
20701 * TreeView.cs: Need to track selected node and highlighted node,
20702 they aren't always the same thing, when the mouse is down on a
20703 node it is hilighted, but not selected yet.
20704 - Do the HideSelection stuff right
20705 - Need to focus on rbutton mouse down. And redraw selection when
20706 right click is mouse upped.
20708 2006-08-29 Mike Kestner <mkestner@novell.com>
20710 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20711 when SubItems.Count < Columns.Count. [Fixes #79167]
20713 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20715 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20717 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20719 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20720 from X. Only send based on ConfigureNotify if we don't have the
20721 correct location in hwnd (if the window manager moved us)
20723 2006-08-28 Mike Kestner <mkestner@novell.com>
20725 * ListView.cs: remove a TODO.
20726 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20727 [Fixes ListView part of #79166]
20729 2006-08-28 Mike Kestner <mkestner@novell.com>
20731 * ListView.cs: move wheel handler to parent since it is focused
20732 instead of the item_control now. [Fixes #79177]
20734 2006-08-28 Mike Kestner <mkestner@novell.com>
20736 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20737 when the control is focused. [Fixes #79171]
20739 2006-08-28 Mike Kestner <mkestner@novell.com>
20741 * ListView.cs: size the item and header controls for empty and
20742 unscrollable views.
20743 * ThemeWin32Classic.cs: draw disabled backgrounds.
20746 2006-08-28 Chris Toshok <toshok@ximian.com>
20748 * Form.cs: remove unused "active_form" static field.
20750 * Hwnd.cs: lock around accesses to static windows collection.
20752 * Application.cs: lock threads in Exit ().
20754 2006-08-28 Chris Toshok <toshok@ximian.com>
20756 * NativeWindow.cs: lock around accesses to window_collection.
20758 2006-08-28 Chris Toshok <toshok@ximian.com>
20760 * Control.cs: err, fix this the right way, by locking on controls
20761 when using it. not by making it synchronized.
20763 2006-08-28 Chris Toshok <toshok@ximian.com>
20765 * Control.cs: make the static "controls" field synchronized, as it
20766 gets updated from multiple threads.
20768 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20770 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20771 Prevent other threads from exiting when calling thread sets quit state.
20772 * XEventQueue.cs: Added PostQuitState property
20774 2006-08-27 Chris Toshok <toshok@ximian.com>
20776 * AsyncMethodData.cs: add a slot for the window handle.
20778 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20779 window (the destination control's window, not the foster window).
20781 * Control.cs (BeginInvokeInternal): store the window's handle in
20782 the AsyncMethodData.
20785 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20788 - PostQuitMessage: Removed resetting S.D display handle, we might have
20789 another loop started after calling PostQuitMessage (Fixes #79119)
20790 - Created destructor to reset S.D handle
20792 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20794 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20796 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20798 * TextControl.cs (Insert): Update the caret position even if we don't
20799 have a handle yet, just don't call the driver in that case.
20800 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20801 to the end of the new selection text (Fixes #79184)
20803 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20805 * Form.cs (Activate): Only activate if the handle is created)
20807 - Mark window as invisible when it's disposed
20808 - Check if window handle is created when setting window visible,
20809 instead of relying just on the is_created variable
20810 - Check if object is disposed when creating the control (Fixes #79155)
20812 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20814 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20815 when allowing layout again. Otherwise we re-generate the anchoring
20816 distance to the border again and actually alter what the user wanted
20817 This is ugly, it'd be better if we used DisplayRectangle instead of
20818 ClientRectangle for Control.UpdateDistances, but that causes us to
20819 have other problems (initial anchoring positons would be wrong)
20822 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20825 - The size and location setters shouldn't go directly to
20826 SetBoundsCore, but to SetBounds, which triggers layout on the
20827 parent, then calls SetBoundsCore. (Related to fix for #78835)
20828 - SetBounds: Moved actual location update code into this function
20829 from SetBoundsCore, to match MS. Added call to PerformLayout if
20830 we have a parent (to trigger resizing of anchored parents if the
20831 child size has changed (see testcase for #78835)
20832 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
20834 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
20836 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20838 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
20839 System.Drawing when a toplevel window gets closed; there might
20840 be other toplevel windows belonging to the same app (Fixes #78052)
20842 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
20844 * FileDialog.cs: After reading FileDialog settings from mwf_config
20845 use Desktop prefix only if a real folder doesn't exist anymore.
20846 * FontDialog.cs: Added char sets.
20847 It is now possible to select the font, size or style with the
20850 2006-08-25 Kornél Pál <kornelpal@gmail.com>
20852 * PrintPreviewDialog.cs: Use assembly name constants.
20854 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20856 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
20857 scrollbar from whacking it's buttons)
20859 2006-08-24 Chris Toshok <toshok@ximian.com>
20861 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
20862 in this patch (aggregating setting Left/Top/Width/Height to
20863 setting Bounds on the scrollbars), but the crux of the fix is in
20864 Recalculate, where we scroll by the remaining scroll_position if
20865 we're hiding a scrollbar. The 2*$5 reward in the comment is
20868 2006-08-24 Jackson Harper <jackson@ximian.com>
20871 * MdiWindowManager.cs: If the form is made a non-mdi window we
20872 need to remove the form closed event so that closing forms works
20875 2006-08-24 Jackson Harper <jackson@ximian.com>
20877 * Control.cs: Make IsRecreating internal so that the driver can
20879 - Temporarily remove the Hide when controls are removed, its
20880 making a whole bunch of things not work because visibility isn't
20881 getting reset elsewhere correctly
20882 * Form.cs: Need to do a full handle recreation when the mdi parent
20884 * XplatUIX11.cs: If we are recreating handles don't dispose the
20885 HWNDs. What was happening is the handles were being recreated in
20886 SendWMDestroyMessages, but then flow continued on in that method
20887 and destroyed the new handles.
20889 2006-08-23 Jackson Harper <jackson@ximian.com>
20891 * Form.cs: MdiClient is always at the back of the bus
20892 * Control.cs: When the order of items in the collection is changed
20893 we need to reset the all_controls array
20894 - do the same sorta setup thats done when adding a control when a
20895 control is set on the collection.
20897 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20899 * TextBoxBase.cs (get_Text): Return an empty array if our document
20900 is empty (fixes #79052)
20902 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20904 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
20905 on WM_SYSCHAR messages (fixes #79053)
20907 2006-08-23 Chris Toshok <toshok@ximian.com>
20909 * DataGrid.cs: fix flickering when scrolling vertically.
20911 2006-08-23 Chris Toshok <toshok@ximian.com>
20913 * DataGrid.cs (EndEdit): only invalidate the row header when we
20916 2006-08-23 Chris Toshok <toshok@ximian.com>
20918 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
20919 methods. fixes the flicker when scrolling around.
20921 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20923 * FileDialog.cs: Making sure the control is created before we get a
20924 chance to use it with BeginInvoke (Fixes #79096)
20926 2006-08-23 Chris Toshok <toshok@ximian.com>
20928 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20929 width to use when painting the rows.
20931 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20934 - Throw ArgumentException if a negative value is passed to SelectionLength
20935 - Update the selection end if start is moved. end needs to be always
20936 after start. (Fixes #79095)
20937 - Track selection length; MS keeps the selection length even if start
20938 is changed; reset on all other operations affection selection
20940 2006-08-22 Jackson Harper <jackson@ximian.com>
20942 * TreeView.cs: Make sure both scrollbars get displayed and sized
20943 correctly when the other bar is visible.
20944 - Use the original clip rectangle for checking if the area between
20945 the two scrollbars is visible, not the viewport adjusted clipping
20948 2006-08-22 Jackson Harper <jackson@ximian.com>
20950 * Binding.cs: We don't use IsBinding because it requires the
20951 control to be created, which really shouldn't be necessary just to
20952 set a property on the control.
20954 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20956 * ComboBox.cs: Some CB.ObjectCollection methods must throw
20957 ArgumentNullReferenceException when the argument is null.
20959 2006-08-21 Jackson Harper <jackson@ximian.com>
20961 * Timer.cs: Track the thread that the timer is started in (NOT
20962 CREATED), this way messages for it will only be triggered on its
20964 * XEventQueue.cs: Track the timers here, this makes timers per
20966 * XplatUIX11.cs: The timers are moved to the XEventQueue.
20968 2006-08-19 Chris Toshok <toshok@ximian.com>
20970 * XplatUIX11.cs: after further communication with pdb, we get the
20971 best of both worlds. SetZOrder working for un-Mapped windows, and
20972 no X errors for un-mapped windows.
20974 2006-08-19 Chris Toshok <toshok@ximian.com>
20976 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20977 as it was causing pdn toolbars to not have the correct stacking.
20979 2006-08-18 Mike Kestner <mkestner@novell.com>
20981 * ListView.cs : guard against negative ClientArea.Width in scrollbar
20982 calculation. Not sure why control should ever be setting a negative
20983 width though. Fixes #78931.
20985 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20987 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20988 null items in ObjectCollection class.
20989 * ListBox.cs.: Likewise.
20991 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
20993 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20994 as the base method in ThemeWin32Classic should work fine.
20997 2006-08-18 Jackson Harper <jackson@ximian.com>
20999 * Binding.cs: When validating if the value entered doesn't convert
21000 properly reset to the old value.
21001 * RadioButton.cs: Don't fire click when we get focus.
21003 2006-08-18 Jackson Harper <jackson@ximian.com>
21005 * FileDialog.cs: Paint the selection on the directory combobox the
21008 2006-08-17 Jackson Harper <jackson@ximian.com>
21010 * ErrorProvider.cs: Don't allow the error control to be selected.
21011 * Control.cs: Don't send the SetFocus messages, the control
21012 activation will do this, and if we do it blindly here validation
21015 2006-08-17 Jackson Harper <jackson@ximian.com>
21018 * ContainerControl.cs: Make validation events fire in the correct
21019 order. TODO: For some reason the first validation event is not
21022 2006-08-17 Mike Kestner <mkestner@novell.com>
21024 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
21026 2006-08-17 Mike Kestner <mkestner@novell.com>
21028 * ComboBox.cs : implement scroll wheel support for popped-down
21029 state. Fixes #78945.
21031 2006-08-17 Jackson Harper <jackson@ximian.com>
21033 * TreeView.cs: Specify treeview actions (old patch that didn't get
21034 committed for some reason).
21035 - Don't let the mouse wheel scroll us too far. Just want to make
21036 the bottom node visible, not scroll it all the ways to the top.
21038 2006-08-17 Jackson Harper <jackson@ximian.com>
21040 * XplatUIX11.cs: Mouse wheel events go to the focused window.
21042 2006-08-17 Mike Kestner <mkestner@novell.com>
21044 * ComboBox.cs : don't do mouseover selection in simple mode.
21046 2006-08-16 Jackson Harper <jackson@ximian.com>
21048 * Form.cs: Fire the closing events for all the mdi child windows
21049 when a window is closed. If the cancel args are set to true, the
21050 main window still gets the event fired, but it doesn't not close.
21051 * MdiWindowManager.cs: Do this closing cleanup in a Closed
21052 handler, instead of when the button is clicked, so cancelling the
21053 close works correctly.
21054 * ComboBox.cs: Send the mouse down to the scrollbar.
21056 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21058 * ListBox.cs: When passing 'null' to SelectedItem,
21059 set SelectedIndex to -1, to unselect items. This is the
21060 observed behaviour in .Net.
21062 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
21064 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
21065 MS flags saying there won't be any. (fixes #78800)
21066 * Control.cs (HandleClick): Made virtual
21068 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
21070 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
21071 cultures. Fixed bug #78399.
21073 2006-08-16 Jackson Harper <jackson@ximian.com>
21075 * Form.cs: Use the MdiClients MdiChildren property to access
21076 MdiChildren instead of creating the array from the child controls.
21077 * MdiClient.cs: Maintain a separate array of the mdi children, so
21078 that insertion order is maintained when the Z-order is changed.
21080 2006-08-16 Mike Kestner <mkestner@novell.com>
21082 * ListView.cs : add an ItemComparer and default to it for sorting.
21083 Fixes #79076, but sorting needs a complete overhaul to be compat with
21086 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21088 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
21090 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21092 * Hwnd.cs (Mapped): Properly traverse the tree
21094 2006-08-15 Chris Toshok <toshok@ximian.com>
21096 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
21097 pass manager.Current.GetType() to ParseData. It has to be the
21098 property type. So, hold off doing the ParseData until we're in
21099 SetPropertyValue where we know the type. This fixes the crash in
21100 #78821 but the textbox is still empty.
21102 2006-08-15 Chris Toshok <toshok@ximian.com>
21105 - when we're scrolling, only call Edit() again if the
21106 current cell is still unobscured. Fixes bug #78927.
21107 - when handling mousedown on a cell, ensure the cell is visible
21108 before calling Edit.
21109 - remove the properties from DataGridRow, and remove the
21110 DataGridParentRow class altogether.
21113 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21115 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
21116 fire OnTextChanged by ourselves. There's no point calling base,
21117 we don't set the base value anywhere else. Fixes #78773.
21119 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21121 * ListBox.cs: Call CollectionChanged when modifying
21122 an item from Items indexer, to update the actual items
21125 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21127 * PrintDialog.cs: Small fixes for focus and a pair of checks,
21128 to match .Net behaviour.
21130 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21132 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21134 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21136 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21138 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21140 * MessageBox.cs: Prevent potential NRE exception.
21141 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21143 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21145 * MessageBox.cs: Calculate the owner of a messagebox, also make
21146 it topmost. Fixes #78753
21148 2006-08-14 Chris Toshok <toshok@ximian.com>
21150 * XplatUIX11.cs: A couple of fixes so that metacity will let us
21151 programmatically move windows. first, set the PPosition hint as
21152 well as the USPosition hint. Second include some code from pdb
21153 that sets the window type to NORMAL when we set the transient for
21154 hint. This is because, in the absence of a window type, metacity
21155 thinks any window with TransientFor set is a dialog, and refuses
21156 to let us move it programmatically. fascists.
21158 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21160 * XplatUIX11.cs: When setting normal hints, take into consideration
21161 an different hints previously set so we don't delete them (fixes #78866)
21163 2006-08-12 Chris Toshok <toshok@ximian.com>
21165 * ToolBarButton.cs: make Layout return a boolean, if something to
21166 do with the button's layout changed.
21169 - add another parameter to Redraw, @force, which all existing
21171 - make the Layout function return a boolean which is true if the
21172 layout has actually changed. Redraw now uses this (and @force)
21173 to determine when to invalidate. At present the only place
21174 where @force can be false is the call from OnResize, when
21175 background_image == null. So, resizing a toolbar when the
21176 layout doesn't change results in no drawing.
21178 2006-08-12 Chris Toshok <toshok@ximian.com>
21180 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
21181 the VScrollBar and HScrollbar reversed. oops.
21183 * DataGrid.cs: fix the logic that assigns sizes to the implicit
21184 scrollbars. we were assigning them twice (once in
21185 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21186 therefore causing two scrollbar resizes (and redraws?) to happen
21189 2006-08-12 Chris Toshok <toshok@ximian.com>
21191 * ToolBarButton.cs: redraw the entire button if the theme tells us
21194 * Theme.cs: add ToolBarInvalidateEntireButton.
21196 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
21197 buttons, just the border.
21199 * ThemeNice.cs: redraw the entire toolbar button since we need to
21200 draw the highlight image.
21202 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
21203 we need to redraw the entire button (not just the border).
21205 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
21207 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
21208 for vertical bars. Fixes the mismatches shown by #78513
21210 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
21212 * FileDialog.cs: If a saved/remembered path doesn't exist
21213 anymore, fall back to "Desktop".
21215 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
21217 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
21218 parent. It's apparently legal to not have one
21220 - SetZOrder: Don't try to set Z-Order on an unmapped window
21221 - CreateWindow: 0,0 are legal coordinates for a window. don't move
21222 it unless the coordinates are negative
21224 2006-08-10 Mike Kestner <mkestner@novell.com>
21226 * ListControl.cs: allow null for DataSource. Clear DisplayMember
21227 when setting to null per msdn docs. Fixes #78854.
21229 2006-08-10 Chris Toshok <toshok@ximian.com>
21231 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
21232 flickering by setting a clip rectangle on the Graphics when we
21233 need to redraw just a particular menuitem. Also, rename "OnClick"
21234 to "OnMouseDown" to reflect what it actually is.
21236 * Form.cs: track the OnMouseDown change.
21238 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
21240 * CommonDialog.cs: Properly inherit the CreateParams from the form
21241 and only change what we need. Fixes #78865
21243 2006-08-10 Chris Toshok <toshok@ximian.com>
21245 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
21246 flickering in flat mode (and most of the flickering in general) by
21247 only invalidating the button border (and not the entire rectangle)
21248 when the state changes. A couple of cases still flicker:
21249 ToggleButtons, and the dropdown arrow case when the user mouse
21252 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
21254 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
21255 for german keyboards. Numlock state shouldn't affect the behaviour
21256 of the Del key. Fixes bug #78291.
21258 2006-08-10 Chris Toshok <toshok@ximian.com>
21260 * ListControl.cs: remove the items.Clear line from BindDataItems,
21261 as this is the first thing done by both subclasses in their
21262 SetItemsCore overrides. Also, add a ItemChanged handler, and when
21263 passed -1, refresh the list. This gets databinding working when
21264 the datasource is set on the list before the datasource is
21265 populated (as in wf-apps/ReportBuilder.)
21267 * ComboBox.cs: remove the argument to BindDataItems. This call
21268 should really go away, and be initiated by the ListControl code.
21270 * ListBox.cs: same.
21272 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21274 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
21275 if no data is in the document when the control is displayed
21277 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21279 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
21282 - PositionCaret: Allow positioning of caret but don't call methods
21283 requiring a handle if the window isn't created yet
21284 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
21285 - owner_HandleCreated: Don't position the caret, just update it's
21286 location. User might have already set a different position
21288 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21290 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
21291 windows. Screws up the returned coordinates for child windows.
21292 Fixes #78825. I'm hoping this doesn't break something, since the
21293 code was explicitly put in 8 months ago, but no bug was attached.
21294 Menus still seem to work properly.
21296 2006-08-08 Chris Toshok <toshok@ximian.com>
21298 * DataGrid.cs: make BeginInit/EndInit actually do what they're
21299 supposed to do - delay data binding until the EndInit call. Also,
21300 make the table style collection's CollectionChangeAction.Refresh
21303 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21304 (with action = Refresh) when a consituent table's MappingName is
21307 2006-08-08 Chris Toshok <toshok@ximian.com>
21309 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21310 Invalidate, since changing the text can change the size of the all
21313 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21315 * Form.cs (AddOwnedForm): Still need to add the form to our listif
21316 we don't have it yet
21318 2006-08-08 Chris Toshok <toshok@ximian.com>
21320 * PrintControllerWithStatusDialog.cs: don't .Close() the status
21321 dialog, as this causes X errors later on, since we actually
21322 destroy the window. Instead, .Hide() it.
21324 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21326 * ComboBox.cs: Added focus reflection for popup window
21328 - Removed transient setting for non-app windows for now, not sure it
21330 - Fixed logic checking if we have captions when deciding
21331 override_redirect, WS_CAPTION is two bits and a 0 check was not
21333 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21336 - AddOwnedForm: Don't just add the form to the list, call the property
21337 to ensure the driver is informed about the ownership as well
21338 - CreateHandle: Set the TopMost status in the driver if we have an owner
21339 * XplatUI.cs: Fixed debug statement
21341 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
21342 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21343 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21344 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
21345 TrackBarRenderer.cs: Make constructor private.
21346 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21347 * ProfessionalColorTable.cs: Make properties virtual.
21349 2006-08-06 Duncan Mak <duncan@novell.com>
21351 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21354 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21355 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21356 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21357 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21358 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21359 Initial import of new 2.0 classes.
21361 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21362 * Application.cs: Add 2.0 VisualStyles properties.
21364 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21365 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21366 XplatUIX11.cs: Create property to allow access to existing private
21367 variable "themes_enabled"
21369 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21371 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21372 file size, as otherwise our class libraries fail using windows. Fixes
21375 2006-08-04 Jackson Harper <jackson@ximian.com>
21378 * XplatUIX11.cs: Move the toolwindow window manager creation into
21379 the X11 driver, this way on win32 we can let windows create/handle
21382 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21384 * PrintDialog.cs: Remove some redundant checks, add some others,
21385 clean some code, and move the focus to the text boxes when the
21386 values are incorrect.
21388 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
21390 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21392 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21394 * NumericUpDown.cs: Setting the Minimum and Maximum is now
21395 handled correctly. Fixes bug #79001.
21397 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21399 * PrintDialog.cs: The "Copies" numeric up down must have
21400 set the Minimum property to 1; only if the value is bigger
21401 than 1, activate "Collate" check box. This is the behaviour of .Net.
21402 Also modify the Document elements only if it is not null.
21404 2006-08-03 Jackson Harper <jackson@ximian.com>
21406 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21407 length. (We have a larger array then actual node count).
21409 2006-08-03 Jackson Harper <jackson@ximian.com>
21411 * ComboBox.cs: Don't show selection by default.
21412 - The SelectAll isn't needed here, since the focus code should do
21414 - DDL style lists to manual selection drawing, so when they
21415 get/lose focus they have to invalidate.
21417 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
21419 * TextBoxBase.cs: Don't always show all selections by default.
21421 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
21422 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21423 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21424 Fixed various typos.
21426 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21428 * Control.cs: Removing the controls in a ControlCollection with
21429 Clear now hides the controls as expected. Fixes bug #78804.
21431 2006-08-03 Jackson Harper <jackson@ximian.com>
21433 * Control.cs: Revert previous focus patch, it breaks reflector.
21435 2006-08-03 Jackson Harper <jackson@ximian.com>
21437 * ComboBox.cs: Cleanup selection and focus with the combobox.
21438 This also eliminates some duplicated keyboard code, since now
21439 everything is handled by the main class.
21440 - Make list selection work on mouse up instead of down, to match
21443 2006-08-02 Jackson Harper <jackson@ximian.com>
21445 * Control.cs: Setting focus needs to go through the whole
21446 selection mechanism.
21448 2006-08-02 Chris Toshok <toshok@ximian.com>
21450 * PrintPreviewDialog.cs: change MinimumSize to use
21451 base.MinimumSize so it works.
21453 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
21456 - UpdateCaret: Added sanity check in case caret isn't defined yet
21457 - Line.Delete: Now updating selection and caret markers if we're
21458 transfering a node (Properly fixes #78323)
21459 - SetSelectionEnd: Added sanity check
21460 * TextBoxBase.cs: Removed broken attempt to fix #78323
21462 2006-08-01 Chris Toshok <toshok@ximian.com>
21464 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21465 Close() call is handled in Form, not here.
21467 2006-08-01 Chris Toshok <toshok@ximian.com>
21469 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21472 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21473 for sizes < 100% zoom. The code now aggressively attempts to keep
21474 from calling document.Print (), and tries not to use the scaling
21475 g.DrawImage whenever possible (it still does if you scale to >
21476 100%, since usually that involves huge images).
21478 * PrintPreviewControl.cs: hook up the close button.
21480 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
21481 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21482 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21483 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21484 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21485 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21486 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21487 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21488 Removed [Serializable] for 2.0 Event Handlers.
21490 2006-07-31 Jackson Harper <jackson@ximian.com>
21492 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21493 * TextControl.cs: Uncomment out the body of this method.
21495 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
21497 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21500 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21502 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21503 that embed TextBox and need selections visible even if textbox is not
21504 focused to enforce that behaviour.
21505 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21508 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21511 - Added new SetSelectionStart/SetSelectionEnd overloads
21512 - Fixed viewport width assignment to be accurate
21513 - Adjusted alignment line shift calculations to allow cursor on right
21514 aligned lines to be always visible at the right border (like MS)
21516 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21517 - TextBoxBase_SizeChanged: recalculating canvas on size changes
21518 - CalculateScrollBars: Use ViewPort size instead of window size, to
21519 properly consider space occupied by the border and scrollbars
21521 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
21522 calculations; no longer leaves artifacts
21523 - CaretMoved: Adjusted window scrolling to match MS and fixed several
21524 calculation bugs (Still missing right/center align calculations)
21526 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21528 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21529 use of both scroll rect and clip rect, as they do the same.
21531 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21533 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
21534 in the event handler (fixes #78912)
21536 2006-07-31 Chris Toshok <toshok@ximian.com>
21538 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21539 grid.ListManager.Count, since grid.ListManager might be null.
21540 This of course begs the question "why are we drawing rows for a
21541 grid with no list manager (and therefor no rows)?" Fixes the
21542 crash in bug #78929.
21544 2006-07-31 Chris Toshok <toshok@ximian.com>
21546 * RelatedPropertyManager.cs: Don't always chain up to the parent
21547 ctor. instead, call SetDataSource if the parent's position is !=
21548 -1. Fixes the crash in #78822.
21550 2006-07-31 Chris Toshok <toshok@ximian.com>
21552 * DataGrid.cs (get_ListManager): use field instead of property
21553 accessors for datasource and datamember.
21554 (RowsCount): make internal again.
21555 (OnMouseDown): end edits before resizing columns/rows.
21556 (OnMouseUp): restart edits after resizing columns/rows.
21558 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
21560 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21561 This fixes the situation where the last set cursor is displayed
21562 whenever the mouse is over scrollbars.
21564 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21566 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21567 Document properties, as well as initial values.
21569 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
21571 * XplatUIWin32.cs (SetBorderStyle): Setting both border
21572 and ClientEdge results in a 3-pixel border, which is
21575 2006-07-28 Jackson Harper <jackson@ximian.com>
21577 * TreeNodeCollection.cs: Fix the clear method.
21578 - Fix the Shrink also
21580 2006-07-27 Jackson Harper <jackson@ximian.com>
21582 * TreeView.cs: Make sure the visible order is computed when we
21583 attempt to size the scrollbars (for trees that mess with the
21584 scrolling when they shouldn't.
21585 - Make sure to give the scrollbars valid values.
21587 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21589 * XplatUIX11.cs: Move motion compression code to where it
21590 has less performance impact
21592 2006-07-26 Jackson Harper <jackson@ximian.com>
21594 * UpDownBase.cs: When the control is selected make the child
21595 controls non selectable, so that a click on them won't do a
21596 focus/unfocus cycle.
21597 - Don't give focus to the text box when the spinner is selected.
21598 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21600 2006-07-26 Chris Toshok <toshok@ximian.com>
21602 * ThemeWin32Classic.cs: add print preview rendering. I'm not
21603 satisfied with this solution. If the bitmaps are small, we should
21604 just cache them in the PrintPreviewDialog and draw them here.
21605 Also, the layout is broken for the 2-up and 3-up cases.
21607 * Theme.cs: add PrintPReviewControlPaint.
21609 * PrintPreviewDialog.cs: first pass implementation.
21611 * PrintPreviewControl.cs: first pass implementation. No
21614 * PrintDialog.cs: only validate fields if that particular portion
21615 of the UI is enabled. Also, set the document's controller to a
21616 PrintControllerWithStatusDialog wrapping the document's print
21619 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21620 bring up a SaveFileDialog (i hope we don't want to match the
21621 behavior of the crappy windows file entry) and set the
21622 PrinterSettings.PrintFileName accordingly.
21624 2006-07-26 Jackson Harper <jackson@ximian.com>
21626 * ContainerControl.cs: Add a field that disables auto selecting
21627 the next control in a container when the container is activated.
21628 * UpDownBase.cs: Don't select the text box when the up down is
21631 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21633 * XEventQueue.cs: Added methods for peeking (used for compression
21634 of successive events)
21635 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21636 mouse move events (fixes #78732)
21638 2006-07-25 Jackson Harper <jackson@ximian.com>
21640 * UpDownBase.cs: Use an internal class for the textbox so that we
21641 can control focus. the updown control should always have focus,
21642 if either the text area or the buttons are clicked.
21643 - Send the key messages to the textbox, since it never actually
21645 - Activate and decativate the textbox caret.
21647 2006-07-24 Jackson Harper <jackson@ximian.com>
21649 * Control.cs: Use the directed select when selecting a control,
21650 this way the container controls override will get called and the
21651 whole ActiveControl chain will get triggered. TODO: probably need
21652 to make sure this gets done everywhere instead of the old
21654 * ContainerControl.cs: Implement the directed Select method to
21655 find and activate the correct child control.
21657 2006-07-22 Mike Kestner <mkestner@novell.com>
21659 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21660 menu handling code so that clicks without a grab work too.
21663 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
21665 * FileDialog.cs: Enable the BackButton when dirstack has one element.
21666 Added some small optimizations.
21668 2006-07-21 Matt Hargett <matt@use.net>
21670 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21672 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
21674 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
21675 tests pass and match MS in some strange border cases.
21677 2006-07-21 Chris Toshok <toshok@ximian.com>
21679 * ThemeWin32Classic.cs: handle drawing of the relation links and
21680 parent row buttons.
21682 * Theme.cs: change args to DataGridPaintParentRow.
21684 * DataGrid.cs: Don't use controls for the relation links and
21685 parent buttons, so we have to handle all their interactions in
21686 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
21687 when we're navigating through child tables, so we can reinstate
21688 selection, expanded state, current cell, etc.
21690 2006-07-20 Chris Toshok <toshok@ximian.com>
21692 * ToolBar.cs: When we redraw a button, for whatever reason,
21693 there's no reason to redraw the entire toolbar. Also, don't call
21694 Control.Refresh from within Redraw, as it's much heavier than
21695 Invalidate (which is really what we want).
21697 2006-07-20 Chris Toshok <toshok@ximian.com>
21699 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21700 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21701 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21702 traces from within a debug IBindingList datasource
21703 (in mono/winforms/datagrid) for *days*, I've finally gotten things
21704 to work in a similar fashion.
21706 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21708 * ListBox.cs: Don't call Sort () when setting
21709 the Sorted property to false (avoid an unnecessary sort).
21711 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21713 * ListControl.cs: DataSource should throw an ArgumentException
21714 instead of a normal exception when the argument is not of the
21717 2006-07-20 Mike Kestner <mkestner@novell.com>
21719 * Control.cs: add InternalPreProcessMessage to allow us to steal
21720 key events before MWF gets its paws on them. Adapted from a
21722 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
21723 up/down/left/right navigation. Override the new internal control
21724 method to steal the events since they never make it to WndProc.
21725 * ToolBarButton.cs: don't worry about pushed when setting hilight
21726 since the drawing code prefers pushed to hilight. Invalidate on
21727 Hilight changes. Fixes #78547 and #78525.
21729 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21731 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21732 the canvas size. Fixes #78868
21734 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21736 * Splitter.cs: Track requested split position until first layout
21737 is performed. Fixes #78871
21739 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21741 * Application.cs: Removed code that forces 1.x for the version
21742 number if the version started with 0. Not sure why that code was
21743 there and I couldn't find any bugs that indicated we needed it.
21746 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
21748 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21749 ResetDefaults(), just write some output to the console until it's
21750 implemented. Fixes bug #78907 for now. Eliminated two warnings.
21752 2006-07-19 Jonathan Chambers <joncham@gmail.com>
21754 * PropertyGridView.cs: set StartPosition of drop down forms
21755 so they appear in correct initial spot. Fixes #78190.
21757 2006-07-19 Mike Kestner <mkestner@novell.com>
21759 * ThemeWin32Classic.cs: use parent background color when drawing
21760 flat toolbars. Restructure the conditionals to make sure non-flat
21761 non-Divider toolbars are filled too. Fixes #78837.
21763 2006-07-19 Mike Kestner <mkestner@novell.com>
21765 * ListBox.cs: Sort on collection changes even if the handle
21766 isn't created yet. Fixes #78813.
21768 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21770 * ListControl.cs: DisplayMember should never be null,
21771 and now we assign String.Empty when null is passed to it (this
21774 2006-07-17 Mike Kestner <mkestner@novell.com>
21776 * ListViewItem.cs: restructure Font and subitem Font handling
21777 to hold a specific font and refer back to owner on null.
21780 2006-07-17 Mike Kestner <mkestner@novell.com>
21782 * ToolBar.cs: bandaid for side-effect of previous patch which was
21783 discarding explicit heights for non-AutoSize toolbars. Need to
21784 extend my format tester to deal with AutoSize=false. Fixes #78864.
21786 2006-07-15 Jackson Harper <jackson@ximian.com>
21788 * LabelEditTextBox.cs:
21789 * TreeView.cs: Use a new LabelEdit class for node editing, this
21790 class automatically 'closes' itself when it gets the enter key or
21792 - Use the client rectangle when setting the trees scrollbars, so
21793 border style is taken into account.
21795 2006-07-14 Jackson Harper <jackson@ximian.com>
21798 * TreeView.cs: Make the editing work similar to MSs, firing the
21799 events correctly and ending edits correctly.
21801 2006-07-14 Mike Kestner <mkestner@novell.com>
21803 * ToolBarButton.cs:
21804 * ToolBar.cs: layout restructuring and redraw enhancements to support
21805 formatting changes gracefully, like setting TextAlign, ImageList,
21806 ButtonSize, and Appearance. Handles explicit button sizing quirks
21807 of the MS controls. Things like flat toolbars ignoring button size
21808 but becoming constant sized at the largest button's size. Normal
21809 toolbars with an image set cannot be shrunk smaller than the image,
21810 but text can be clipped/ignored.
21811 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21812 is zero. Seems like DrawString should be smart enough to not put
21813 anything on screen though. Also trim labels and ellipsize at the char
21814 boundary, not word.
21815 Fixes #78711 and #78483.
21817 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21819 * FolderBrowserDialog.cs: Disable "New Folder" button and
21820 "New Folder" contextmenu menuitem if a folder like "My Computer"
21823 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21825 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21826 * FolderBrowserDialog.cs:
21827 - Use MWFConfig to store and read size and position settings
21828 - Added code to create a new folder (button or context menu).
21829 Use TreeView labeledit to change the name of the new folder.
21831 2006-07-14 Jackson Harper <jackson@ximian.com>
21833 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
21834 when the tree is scrolled we end editing.
21836 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21838 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
21841 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21843 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
21844 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
21845 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
21846 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
21847 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
21848 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
21849 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
21850 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
21851 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
21852 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
21853 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
21854 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
21855 ListViewItemSelectionChangedEventHandler.cs,
21856 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
21857 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
21858 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
21859 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
21860 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
21861 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
21862 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
21863 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
21864 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
21865 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
21866 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
21867 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
21868 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
21869 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
21870 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
21871 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
21872 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
21873 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
21874 WebBrowserNavigatingEventHandler.cs,
21875 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
21877 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21879 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
21880 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
21881 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
21882 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
21883 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
21884 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
21885 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
21886 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
21887 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
21888 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
21889 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
21890 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
21891 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
21892 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
21893 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
21894 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
21895 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
21896 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
21897 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
21898 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
21899 ListViewItemStates.cs, MaskFormat.cs: Added
21901 2006-07-13 Jonathan Chambers <joncham@gmail.com>
21903 * PropertyGridView.cs: Fix keyboard navigation of drop down.
21904 Patch from eno for bug 78558.
21906 2006-07-13 Jackson Harper <jackson@ximian.com>
21908 * TreeView.cs: When an edit is finished make sure that the
21909 selected node is visible.
21910 - When setting the top/bottom use the scrollbars is_visible, so
21911 everything will be set correctly even if the tree isn't visible
21914 2006-07-13 Jackson Harper <jackson@ximian.com>
21916 * ComboBox.cs: Revert the item->index part of my previous patch.
21917 * TreeView.cs: Use LostFocus instead of Leave for detecting when
21918 the edit box has lost focus (duh).
21919 - Just make the edit box not visible when we get return, that will
21920 take the focus, which will call EndEdit
21921 * TreeNode.cs When we start editing, notify the treeview.
21923 2006-07-12 Jackson Harper <jackson@ximian.com>
21925 * ComboBox.cs: Clear out old items before setting the item list.
21926 This prevents databound controls from having their items added
21928 - Switch the combobox to use indices whereever possible instead of
21929 using Item's. This allows usto navigate through lists that have
21930 more then one item with the same string value (ie a, b, b, a).
21931 - Scroll the listboxes scrollbar when a non visible item is
21933 - Allow keypress to cycle through all the possible values. For
21934 example if you have b1, b2, b3 and hold down the B key all the
21935 values will be cycled through.
21937 2006-07-12 Jackson Harper <jackson@ximian.com>
21940 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21941 this using the internal methods.
21942 * Control.cs: Add OnGotFocusInternal. A new method that allows
21943 controls to "override" OnGotFocus and change focus behavior if
21945 - Same thing for LostFocus
21946 * ComboBox.cs: Pass off focus to the text control properly.
21948 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
21950 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21951 * FolderBrowserDialog.cs: Almost a complete rewrite.
21952 - Better support for Environment.Specialfolders
21953 - Added support for MWFVFS
21954 - Made setting SelectedPath work
21956 2006-07-12 Jackson Harper <jackson@ximian.com>
21958 * Control.cs: Optimze getting all the controls.
21960 2006-07-11 Jackson Harper <jackson@ximian.com>
21962 * ContainerControl.cs: Override SETFOCUS in the container control,
21963 so that it is not selected on mouse click.
21965 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21967 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
21968 Hopefully we will have a better way once all of focus is complete.
21970 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21972 * ThemeWin32Classic.cs: Commented out some debug code and fixed
21973 a compile error with csc.
21975 2006-07-11 Jackson Harper <jackson@ximian.com>
21977 * Control.cs: When hiding a control only select the next control
21978 if the current control was focused.
21979 - Don't handle enter/leave when setting/killing focus, this is
21980 done by the container control.
21981 - Remove is_selected, it's not needed anymore.
21982 - Add utility methods for selecting a child control, and for
21983 firing the Enter/Leave events.
21984 * ContainerControl.cs: When a control is activated fire the
21985 enter/leave events.
21986 - Don't wrap when processing the tab key, so that focus can be
21987 moved outside of the container.
21988 - Use the correct active control
21990 2006-07-11 Jackson Harper <jackson@ximian.com>
21992 * ComboBox.cs: Remove some debug code that was blinding me.
21993 * UpDownBase.cs: These controls actually aren't implicit, they are
21994 visible to the user.
21996 2006-07-10 Chris Toshok <toshok@ximian.com>
21998 * DataGrid.cs: move back to the is_adding boolean field. god i
21999 hate this is_editing/is_adding/is_changing stuff.
22001 2006-07-10 Chris Toshok <toshok@ximian.com>
22003 * DataGridTableStyle.cs: just check if the property type is bool.
22004 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
22005 Don't use CanRenderType.
22007 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
22008 if our text == NullText. Remove CanRenderType.
22010 * DataGridBoolColumn.cs: nuke CanRenderType.
22012 * DataGrid.cs: reenable some code to end the current edit inside
22013 of set_CurrentCell. This fixes the other 1.1.16 regression.
22014 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
22015 Also, remove the visible_row_count arg from CalcRowHeaders, since
22016 we don't need to worry about the actual height of the area.
22018 2006-07-10 Chris Toshok <toshok@ximian.com>
22020 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
22023 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
22024 the real sense of the IsInEditOrNavigateMode property (true =
22025 navigate, false = edit). Also, update OnKeyPress to reflect this.
22027 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
22028 column style exists, we still need to set its property descriptor
22029 to match up with our list manager.
22031 2006-07-10 Chris Toshok <toshok@ximian.com>
22033 * ThemeWin32Classic.cs: implement the new row/header painting
22034 approach. The parent row painting will likely go away and
22035 replaced with label controls, but the rest seems to work ok (and
22038 * Theme.cs: change the way we draw datagrid rows. we don't draw
22039 the row headers as a block now. Instead we draw them in the
22040 normal draw-row loop. Add some calls for drawing parent rows and
22043 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
22044 a default table style. Set the defaults from ThemeEngine.Current,
22045 not SystemColors. Fix lots of misc issues with property setters.
22047 * DataGrid.cs: move loads of style information out of this class
22048 as it's being duplicated with DataGridTableStyle. keep track of a
22049 special DataGridTableStyle for the properties we used to mirror
22050 here. Switch all the style properties to access this table style
22051 instead of instance fields of this class. Also add a internal
22052 class to represent parent rows (more needs to be stored here, like
22053 the selection state from the parent table, as well as the
22054 expansion state.) Also, for datasources with relations, do the
22055 right thing for collapse/expand, and add support for the
22056 navigation/parent row buttons.
22058 Lastly, fix the crash in the 1.1.16 build.
22060 * GridTableStylesCollection.cs: make the explicit interface
22061 implementations call the class's methods as opposed to duplicating
22064 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
22065 0 so the text doesn't jump around when we move the cursor.
22067 2006-07-10 Jackson Harper <jackson@ximian.com>
22070 * ListBox.cs: Match MS's ToString (this makes debugging focus
22071 stuff infinitely easier).
22073 2006-07-10 Jackson Harper <jackson@ximian.com>
22075 * Control.cs (SelectNextControl): When checking the control's
22076 parent use this instead of ctrl.parent so that null can be passed
22077 to SelectNextControl. (I have unit tests for this).
22078 - Remove unused var.
22080 2006-07-10 Chris Toshok <toshok@ximian.com>
22082 * CurrencyManager.cs: correct one regression, the removal of the
22083 finalType field. Also, add a MonoTODO on CanAddRows, implement
22084 Refresh() correctly, and fix some event emission in
22085 ListChangedHandler.
22087 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
22089 * FileDialog.cs: Don't use brackets for new folders if they exist
22090 under *nix. Instead use -(number of existing folders +1).
22092 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
22095 - Fixed really nasty bug #78771
22096 - Don't block the whole GUI when reading directories with a lot of
22097 entries. Use an other thread instead and call BeginInvoke to
22098 update the ListView in MWFFileView
22100 2006-07-07 Chris Toshok <toshok@ximian.com>
22102 * Control.cs (Dispose): release any Capture when disposing.
22104 2006-07-07 Chris Toshok <toshok@ximian.com>
22106 * LinkLabel.cs (Select): if we chain up to the parent, set
22107 focused_index to -1 so we'll search for the first available link
22108 the next time the user tabs into us. Also, if the direction is
22109 backward and focused_index == -1, start the search from the last
22112 2006-07-07 Chris Toshok <toshok@ximian.com>
22114 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
22115 is beyond the end of the text, don't do anything.
22116 (CreateLinkPieces): set our ControlStyles.Selectable based on
22117 whether or not we have any links.
22118 (Link.Invalidate): use a loop instead of foreach.
22119 (Link.set_Start): null out owner.sorted_links so it'll be
22120 recreated by CreateLinkPieces.
22122 2006-07-06 Chris Toshok <toshok@ximian.com>
22124 * LinkLabel.cs: revert the SetStyle change.
22126 2006-07-06 Chris Toshok <toshok@ximian.com>
22128 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22129 (OnEnableChanged): s/Refresh/Invalidate
22130 (OnGotFocus): if we have a focused index already, refocus it (so
22131 if we mouse out/in to the window it'll focus the right link).
22132 (OnKeyDown): move the tab handling out of here.
22133 (OnLostFocus): don't set focused_index to -1, so we can refocus it
22134 when we lose focus.
22135 (OnMouseDown): don't Capture here - Control handles it. Also,
22136 focus the active link.
22137 (OnMouseUp): don't deal with Capture.
22138 (OnPaintBackgroundInternal): remove.
22139 (OnTextAlignChanged): CreateLinkPieces before calling the
22140 superclass's method.
22141 (OnTextChanged): call CreateLinkPieces before calling superclass's
22143 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22145 (Select): implement this, moving the selection between different
22146 links, and call parent.SelectNextControl if we don't have another
22147 link to focus in the given direction.
22148 (CreateLinkPieces): call Invalidate instead of Refresh.
22150 2006-07-06 Chris Toshok <toshok@ximian.com>
22152 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22153 new LinkLabel internals.
22155 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
22156 over pieces looking for active/focused/etc links. also, deal with
22157 runs of text (and links) with embedded \n's in them, and use
22158 MeasureCharacterRanges instead of MeasureString to figure out the
22159 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
22162 2006-07-04 Jackson Harper <jackson@ximian.com>
22164 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22165 XKB or key auto repeat, do it manually. Without key auto repeat,
22166 when a key is held down we get key press, key release, key press,
22167 key release, ... with auto repeat we get key press, key press, key
22168 press ..., and then a release when the key is actually released.
22170 2006-07-03 Jackson Harper <jackson@ximian.com>
22173 * ThemeWin32Classic.cs: Tabs do not obey normal background color
22174 rules, they are always control color regardless of the background
22177 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
22179 * FileDialog.cs: Added internal class MWFConfig.
22180 Removed Registry support and replaced it with support for the new
22181 MWFConfig class. See MWFConfig comments for more information.
22183 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
22185 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22186 rectangle. Added some patches from eno from bug #78490 and fixed
22187 the arrow position for small up and down CPDrawScrollButtons.
22189 2006-06-30 Jackson Harper <jackson@ximian.com>
22191 * InternalWindowManager.cs: Remove some debug code.
22192 * Form.cs: When an MdiParent is set to null, the window is
22193 "detatched" and becomes a normal window.
22194 * MdiClient.cs: Don't bring the new child form to the front until
22195 it is activated (setting it as active does this), this makes the
22196 previously active forms titlebar get redrawn as inactive.
22198 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
22200 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
22201 with later controls
22203 2006-06-29 Mike Kestner <mkestner@novell.com>
22205 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
22206 arrow in keynav state. Fixes #78682.
22208 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
22210 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
22211 order (fixes #78393)
22213 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
22215 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
22216 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
22217 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
22218 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
22219 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
22220 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
22221 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
22222 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
22223 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
22224 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
22225 enumerations (FlagsAttribute, SerializableAttribute, added/removed
22228 2006-06-28 Mike Kestner <mkestner@novell.com>
22230 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
22232 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
22235 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
22236 item lines from other area (It also makes BackColor consistent and
22237 compatible with .NET). Fixed bug #78564.
22239 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
22241 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
22242 Patch from Eno for #78555.
22244 2006-06-27 Chris Toshok <toshok@ximian.com>
22246 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
22248 * DataGridColumnStyle.cs: same.
22250 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
22252 * DataGridDrawingLogic.cs: nuke.
22254 2006-06-27 Chris Toshok <toshok@ximian.com>
22256 * DataGridTableStyle.cs: clean up the constructors, and build the
22257 list of child relations for this table. I have no idea if this is
22258 where we should be doing it (it probably isn't), but since we're
22259 already iterating over the properties..
22261 * DataGrid.cs: add row resizing. for now we add a DataGridRow
22262 struct and array for keeping track of row information, similar to
22263 what's shown in a hack on
22264 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
22266 * Theme.cs: be consistent about the naming of DataGrid methods,
22267 prefering ColumnWidths and RowHeights over columnsWidths and
22270 * ThemeWin32Classic.cs: same, and also add support for variable
22271 sized rows (and the +/- expansion icons for related rows).
22273 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22275 * TextBoxBase.cs: Applied Eno's patch from #78660
22277 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22279 * Form.cs (ScaleCore): We don't want to scale our form if it's
22280 state is minimized or maximized, but we still need to scale our
22281 child windows. Also, added try/finally block to ensure layout
22282 gets reset (Fixes #78697)
22284 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22286 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
22288 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22290 * Form.cs: Fixed c+p error and added check to resize form if minimum
22291 size is bigger than current size (Fixes #78709)
22293 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
22295 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22297 2006-06-26 Mike Kestner <mkestner@novell.com>
22299 * ComboBox.cs: only do Keypress handling in the combo when there
22300 are items in the collection. Fixes #78710.
22302 2006-06-26 Chris Toshok <toshok@ximian.com>
22304 * Binding.cs: make this work bi-directionally. also, clear up
22305 other mixups between Push/Pull Data (e.g. we're supposed to pull
22306 data when validating).
22308 * BindingManagerBase.cs: trim some fully qualified collection
22311 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22313 2006-06-23 Chris Toshok <toshok@ximian.com>
22315 * PropertyManager.cs: It appears (according to the unit tests)
22316 that PropertyManager doesn't use
22317 PropertyDescriptor.AddValueChanged to track propery value changes
22318 in its datasource, but uses the same scheme as Binding, where it
22319 looks for a <Property>Changed event and binds to it.
22321 Also, according to the docs, IsSuspended always returns false for
22322 a property manager with a non-null datasource.
22324 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22326 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22327 need to update the actual DialogResult. (Fixes #78613)
22329 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22331 * Form.cs (ShowDialog): Release any captures before running the
22332 new message pump (fixes #78680)
22334 2006-06-22 Mike Kestner <mkestner@novell.com>
22336 * ListView.cs: Layout column widths properly in details mode even
22337 if HeaderStyle.None is set. Fixes #78691.
22339 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22341 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22343 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22345 * Control.cs (ContainsFocus): Using new driver method to get focused
22346 window, instead of trying to use internal tracking var, which can
22347 recursion issues (Fixes #78685)
22348 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
22349 XplatUIWin32.cs: Added GetFocus method to return focused window
22351 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22353 * ColorDialog.cs: when the mouse button is pressed inside the color
22354 matrix, don't let the cursor move out of it until the button is
22355 released, which is the behavior on windows. Changed 'colours' by
22356 'colors' to use the same word consistently.
22358 2006-06-21 Chris Toshok <toshok@ximian.com>
22360 * DataGrid.cs: add in some basic navigation stuff (navigating to a
22361 child relation and back, using a stack). Also, remove
22362 GetDataSource and the code that calls it - it's not needed. Also,
22363 track CurrencyManager.ListName's removal.
22365 2006-06-21 Chris Toshok <toshok@ximian.com>
22367 * CurrencyManager.cs: push some of the original type checking from
22368 BindingContext.CreateBindingManager to here, and remove some of
22369 the finalType stuff. Need more tests to make sure I've got the
22370 ListName part right, and we might need more in SetDataSource.
22372 * PropertyManager.cs: add a ctor that takes just the datasource,
22373 and no property name. Make SetDataSource work with a null
22374 property_name, and make Current return the data_source if the
22375 property descriptor is null. this makes 'string foo = "hi";
22376 BindingContext[foo].Current' return "hi" as it should.
22378 * RelatedCurrencyManager.cs: make this code more generic - there's
22379 no reason the parent manager has to be CurrencyManager, and
22380 there's no reason to pass the DataRelation. It suffices to use a
22381 BindingManagerBase and PropetyDescriptor.
22383 * RelatedPropertyManager.cs: make a similar change here.
22385 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22386 flower I knew it could be.
22388 2006-06-20 Chris Toshok <toshok@ximian.com>
22390 * PropertyManager.cs: the PropertyChangedHandler is invoked when
22391 data in the source has changed and we need to update the control,
22392 so s/PullData/PushData.
22394 * CurrencyManager.cs: Refresh is meant to update the control from
22395 data in the datasource. So, s/PullData/PushData.
22397 * BindingContext.cs: add more ugliness (we weren't handling the
22398 case where data_source = DataTable and data_member = column_name).
22400 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
22401 from the perspective of the datasource. PullData pulls from the
22402 control, PushData pushes to the control.
22404 2006-06-20 Chris Toshok <toshok@ximian.com>
22406 * BindingContext.cs: rewrite the CreateBindingManager code to
22407 handle navigation paths more or less properly. This could
22408 definitely stand some more work, in particular to push the
22409 recursion up to the toplevel. But that relies on fixes in other
22410 places (System.Data comes to mind).
22412 Also, move to a flat hashtable (and encode the twolevel nature of
22413 the dictionary into the hash key). This lets us implement the
22414 IEnumerable.GetEnumerator method.
22416 * RelatedCurrencyManager.cs: new class. Update our view based on
22417 our relation and our parent CurrencyManager's position.
22419 * CurrencyManager.cs: split out some logic from the ctor into
22420 SetView, so it can be called from the new RelatedCurrencyManager
22423 * RelatedPropertyManager.cs: new class. Update our datasource
22424 based on the position of our parent CurrencyManager.
22426 * PropertyManager.cs: split out some logic from the ctor into
22427 SetDataSource, so it can be called from the new RelatedDataSource
22428 subclass. Also, make the Current getter return the value
22429 of the PropertyDescriptor, not the data_source.
22431 * Binding.cs: no need to duplicate the string splitting code here.
22433 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22436 - set_Enabled: OnEnabledChanged is not called if the inherited state
22437 of the control is not altered, even though we might be changing the
22438 internal state of the control (#78458)
22439 - set_Enabled: (Re)Moved the enabling/disabling of the window to
22440 OnEnabledChanged, to allow easy altering of any child window state
22441 - OnEnabledChanged: Added code to enable/disable driver window state
22442 - OnParentEnabledChanged: Instead of firing the event, call
22443 OnEnabledChanged, which will fire the event and also a) set driver
22444 window state and pass the enabled state to any grandchildren (#78458)
22446 2006-06-19 Jackson Harper <jackson@ximian.com>
22448 * InternalWindowManager.cs: We don't set the cursor explicitly
22449 thats done via the response to NCHITTESTs.
22450 - Don't need to adjust for titlebar heights anymore, the
22451 coordinates are coming in the correct coordinates now (see peters
22455 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22457 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22458 being translated relative to whole window, instead of client window.
22459 That caused broken offsets on mouseclick (and caused gas for our
22460 InternalWindowManager)
22462 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22465 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22466 - Undo(): Added replay of cursor move on DeleteChars action; added
22467 calling Undo() again if a recorded cursor move is invalid (to
22468 ensure that some action is performed on Undo)
22469 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22471 2006-06-16 Jackson Harper <jackson@ximian.com>
22473 * MdiClient.cs: Instead of just sizing maximized windows when
22474 there is a resize we also have to adjust the Y of minimized
22475 windows, so they stay pinned to the bottom of the mdi container.
22476 - Eliminate separate tracking of the active control, we can just
22477 get this from the controls collection.
22478 - Paint the decorations for the newly activated titlebar so we get
22480 * InternalWindowManager.cs:
22481 * ThemeWin32Classic.cs: Minimized windows get all three buttons
22482 even if they are a tool window.
22484 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22486 * TextControl.cs (Undo): Handle non-existent cursor locations in the
22487 undo buffer, these can happen when text was deleted and the cursor
22488 was recorded first. Since we will also have a recorded cursor
22489 after the delete this is not an issue. (Fixes #78651)
22491 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
22493 * AccessibleObject.cs: Remove dependence on Control.is_selected;
22494 instead properly track control states internally (allows us to
22495 remove is_selected from Control)
22497 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22499 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22500 whose width is not a multiple of 8.
22502 2006-06-13 Jackson Harper <jackson@ximian.com>
22504 * MdiClient.cs: Only maximize the next child if the current one
22507 2006-06-13 Chris Toshok <toshok@ximian.com>
22509 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22510 modified. Also, guard against grid or grid_drawing being null in
22513 * DataGrid.cs: Reformat tons of getters/setters. In the
22514 DataMember setter, just call SetNewDataSource instead of
22515 duplicating some of its functionality. In SetNewDataSource, don't
22516 check ListManager for null, since the property getter creates the
22519 * DataGridTableStyle.cs: don't set TableStyle or call
22520 SetDataGridInternal on the column here, it's done in
22521 GridColumnStylesCollection.Add.
22523 * GridColumnStylesCollection.cs: fix all the explicit interface
22524 implementations to just call our methods. Nuke AddInternal() and
22525 move the body of it to Add(). Also, add a call to
22526 column.SetDataGridInternal to Add().
22528 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22529 base()+duplicate code. Also, use the Format property instead of
22530 format to generate an Invalidate ala MS. Lastly, create the
22531 textbox here, unconditionally.
22532 (set_Format): call Invalidate.
22533 (get_TextBox): no need to call EnsureTextBox.
22534 (Commit): remove the message box.
22535 (Edit) remove the call to EnsureTextBox.
22536 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22537 (EnterNullValue): no need to check textbox for null.
22538 (HideEditBox): no need to check textbox for null.
22539 (SetDataGridInColumn): add the textbox to the grid's controls.
22540 (EnsureTextBox): nuke.
22542 2006-06-13 Jackson Harper <jackson@ximian.com>
22544 * MdiWindowManager.cs: Hook up to the maximized menus paint event
22545 and redraw the buttons when needed. Unhook when the window is
22547 * MainMenu.cs: Add an internal Paint event, the mdi window manager
22548 needs this so that it can redraw its buttons when the menu is
22550 * InternalWindowManager.cs:
22551 * Form.cs: The method order has changed for DrawMaximizedButtons,
22552 so that it can be a PaintEventHandler.
22554 2006-06-13 Jackson Harper <jackson@ximian.com>
22556 * MdiClient.cs: When we close a maximized mdi window, the next mdi
22557 window is activated and maximized, even if it wasn't before.
22558 - When a new window is activated repaint the decorations of the
22559 old one, so that it no longer has the Active "look" (the blue
22561 * InternalWindowManager.cs: Open up CreateButtons to base classes
22562 so they can recreate the buttons on state changes.
22563 - If a window is maximized give it all three buttons
22564 * MdiWindowManager.cs: Create the titlebar buttons when the state
22565 is changed, this is needed because a toolwindow will not have all
22566 three buttons until it is maximized.
22568 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
22570 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22573 2006-06-12 Jackson Harper <jackson@ximian.com>
22575 * KeysConverter.cs: Make sure we handle the Ctrl special case
22576 if its the only key.
22578 2006-06-12 Jackson Harper <jackson@ximian.com>
22580 * Theme.cs: Add a method to get the size of a managed window
22582 * InternalWindowManager.cs: Remove the ButtonSize property, this
22583 should be retrieved from the theme.
22584 * MdiWindowManager.cs: Get the button size from the theme
22585 * ThemeWin32Classic.cs: Make the method to get the managed window
22586 titlebar button size public.
22587 - Handle the different button sizes of maximized toolwindows
22588 (should match any maximized window).
22589 - Get the titlebar height from the theme, not the WM (which gets
22590 it from the theme).
22592 2006-06-12 Jackson Harper <jackson@ximian.com>
22594 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22595 event down to the mdi window manager.
22596 - Expose some extra stuff to base classes
22597 - Make sure to end the Capture on an NC Mouse up, so that we can
22598 get double clicks properly, and the sizing doens't stick.
22599 - When doing PointToClient contain it in the workable desktop
22600 area, this prevents windows from changing size when the cursor is
22601 pulled outside of the working area while sizing.
22602 * MdiWindowManager.cs: When we get a double click maximize the
22604 - Reset the cursor after handling mode changes.
22606 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
22608 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
22609 current desktop, instead of just assuming a 0, 0 origin. This
22610 is needed for our internal window manager, to know the top
22611 margin of the desktop
22613 2006-06-12 Chris Toshok <toshok@ximian.com>
22615 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22616 we need this to get rid of the selected background in the bool
22618 (CancelEditing): move the ConcedeFocus call to above the Abort
22619 call. Also, set is_changing to false and invalidate the row
22620 header if we were changing before.
22621 (ProcessKeyPreviewInternal): remove, since noone outside this
22622 class calls it anymore. Roll the code into ProcessKeyPreview.
22623 (EndEdit): remove the internal version.
22624 (InvalidateCurrentRowHeader): make private.
22626 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
22627 Keys.Escape handling (and with it the last call to
22628 DataGrid.EndEdit from outside the class.)
22631 2006-06-12 Chris Toshok <toshok@ximian.com>
22633 * DataGridTextBox.cs (.ctor): isedit defaults to false.
22634 (OnKeyPress): set isedit to true.
22635 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
22636 already handled by the grid.
22638 * DataGrid.cs (set_CurrentCell): more work here. it's still not
22640 (set_DataSource): SetDataSource always returns true, so stop
22641 putting it in an if statement.
22642 (EndEdit): get rid of some {}'s
22643 (ProcessGridKey): return true in case Keys.Escape.
22644 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22645 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22646 PositionChanged, stopped connecting to CurrentChanged.
22647 (GetDataSource): simplify this a bunch.
22648 (SetDataSource): change return type from bool to void.
22649 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22650 to this, and make sure we don't set ListManager.Position inside
22652 (OnListManagerItemChanged): if we're passed an actual index,
22655 * CurrencyManager.cs (set_Position): don't call PullData here.
22657 2006-06-09 Jackson Harper <jackson@ximian.com>
22659 * TreeNode.cs: Recalculate the visible order before doing the
22660 Expand/Collapse Below calls, because those calls generate an
22662 - Reduce calls to the TreeView property, which is mildly expensive
22663 by using a local var.
22664 * Form.cs: Layout the MDI child windows when creating the parent
22666 - Don't use the internal constructor anymore
22667 * MdiClient.cs: use the parent form width/height (if available)
22668 when laying out the child windows, we do this because the
22669 mdiclient isn't docked yet when the initial layout is done.
22670 - Don't need an internal constructor anymore.
22672 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22674 * FileDialog.cs: handle access errors when trying to create a folder
22675 or changing to a directory. No need to initialize out parameters.
22677 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22679 * FileDialog.cs: Append a number when creating a new folder if the
22680 folder already exists (use parenthesis instead of square brackets)
22682 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22685 - Disabled registry support for windows and added better registry
22686 error checking for other systems (need to investigate why it
22687 works perfectly on my system)
22688 - If a folder already exist show an error MessageBox instead of
22689 trying to create an indexed name.
22690 - Fixed a non intentional typo.
22692 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22694 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22696 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22698 * FileDialog.cs: When creating a new folder don't crash if the
22699 folder already exists.
22701 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22703 * FileDialog.cs: Allmost a complete rewrite.
22704 - added a "virtual" file system that handles the differences
22705 between unix and windows file systems (especially the directory
22706 structure). Moved most of the directory and file handling code
22708 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22709 UnixFileSystem and FSEntry.
22710 - Recently used folder/directory, size, location and used file names
22711 (file name ComboBox) are now stored in the registry and get read
22712 before the dialog shows up (fixes part 6 of bug #78446).
22713 - Creation of new folders/directories is now possible (context menu
22714 or ToolBar). Added TextEntryDialog for this that fills in the gap
22715 until ListView.LabelEdit works.
22716 - Fixed cursor handling (bug #78527) and focus handling for
22718 - Various "Search in" ComboBox enhancements. The content of the
22719 dropdown listbox now almost matches ms.
22720 - Changed the behaviour when the user switches to SpecialFolder
22721 Recent to show the ListView in View.Details.
22722 - Beside using the ToolBar to change the View property of the
22723 file ListView it is now possible to use the context menu too.
22725 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22727 * ComboBox.cs: Don't create a new ObjectCollection when an item
22728 gets inserted. Just insert the item in the existing object_items
22731 2006-06-08 Jackson Harper <jackson@ximian.com>
22733 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22734 that the treeview and root node checks are done also, this fixes a
22735 regression i caused in the unit tests.
22737 2006-06-07 Wade Berrier <wberrier@novell.com>
22739 * RichTextBox.cs: More ISO8859-1 -> unicode
22741 2006-06-07 Mike Kestner <mkestner@novell.com>
22743 * ComboBox.cs : use items to hold highlight/selection so that
22744 collection insertions don't require synchronization.
22746 2006-06-07 Jackson Harper <jackson@ximian.com>
22748 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22749 routine. We now always keep the sized edge at the cursor instead
22750 of computing movement and adjusting rects. There is one buglet
22751 with this method though when the cursor is moved over area that
22752 the window can not expand too (such as the toolbars on the desktop).
22754 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22756 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22757 here. Fixes crash on startup in AlbumSurfer.
22759 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
22761 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22764 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22766 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22767 statement to avoid calling XNextEvent which will block if another thread
22768 took the event that we were expecting. Fixes bug #78605.
22770 2006-06-07 Mike Kestner <mkestner@novell.com>
22772 * ListView.cs : isolated checkbox clicking from the selection logic.
22773 Toggle check state on item doubleclicks. Really fixes #78454 part2.
22775 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22777 * Form.cs: Check that the value passed to Form.DialogResult
22778 is a valid enum value.
22780 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22782 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22783 Computer'. Clicking it in the network view goes to 'My Computer'.
22784 Added CIFS filesystem type. Display the mount point of filesystems.
22785 Avoid duplicate mount points (happens for me with CIFS);
22787 2006-06-06 Jackson Harper <jackson@ximian.com>
22789 * InternalWindowManager.cs: Draw the maximized windows buttons
22792 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22794 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22795 all other dialogs. Fixes bug #78585.
22797 2006-06-06 Mike Kestner <mkestner@novell.com>
22799 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22800 Only invalidate checkbox on checkstate changes to avoid flicker.
22801 * ListBox.cs : avoid unselect/select when clicking selected item.
22802 avoid reselection flicker for already multiselected items.
22805 2006-06-06 Jackson Harper <jackson@ximian.com>
22807 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22808 the parent form so that the menu is removed if needed.
22810 2006-06-06 Mike Kestner <mkestner@novell.com>
22812 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
22813 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
22815 2006-06-06 Mike Kestner <mkestner@novell.com>
22817 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
22820 2006-06-06 Jackson Harper <jackson@ximian.com>
22822 * Control.cs: Use the property (instead of the field) to get the
22823 default cursor so it is instantiated correctly.
22824 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22825 resizes so we need to manually repaint the window decorations here.
22826 - Set the titlebar button locations as soon as they are created,
22827 otherwise they are not set correctly on win32.
22829 2006-06-06 Chris Toshok <toshok@ximian.com>
22831 * CurrencyManager.cs (set_Position): call PullData before
22833 (AddNew): after calling IBindingList.AddNew, update our
22834 listposition, and call OnCurrentChanged/OnPositionChanged (without
22836 (OnCurrentChanged): remove the call to PullData from here.
22837 (OnItemChanged): remove the call to PushData from here.
22838 (OnPositionChanged): change the test from == null to != null to
22839 match the other methods.
22840 (ListChangedHandler): the grossest part of the patch. Implement
22841 this such that it passes the unit tests in CurrencyManagerTest and
22842 the output more or less matches that of MS's implementation.
22844 2006-06-06 Mike Kestner <mkestner@novell.com>
22846 * ListView.cs : only update check state on single click.
22847 * ThemeWin32Classic.cs : fix focus drawing for details view without
22848 fullrowselect. Fixes #78454.
22849 * XplatUIX11.cs : fix for double click emission.
22851 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
22853 * PropertyGridView.cs : Applied Atsushi's patch to fix
22854 font dialog bug (#78197).
22856 2006-06-05 Jackson Harper <jackson@ximian.com>
22858 * TreeNode.cs: Compute the next node for expanding/collapsing
22859 correctly. We now factor in nodes without a NextNode
22860 correctly. (Fixes somes cases in nunit-gui).
22861 * InternalWindowManager.cs: Set the bounds when updating the
22862 virtual position of a tool window.
22864 2006-06-05 Chris Toshok <toshok@ximian.com>
22866 * DataGrid.cs: rename cached_currencymgr to list_manager.
22867 (set_CurrentCell): move SetCurrentCell code here, and clean it up
22869 (CurrentRow, CurrentColumn): single accessors so we can make the
22870 cursor movement code a lot easier to understand.
22871 (CurrentRowIndex): implement this in terms of CurrentRow.
22872 (BeginEdit): clean this up a bit.
22873 (CancelEditing): sort out the is_editing/is_changing/is_adding
22875 (EndEdit): minor changes.
22876 (OnKeyDown): add a comment about a (most likely) unnecessary
22878 (OnMouseDown): cancel editing when we click on a row header. And
22879 use the CurrentRow setter, not CurrentCell.
22880 (ProcessDialogKey): directly call ProcessGridKey.
22881 (UpdateSelectionAfterCursorMove): factor out this common block of
22882 code (it's used everywhere that we move the cursor by updating row
22884 (ProcessGridKey): pretty substantial overhaul. Use the
22885 CurrentRow/CurrentColumn properties to make the code a lot more
22886 readable. Only use the CurrentCell property when we have to
22887 modify both row and column at once. Tab behavior is still broken,
22888 and Delete is untested.
22889 (Select): if we have no selected rows, set selection_start to
22891 (EditCurrentCell): rename EditCell this. It was only ever invoked
22892 with CurrentCell as the arg, so drop the arg and rename it.
22894 * DataGridColumnStyle.cs: clean up the constructors a little, and
22895 drop CommonConstructor().
22897 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
22898 actually get notified when the user hits it.
22899 (ProcessKeyMessage): *substantially* simplify this method.
22900 There's no reason (that I can see) for the textbox to be making
22901 calls into the datagrid at all. Remove all of them but the ones
22902 for Enter handling. those will take some more work.
22904 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
22905 calling HideEditBox.
22906 (HideEditBox): if we have an active textbox, render it invisible
22907 without causing a re-layout of the datagrid.
22909 2006-06-05 Mike Kestner <mkestner@novell.com>
22911 * ListView.cs : fix NRE crasher when focuseditem is cleared by
22912 collection changes by resetting it to Items[0]. Fixes #78587.
22914 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22916 * MessageBox.cs: if the height of the text is larger than the icon_size,
22917 use that. Fixes bug #78575.
22919 2006-06-05 Jackson Harper <jackson@ximian.com>
22921 * TreeView.cs: Fix line drawing when scrolling. To do this each
22922 node is basically responsible for drawing its entire horizontal
22923 area. When drawing a node it draws its parent node lines if
22925 - Adjust the clip area to the viewport rectangle
22926 - Fix Left/Right key handling to match MS. (It expand/collapses
22927 and moves to parents/first child but does not move selection to
22929 - Fix SetTop to work with new bound calculation code
22930 - When scrollbars are no longer needed we need to reset scrolling
22931 vars and recalculate the visible order so the redraw is correct
22932 * TreeNode.cs: We can't expand/collapse nodes with no children.
22934 2006-06-03 John Luke <john.luke@gmail.com>
22936 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22937 so the colors work without dev packages
22939 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
22942 - Select: Implemented to just use activate. Seems to match MS
22943 behaviour closest. Documented to only do actual control walking
22944 based on it's parameters if in a container control so I moved
22946 - Removed selection check logic from our internal Select() method
22947 * ContainerControl.cs:
22948 - Select: Moved selection logic from Control here, since MS documents
22949 that containers obey the bool arguments. No longer calling base
22951 2006-06-02 Jackson Harper <jackson@ximian.com>
22953 * TreeView.cs: If the selected node isn't changed when we get
22954 focus update the previously selected node so that we see the
22957 2006-06-02 Mike Kestner <mkestner@novell.com>
22959 * ComboBox.cs: restructure grab and general mouse event handling.
22960 Make the composite control raise mouse events like it was a single
22961 control for leaves/enters/motion/up/down events. fix dropdown list
22962 coordinate mangling and refactor it into the scrollbar subclass to
22963 reduce code duplication. Fixes #78282 #78361 and #78457.
22965 2006-06-02 Mike Kestner <mkestner@novell.com>
22967 * ScrollBar.cs: remove Capture setting/clearing, as it happens
22968 automatically in the Control.WndProc.
22970 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22972 * FileDialog.cs: fix crash when running SharpChess, which sets the
22973 FilterIndex to 2 with only one Filter.
22975 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22977 * ToolBar.cs: add SizeSpecified property.
22978 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22979 try to figure out our real size, otherwise fallback to what the
22982 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22984 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22985 * Control.cs (WndProc): MS always calls the DefWndProc to pass
22988 2006-06-01 Mike Kestner <mkestner@novell.com>
22990 * ListView.cs: revamp the focus management in ListView. It still
22991 causes churn of LostFocus/GotFocus emissions on clicks, but it's
22992 better than not handling focus at all. Will revisit when pdb feels
22993 the general focus handling is solid. Fixes #78526.
22995 2006-06-01 Jackson Harper <jackson@ximian.com>
22997 * TreeView.cs: Set the default border style in the constructor.
22998 - Move painting to use OnPaintInternal instead of capturing
22999 WM_PAINT, this is the correct way of doing things
23000 - UpdateBelow shouldn't invalidate the scrollbar area
23001 - Cap the top on update below in case the node was above the top
23002 of the viewport rectangle.
23003 - ExpandBelow and Collapse below need to obey Begin/End Update.
23004 * TreeNode.cs: Make is_expanded internal so the treenode
23005 collection can change it without firing the whole event chain.
23006 * TreeNodeCollection.cs: When clearing all the child nodes make
23007 sure to recalc the visible order.
23008 - Improve algo for remove the top node
23010 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23012 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
23013 SendMessage directly calling window procedures, which in turn might
23016 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23018 * Control.cs: Don't handle WM_SETFOCUS if the same window already
23019 has focus (works around X11 sending a FocusIn after our SetFocus)
23020 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
23022 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
23024 * Mime.cs: Fix for the NET_2_0 build.
23025 NameValueCollection needs StringComparer now.
23027 2006-05-31 Chris Toshok <toshok@ximian.com>
23029 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
23030 return (via an out parameter) the starting X of the column.
23031 (UpdateVisibleColumn): track change to FromPixelToColumn.
23032 (HitTest): add a ColumnResize case here.
23033 (DrawResizeLine): new function, probably poorly named.
23035 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
23036 only need to keep one reference.
23037 (set_ListManager): same.
23038 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
23039 Also, add support for HitTestType.ColumnResize.
23040 (OnMouseMove): add column resize behavior here, and change the
23041 cursor to the correct one as we move around the datagrid.
23042 (OnMouseUp): terminate the column resize if we're resizing.
23043 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
23044 for the current cell.
23045 (ConnectListManagerEvents): use cached_currencymgr.
23046 (DisconnectListManagerEvents): fill this in, using
23047 cached_currencymgr.
23048 (SetCurrentCell): remove cached_currencymgr_events handling.
23049 (SetDataMember): only call DisconnectListManagerEvents if
23050 cached_currencymgr is != null.
23051 (SetDataSource): same.
23052 (OnListManagerCurrentChanged): cached_currencymgr_events ->
23053 cached_currencymgr.
23055 2006-05-31 Jackson Harper <jackson@ximian.com>
23057 * BindingManagerBase.cs: Remove somedebug code that creeped into
23059 * TreeNode.cs: We get the indent level dynamically right now, so
23060 don't track it as a member.
23061 * TreeNodeCollection.cs: Make sure all nodes added to the list
23062 have parents, treeviews/topnodes setup properly.
23063 - Don't attempt to track indent level.
23065 2006-05-30 Jackson Harper <jackson@ximian.com>
23067 * BindingContext.cs: Create the currency manager tables here.
23068 This allows us to more easily create null tables (when bad data
23069 members are used), and more easily create related currency
23071 * CurrencyManager.cs: All the table creation stuff is done by the
23072 binding context now.
23073 - Current should throw an exception if listposition is -1.
23074 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
23077 2006-05-30 Mike Kestner <mkestner@novell.com>
23079 * ListView.cs: allow reexpansion of zero-width column headers.
23082 2006-05-28 Chris Toshok <toshok@ximian.com>
23084 * CurrencyManager.cs (get_Current): after the late binding
23085 listposition = -1 fix, we need to guard against it here and return
23086 null, otherwise we raise an exception (which is swallowed
23087 elsewhere, and breaks datagrid databinding.)
23089 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23091 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
23092 than WM_SYSKEY, don't throw if get something unexpected (#78507)
23094 2006-05-26 Jackson Harper <jackson@ximian.com>
23097 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
23098 values, it's faster and it's all we care about (we don't care if
23099 the names aren't equal).
23100 * KeyboardLayouts.cs: Eliminate some dead code.
23102 * X11Keyboard.cs: Lazy init keyboard detection.
23103 - Cleanup access modifiers a little.
23105 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23107 * XplatUIX11.cs: Once again, attempting to get layout just right.
23109 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23111 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
23112 the sizes of each link section, that will result in sizes that
23113 match DrawString's layout (Fixes #78391)
23115 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
23117 * FileDialog.cs: If AddExtension property is true autocomplete the
23118 extensions in SaveFileDialog correctly. Fixes bug #78453.
23119 Set MyNetwork and MyComputer to "C:\" for windows. This should
23120 fix part 8 of bug #78446 for now.
23122 2006-05-26 Chris Toshok <toshok@ximian.com>
23124 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
23125 invalidate the current row header if we need to, but presumably
23126 we'll invalidate the row corrsponding to the bounds or
23128 (GridHScrolled): switch back to this method, as it's part of the
23129 public api. *sigh*.
23130 (GridVScrolled): same.
23131 (OnMouseWheel): hack up something that more or less works. Call
23132 GridHScrolled/GridVScrolled directly, instead of duplicating much
23133 of their code here.
23134 (EnsureCellVisibility): reinstate a bunch of this code, since we
23135 can't just set the scrollbar Value and expect to do all the work
23136 in the ValueChanged handler. Also, Call Update() after scrolling
23137 in one direction so the other XplatX11.ScrollWindow call has the
23138 proper stuff in the proper places.
23139 (EditCell): set is_editing to true before calling .Edit.
23141 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23142 don't bother comparing first.
23143 (OnKeyPress): call grid.ColumnStartedEditing before calling
23144 base.OnKeyPress. this will set is_changing and invalidate the row
23145 header if necessary.
23146 (ProcessKeyMessage): for WM_CHAR messages, call
23147 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
23150 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23151 it's done in the DataGrid.
23152 (NextState): call grid.ColumnStartedEditing, which takes care of
23153 invalidating the row header (and setting is_changing).
23155 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23156 here. it's done in the DataGrid.
23158 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23160 * Control.cs: allow changing the cursor when the mouse position is
23161 out of bounds but Capture is set.
23162 * LinkLabel.cs: handle the case when the mouse button is pressed on the
23163 linklabel but released somewhere else.
23165 2006-05-25 Jackson Harper <jackson@ximian.com>
23167 * TreeView.cs: When we get focus if there is no selected node make
23169 - Remove some uneeded setup code from Draw.
23170 * TreeNodeCollection.cs: If the tree doesn't have a top node when
23171 a new node is inserted make the new node the top.
23173 * Timer.cs: Use Utc time so that no local time zone stuff needs to
23174 be used (should be faster).
23176 2006-05-25 Chris Toshok <toshok@ximian.com>
23178 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23179 problem with the last commit.
23181 2006-05-25 Chris Toshok <toshok@ximian.com>
23183 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23184 need the invalidate call here, while scrolling right-to-left via
23185 the left arrow key (i.e. moving the editing cell while scrolling).
23187 * DataGrid.cs (.ctor): remove the initialization of
23188 ctrl_pressed/shift_pressed. We no longer track them using key
23189 up/down handlers, but by using Control.ModifierKeys. Also, switch
23190 to using ValueChanged handlers on the scrollbars instead of
23191 Scrolled event handlers. This simplifies a bunch of the scrolling
23193 (GridHValueChanged): rename from GridHScrolled, and change it to
23194 work with the new event args.
23195 (GridVValueChanged): same.
23196 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
23197 (OnMouseWheel): actually scroll the datagrid. Don't change the
23199 (ProcessGridKey): correct all the keyboard navigation stuff I
23200 could find. Ctrl up/down/left/right/home/end work now.
23201 (EnsureCellVisibility): correct method name spelling. Also,
23202 simplify this a touch by not explicitly calling the
23203 ScrollToRow/ScrollToColumnInPixels methods. We just set the
23205 (OnKeyUpDG): no need for this method now.
23207 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23209 * LinkLabel.cs: display the OverrideCursor when hovering the label.
23212 2006-05-25 Chris Toshok <toshok@ximian.com>
23214 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
23217 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
23219 * Application.cs: Moved setting of is_modal and closing to before
23220 we create the control, to allow the event handlers called as a
23221 result of creation affect closing. Also removed Gonzalo's previous
23222 change to setting DialogResult, the behaviour has been moved to
23225 - ShowDialog(): Removed explicit creation of the form, let RunLoop
23227 - ShowDialog(): If no dialog result is set, we need to return Cancel
23228 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23229 the close is cancelled
23231 2006-05-25 Jackson Harper <jackson@ximian.com>
23233 * StatusBar.cs: We only need to update the sizes of the other
23234 panels when we have auto size contents. Also we are only updating
23235 the contents of the panel, not the borders, so compensate for the
23236 border width (TODO: get this width from the theme somehow).
23237 * TreeView.cs: Scrollable is true by default
23238 - Use invalidate instead of refresh where needed
23239 - Factor the scrollable value into scrollbar updating
23240 - Update the scrollbars if the Scrollable property is altered
23241 - Update the selected node if its ImageIndex is changed
23242 - Handle null nodes in UpdateNode (mainly so we don't have to
23243 check if selected is null when updating it
23244 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
23245 are factored into the visible count
23246 - Use VisibleCount for clarity in the code
23247 - When the font is changed we need to recurse through all the
23248 nodes and invalidate their sizes
23250 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23252 * Application.cs: set the DialogResult to fixed when the main form is
23253 hidden or destroyed while being modal.
23255 2006-05-25 Miguel de Icaza <miguel@novell.com>
23257 * Theme.cs: Use Tangoified messagebox icons.
23259 (GetSizedResourceImage): Also cope with width = 0 and do not
23260 trigger a warning in that case (0 means "give me your icon from
23261 the resouce, no special size needed).
23263 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
23265 * Application.cs: Leave runloop if the the main modal form is
23266 hidden (fixes #78484)
23268 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
23270 * BindingContext.cs : reject null datasource in Contains() and
23272 * CurrencyManager.cs : check data_member validity when data_source
23273 is dataset. When it is late binding, the initial position is -1.
23275 2006-05-24 Jackson Harper <jackson@ximian.com>
23277 * TreeNodeCollection.cs: Dont't recalculate the visible order on
23278 inserted nodes that aren't visible. This changes the
23279 max_visible_order which confuses scrollbar settings.
23280 - Use the enumerator to get the prev node instead of duplicating
23282 * TreeView.cs: Use new method for setting scrollbar values
23283 - Don't set the bounds every time the scrollbar is updated
23284 - When updating below the root node use an invalidate instead of a
23285 refresh to prevent the child controls (scrollbars) from being
23286 refreshed. (UpdateBelow still needs to be reworked anyways).
23287 - Reenable SetBottom now that visible orders are set correctly,
23288 added some debug code incase we ever get bad values there again.
23289 - Set the scrollbar max to 2 less then the max value, this
23290 compensates for the max value being one above the node count, and
23291 for scrollbars adding one extra "notch".
23292 - When drawing image nodes if there is an imagelist we draw the
23293 first image in the list if the supplied image index is out of the
23294 image list's bounds.
23296 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23298 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
23299 we receive a size change from the WM (Fixes #78503)
23301 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23303 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
23304 rectangle (Fixes #78501)
23306 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23309 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
23311 - Fixed MouseMove to no longer switch pressed state unless the left
23312 mouse button is pressed. Atsushi provided the original patch (#78485)
23314 2006-05-24 Jackson Harper <jackson@ximian.com>
23316 * ScrollBar.cs: New internal methods that allow us to change a
23317 couple values on the scrollbar (the most common case is maximum
23318 and large change) without getting multiple invalidates.
23320 2006-05-24 Chris Toshok <toshok@ximian.com>
23322 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23323 (Edit): save off the original state in oldState, and set
23324 grid.is_editing to true.
23325 (OnKeyDown): abort editing if escape is pressed. also, call
23326 NextState if space is pressed.
23327 (OnMouseDown): call NextState.
23328 (NextState): factor out shared code from OnKeyDown and OnMouseDown
23329 here. Also, only invalidate the row header once (on the initial
23330 is_changing switch) to save on redraws.
23332 2006-05-24 Chris Toshok <toshok@ximian.com>
23334 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23335 if the value in the cell is different than it was before. This
23336 keeps us from triggering a layout when we move around a datarid
23337 with a highlighted cell.
23338 (Edit): suspend layout when creating/positining the text box, and
23339 resume passing false so we don't ever actually re-layout.
23340 (ReleaseHostedControl): same.
23341 (EnsureTextBox): reformat slightly, and set WordWrap to false.
23343 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23344 control-key sequences should go to the datagrid - remove that
23345 lock. Also, modify the conditions under which we move between
23346 cells when moving the cursor within a cell, and remove the "this"
23347 and "base" from field accesses. We weren't even consistent, given
23348 they all were in the base class.
23350 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
23352 * Binding.cs : (.ctor)
23353 An obvious NRE fix for BindingTest.CtorNullTest().
23355 2006-05-23 Chris Toshok <toshok@ximian.com>
23357 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23358 them between lines. This fixes some quirks editing cells in the
23361 2006-05-23 Jackson Harper <jackson@ximian.com>
23363 * TreeView.cs: Use begin/end update when doing expand/collapse all
23364 so that we don't get flicker on the scrollbar.
23366 2006-05-23 Jackson Harper <jackson@ximian.com>
23368 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
23369 treenode calculations to be independant of the painting code. To
23370 do this nodes track a visible order which is calculated by the
23372 - Call new methods for expanding/collapsing nodes. These methods
23373 use scrollwindow so we don't have to update everything below the
23375 * TreeView.cs: Refactored drawing and scrolling code. We don't
23376 need to update nodes when drawing anymore or calculate scrollbar
23378 - Added new methods for expanding/collapsing nodes. These methods
23379 use ScrollWindow so as to not have to redraw all the nodes below.
23380 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23381 we add/remove nodes or sort.
23382 - Handle removing the selected and the top node properly.
23384 2006-05-23 Chris Toshok <toshok@ximian.com>
23386 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23387 maybe this should actually happen in the datagrid code?
23388 (EndEdit): no need to invalidate anything, given that
23389 ReleaseHostedControl causes the datagrid to relayout, which
23390 invalidates everything anyway.
23392 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23393 in SetCurrentCell).
23394 (set_SelectionBackColor): call InvalidateSelection instead of
23396 (set_SelectionForeColor): same.
23397 (BeginEdit): Flesh this out a bit.
23398 (CancelEditing): only do any of this if we're editing/adding.
23400 (OnMouseDown): there's no need to cancel editing here, it's done
23402 (SetCurrentCell): only invalidate the current row header if it's a
23403 different row than the new one.
23404 (ShiftSelection): fix this to work like MS does.
23405 (ResetSelection): factor out the invalidation of selected_rows to
23406 InvalidateSelection.
23407 (SetDataSource): cancel any editing that's going on.
23409 * DataGridColumnStyle.cs
23410 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23411 call the non-interface version.
23413 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23414 header rectangle with the clip rectangle so we don't redraw the
23415 entire header for just a small area. Gets rid of the last flicker
23416 when horizontally scrolling.
23417 (DataGridPaintRow): same.
23419 2006-05-23 Mike Kestner <mkestner@novell.com>
23421 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23422 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
23423 poorly placed checkbox on the MS control. Fixes Alex's unfiled
23424 Critical bug report.
23426 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23428 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23429 and this fixes #78493
23431 2006-05-23 Miguel de Icaza <miguel@novell.com>
23433 * Theme.cs (GetSizedResourceImage): Scale images if the proper
23436 * FileDialog.cs: Do not change the background for the side bar as
23437 it wont work nicely with the theme, and also reduces the artifacts
23438 in rendering the icons (which I want to fix too).
23440 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23441 resources, not resgen resources.
23443 (PlatformDefaultHandler): Pull images using the new API.
23445 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23447 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23448 a reference to the hwnd and will not remove it unless there are
23449 no pending exposures (fixes #78341)
23450 * XplatUI.cs: Improved debug
23452 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
23454 * MenuAPI.cs : don't handle OnClick event when it was not the left
23455 button. Fixed bug #78487.
23457 2006-05-23 Mike Kestner <mkestner@novell.com>
23459 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23460 prefer submenus to the top menu for item lookup, to avoid popping down
23463 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
23465 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23466 Graphics.FillRectangle as the visual results are really bad (even
23467 on win). We now draw perfect arrows (and perfect shadows when the
23468 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23469 Pen.DashPattern to draw the dots of each line.
23471 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
23473 * FileDialog.cs: Update the filename combobox when navigating through
23474 the ListView with the cursor keys. Fixes part 7 of bug #78446.
23476 2006-05-22 Mike Kestner <mkestner@novell.com>
23478 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23481 2006-05-22 Mike Kestner <mkestner@novell.com>
23483 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23484 requests. Fix a misspelled parameter and a copy paste exception error
23487 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
23489 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23490 to get the same width/height (5/13) on X11 as the default font has on
23491 win32. This means that our DefaultFont emSize is smaller than the
23492 the MS SWF equivalent (even thought the width/height stays the same)
23494 2006-05-20 Jackson Harper <jackson@ximian.com>
23497 * MdiWindowManager.cs:
23498 * InternalWindowManager.cs: Make sure to use the border width from
23501 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
23503 * PrintDialog.cs: Implements printer details
23505 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
23507 * FileDialog.cs: Added focus handling for PopupButtonPanel.
23508 Fixes part 1 and 2 of bug #78446
23510 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
23512 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23513 instead of sticking to the first ever calculated value
23515 2006-05-19 Mike Kestner <mkestner@novell.com>
23517 * ComboBox.cs: fix mouse motion selection to use MousePosition and
23518 PointToClient, since Capture is set. Fixes #78344.
23520 2006-05-19 Mike Kestner <mkestner@novell.com>
23522 * ListView.cs: match MS behavior in Details view where items are not
23523 drawn if Columns.Count == 0.
23524 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23525 Use a separate pen to draw the check, since changing the width affects
23526 the box as well. Fixes #78454.
23528 2006-05-18 Miguel de Icaza <miguel@novell.com>
23530 * ListView.cs: ArgumentOutOfRangeException, single versions of the
23531 exception should throw the name of the invalid argument.
23533 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23534 there are no files listed.
23536 2006-05-18 Jackson Harper <jackson@ximian.com>
23538 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23541 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23543 * Control.cs: Brought back our old UpdateZOrder method as a private
23544 function and switched our calls from UpdateZOrder to the new one.
23545 This fixes the Paint.Net canvas disappearing bug.
23547 2006-05-18 Jackson Harper <jackson@ximian.com>
23550 * ThemeWin32Classic.cs:
23551 * InternalWindowManager.cs: Move the drawing into the theme,
23552 expose everything the theme should need from the window manager.
23554 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23556 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
23557 from the call to NativeWindow to avoid walking up the parent chain
23558 further than needed (speeds up setting cursors and avoids setting
23559 the wrong cursor if a parent has another cursor defined)
23560 * Cursor.cs: When loading an icon as cursor, MS uses the center of
23561 the icon as hotspot, not what's contained as hotspot in the icon
23562 file. This fixes the perceived drawing offset seen with Paint.Net
23564 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23567 - Store the calculated rectangle in Hwnd object and use it when
23568 setting the client size
23569 - Force Toolwindows to always be type Dock, to ensure they're on top
23571 2006-05-18 Mike Kestner <mkestner@novell.com>
23573 * ComboBox.cs: first pass at ComboBox rework. Layout is more
23574 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
23575 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
23576 Substantial refactoring to remove confusing nested classes. Coding
23577 standard and Get+Set->property refactorings. Shift to index based
23578 highlighting in ComboListBox instead of constantly using IndexOf and
23579 Items[]. Add invalidations on resize for DropDownList to fix ugliness
23580 in FileDialog growth. Draw borders manually since Simple mode needs
23581 to look like two independent controls. Make listbox border
23582 conditional to DropDownStyle. Improved OwnerDraw support.
23584 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
23586 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
23587 Don't set the disposed graphics to null, so we can throw the "right"
23588 exception if the graphics is reused later (added a flag to avoid
23589 double disposing). Some behaviours are different under 2.0 and are
23590 filled under bug #78448.
23592 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23594 * Control.cs: When double-buffering is enabled, we need to reset
23595 our graphics context between paint calls. Otherwise, any
23596 transformations and other alterations on the context will
23597 become cumulative (#77734)
23599 2006-05-18 Mike Kestner <mkestner@novell.com>
23601 * ListView.cs: do focused item selection like MS on clicks.
23602 Rework focus handling for ItemControl so LostFocus invalidates as
23604 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23605 the ListView ItemControl has focus.
23607 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
23609 * XplatUIX11.cs: If client_window ends up being width or height zero
23610 due to border settings, move it off window inside whole_window (#78433)
23612 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23614 * Mime.cs: Shrink the mime file cache correctly.
23616 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23618 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23620 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23622 * XplatUIX11.cs (AddExpose): More sanity checks
23624 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23627 - AddExpose: Don't add expose ranges outside the size of our
23629 - Cast opacity values to Int32 to avoid crashes with certain
23631 - Added disabled code paths that protect against illegal cross-
23632 thread painting (Developers.exe)
23634 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23636 * ProgressBar.cs: Invalidate the control when it's resized
23637 since block size is based on control size. (#78388)
23639 2006-05-16 Miguel de Icaza <miguel@novell.com>
23641 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23642 of setting the incoming argument to the "reset" value, we set the
23643 this.datamember to string.empty (before we were invalidating the
23648 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23650 * Form.cs: Only apply transparency settings after the form
23651 is created. (Fixes #77800)
23653 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23655 * ApplicationContext.cs: Grab the HandleDestroyed event so
23656 we know when to fire OnMainFormClosed
23658 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23660 * Application.cs: Introduced sub-class to allow tracking of
23661 threads and centralized triggering of the event mess for
23662 ThreadExit, AppExit, etc.. (#76156)
23664 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
23667 - Do not return a null icon index value for a mime subclass.
23668 Instead try the main mime type class too.
23669 - Seems that some newer distributions don't have a link to some
23670 gnome default icons anymore. So check the default gnome dir too.
23673 2006-05-16 Jackson Harper <jackson@ximian.com>
23675 * MdiClient.cs: Don't paint the parent background image if we have
23676 our own background image.
23678 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23681 - PerformLayout: Do not shrink space filled by DockStyle.Fill
23682 controls, all filled controls are supposed to overlap (#78080)
23683 - UpdateZOrder is supposed to update the control's z-order in the
23684 parent's z-order chain. Fixed to behave like that
23685 - BringToFront: Removed obsolete code
23686 - SendToBack: Simplyfied
23687 - SetChildIndex: Trigger layout calculations when Z-order changes
23688 since layout is done by z-order
23690 2006-05-16 Chris Toshok <toshok@ximian.com>
23692 [ fixes bug #78410 ]
23693 * DataGrid.cs (set_AlternatingBackColor): use
23694 grid_drawing.InvalidateCells instead of Refresh().
23695 (set_BackColor): call grid_drawing.InvalidateCells.
23696 (set_BackgroundColor): use Invalidate instead of Refresh.
23698 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23699 invalidate the cell area.
23701 2006-05-15 Chris Toshok <toshok@ximian.com>
23703 [ fixes bug #78011 ]
23704 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23705 on to DataGridPaintRow.
23706 (DataGridPaintRow): take a clip argument, and only draw the cells
23707 which intersect it. same with the not_usedarea.
23709 * Theme.cs (DataGridPaintRow) add @clip parameter.
23711 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23712 XplatUI.ScrollWindow.
23713 (ScrollToRow): same.
23715 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23716 with last column which was causing a gray swath to appear with the
23717 XplatUI.ScrollWindow code.
23719 2006-05-15 Chris Toshok <toshok@ximian.com>
23721 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23722 use XplatUI.ScrollWindow.
23723 (VerticalScrollEvent): use XplatUI.ScrollWindow.
23725 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23727 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23729 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23731 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23732 file since there are no equivalent X11 cursors
23734 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23736 * MonthCalendar.cs : DateTimePicker should reflect selected date
23737 on mouse*up*, not mouse*down*. Fixed originally reported part of
23740 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23742 * TabControl.cs : When argument index is equal or more than tab
23743 count, just ignore. Fixed bug #78395.
23745 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23747 * Control.cs: Dispose all child controls when control is diposed (#78394)
23749 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23751 * ColorDialog.cs: Finally it is possible to select the color with
23754 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23756 * PrintDialog.cs: Fix typo
23758 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23760 * PrintDialog.cs: PrintDialog is not resizable
23761 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23762 color. Made some ToolBar drawing methods protected virtual.
23764 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
23766 * PrintDialog.cs: Implementation of the PrintDialog
23768 2006-05-12 Chris Toshok <toshok@ximian.com>
23770 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23771 thumb, instead use MoveThumb. This has the side effect of making
23772 most of the other thumb moving machinery use MoveThumb as well.
23773 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23774 need to actually invalidate the rectangle where the new thumb will
23776 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23777 We force an Update() after, so it's not as fast as it could be,
23778 but at least there's zero flicker and no droppings.
23779 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23780 (UpdateThumbPos): add another argument (dirty), which says whether
23781 or not to calculate/add dirty regions which we later invalidate.
23782 For cases where we know we're going to use MoveThumb, we pass
23783 false for this. Otherwise, pass true.
23785 2006-05-12 Jackson Harper <jackson@ximian.com>
23787 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23790 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
23792 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23793 and GetClipRegion methods and UserClipWontExposeParent property.
23794 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23795 overriding UserClipWontExposeParent property, setting to false, since
23796 Win32 handles the required expose messages to draw our clipped parent
23798 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23799 PaintEventStart to set the user clip region if set.
23801 - Now internally tracking the Region for the control since we need to
23802 store it if the handle is not yet created and only set it when it
23803 becomes created. Before setting the region forced handle creation
23804 - Added code to draw the parents underneath a user-clipped region
23805 * Hwnd.cs: Added UserClip property
23807 2006-05-12 Chris Toshok <toshok@ximian.com>
23809 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23810 (set_Maximum): same.
23811 (set_Minimum): same.
23812 (set_SmallChange): same.
23813 (OnMouseUpSB): remove the call to refresh when releasing the
23814 thumb. We shouldn't need it.
23816 2006-05-12 Miguel de Icaza <miguel@novell.com>
23818 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23819 AutoSize set to None, we do not need to relayout everything, we
23820 just need to invalidate the current region.
23822 (Draw): Do not draw the entire ClientArea, just redraw the
23823 clip area being passed.
23825 * MdiClient.cs: Make MdiClient constructor with the Form argument
23828 2006-05-12 Jackson Harper <jackson@ximian.com>
23830 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23831 parents background image, but strangely not their own.
23832 - (DrawStatusBarPanel): Take into account horizontal alignment
23833 when drawing the strings and icons.
23835 2006-05-12 Mike Kestner <mkestner@novell.com>
23837 * ListBox.cs: avoid invalidations for focus when the collection is
23840 2006-05-12 Chris Toshok <toshok@ximian.com>
23842 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
23843 invalidate the entire thumb area. Call InvalidateDirty which
23844 limits the redraw to the thumb itself and surrounding pixels.
23846 * XplatUIX11.cs (ScrollWindow): optimize copying.
23848 2006-05-12 Chris Toshok <toshok@ximian.com>
23850 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
23851 Figure out the positioning/layout in a single pass instead of
23852 multiple recursive invocations. Speeds up the initial display of
23853 the data grid. Also, make many things private that were
23854 originally public but unused outside this class.
23856 2006-05-11 Jackson Harper <jackson@ximian.com>
23858 * MdiClient.cs: Improved layout code.
23860 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
23862 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
23863 not SelectedObject.
23865 2006-05-11 Chris Toshok <toshok@ximian.com>
23867 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
23868 union of that will always be {0,0,width,height}.
23870 2006-05-11 Jackson Harper <jackson@ximian.com>
23872 * Form.cs: Match MS's DefaultSize for forms (they must have
23873 changed the size in sp2).
23875 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23877 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
23879 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23881 * TextControl.cs : Fixed bug #78109. This incorrect position
23882 comparison caused crash on automatic line split.
23883 * TextBoxBase.cs : reduce duplicate code.
23885 2006-05-10 Jackson Harper <jackson@ximian.com>
23887 * MdiClient.cs: Active form is only sent to the back when using
23888 the Next form functionality, when a form is clicked the current
23889 active shouldn't be sent to the back.
23890 - Layout the mdi windows when the container is first made visible.
23891 * Form.cs: Give the MdiClient a ref to the containing form when we
23894 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23896 * LinkLabel.cs : link_font could be uninitialized, so populate one
23897 before actual use. Fixed bug #78340.
23899 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23901 * XplatUIX11.cs : clipboard format native value is IntPtr.
23904 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23907 - Instead of showing context menus directly we send WM_CONTEXTMENU,
23908 which is passed up the parent chain by DefWndProc
23909 - We now handle WM_CONTEXTMENU to display any menu, or pass it
23910 to DefWndProc (#77956)
23911 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
23913 2006-05-10 Jackson Harper <jackson@ximian.com>
23915 * MdiClient.cs: We need to remove the controls from the mdi
23916 collection, when we close the window.
23917 * MdiWindowManager.cs: Special handling of closing mdi windows.
23918 * InternalWindowManager.cs: Make the close method virtual so the
23919 mdi window manager can handle it specially.
23921 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
23924 - Recalculate grid when the data source has changed
23925 - Matches styles provided by user from all data sources types
23926 * DataGridTableStyle.cs: For columns that provided by the user set the
23927 with the preferred value is there was unassigned.
23928 * CurrencyManager.cs: throw OnItemChanged event
23930 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23932 * PictureBox.cs: Don't animate until handle is created. Start animation
23933 when handle is created.
23935 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23937 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23939 * XEventQueue.cs: We don't need to provide the extra info
23941 2006-05-10 Jackson Harper <jackson@ximian.com>
23943 * MdiClient.cs: If the mdi clients parent form has a background
23944 image set, we draw that background image for the mdi area's
23947 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23949 * TextBoxBase.cs: Set IBeam cursor (#78347)
23951 2006-05-10 Mike Kestner <mkestner@novell.com>
23953 * ToolBar.cs: fix some text padding issues with ButtonSize
23954 calculation. Update the default size to match MS documentation.
23955 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23956 button size. Fixes #78296.
23958 2006-05-10 Mike Kestner <mkestner@novell.com>
23960 * ListBox.cs: use is_visible for scrollbar positioning in case the
23961 control isn't on screen yet. Fix off by one with Right vs Width
23962 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23964 2006-05-10 Jackson Harper <jackson@ximian.com>
23966 * X11Dnd.cs: Drop to a control with another control on top of it.
23967 * ToolBar.cs: Work on a copy of the buttons list, so that it can
23968 be modified in click handlers. TODO: Look for similar problems in
23971 2006-05-09 Jackson Harper <jackson@ximian.com>
23973 * Form.cs: Window managers need the old window state when setting
23975 * InternalWindowManager.cs: Allow the base mdi window manager to
23976 handle more of the MDI only stuff (like maximize buttons).
23977 * MdiWindowManager.cs: Fix some snafus in changing the window
23978 state. Add all the menu functionality, for both popup and
23980 * MdiClient.cs: When a new form is selected the currently
23981 activated form is sent to the back, this matches MS.
23982 - Implement a new method to activate the next mdi child window.
23984 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23987 - Added new InternalCapture method to allow controls to prevent
23988 the capture behaviour on the click handlers
23989 - Switched to use InternalCapture
23991 - Using InternalCapture to prevent mouse captures from being released
23992 on mouse button release (Fixes #78100)
23993 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23994 returns Form borders if a caption is present. (Fixes #78310)
23996 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23998 * TreeNode.cs: Changed serialization .ctor to not require every field
23999 to be present. (#78265)
24000 * OwnerDrawPropertyBag.cs: Added serialization .ctor
24002 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
24004 * MimeIcon.cs: for is faster than foreach for strings.
24006 2006-05-05 Mike Kestner <mkestner@novell.com>
24008 * CheckedListBox.cs: update check handling code to not use selected.
24009 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
24010 behavior for visual feedback, motion response, shift/ctrl handling,
24011 and properly deal with all 4 selection modes. Updates to bounds
24012 handling logic. Add scroll wheel support. [Fixes #77842]
24014 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
24017 - Moved adding of Implicit controls into .ctor. That way, subsequent
24018 creation of the controls will not cause them to think they are
24019 toplevel windows (fixes #78200 header problem)
24020 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
24021 - Switched visibility setting of header control to use internal field
24022 to avoid triggering handle creation
24023 - Now checking if handle is created before causing a refresh when items
24024 are added (This makes us now match handle creation time with MS)
24025 * Splitter.cs: Removed loading of private splitter cursor, switched to
24026 Cursors version now that that is loading the right ones
24027 * Cursors.cs: Load proper splitter cursors from resources
24028 * Cursor.cs: Added second method of loading resource cursors for the
24029 VS.Net users amongst us
24031 2006-05-05 Mike Kestner <mkestner@novell.com>
24033 * ListView.cs: give header_control a minimum size based on the
24036 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
24038 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
24039 window seems to do that with metacity, so set that type. (#78120)
24041 2006-05-05 Mike Kestner <mkestner@novell.com>
24043 * ListViewItem.cs: fix Details mode checkbox layout bug.
24044 * ThemeWin32Classic.cs: draw a ListView column header for unused space
24045 at the end of the header, if it exists. [Fixes for #78200]
24047 2006-05-04 Jackson Harper <jackson@ximian.com>
24049 * MdiClient.cs: Add a helper property to get the container form.
24050 * MdiWindowManager.cs: We have to make sure to use the menu origin
24051 when drawing the icons and buttons, this fixes maximized window
24052 icons/buttons on win32.
24053 * InternalWindowManager.cs: Reset the restore captions when a
24054 window goes from Maximized to Minimized and vice versa. Move the
24055 DrawMaximizedButtons into the MdiWindowManager source, tool
24056 windows can't be maximized. NOTE: This could use a little
24057 refactoring if time ever permits.
24059 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
24061 * TextBox.cs: Add MWFCategoryAttributes
24062 * TextBoxBase.cs: Add MWFCategoryAttributes
24063 * Form.cs: Add MWFCategoryAttributes
24065 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
24067 * Control.cs: Add MWFCategoryAttributes
24068 * ScrollableControl.cs: Add MWFCategoryAttributes
24070 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
24072 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
24073 Divider is true. Fix a little glitch in PropertyToolBar
24076 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
24079 - Dispose: Call base.Dispose, this causes the disposed event
24080 to be fired (and probably other, more important stuff)
24081 - SetVisibleCore: Set is_visible to true after creating the
24082 window so that the window still gets created invisible (if
24083 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
24084 to generate a WM_ACTIVE message
24085 * Form.cs: Call Dispose when we want to destroy the window, instead of
24086 just destroying the handle (Dispose will do that for us)
24088 - RootWindow also needs a queue, so we can properly process the
24089 property change events from RootWindow (like Activate)
24090 - Generatic synthetic WM_ACTIVE message when the active window is
24093 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24095 * LinkLabel.cs: Trigger a recalc of our label dimensions when
24098 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24100 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
24101 for determining width and height (image might not be assigned if
24102 we're drawing an imagelist)
24104 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24106 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
24107 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
24109 * Theme.cs: No longer returns hardcoded menu height, instead calls
24111 * Form.cs (OnLoad): Scaling happens before triggering Load events
24114 2006-05-01 Mike Kestner <mkestner@novell.com>
24116 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
24118 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24120 * TextBoxBase.cs: Removed Fixme
24121 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
24123 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24126 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24127 the rectangle relative to the parent, considering borders. We
24128 don't really want that.
24129 - ScrollWindow: Fixed warning to be more understandable
24130 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24131 scrollbars and scroll only the visible area
24132 * RichTextBox.cs: Removed debug output
24134 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24136 * NumericUpDown.cs (Text): Just use base
24137 * UpDownBase.cs: Ensure txtView is created before using it
24139 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24141 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24142 casting to IntPtr to avoid 64bit overflow errors
24144 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24147 - AllowDrop: Don't force handle creation.
24148 - CreateHandle: Added call to tell driver if we're allowed to drop
24150 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24152 * FileDialog.cs: Remember the last directory not only for the
24153 current instance but also for new FileDialog instances.
24155 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24157 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24158 broke sending async messages
24160 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24163 - ScrollWindow: Fixed method. We finally generate expose events again
24164 for scrolled areas. This was causing 'garbage' when scrolling
24165 textbox and other controls that used ScrollWindow
24166 - Switched from using the regular queue for paint events to the MS
24167 model of 'generating' paint events when the queue is empty.
24168 We use the new XQueueEvent.Paint subclass to store which windows
24170 - AddExpose now takes the x/y/width/height of the exposed area
24171 and inserts the window into the paint queue if not already there
24172 - InvalidateWholeWindow: Switched to use new AddExpose method
24173 - UpdateMessageQueue: Added which queue to monitor for paint events
24174 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24175 the unlikely case nothing above handles it. We reset the expose
24176 pending states to get them off the queue.
24177 - GetMessage: Now pulls a paint event if no other events are in the
24179 - Invalidate: Switched to new AddExpose method
24180 - PeekMessage: Updated to understand pending paint events
24181 - UpdateWindow: Fixed logic bug. We were only updating if the window
24182 didn't need updating. Also switched to sending WM_PAINT directly,
24184 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24185 and random access Remove(). The random access is needed to handle
24186 UpdateWindow() where a WM_PAINT is sent directly without accessing
24188 * ScrollBar.cs: Added Update() calls to cause immediate updates to
24189 allow for better feedback when scrolling. Scrollbars are small and
24190 the immediate update should make it 'feel' more responsive without
24191 slowing things down. ScrollBar still needs it's invaliate logic
24192 updated to not always invalidate the whole bar on certain changes.
24194 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24197 (BackColor): if the control does not support a transparent background,
24198 return the default backcolor when the parent backcolor is transparent.
24200 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
24202 * Application.cs: Updated to new StartLoop/GetMessage API
24203 * RichTextBox.cs: Provide some output on RTF parsing errors
24204 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
24205 new queue_id argument to GetMessage and PeekMessage to allow faster
24206 handling of per-thread queues in drivers.
24207 * Hwnd.cs: Added Queue tracking and property
24208 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
24209 * XEventQueue.cs: Added thread trackingA
24210 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
24212 - Implemented new per-thread queue
24213 - GetMessage: Fixed return/break behaviour on several cases. We were
24214 returning stale messages in some cases, instead of just processing
24217 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
24219 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
24221 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
24223 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
24224 fixed off-by-one comparisons between Width/Height and Right/Bottom.
24226 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
24228 * PropertyGridView.cs: Fix drop down width.
24230 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24232 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
24233 a mess in DrawToolBar, so I removed one of them.
24235 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24237 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
24238 needed (clip). Otherwise we get artifacts.
24240 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24242 * FixedSizeTextBox.cs: Added constructor to allow specifying which
24244 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
24245 and switched FixedSizeTextBox to only be fixed vertical (#78116)
24246 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
24247 if it matches the scale base font (avoids unneeded scaling)
24249 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
24251 * X11DesktopColors.cs: One gtk_init_check should be enough
24253 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24255 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
24258 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24261 - Generate OnTextChanged for Backspace even if we're only deleting
24262 the current selection
24263 - When setting the Text property, only select all text if the
24264 control does not have focus when it is being set. Otherwise
24265 just place the cursor at the beginning of the control
24267 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
24269 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
24270 Added a little helper to draw PropertyGrid ToolBar with a different
24271 border and a different BackColor.
24272 * PropertyGrid.cs: Some background parts didn't get painted with the
24273 correct background color. Added a class that helps us to draw the
24274 correct border for PropertyGridView and a class that helps us to
24275 draw ToolBars with a different backcolor
24276 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
24278 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
24280 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
24281 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
24283 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24285 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
24286 into the palette entries. Also, since we're working on a copy
24287 we needed to copy the palette back onto the bitmap.
24288 * Cursor.cs: Same fix as XplatUIWin32.cs.
24290 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24292 * ImageListStreamer.cs: Need to read the var (or we're off)
24294 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24296 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
24297 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24298 TextBoxBase.cs: Unused var fixes
24299 * AxHost.cs: Small 2.0 fix
24300 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
24301 as it seems that is what at least Metacity expects. This will make
24302 icons show up on 64bit platforms. We still have some 64bit size
24303 issues, though, since the startup app window size still won't match.
24305 2006-04-25 Mike Kestner <mkestner@novell.com>
24307 * *.cs: cleanup newly reported exception var unused warnings.
24309 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24311 * ThemeWin32Classic.cs: Button image alignment now matches exactly
24314 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24316 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24317 image. The image position is always the same, no matter if the
24318 button is pressed or not.
24320 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24322 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24323 selection and set the correct filename for SaveFileDialog.
24324 Patch by Emery Conrad.
24326 2006-04-24 Mike Kestner <mkestner@novell.com>
24328 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24329 check for item.X outside the ClientRect instead of item.Y. Fixes
24332 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24334 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24335 trust that value blindly and do some sanity check. Fixes bug #77814.
24337 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24339 * ImageListStreamer.cs: save the mask as a 1bpp image.
24341 2006-04-21 Mike Kestner <mkestner@novell.com>
24343 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24344 pass Checked and Indeterminate to the Theme Engine. Improve
24345 encapsulation with ListBox.
24346 * ListBox.cs: Keep a StringFormat instead of calculating it every item
24347 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24348 nested types. Move all CheckState functionality to CheckedListBox.
24349 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
24350 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
24351 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24352 single base list. Fix scrollbar sizing and placement to mirror MS.
24353 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24355 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24356 for CheckedListBox by using new DrawItemState info. Center the
24357 checkboxes on the items. Use new StringFormat property.
24359 2006-04-18 Jackson Harper <jackson@ximian.com>
24361 * Form.cs: MdiChildren don't do default locations the same way as
24362 regular forms. This prevents a crash when trying to position the
24365 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
24367 * PropertyGridTextBox.cs: Formatting, copyright
24368 * PropertiesTab.cs: Formatting
24369 * PropertyGrid.cs: Formatting
24370 * PropertyGridView.cs: Formatting, fix drop down, enabled double
24371 click toggling of values
24373 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
24375 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24376 * Control.cs (.ctor): verify_thread_handle is static, don't reset
24377 every time a control is created
24378 * Application.cs: Removed obsolete EnableRTLMirroring method
24380 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
24382 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24383 SelectedIndex to -1. Fixes bug #78121.
24385 2006-04-17 Jackson Harper <jackson@ximian.com>
24387 * Binding.cs: Handle null values for Current and BindingContext.
24388 This occurs when binding is a little delayed.
24389 * CurrencyManager.cs: return null for Current when there are no
24391 - Hookup to the listchanged event on the DataView and update
24392 bindings when the list is changed. This fixes late binding of
24395 2006-04-17 Jackson Harper <jackson@ximian.com>
24398 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24401 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
24403 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24405 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24406 with the correct ButtonState
24408 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
24410 * XplatUIX11.cs: Improved distinguishing between window types to
24411 tell the WM a type closer to what the app wants (Fixes #78107)
24413 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24415 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24418 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24420 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24421 drawing code to reflect the size grip changes
24423 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24425 * ImageListStreamer.cs: fix handling of the mask that follows the main
24426 bitmap when deserializing and serialize it properly. The generated mask
24427 should better be a 1bpp image, but I'll do that later.
24429 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24431 * FileDialog.cs: Show something in the DirComboBox on *nix if the
24432 path doesn't fit into some of our Current.Places
24434 2006-04-13 Jackson Harper <jackson@ximian.com>
24436 * ComboBox.cs: Use borders instead of drawing our own decorations,
24437 try to obey correct rules for heights.
24440 * ThemeClearLooks.cs:
24441 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24442 this is now handled by borders.
24443 - Remove unused DrawListBoxDecorationSize method.
24445 2006-04-13 Mike Kestner <mkestner@novell.com>
24447 * MenuAPI.cs: null guarding for the disbled click check fixes crash
24450 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24452 * ThemeWin32Classic.cs:
24453 - Fixed CPDrawStringDisabled
24454 - Corrected drawing of disabled menu items
24455 - Fixed drawing of disabled radio buttons (bug #78095)
24456 - Draw check in a disabled CheckBox with color ControlDark
24458 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24460 * Form.cs: Use the provided width when calculating the menu size;
24461 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24462 and ClientSize.Width won't be updated yet
24463 * Application.cs: Use Visible instead of Show() to make form visible,
24464 this way we create the handle later and menusize is considered
24466 2006-04-12 Mike Kestner <mkestner@novell.com>
24468 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24471 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24473 * TextBox.cs: Implemented context menu
24475 2006-04-12 Mike Kestner <mkestner@novell.com>
24477 * ListView.cs: implement box selection. fixes #77838.
24478 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24480 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24482 * XplatUIX11.cs: Added setting of window type when transient window
24483 is created (metacity would move it otherwise)
24484 * X11Structs.cs: Added WINDOW_TYPE atoms
24485 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24486 background (the control is Opaque but still wants transparent
24489 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24491 * Control.cs: Added OnPaintBackgroundInternal to allow controls
24492 that set Opaque but don't mean it (like all ButtonBase-derived
24493 controls) to still draw their background
24494 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24497 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24499 * Control.cs (PaintControlBackground): Set the graphics object
24500 on our PaintEvent to null to prevent it from being disposed
24501 when the PaintEvent gets disposed
24503 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
24505 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24506 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24508 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24511 - Added transparency check to BackColor property. Transparent
24512 backgrounds are only allowed if the control styles permit it
24513 - Added recursive painting of parent control background and
24514 foreground if a control with a transparent backcolor is drawn
24515 (Thanks to Tim Ringenback for providing his 'hack' as a base
24516 for this patch) Fixes #77985 and #78026.
24517 - Added Opaque style check before calling OnPaintBackground, no
24518 need to draw the background if the control is opaque
24519 - Removed ControlAccessibleObject owner variable (inherited from
24520 base, no need to define again)
24521 - Added some documentation links explaining the drawing events
24524 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24526 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24527 that the affected control is the located at the left border of our
24528 parent (Fixes #77936)
24530 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24532 * TextBoxBase.cs: When rendering disabled or readonly controls,
24533 draw the background with 'Control' instead of 'Window' color as
24534 long as the user hasn't specifically set a color
24536 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24538 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24539 since that won't be updated if the user types text (only if it's
24540 programatically set)
24542 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24544 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24545 layout changes do to app-triggered resizes will have the proper
24546 display rectangle for layout
24548 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
24550 * ThemeWin32Classic.cs:
24551 - Make use of the SystemBrushes and SystemPens wherever possible
24552 - Corrected some highlight colors
24553 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24555 * Theme.cs: Added Empty field to CPColor struct
24557 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24559 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24560 is displayed when calculating the display rectangle. Thanks to Mike
24561 for teaching me the err of my ways.
24563 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
24565 * ScrollableControl.cs:
24566 - Rewrote DisplayRectangle code, now returning the proper x/y coords
24567 (instead of 0,0) and we now return the real width/height instead of
24568 just the clientrectangle, adjusted for padding. The rectangle is
24569 now cached and created by the new CalculateDisplayRectangle method.
24570 - Created new CalculateDisplayRectange method, which basically does
24571 what get_DisplayRectangle() did originally, but now using the
24572 right edge instead of DisplayRectangle to determine the size of
24574 - get_Canvas(): Fixed it to properly calculate canvas for
24575 right/bottom controls which seem to be placed to the right/bottom
24576 of any controls that have a fixed location
24577 - Removed TODO that's taken care of
24578 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24579 and SetDisplayRectLocation according to new MSDN2 docs
24580 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24581 event when that is called, this is added for compatibility
24582 - ScrollControlIntoView(): Implemented.
24583 - Switched scrollbars to be implicit, they shouldn't be selectable
24584 * ContainerControl: Now that ScrollControlIntoView is implemented, we
24585 call it when the active control is set/changed
24586 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24587 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24588 implicit_control variable (used for native Win32 message generation)
24589 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
24590 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24591 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24592 * XplatUIStructs.cs: Added ScrollBarCommands enum
24594 2006-04-10 Jackson Harper <jackson@ximian.com>
24597 * CheckedListBox.cs:
24604 * PrintPreviewControl.cs:
24610 * UpDownBase.cs: Fixup base event overrides.
24612 2006-04-06 Mike Kestner <mkestner@novell.com>
24614 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24615 all user-initiated value changes to min <= value <= max-thumbsz+1.
24616 (set_Value): check for vert/horiz when calculating new thumb position.
24617 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24619 (OnMouseMoveSB): refactor the thumb dragging code and refine
24620 invalidation logic to reduce flicker.
24621 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24622 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24623 (UpdateThumbPosition): small code readability cleanup
24625 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
24627 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24630 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24632 * ThemeNice.cs: Use a better graphics effect when a button is pressed
24634 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24636 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24637 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24638 This dramatically reduces the number of Pen.Dispose calls.
24639 Where possible call ResPool methods only once instead of calling it
24640 over and over again (for example for the same color).
24642 2006-04-06 Mike Kestner <mkestner@novell.com>
24644 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24645 Also remove an unused private field on the collection. Fixes #77972.
24647 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24649 * ThemeNice.cs: Added ToolBar drawing code
24651 2006-04-06 Mike Kestner <mkestner@novell.com>
24653 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24654 I'm assuming that means we need to look up the toplevel for the
24655 provided control. Fixes the crash trace in #77911 but exposes another
24656 crash in some strange reflection usage in NDocGui.
24658 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24660 * ThemeNice.cs: Gave it a little silver touch and added Images
24662 * FontDialog.cs: FontDialog is not resizable
24663 * FileDialg.cs: Added SizeGripStyle.Show
24665 2006-04-05 Jackson Harper <jackson@ximian.com>
24667 * KeyboardLayouts.cs: Remove warning.
24669 2006-04-05 Jackson Harper <jackson@ximian.com>
24671 * Control.cs: Enable OnPaintInternal so we can use it for drawing
24672 all of our controls instead of Paint +=.
24687 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24688 use OnPaintInternal. Remove Width/Height and Visible checks in
24689 paint handler, this is done at a higher level now.
24690 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24691 * PaintEventArgs.cs: Add a handled flag so controls that don't
24692 want anymore painting after OnPaintInternal can make sure OnPaint
24695 2006-04-05 Mike Kestner <mkestner@novell.com>
24697 * Form.cs: fix the menu WndProc hacks to respect the native enabled
24698 state of the form, so that we don't process events when Modal dialogs
24699 are up. Fixes #77922.
24701 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
24703 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24706 2006-04-05 Mike Kestner <mkestner@novell.com>
24708 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24710 2006-04-05 Mike Kestner <mkestner@novell.com>
24712 * ListView.cs (HeaderMouseMove): null guarding for the over column
24713 when setting up the drag_to_index. Fixes #78015.
24715 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24717 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24718 in the taskbar. Transient windows seem to accomplish that.
24720 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24723 - Re-enabled CreateParams.X/Y code for FormStartPosition
24724 - Added code for manual placement when creating the Control
24725 - Incomplete patch to treat MDI forms differently when
24726 setting the ClientSizeCore. (Still need to figure out handling
24729 - When we're explicitly setting the X/Y position of a non-Child
24730 window, let the WM know. Metacity really wants this.
24732 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24734 * ThemeNice.cs: Added CPDrawButton
24736 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24738 * ThemeNice.cs: Changed the color for focused buttons and activated
24739 the arrows for small scroll buttons.
24741 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24743 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24744 anymore. Changed some method modifiers to protected (virtual)
24745 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24747 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24748 Updated drawing of menus, buttons and progressbars; added
24751 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24753 * ImageListStreamer.cs: implemented serialization/deserialization
24756 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
24758 * ThemeWin32Classic.cs:
24759 - Removed all the DrawFrameControl stuff; CPDrawButton,
24760 CPDrawCheckBox and CPDrawRadioButton are now handled directly
24762 - Updated and corrected the drawing code of CPDrawButton,
24763 CPDrawCheckBox and CPDrawRadioButton to better match ms
24764 - Updated theme checkbox and radiobutton code to use the CP*
24767 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24769 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24772 2006-03-31 Jackson Harper <jackson@ximian.com>
24774 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24776 * UpDownBase.cs: Don't CreateGraphics manually, use a
24777 Refresh. Ideally we would invalidate the correct areas here.
24779 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24782 - We now track the mapping state of windows. If a window (or
24783 one of it's parents) is not mapped we no longer permit
24784 WM_PAINT messages to be generated since we'd otherwise get
24785 lots of BadMatch X errors. Jackson did all the work figuring
24787 - Destroying the caret if the window it's contained in is
24788 destroyed. Can't use regular DestroyCaret method since it
24789 might fall into a drawing function (trying to remove the
24790 caret) and with that generate new BadMatch errors. Again,
24791 Jackson tracked this down.
24792 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24793 make sure we send the messages to all windows. (The old code
24794 would send the WM_DESTROY to the window, and then all child
24795 windows would be 'gone' because the WM_DESTROY handle lookup
24796 would no longer find the destroyed window)
24797 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24798 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24800 2006-03-31 Jackson Harper <jackson@ximian.com>
24802 * ScrollableControl.cs: Dont recalc if we are not visible.
24804 2006-03-31 Mike Kestner <mkestner@novell.com>
24806 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24807 the visibility branch.
24809 2006-03-31 Jackson Harper <jackson@ximian.com>
24811 * ScrollBar.cs: Cap values when incrementing/decrementing.
24813 2006-03-31 Mike Kestner <mkestner@novell.com>
24815 * MenuAPI.cs: setup menu.tracker for popup/context menus.
24816 * ToolTip.cs: guard against timer expirations with no active control.
24817 Not sure why it happened.
24819 2006-03-31 Mike Kestner <mkestner@novell.com>
24821 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24823 * ToolTip.cs: Position the tooltip based on where the cursor is at
24824 popup time, not at MouseEnter time. Add a Down state so that we don't
24825 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24826 positioning offset. Lookup DisplaySize at positioning time, since it
24827 can theoretically change during invocation.
24828 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24829 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24831 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24833 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
24834 Fixes behaviour when the Text property of the box is String.Empty
24836 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24838 * XplatUIX11.cs: Only send mouseleave for our client windows, not
24839 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
24842 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24844 * FileDialog.cs: Visual enhancement for the popup buttons in
24847 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24849 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
24852 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
24854 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
24855 highlighted menu items to match ms
24857 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
24859 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
24861 2006-03-30 Mike Kestner <mkestner@novell.com>
24863 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
24864 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
24865 go active to account for HotLight to Selected transition.
24866 * MenuItem.cs: add internal Selected prop. Fill out the Status
24867 property by calculating it from item info. Add HotLight,
24868 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
24870 2006-03-30 Mike Kestner <mkestner@novell.com>
24872 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
24874 2006-03-29 Jackson Harper <jackson@ximian.com>
24876 * Form.cs: Implement TODO.
24878 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24880 * PrintPreviewDialog.cs: Implemented missing methods and events; still
24881 missing proper dialog setup in the constructor
24883 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24885 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
24887 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
24888 - Fixed ResetBindings and removed TODO
24889 - Added check for cross-thread calls to get_Handle()
24890 - Added Marshaller attribute for set_Font to satisfy class status
24891 * FontDialog.cs: Removed TODOs that seemed implemented
24892 * UpDownBase.cs: Removed unneeded TODO and Fixme
24893 * MessageBox.cs: Implemented support for Default button and removed TODO
24894 * FileDialog.cs: Removed obsolete TODO
24895 * DomainUpDown.cs: Removed obsolete TODO
24896 * ButtonBase.cs: Removed obsolete TODO
24897 * XplatUIWin32.cs: Removed obsolete TODO
24899 - Removed obsolete TODO
24900 - Calling CheckAcceptButton when the acceptbutton is changed to allow
24901 internal status updates
24902 - Making sure the active control is selected when the control is created
24903 * CurrencyManager.cs: Removed obsolete TODO
24905 2006-03-29 Mike Kestner <mkestner@novell.com>
24907 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
24908 of PrintPreviewDialog and RichTextBox.
24910 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24912 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
24913 DarkDark, Light and LightLight colors for a specific color
24914 * ThemeWin32Classic.cs:
24915 - Use Button drawing code to draw RadioButtons and CheckBoxes with
24916 Appearance = Button
24917 - Make use of the new ResPool helper CPColor
24918 - Draw ProgressBar and StatusBar with correct 3D borders
24920 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24922 * ColorDialog.cs: Return selected color. Fixes bug #77940.
24924 2006-03-28 Mike Kestner <mkestner@novell.com>
24926 * ListView.cs: fix Icon layout to plan for scrollbar widths when
24927 calculating col/row counts.
24929 2006-03-28 Mike Kestner <mkestner@novell.com>
24935 switch to explicit interface method implementation for some methods
24936 corcompare identifies as inconsistent with MS.
24938 2006-03-28 Mike Kestner <mkestner@novell.com>
24942 add a few missing methods from the class status output.
24944 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
24946 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24949 2006-03-28 Mike Kestner <mkestner@novell.com>
24951 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24953 2006-03-27 Mike Kestner <mkestner@novell.com>
24955 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24956 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24958 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
24960 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24962 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24964 * ThemeWin32Classic.cs:
24965 - GroupBox: Inserted a little gap between the text and the lines
24967 - Made the code in CPDrawBorder3D more readable
24968 - Corrected the drawing location of the up and down arrows in
24971 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24973 * ControlPaint.cs: Corrected line widths in DrawBorder for
24974 ButtonBorderStyle Inset and Outset
24976 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24978 * ThemeWin32Classic.cs:
24979 - Rewrote the totally broken CPDrawBorder3D method. That was
24980 one of the main problems for the terrific ThemeWin32Classic
24982 - Updated and corrected Button drawing
24983 - Correct the dimensions of the SizeGrip to match ms ones
24984 - Removed a small drawing glitch in DrawComboBoxEditDecorations
24985 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24986 Border3DStyle.Sunken to match ms.
24988 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24990 * ThemeWin32Classic.cs: First small part of the "de-uglify
24991 ThemeWin32Classic" effort, SizeGrip
24993 2006-03-24 Jackson Harper <jackson@ximian.com>
24995 * XplatUIX11.cs: Give a max idle time of one second, this matches
24996 MS and forces an Idle event every second when there are no other
24997 events in the queue.
24999 2006-03-24 Mike Kestner <mkestner@novell.com>
25001 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
25002 * ListView.Item.cs: fix layout issues with null image lists and images
25003 smaller than checkbox size.
25004 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
25005 mode like MS does. It's weird, but consistent. ;-)
25008 2006-03-24 Mike Kestner <mkestner@novell.com>
25010 * ListView.cs: Scroll wheel support for the item control. Fixes
25013 2006-03-23 Jackson Harper <jackson@ximian.com>
25015 * ScrollableControl.cs: Special case negative sized areas, not
25017 * MonthCalendar.cs: Save the rect of the clicked date so we can
25018 use it for invalidation.
25019 - Try to cut down on the number of invalidates
25020 - Invalidate the rect the mouse is over and was over when moving
25021 the mouse, so we get the focus box following the cursor.
25023 2006-03-23 Mike Kestner <mkestner@novell.com>
25025 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
25026 focus rectangle drawing. Fixes #77835.
25028 2006-03-23 Mike Kestner <mkestner@novell.com>
25030 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
25031 the if and else if and reverting back to the original == check on the
25034 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
25036 * FontDialog.cs: Update the example panel if the selected index of
25037 the fontListBox changes.
25039 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
25041 * FileDialog.cs: Make FileDialog remember which directory it was in
25042 last in the same execution.
25044 2006-03-22 Mike Kestner <mkestner@novell.com>
25046 * FileDialog.cs: make the DropDownMenu on the toolbar display
25047 RadioChecks since they are mutually exclusive and that's what MS does.
25049 2006-03-22 Mike Kestner <mkestner@novell.com>
25051 * Theme.cs: add Color param to CPDrawMenuGlyph.
25052 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
25053 checks and radio marks and arrows are visible on highlighted items.
25054 * ControlPaint.cs: update to use new Theme signature.
25056 2006-03-22 Mike Kestner <mkestner@novell.com>
25058 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
25059 is active. Fixes #77870.
25061 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
25063 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
25064 to be focused/selected after startup
25066 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
25069 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
25070 CustomColors and ShowHelp properties
25071 - Some internal rewrites to get better results when using the
25074 2006-03-22 Mike Kestner <mkestner@novell.com>
25076 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
25077 HoverSelection. Fixes #77836.
25079 2006-03-22 Mike Kestner <mkestner@novell.com>
25081 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
25082 ToggleButtons. (De)Sensitize the Back button around a stack count of
25083 1, not 0. Update ButtonSize based on a pixel count of the win32
25084 control. Adjust the toolbar size/location for new button size.
25086 2006-03-22 Jackson Harper <jackson@ximian.com>
25088 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
25090 * ScrollBar.cs: When doing increments and decrements we need to
25091 set the Value property so that ValueChanged gets raised. A
25092 possible optimization here would be to make an internal SetValue
25093 that doesn't invalidate immediately.
25094 * ToolTip.cs: Tooltips get added to their container (when
25095 supplied) so they get disposed when the container is disposed.
25096 - Don't create tooltips for String.Empty. This prevents all these
25097 little 2-3 pixel windows from showing up when running nunit-gui
25098 and driving me mad.
25099 * Form.cs: Don't set topmost when setting the owner if the handles
25100 haven't been created yet. The topmost set will happen when the
25101 handles are created.
25103 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
25106 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
25107 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
25108 visible (to allow them to recalculate their sizes)
25110 2006-03-21 Mike Kestner <mkestner@novell.com>
25112 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
25113 methods. Removed a ton of redundant code. Still not really happy with
25114 the border rendering, but I think that's mainly because of the
25115 ControlDarkDark being black instead of a dark grey. Depending on how
25116 close we want to be, we might want to revisit those color choices.
25117 Among the new features added during the refactor were DropDownArrow
25118 pressed rendering, Disabled image rendering. Proper flat appearance
25119 boundary rendering. Removed the Divider and Wrapping dividers since I
25120 can't figure out any combination of themes and conditions to make the
25121 MS control draw a horizontal line on a toolbar despite what the
25122 Divider property docs indicate.
25123 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25124 conditions and incorrect layout. Updated to coding standard.
25125 * ToolBarButton.cs: refactored layout and positioning code from
25126 ToolBar to here. Invalidate wherever possible instead of forcing
25127 redraws of the whole toolbar.
25128 (Known remaining issues: explicit ButtonSize smaller than provided
25131 2006-03-21 Mike Kestner <mkestner@novell.com>
25133 * ContextMenu.cs (Show): use the position parameter instead of just
25134 showing at the MousePosition.
25136 2006-03-21 Jackson Harper <jackson@ximian.com>
25138 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25139 control handle this.
25140 * TreeNodeCollection.cs: If we are clearing the root node we need
25141 to reset top_node so calcs can still happen.
25142 * ThemeWin32Classic.cs: This is a Flags so we need to check
25145 2006-03-21 Jackson Harper <jackson@ximian.com>
25147 * DataGrid.cs: Create columns when the binding context has been
25149 * X11Structs.cs: Keysyms are uints.
25150 - Add size to fix build.
25152 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
25154 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25156 - Added ResetMouseHover method to allow controls to retrigger
25157 hovering if they need it more than once
25158 - Implemented MouseHoverTime and MouseHoverSize properties
25159 * Timer.cs: Start() must reset the interval
25160 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25163 2006-03-21 Jackson Harper <jackson@ximian.com>
25165 * X11Keyboard.cs: improved layout detection. Move the nonchar
25166 tables into this file.
25167 * KeyboardLayouts.cs: Move the tables into resource files.
25169 2006-03-21 Mike Kestner <mkestner@novell.com>
25171 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25173 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
25175 * Mime.cs: Various speed optimizations. Looking up mime types
25176 is now 2 times faster than before
25178 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25180 * CreateParams.cs: Added internal menu field
25182 - Switched call order for UpdateBounds; now we always call
25183 the one that also takes ClientSize, and we're calculating the
25184 client size via driver method in the others. The previous
25185 method of tracking client size by difference wasn't working
25186 for forms where even the starting client size wouldn't match
25187 the overall form size (due to borders) (Part of fix for #77729)
25188 - CreateParams(): Do not use parent.Handle unless the handle is
25189 already created. Causes havoc with Nexxia and throws off our
25190 creation of controls
25192 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
25193 - Switched handling of ConfigureNotify over to new PerformNCCalc
25194 method (consolidates code)
25195 - Changed RequestNCRecalc to use new PerformNCCalc method
25196 - Added calls to RequestNCRecalc when menus and borders are changed
25197 to allow app to set NC size. (Part of fix for #77729) This matches
25198 when MS send a WM_NCRECALC on Win32 windows.
25199 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
25200 (Part of fix for #77729). This matches what MS does, they also
25201 send that message when the form is made visible.
25202 - XException.GetMessage: Improved usability of X errors by including
25203 a translation of the window into Hwnd and Control class
25204 - Improved debug info for window creation, reparenting and destruction
25205 - Created helper method WindowIsMapped() [Currently not used]
25206 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
25208 - CreateParams: Now setting our menu on the new internal menu field
25209 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
25210 avoid calculating the same property twice
25212 - Improved usability of ToString() for debugging purposes
25213 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
25214 determine the height of the menu, instead of just the font. This
25215 required to also create a graphics context and to keep a bmp
25216 around (for performance reasons)
25218 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25220 * MenuAPI.cs: Added OnMouseUp method
25222 - Now remembering the requested client size, avoids size errors
25223 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
25224 instead of base if the menu is active. This is required due to
25225 control now capturing and releasing on down/up and it would
25226 prematurely release our menu capture
25228 2006-03-17 Jackson Harper <jackson@ximian.com>
25230 * KeyboardLayouts.cs: Add the czech layouts.
25232 2006-03-16 Jackson Harper <jackson@ximian.com>
25234 * Control.cs: Use the viewport space when sizing not the controls
25235 client size, so things like ScrollableControl that effect the
25236 viewport size (when scrollbars are added) are computed correctly.
25237 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
25239 - Handle creating BindingManagers for null data sources.
25240 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
25241 source, otherwise when rows are added they are added to the 'fake'
25242 datasource and we will crash when trying to set the position in
25244 - Use Implicit scrollbars on the datagrid so they arent
25247 2006-03-16 Jackson Harper <jackson@ximian.com>
25250 * InternalWindowManager.cs:
25251 * MdiWindowManager.cs:
25252 * X11Keyboard.cs: I really want Mike to love me again (fix
25253 compiler warnings).
25255 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25258 - OnMouseDown: Switch to editing mode when clicking on the cell
25259 even if we're clicking on the cell that's currently
25261 - ProcessGridKey: Left/Right now wrap like MS.Net does
25262 - ProcessGridKey: Tab now knows to add a new row when tab is
25263 pressed in the cell of the last column of the
25265 - ProcessGridKey: Enter now adds another row if pressed in the last
25266 row and selectes the new row, same column cell
25267 - ProcessGridKey: Home/End navigate columns, not rows, like
25268 originally implemented
25269 - Broke ProcessKeyPreview code out into an extra Internal method
25270 so it can be called from the edit code
25271 * DataGridTextBox.cs (ProcessKeyMessage):
25272 - Switched to accept Tab keypresses
25273 - Added F2 handling to allow jumping to the end of the edited cell
25274 - Added logic to allow moving caret left/right inside edited cell
25275 and making the edited cell jump when the caret hits cell borders
25276 - Tab and Enter are now passed to the datagrid after being handled
25278 - Removed capture code now that Control handles it
25279 - set_SelectionStart now ensures caret is visible
25281 2006-03-16 Jackson Harper <jackson@ximian.com>
25283 * TrackBar.cs: Debackwards the increment/decrement for handling
25284 mouse clicks on the bar with vertical trackbars.
25285 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
25286 bottom to match MS.
25288 2006-03-16 Mike Kestner <mkestner@novell.com>
25290 * ListView.cs: make shift/ctrl keyboard and mouse selection
25291 consistent with the MS control. Fix a bug in
25292 SelectedListViewItemCollection.Clear that was pissing me off for the
25293 better part of a day because the collection was being altered
25294 underneath us as we walked the list.
25296 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25298 * Control.cs: Not sure how we could miss this so long, but it seems
25299 that MS.Net has Capture set all the way from before calling
25300 OnMouseDown through sending the mouse events until after
25301 OnMouseUp. This will fix DataGrid's selection being set to end
25302 at the location of the MouseUp.
25304 2006-03-15 Jackson Harper <jackson@ximian.com>
25306 * BindingContext.cs: Check the binding after its added so that it
25307 can initialize the binding managers and hookup to events.
25308 * Binding.cs: Data members seem to sometimes include rows/cols in
25309 the format Row.Column we now take this into account.
25310 - Hookup to the position changed event so we can update the
25311 control when the position has changed in the data set.
25312 * CurrencyManager.cs: Take into account the row/col naming
25313 convention when creating dataset tables.
25314 * BindingContext.cs: Using a newer better way of storing
25315 datasource/datamember pairs. Hopefully this better matches MS for
25316 looking up binding managers.
25319 2006-03-15 Jackson Harper <jackson@ximian.com>
25321 * BindingContext.cs: The currency manager needs the data member
25322 name, if the member is a data set we use the name to find the
25324 * CurrencyManager.cs: When creating the list prefer an IList over
25326 - Attempt to create a DataTable from a DataSet (TODO: might need
25327 some better error checking here, although MS doesn't seem to have much)
25328 - If we have a DataTable create a view and use it as our list.
25330 2006-03-15 Mike Kestner <mkestner@novell.com>
25332 * ListView.cs: keep a matrix of the icon mode layout to facilitate
25333 keyboard navigation. Support Up/Down/Left/Right selection correctly
25334 for all 4 View modes.
25335 * ListViewItem.cs: add internal row/col fields for icon layouts.
25337 2006-03-15 Jackson Harper <jackson@ximian.com>
25339 * TabControl.cs: Redraw the tabs when we resize so their newly
25340 calculated sizes are drawn on screen.
25341 * X11Keyboard.cs: Begginnings of XIM support. We also now support
25342 composite characters.
25343 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25344 - filter events so that composite characters can be created
25346 * X11Structs.cs: Add XIMProperties enum.
25348 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25350 * Control.cs (BringToFront, SendToBack): Don't use window or handle
25351 unless it's created
25353 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25355 * Control.cs (PerformLayout): We don't need to consider visiblity
25356 for anchoring, only for docking. This fixes 'whacky' alignment
25357 in listbox and other controls that use implicit scrollbars after
25358 the previous PerformLayout patch
25359 * ListBox.cs: Switched to use implicit scrollbars
25361 2006-03-14 Mike Kestner <mkestner@novell.com>
25365 - chain up the "new event" overrides to base and use
25366 OnEvent to raise them. Part of fix for bug #76509.
25368 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
25370 * FileDialog.cs: Do not select an item in the parent directory
25373 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25375 * Control.cs (PerformLayout): It would seem that we considered
25376 invisible windows for our layout. Not quite the right thing
25377 to do. Now we don't any longer, thereby fixing bug #76889.
25379 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25381 * Control.cs (CanFocus): I goofed. A control can have focus
25382 even though it's not selectable. Made it match MS docs.
25384 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25386 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25387 center by default (fixes #76895)
25388 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
25389 all uses of Border3DSides.All with the explicit ORd together
25390 Left|Right|Top|Bottom because I assume that nobody was aware
25391 that All also implies a center fill. Most places I checked had
25392 a fill right above.
25393 * ProgressBarStyle.cs: Added
25395 2006-03-13 Mike Kestner <mkestner@novell.com>
25397 * ListView.cs: fix breakage in drag shadow header positioning
25398 from Peter's csc compilation fix.
25400 2006-03-13 Mike Kestner <mkestner@novell.com>
25402 * ListView.cs: fix NRE produced by backspacing twice in a focused
25405 2006-03-13 Mike Kestner <mkestner@novell.com>
25407 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25409 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25411 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25413 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25414 the allowed size before making programmatic size changes
25416 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25418 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
25419 set, metacity is broken and will still use the emty sizes in
25420 the struct. (Fix for #77089)
25422 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25424 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
25425 WindowExStyles and marked both enums as Flags
25426 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25427 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25428 to match WindowStyles split
25430 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25431 - Updated to match WindowStyles split
25433 - Fixed FosterParent creation, was using ExStyle on the Style field
25434 (This should help with Popup focus issues)
25435 - Updated to match WindowStyles split
25437 2006-03-13 Jackson Harper <jackson@ximian.com>
25439 * MdiWindowManager.cs: Use the system menu height. Fixes some
25440 strange sizing issues.
25442 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25444 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25446 - Scroll to caret after inserting text (#77672)
25447 - Make scroll range one pixel higher, fixes off-by-one error (and
25448 makes underlines visible on the last line)
25450 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25452 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25453 the keyboard state from being stuck with keys in 'pressed' state when
25454 focus is switched away via keyboard
25455 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25456 reset the keyboard if no X11 KeyUp events are expected to come
25457 * X11Structs.cs: Switched type of Visible to bool to match driver
25459 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25462 - Switched caret to be just 1 pixel wide, matches MS and looks less
25464 - Moved caret display 1 pixel down from the top of the control
25466 - InsertCharAtCharet: Update the selection start if moving the caret
25467 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25468 - No longer always creating the caret when the caret methods are
25469 called. Only the actual ShowCaret/HideCaret will do that now
25470 - Only setting caret visible if the owner control has focus
25471 - UpdateView: Added invalidation-shortcut logic for center and right
25472 aligned text. Previously we'd update all according to the left
25473 logic which caused drawing errors. Also fixed height of invalidated
25474 areas, now properly invalidating the whole area (was off-by-one)
25475 - owner_HandleCreated: Always generate the document when the
25476 handle is created; this ensures that
25478 - Fixed situation where caret would disappear under the right
25479 window border, also improved scrolling behaviour on left-
25481 - Fixed right-aligned textboxes to have a border to the
25482 right instead of the caret being under the right border
25484 - Switched from 'nested' to simple visible/not visible tracking
25485 for caret (part of fix for #77671)
25486 - No longer passing through translated FocusIn/FocusOut messages
25487 since we were notifying too often and the wrong windows. Instead
25488 we just notify our focussed window of receiving or loosing focus
25489 * XplatUIWin32.cs: Switched from 'nested' show/hide
25490 counting for caret to simple visible yes/no behaviour (part of
25493 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25495 * Mime.cs: Remove debug code...
25497 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25499 * MimeGenerated.cs: Removed
25500 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25501 and subclasses) from /usr/(local/)share/mime and
25502 $HOME/.local/share/mime.
25504 2006-03-10 Jackson Harper <jackson@ximian.com>
25506 * MdiWindowManager.cs: Recalc the NC area when a window is
25507 maximized/restored so that the menu area is drawn on forms that
25510 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25512 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25513 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25514 us to force a WM_NCCALCRESIZE message being sent. This is needed
25515 for MDI maximizing.
25517 2006-03-10 Jackson Harper <jackson@ximian.com>
25519 * Form.cs: We need to use the ActiveMenu when calculating menu
25521 - Fix nullref when the window manager hasn't been created yet.
25522 * Control.cs: Fix nullref when we try to bring a control to the
25523 front that has no parent.
25524 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25526 - Add a dummy item to the maximized menu so it always has the
25527 correct height. Otherwise when there are no menus we don't get our
25531 2006-03-10 Jackson Harper <jackson@ximian.com>
25533 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25535 * Form.cs: Make the window_state internal so the window managers
25537 - When an MDI child is maximized let its window manager create the
25538 main menu (so it can add its icon).
25539 - Notify the window managers of state changes
25540 - Let the window manager paint its buttons and handle button
25541 clicks on the menu when it is maximized.
25542 * InternalWindowManager.cs: Move the prev_bounds into the mdi
25543 window manager, since tool windows don't use it, only mdi windows.
25544 - Tell the main form that we don't want it to handle NCPAINT
25545 itself to avoid extra painting.
25546 - Handle clicks on a maximized windows menu.
25547 - Handle window state changes
25548 - Handle minimize/maximize clicks correctly by setting the window state.
25549 * MdiWindowManager.cs: Add an icon menu that (the menu you get
25550 when clicking on the forms icon).
25551 - New method to create a forms maximized menu. This is its normal
25553 - Handle window state changes.
25554 - Handle sizing of maximized windows. Maximized windows are just
25555 drawn bigger then the parent visible area. All controls are still
25556 there, they are just outside the visible area (this matches windows).
25557 * MdiClient.cs: No scrollbars when a child window is maximized.
25558 - Let the children windows figure out how big they should be when
25559 sizing maximized windows.
25560 - Implement a version of ArrangeIconicWindows somewhat similar to
25561 Windows version. There are some little differences, but I don't
25562 think any app will rely on the layout of minimized mdi windows.
25564 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25566 * Padding.cs: Several fixes to allow compiling with csc 2.0
25568 2006-03-09 Jackson Harper <jackson@ximian.com>
25571 * MenuItem.cs: Cheap hack so we can add items to the list without
25572 the events being raised. This allows adding mdi items during
25573 drawing. TODO: Should probably find a better time to add the items.
25575 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25577 * ThemeWin32Classic.cs:
25578 - CheckBox_DrawText: Added logic to not wrap if not enough space
25579 is available (Fix for bug #77727)
25580 - RadioButton_DrawText: Added logic not to wrap if not enough
25581 space is available (Fix for bug #77727). Also removed some
25582 duplicate code, DrawString always drawing the regular text
25583 before hitting the if statement.
25585 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25587 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25589 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25591 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25592 * ContainerControl.cs: Partial implementation of some 2.0 scaling
25593 methods. Moved the new 2.0 properties into alphabetical order with
25594 other properties and added MonoTODO tags
25596 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25598 * AutoScaleMode.cs: Added. Fix build.
25600 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25602 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25603 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25604 and was requiring premature handle creation for calls from above
25605 * Form.cs, Control.cs: Removed handle arguments from calls to
25606 CalculateClientRect()
25608 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25610 * ListView.cs (HeaderMouseMove): Fix csc compilation.
25611 drag_column.column_rect is MarshalByRef and can't be used that way
25613 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25615 * AxHost.cs: Added deserialization constructor for
25616 AxHost+State (fixes 77743)
25618 2006-03-09 Mike Kestner <mkestner@novell.com>
25621 - Added column drag reordering for details view.
25622 - fixed behavior when mouse is dragged off column and
25623 AllowColumnReorder is false.
25624 * ColumnHeader.cs: clone the format too in Clone.
25625 * Theme.cs: add DrawListViewHeaderDragDetails method.
25626 * ThemeWin32Classic.cs:
25627 - impl new method for drawing drag column shadows and targets.
25628 - support column offset for details mode in DrawListViewItem.
25630 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25632 * TextControl.cs: Reset the char_count when the document is cleared
25633 (Fixes bug reported on mono-winforms mailing list)
25635 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25637 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25638 of calling base we simply process the key ourselves, since both
25639 DefWindowProc and the handled method would set m.Result.
25642 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25644 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25645 method also moves the window; instead implemented a copy of
25646 Control.ScaleCore (Part of fix for #77456)
25648 - Created new CreateGraphicsInternal method to allow providing
25649 a graphics context when no handle is created without triggering
25650 handle creation. (Part of fix for #77456)
25651 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25653 - Switched Constructor to require TextBoxBase instead of Control (to
25654 allow uncast access to CreateGraphicsInternal)
25655 - Safeguarded use of owner.Handle property. No longer accessing it
25656 unless the handle is already created.
25657 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25658 - Now triggering a recalc when owning control becomes visible
25659 * TextBox.cs, RichTextBox.cs: Switched to use new internal
25660 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25661 premature handle creation (Part of fix for #77456)
25663 - We now only destroy our double-buffering buffers when the
25664 control is resized or disposed, but not when visibility
25665 changes. (The code even re-created them twice every time)
25666 - Now requiring a redraw of the buffer on visibility changes
25667 (fixes bug 77654 part 2)
25668 - Not passing OnParentVisibleChanged up unless the control
25670 - CanFocus: Fixed to match MS documentation
25671 - Focus: Fixed to return actual focus state and to check if
25672 setting focus is legal before setting it
25674 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
25676 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25677 when to draw focus rectangle by looking at parent focus and
25678 selected state instead. This fixes TabPages on Linux sometimes
25679 having none or multiple focus rectangles.
25680 * XplatUIX11.cs (SetFocus):
25681 - Don't set the focus if the same window already has focus
25682 - Use SendMessage instead of PostMessage (like it's Win32
25683 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25684 to match MS behaviour
25685 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25686 are not selectable.
25688 2006-03-07 Jackson Harper <jackson@ximian.com>
25690 * PictureBox.cs: Revert line I accidently committed last week.
25692 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
25695 - Added new IsRecreating and ParentIsRecreating properties to
25696 allow testing if RecreateHandle has been called on ourselves
25697 or one of our parents
25698 - WndProc(WM_DESTROY): If our control handle is being recreated
25699 we immediately need to create the handle when receiving the
25700 destroy, that way our child windows find a valid parent handle
25701 when they themselves are being recreated upon WM_DESTROY receipt
25702 (fix for bug #77654 part 1)
25704 - DestroyWindow: WM_DESTROY must be sent to our own window before
25705 notifying any child windows. MS documents that child windows
25706 are still valid when WM_DESTROY is received. (Control now relies on
25708 - Added some fine-grain debug options
25710 2006-03-06 Jackson Harper <jackson@ximian.com>
25712 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25713 box and base calculations off this.
25714 * MdiChildContext.cs:
25715 * MdiWindowManager.cs: Don't need to ensure scrollbars here
25718 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
25720 * Splitter.cs: In situations where the affected control is added
25721 to the parent's control list after the splitter, we would not
25722 populate affected. Now we try populating it on mousedown, if
25723 it's not already set, and force it to be re-set whenever our
25726 2006-03-03 Matt Hargett <matt@use.net>
25728 * Control.cs: implement Control.Padding
25729 * Padding.cs: -Padding.All returns -1 when constructing with the
25730 implicit default ctor
25731 -Padding.ToString() matches MS.NET
25732 * ContainerControl.cs: implement
25733 ContainerControl.AutoScaleDimensions
25734 * ListControl.cs: implement ListControl.FormattingEnabled
25735 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25737 * TabPage.cs: Implement UseVisualStyleBackColor.
25738 * PictureBox.cs: Implement PictureBox.InitialImage.
25740 2006-03-03 Mike Kestner <mkestner@novell.com>
25742 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25743 event declarations to proxy to base event.
25744 * ListViewItem.cs: update to use ItemControl.
25745 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25746 * ThemeWin32Classic.cs: update to new ListView theme API and fix
25747 column header label rendering for 0 width columns.
25749 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
25751 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25752 that causes the control to be created. Fixes #77476.
25754 2006-03-02 Jackson Harper <jackson@ximian.com>
25756 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25759 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
25761 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25762 passed in for the EventArgs (fixes #77690)
25764 2006-03-01 Jackson Harper <jackson@ximian.com>
25766 * ScrollBar.cs: Refresh afterbeing resized.
25768 2006-02-28 Mike Kestner <mkestner@novell.com>
25770 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25771 Clean up a tracker compile warning.
25772 * MenuItem.cs: add internal PerformPopup method.
25775 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25777 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25778 implicit expose) when the text is set to null
25780 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25782 * RichTextBox.cs (FlushText): When newline is true, we always
25783 need to split the line, even if no text is on it and we may
25784 never eat newlines. (Fixes #77669)
25786 2006-02-28 Mike Kestner <mkestner@novell.com>
25788 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
25789 and set Selected instead.
25790 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
25793 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25795 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25797 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
25800 - Got rid of the panel. All controls are now directly added to
25802 - It is now possible to set a font with the Font property
25803 - MinSize and MaxSize property do now what they should
25804 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25805 - Searching and selecting a font with the font textbox works now,
25806 the same applies to the style and size textbox
25807 - Draw the correct 3D border in the example panel
25808 - Fixed a little mem leak (unused fonts didn't get disposed)
25809 - Many other internal updates/rewrites...
25812 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25815 - InsertRTFFromStream: Added 'number of characters inserted' argument
25816 - set_SelectedRTF: Now using the number of characters to calculate
25817 the new location for the selection and cursor (x/y cannot be used
25818 due to potentially already wrapped text)
25820 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25822 * TextControl.cs: Added property and implemented means to allow
25823 disabling recalculation of a document (can be used to speed up
25824 multiple inserts and is needed to make RTF inserts predictable, see
25826 * RichTextBox.cs: Using the new NoRecalc property of Document to
25827 keep x/y insert locations predictable. Also makes it faster inserting
25828 large chunks of RTF
25830 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25832 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
25833 it's easier for a child control to handle the other messages without
25834 having to duplicate the special functionality
25836 - WndProc: Removed calling base handler for WM_KEYDOWN and added
25837 code to handle processing the key ourselves, in order to get
25838 access to the result of KeyEventArgs.Handled. We now only call
25839 ProcessKey if they key hasn't been handled already. Fixes #77526.
25840 - set_Text: If null or empty string is given, just clear the
25841 document. Fixes part of #77526
25843 2006-02-27 Jackson Harper <jackson@ximian.com>
25845 * SizeGrip.cs: Paint the background color before painting the grip
25846 so things look right.
25847 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
25849 2006-02-27 Mike Kestner <mkestner@novell.com>
25852 - Restructure layout and invalidation model to remove a ton of
25853 flicker from the control and speed up performance in general.
25854 - Add manual column resize, flickers like crazy, but I already have
25855 some ideas on how I'll fix that. (#76822)
25856 - Merge the three Icon-based views into a single layout method.
25857 - Move item selection interaction logic from the item since
25858 interaction with the collections is more appropriate to the view.
25859 - Deselection on non-item clicks.
25861 - Encapsulate most of the layout. Add some internal props to trigger
25862 layout. Move to a model where Items invalidate themselves instead
25863 of just invalidating the whole control every time something changes.
25864 - Invalidate on Text/Caption changes.
25865 - switch to an offset based layout model to avoid having to absolute
25866 position every element on item moves.
25867 - correct checkbox layout to conform to MS layout.
25868 * ThemeWin32Classic.cs:
25869 - refactor some column header drawing code.
25870 - fix string justification for column headers (#76821)
25871 - make SmallIcon labels top justified for compat with MS impl.
25872 * ThemeClearlooks.cs:
25873 - adjust to new ListViewItem internal checkbox bounds api.
25875 2006-02-27 Jackson Harper <jackson@ximian.com>
25877 * Control.cs: Change where implicit controls fall in the zorder.
25878 They are now on top of all children.
25879 - Synced AddImplicit code with Add
25880 - Removed unused enumerator.
25881 * SizeGrip.cs: Remove the TODO as its been TODONE.
25883 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25885 * TextControl.cs(Insert): Combine the last lines unless the insertion
25886 string ends with \n\n, otherwise we leave one line too many (Fixes
25887 something I noticed with the testapp for #77526; the bug itself was
25888 already fixed in the previous checkin)
25890 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25893 - SelectionColor and SelectionFont methods no longer set absolute
25894 styles. Instead, the keep font or color respectively (This
25895 resolves a long-standing FIXME in the code)
25896 - When flushing RTF text, the insert code now considers text trailing
25897 behind the insertion point (Fixes the bug where when replacing
25898 the selected text via SelectedRTF the remainder of the line behind
25899 the selection would stay on the first insertion line)
25901 - AppendText now updates the selection points after inserting text
25902 - AppendText now ensures that the last tag (sometimes 0-length) of
25903 the document is used for the style information (Fixes part of
25906 - Created new FontDefiniton class to allow describing partial style
25908 - StreamLine() now takes a lines argument, to allow it to decide
25909 whether an encountered zero-length tag is the last in the document
25910 (which must be kept to not loose the font/color contained in it,
25912 - Created Combine() and Split() methods for Marker structs, to
25913 support marker updates due to reformatted documents (soft line
25915 - Implemented Document.CaretTag setter
25916 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
25917 of the last line (Not the cause, but also exposed by bug #77220)
25918 - Added LineTag argument to InsertString method, to allow callers
25919 to force a certain tag to be used (required to force use of the
25920 trailing zero-length tag of a document)
25921 - Now updating markers in Combine(), to avoid stale tag markers
25922 - Added some method descriptions to aid maintenance
25923 - Implemented new FormatText concept, allowing additive/subtractive
25924 formatting by only specifying the components that are to be
25925 changed. This was needed for resolving the RTB.SelectedColor/
25926 RTB.SelectedFont fixmes
25927 - Added Break() support method to allow breaking up linetags (used
25928 for partial formatting)
25929 - Added GenerateTextFormat() method. It is used for partial
25930 formatting and allows to generate a full font/color from given
25931 attributes and an existing tag.
25933 2006-02-26 Jackson Harper <jackson@ximian.com>
25935 * XplatUIX11.cs: Use the correct caption height.
25936 - Translate hittest coordinates to screen coords to match MS.
25937 * XplatUIWin32.cs: When we create MDI windows we need to reset
25938 some of the style flags, so we get a nice blank window, and can
25939 draw all the decorations ourselves.
25940 - Set a clipping rectangle on the non client paint event, the
25941 window manager drawing code needs one.
25942 * Form.cs: The window manager needs to know when the window state
25944 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25945 don't need to factor in border and title sizes in these
25946 methods. TODO: Remove the args and fix the call points.
25947 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25949 - Let the driver set the cursors.
25950 - Improve active window handling
25951 - Correct sizes for title bars and buttons.
25952 - Match MS drawing better
25953 * MdiWindowManager.cs: We don't need to handle border style
25954 updates specially anymore.
25955 - Check for scrollbars when windows are done moving
25956 - Handle Active properly.
25957 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25958 correctly. I am spewing the exception though, so we don't hide the
25961 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
25963 * DataGridViewRowPostPaintEventArgs.cs,
25964 DataGridViewCellPaintingEventArgs.cs,
25965 DataGridViewRowCollection.cs,
25966 DataGridViewRowPrePaintEventArgs.cs,
25967 DataGridViewCell.cs: Clear a few warnings and implement a few
25968 exceptions that should be thrown.
25970 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25972 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25973 'inheriting' our parent's (non-default) cursor. (Part of
25974 the fix for #77479)
25976 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25978 * XplatUIX11.cs: Fixed cast to make csc happy
25980 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25982 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25983 it's for the client area (part of fix for #77479 and needed
25984 for MDI window cursor handling)
25986 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25987 the appropriate default cursors and also passing the message
25988 up the parent chain
25989 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25990 for non-client areas
25992 2006-02-15 Jackson Harper <jackson@ximian.com>
25994 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25995 is a real MDI window
25997 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
25999 * X11DesktopColors.cs: Instead of checking the desktop session
26000 string for "KDE" check if it starts with "KDE"
26002 2006-02-10 Jackson Harper <jackson@ximian.com>
26004 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
26007 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
26009 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
26012 - Got rid of the panel. All controls are now directly added to
26014 - Changed to mono coding style
26016 2006-02-10 Jackson Harper <jackson@ximian.com>
26018 * InternalWindowManager.cs: We don't need the set visibility to
26019 false hack anymore now that peter has written beautiful shutdown
26022 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
26024 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
26025 where already explicitly destroyed
26027 2006-02-10 Jackson Harper <jackson@ximian.com>
26029 * MdiClient.cs: Handle the case where windows are too high or to
26030 the left and we need scrollbars.
26032 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
26034 * MimeIcon.cs: Added some icons
26037 - Got rid of the panel. All controls are now directly added to
26039 - Changed to mono coding style
26040 - On Linux "My Computer" and "My Network" will now show some
26041 more usefull information. A new class, MasterMount, gathers
26042 this information from /proc/mount. Updated MWFFileView to make
26043 use of this information
26044 - Fixed a bug that caused FileDialog to crash when
26045 ".recently_used" file had a zero size
26046 - FilterIndex does now what it should
26048 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
26051 2006-02-09 Jackson Harper <jackson@ximian.com>
26053 * ComboBox.cs: Don't touch if null.
26055 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
26057 * Cursor.cs: 64bit safeness fix
26058 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
26060 2006-02-09 Jackson Harper <jackson@ximian.com>
26062 * Form.cs: If a form is made into an MDI form update the styles so
26063 all the props can get set correctly.
26064 - Kill the mdi_container when we dont need it anymore.
26065 * InternalWindowManager.cs: Add missing NOT
26067 2006-02-08 Jackson Harper <jackson@ximian.com>
26069 * InternalWindowManager.cs: Respek clipping when drawing MDi
26072 2006-02-08 Jackson Harper <jackson@ximian.com>
26074 * Hwnd.cs: Add bits to track non client expose events.
26075 * XplatUIX11.cs: Track non client expose events on the hwnd. This
26076 gives us a proper invalid rect and will allow for some nice
26077 optimizations with NC client drawing
26078 - MDI windows are children windows, so move their style handling
26079 into the child window block.
26080 * InternalWindowManager.cs: Remove a state reset that was
26081 getting invoked at the wrong time. Fixes managed windows getting
26082 into a 'stuck' captured state.
26084 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
26086 * TextControl.cs (Document.ctor): Now initializing
26087 selection_anchor. Fixes #77493
26089 2006-02-07 Jackson Harper <jackson@ximian.com>
26091 * TrackBar.cs: The increment/decrements were backwards.
26093 2006-02-07 Mike Kestner <mkestner@novell.com>
26095 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
26096 to the instance itself.
26098 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
26100 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
26101 on ulongs and pointers, the size differs between 32bit and 64bit
26104 2006-02-07 Mike Kestner <mkestner@novell.com>
26106 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
26107 for 64 bit platforms to work around a metacity bug.
26109 2006-02-07 Jackson Harper <jackson@ximian.com>
26111 * TrackBar.cs: Process the input keys we need, and hookup to
26112 KeyDown instead of using WndProc, so we get key messages.
26114 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26116 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
26118 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
26119 we need to translate the XdndVersion atoms array before sending it
26121 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26124 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26125 number of bits for the property, not the number of bytes. The
26126 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26127 but would not crash since it specified 8 bits instead of 4 bits)
26128 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26129 defined as XID -> long in the C headers)
26130 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
26131 references since those are now IntPtr to begin with
26132 - Switched all Atom.XXX 'int' casts to IntPtr casts
26133 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26134 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26135 - Added XChangeActivePointerGrab DllImport (for X11DnD)
26137 - Changed 'int' type for Atoms in XEvent structures to IntPtr
26138 - Changed atom in HoverStruct to be IntPtr
26140 - Removed local DllImports, switched code to use those from XplatUIX11
26141 - Removed/fixed casts related to the switch of Atom to be a IntPtr
26143 2006-02-06 Mike Kestner <mkestner@novell.com>
26145 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
26146 method signatures in the import region. There may still be some
26147 lingering struct marshaling issues, as I didn't drill down into those.
26150 2006-02-06 Jackson Harper <jackson@ximian.com>
26152 * ComboBox.cs: Dont manually set the top_item, this is computed
26153 when the scrollbar position is set.
26155 2006-02-06 Mike Kestner <mkestner@novell.com>
26157 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26158 startup crashes on amd64. There's other fixes needed. All pinvoke
26159 usage of Atom needs to be mapped to IntPtr for example. And there are
26160 likely other int/long issues to be addressed.
26162 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
26164 * FileDialog.cs: One more...
26166 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26168 * FileDialog.cs: Next try
26170 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26172 * FileDialog.cs: First part of fix for #77464
26174 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26176 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26177 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26178 AcceptButton border drawing.
26180 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26182 * Form.cs: Moved positioning of form after auto scaling is applied,
26183 otherwise it would possibly use wrong form size.
26185 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26187 * Control.cs (RecreateHandle): No need to re-create any child
26188 controls, the child windows will get destroyed automatically by
26189 the windowing system or driver, and re-created when the handle
26190 is being accessed the first time. Fixes #77456
26191 * Form.cs: No longer setting the form to closing if the handle is
26192 being recreated. This seems like the right thing to do, don't
26193 have a bug or testcase for this, though.
26195 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26197 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
26198 controls to avoid unwanted side effects
26200 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26203 - ScaleCore needs to scale the bounds, not the ClientSize of the
26204 control. Fixes #77416.
26205 - DefaultSize is 0,0 for control
26207 - DefaultSize is 100, 20
26208 - SetBoundsCore: Now enforcing the height, no matter if the provided
26209 height is more or less than the preferred one, as long as AutoSize
26211 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
26213 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26216 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
26217 call unless both performLayout is true *and* we have a pending
26219 - ResumeLayout: MS does not completely nest Suspend and Resume,
26220 they bottom out at 0, fixed our code to match that.
26221 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
26222 SetBoundsCore, we were updating even when we shouldn't. This fixes
26223 swf-anchors mis-anchoring when resizing the app fast and lots.
26224 - UpdateDistances: Now only setting the left and top distance if
26225 we have a parent and are not suspended, this is based on
26226 a suggestion by Don Edvaldson in bug #77355.
26227 - OnVisibleChanged: Fixed logic when to create the control. We may
26228 not create the control if we have no parent or if it's not visible;
26229 switched to using Visible property instead of is_visible field
26230 since the property also considers parent states. This fixes a bug
26231 when starting Paint.Net
26233 2006-02-02 Jackson Harper <jackson@ximian.com>
26235 * Form.cs: If the forms handle hasn't been created yet don't call
26236 into xplatui to make it top most, just set the topmost flag on the
26237 form in CreateParams
26238 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
26240 2006-02-01 Jackson Harper <jackson@ximian.com>
26242 * ScrollableControl.cs: Refactored the Recalculate method a
26243 little, this wasn't handling all the variants of bottom and right
26244 bars needed to be added and added/removed based on their
26245 counterparts being added/removed (which changes the drawable
26246 size). Also we special case client widths and heights of 0 and
26247 don't add the scrollbar for those.
26249 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
26252 - Added method to get AbsoluteGeometry(); currently unused, but might
26253 be used in the future, if we try again to figure out toplevel
26254 coordinates with some more crappy window managers
26255 - Added FrameExtents() method to retrieve the WM set decoration size
26256 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
26257 to deal with at least KDE, FVWM and metacity (Fixes #77092)
26259 - Added whacky_wm tracking var for metacity
26260 - Added logic to have default menu height if the actual menu height
26261 has not yet been calculated (part of fix for #77426)
26262 * Form.cs: Keep track whether client size has been set and re-set
26263 it if a menu is added/removed afterwards (Fixes #77426)
26265 2006-01-31 Jackson Harper <jackson@ximian.com>
26267 * Control.cs: When a new Site is set on the component attempt to
26268 pull the AmbientProperties from it.
26270 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
26272 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
26273 in the background of the owning form. Fixes #77332
26275 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
26277 * MimeIcon.cs: Fix for #77409
26279 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
26281 * XplatUIX11GTK.cs: Initial import
26283 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
26285 * FixedSizeTextBox: fixes class signature
26287 2006-01-30 Jackson Harper <jackson@ximian.com>
26289 * FixedSizeTextBox.cs: New internal class that represents a
26290 textBox that will not be scaled.
26293 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
26296 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26298 * XplatUIX11.cs: Retrieve default screen number instead of
26299 assuming 0. Attempted fix for #77318
26301 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26304 - GetWindowPos: When a window is parented by FosterParent, use
26305 the desktop instead of FosterParent as the base to get coordinates
26306 - CreateWindow: Don't make FosterParent the parent window for Popups
26307 if we don't want a taskbar entry, Popups automatically don't get one
26308 * Hwnd.cs: Need to call remove to actually remove the key from the
26311 2006-01-30 Mike Kestner <mkestner@novell.com>
26313 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26315 2006-01-30 Jackson Harper <jackson@ximian.com>
26318 * TreeNode.cs: Raise events no matter how the treenode is
26319 checked. Patch by Don Edvalson.
26321 2006-01-30 Jackson Harper <jackson@ximian.com>
26323 * TreeNode.cs: Signature fix.
26325 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
26327 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26329 2006-01-20 Mike Kestner <mkestner@novell.com>
26331 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26332 event forwarding when menus are active.
26333 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
26334 Most of the patch is pdb's with a little rework.
26336 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26338 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
26339 Removed GetMenuDC and ReleaseMenuDC methods; replaced
26340 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26341 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26342 * InternalWindowManager.cs: Added use of PaintEventStart/End to
26343 handling of WM_NCPAINT message, now passing the PaintEventArgs to
26344 the PaintWindowDecorations method
26345 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26346 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26347 * MenuAPI.cs: Made tracker window invisible
26349 - Removed GetMenuDC and ReleaseMenuDC methods
26350 - Implemented the client=false path for PaintEventStart and
26353 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26355 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26356 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26359 - MaximizeBox, MinimizeBox: Recreate the handle when setting
26361 - CreateParams: Reworked the styles to match MS look'n'feel,
26362 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26363 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26365 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26367 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
26368 window is not mapped, since otherwise every form that's being
26369 created is considered minimized, which is wrong.
26370 * Form.cs: Catching the exception and returning our internal value
26373 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26375 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26376 SetWindowMinMax() to have means to tell the driver about the minimum,
26377 maximum and maximized state window sizes. (Part of the fix for #76485)
26379 - Implemented tracking of minimum and maximum window size, now calling
26380 new SetWindowMinMax() driver method to tell the driver (Part of the
26382 - Finished handling of WM_GETMINMAXINFO method, now setting all values
26383 (Completes fix for #76485)
26384 - Calling new SetWindowMinMax driver method when the handle for a
26385 form is created, to make sure the driver knows about it even if
26386 the values have been set before the window was created
26387 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26388 to avoid messing up our anchoring calculations (partial fix
26390 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26392 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26393 - Improved GetWindowState() to detect 'Minimized' state on Metacity
26394 (and presumably other freedesktop.org compliant WMs). Left the
26395 assumption unmapped=minimized, needed for SetVisible to work.
26396 - Now setting the window state when creating windows
26397 - Fixed SetVisible to consider/set the window state when mapping
26398 a Form. We cannot set the state before it's mapped, and we cannot
26399 use Form.WindowState once it's mapped (since it would ask the
26400 driver and get 'normal'. Therefore, we grab the state before
26401 mapping, map, and then set state.
26402 - Implmemented SetWindowMinMax method; Metacity does not seem to
26403 honor the ZoomHints, though.
26405 - Removed MINMAXINFO (moved to XplatUIStructs)
26406 - Added SetWindowMinMax stub (on Win32 the only way to set that
26407 information is in response to the WM_GETMINMAXINFO message, which
26408 is handled in Form.cs)
26409 - Added logic to SetVisible to set the proper window state when a
26410 form is made visible (fixes #75720)
26412 2006-01-26 Jackson Harper <jackson@ximian.com>
26414 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26415 same way we handle them with Invoke.
26417 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
26420 - Added tracking of window state so CreateParams can return
26421 the appropriate style
26422 - Moved setting of WS_CAPTION style in CreateParams to allow
26423 styles without caption
26424 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
26425 control if the TextBox property is accessed. Fixes #77345
26427 - get_Created: now uses is_disposed and is_created to determine
26428 return value (suggested by Jackson)
26429 - CreateHandle: No longer exits if the handle is being recreated
26430 - RecreateHandle: If the handle is not yet created call the
26431 appropriate method to create either control or handle. If the
26432 control is already created CreateHandle will simply exit instead
26433 of just creating the handle
26434 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26435 now SendMessage WM_DESTROY directly to the control when DestroyWindow
26438 - When DestroyWindow is called, instead of waiting for the
26439 DestroyNotification from X11, we directly post it to the WndProc
26440 and immediately dispose the hwnd object.
26441 Same applies to DestroyChildWindows, and this obsoletes the
26442 expose_pending tracking. Contrary to Win32 behaviour we destroy our
26443 child windows before our own, to avoid X11 errors.
26444 - Removed the direct sending of WM_PAINT on UpdateWindow
26446 - Reworked DoEvents and GetMessage to allow access to internal queue
26447 even when trying non-blocking access to the queue. Fixes #77335.
26448 Based on a patch suggestion by Don Edvalson. The new private
26449 GetMessage can now also be used as a backend for a PeekMessage
26451 * XplatUI.cs: Improved debug output for CreateWindow
26453 2006-01-25 Jackson Harper <jackson@ximian.com>
26455 * Help.cs: Allow param to be null. Patch by Don Edvalson.
26457 2006-01-24 Jackson Harper <jackson@ximian.com>
26459 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26460 when we have a MaxDropItems lower then the selected index.
26462 2006-01-24 Jackson Harper <jackson@ximian.com>
26464 * Control.cs: Don't allow selection of non visible controls, allow
26465 selection of controls without parents.
26467 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26469 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26470 * DataGridDrawingLogic.cs: Add editing row only when is necessary
26472 2006-01-23 Jackson Harper <jackson@ximian.com>
26474 * UpDownBase.cs: Make the textbox handle all the selection and
26475 tabbing. This fixes tabing to updown controls.
26477 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26479 * TextBoxBase.cs: fixes exception thown the object was null
26481 2006-01-23 Jackson Harper <jackson@ximian.com>
26483 * ButtonBase.cs: Just use the base CreateParams. They set
26484 visibility and enabled correctly.
26487 * MonthCalendar.cs: Lets let the base set as much of the
26488 createparams as possible so we don't have duplicate code all over
26491 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
26493 * ThemeGtk.cs: Added TrackBar and some experimental code to
26494 get double buffering back
26496 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
26498 * DataGrid.cs: Allows row number set internally higher than the last
26499 when creating a new row. Restores the editing functionality.
26501 2006-01-20 Mike Kestner <mkestner@novell.com>
26503 * MimeIcon.cs: delay Image creation until the icons are accessed
26504 instead of creating 190 scaled images on GnomeHandler startup.
26506 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26508 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26509 first call base before processing the event. Fixes #77279
26511 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26513 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26514 that the stride for the GDI bitmap would match the stride of
26517 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
26519 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26521 2006-01-19 Jackson Harper <jackson@ximian.com>
26523 * ComboBox.cs: Hookup the text controls keydown event so we get
26524 those when the text control has the focus.
26526 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26528 * Label.cs: Now using the base events instead of defining new ones;
26529 this allows us to just call the base properties without having to
26530 duplicate all base property logic
26532 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26534 * Label.cs: A label by default is not a tabstop (Fixes one of our
26535 failing nunit tests)
26537 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26539 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26540 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26542 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26544 * Cursor.cs: Reimplemented creating cursor bitmaps without using
26545 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26548 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
26549 constructor creates images that can't be saved. Part of the fix
26551 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26552 - SetWindowState: Switched ShowWindow flags (part of an upcoming
26553 bug fix for handling window state in forms properly)
26555 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26557 * ThemeGtk.cs: Simplify ScrollBar drawing
26559 2006-01-18 Jackson Harper <jackson@ximian.com>
26561 * Splitter.cs: Set the default dock style for the splitter control
26562 in the constructor.
26564 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26566 * ThemeGtk.cs: Corrected StateType and ShadowType for
26569 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26571 * Control.cs: Make use of Theme.DoubleBufferingSupported
26573 - Added drawing for flat style buttons
26574 - Added ScrollBar drawing
26576 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26578 * ThemeClearlooks.cs: Removed some unneeded code.
26579 * ThemeGtk.cs: First part of ThemeGtk enhancements.
26581 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26583 * LinkLabel.cs: We need to update the hover drawing when
26584 leaving the control as well.
26586 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
26588 * DataGrid.cs: Clicking on non empty areas in the columns
26589 area was giving an exception
26591 2006-01-17 Jackson Harper <jackson@ximian.com>
26593 * ThemeWin32Classic.cs:
26594 * ListView.cs: Do not draw/clip the headers when the header style
26597 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26599 * DataGrid.cs: Fixes 77260
26601 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26603 * DataGrid.cs: Clicking on a column on a empty grid was giving
26606 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26608 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26609 or any keypress will crash the grid.
26611 2006-01-17 Mike Kestner <mkestner@novell.com>
26613 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26614 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
26615 invisible/previously-visible items.
26618 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
26620 * ThemeClearlooks.cs:
26621 - Added CL_Draw_Button method; now other theme controls that are
26622 not derived from button or do not have a button can draw buttons
26624 - Updated ComboBox drawing
26625 - Beautified RadioButton drawing
26626 - Corrected drawing of bottom and left tabs
26627 - Beautified DateTimePicker and MonthCalendar
26628 - Added CPDrawButton and CPDrawRadioButton
26630 2006-01-16 Jackson Harper <jackson@ximian.com>
26632 * ComboBox.cs: Set the initial value of the scrollbar to the
26633 current index. Reduce the numbers of refreshs and IndexOfs called.
26635 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
26637 * FileDialog.cs: When the file listview is focused hitting the
26638 backspace key moves the fileview to the parent directory
26640 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26643 - Added RecreateHandle call when changing taskbar visibility to
26644 trigger reparenting in Win32 driver (Fixes #75719)
26645 - If a window has minimize or maximize buttons, it cannot have
26648 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26649 the toplevel form with FosterParent (A toolwindow not on the
26650 taskbar) (Fixes #75719)
26651 - Made FosterParent a toolwindow
26653 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26655 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26657 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26659 * ToolTip.cs: If SetToolTip is called from a control and the mouse
26660 is currently over that control, make sure that tooltip_window.Text
26663 2006-01-13 Mike Kestner <mkestner@novell.com>
26665 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26667 2006-01-13 Jackson Harper <jackson@ximian.com>
26669 * TreeView.cs: On MS GetNodeAt never actually factors in the X
26670 value passed. Also redraw the selected node when we recieve
26671 focus, so tabbing between trees works correctly.
26673 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26675 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26676 ~/.gconf/%gconf-tree.xml, so use
26677 .gconf/desktop/gnome/interface/%gconf.xml
26679 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26681 * TextControl.cs: Draw text in gray if control is disabled
26683 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26685 * TreeView.cs: Draw the focus rectangle outside the highlight, to
26686 make sure it's always visible. Fixes #76680.
26688 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26690 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26692 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
26694 * PageSetupDialog.cs: Added.
26695 * PrintDialog.cs: Attributes.
26696 * PrintPreviewControl.cs: Updates.
26697 * PrintPreviewDialog.cs: Updates.
26699 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26701 * Control.cs: Undid my selection check fix, since it's not needed
26703 - Now considering the presence of hscroll/vscroll when sizing
26704 vscroll/hscroll respectively. Fixed bug #77077
26705 - Added Left/Up/Down/Right to IsInputKey list to prevent
26706 ContainerControl from stealing them. This fixes what I broke
26707 with my last checkin.
26709 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26711 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26712 I finally understand how the property can be set without a setter :-)
26714 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26717 - Switched RunLoop to use static Message.Create to create a
26719 - Added PreProcessMessage call in runloop for keyboard events; this
26720 is part of the fix for #77219, I overlooked this originally in the
26721 MSDN doc for PreProcessMessage
26723 - Removed call to PreProcessMessage from handling of keyboard
26724 messages; it's supposed to be done in the message pump
26725 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26726 per MSDN documentation.
26727 - IsInputChar: All chars are input chars by default; removed the
26728 parent calling chain, MS does not document that
26729 - PreProcessMessage: If IsInputChar is true, we want to return false
26730 to allow dispatching of the message
26731 - When selecting the next control, now also check that we're not
26732 selecting ourselves again and therefore return a false positive.
26734 - Tried to match return values for IsInputKey and ProcessDialogKey
26735 to what MS returns; moved processing of our special keys outside
26736 ProcessDialogKey since MS does not seem to return true on those.
26737 - Moved code that previously was in ProcessDialogKey into new private
26738 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26739 - Reworked handling of WM_CHAR to not have to duplicate code from
26740 Control.cs anymore, instead we simply call down to base.
26742 2006-01-12 Jackson Harper <jackson@ximian.com>
26744 * ComboBox.cs: We always need to refresh the text area when
26745 EndUpdate is called. Fixes the combobox in the file dialog.
26746 * Control.cs: Don't create the creator_thread until the controls
26747 handle is created. Also in InvokeRequired we check if the
26748 creator_thread is null. This gives the effect of InvokeRequired
26749 returning true if the controls handle is not created yet, and
26752 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26755 - Added StartLoop() driver method. This is used to allow drivers to
26756 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26757 loop for a particular thread
26758 - Added EndLoop() driver method. This is called once the message
26759 pump for the thread is shut down
26760 - Added SupportsTransparency method to allow the driver to indicate
26761 opacity support for windows
26763 - Removed TODO attribute, completed AllowTransparency property
26764 - Added documented logic to Opacity
26765 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26766 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26767 versions of CompatibleTextRendering
26768 * X11Structs.cs: Added opacity atom to our atom enumeration
26769 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26770 of a form might be set before it's reparented by the WM, and we need
26771 the opacity value without calling up to Form)
26772 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
26773 SupportsTransparency() driver methods
26774 * Application.cs: Now calling StartLoop and EndLoop driver methods
26776 - Added opacity atom registration
26777 - Added StartLoop()/EndLoop() methods. They're empty right now but
26778 will need to get implemented when we switch to a per-thread queue
26779 - Implemented SupportsTransparency() method
26780 - Implemented SetWindowTransparency() method
26781 - Added support for setting the opacity value when a window is
26782 reparented (since the opacity needs to be set on the WM frame)
26783 * XplatUIOSX.cs, XplatUIWin32.cs:
26784 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26786 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26788 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26790 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26792 * FileDialog.cs: Added ToolTip for MWFFileView
26793 * MimeIcon.cs: Rewrote GnomeHandler.
26794 - Get currently used gnome icon theme from
26795 ($HOME)/.gconf/%gconf-tree.xml
26796 - Make use of inherited icon themes
26797 - Support SVG icon themes like Tango via librsvg
26799 2006-01-12 Miguel de Icaza <miguel@novell.com>
26801 Revert's Jackson's revert which broke 2.0 builds. Fix both
26804 * Application.cs: Move the use_compatible_text_rendering outside
26805 the NET_2_0 define. If we ever need to use the
26806 use_compatible_text_rendering on the individual controls they will
26807 access the variable from the common shared code paths.
26809 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26812 - Added more granular debug options
26813 - Added method to print both window text and id
26814 - Switched debug output to use new Window() debug method
26815 - Added IsEnabled() driver method
26816 - Added EnableWindow() driver method
26818 - Removed end_modal; no longer needed, new loop handles termination
26819 via 'closing' variable
26820 - If form is modal, setting DialogResult will now initiate loop
26821 termination via 'closing' variable
26822 - Added support for is_enabled/WS_DISABLED to CreateParams
26823 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26825 - Removed code that's now in RunLoop from ShowDialog()
26826 - Added various documented sanity checks to ShowDialog()
26827 - Added handling of WM_DESTROY message; we set 'closing' on getting
26828 the message to indicate the message pump to terminate
26829 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26830 send by the Application.ExitThread method. (We send the message
26831 to destroy the window after all other events have been
26832 processed through the queue, instead of destroying the handle
26834 - Moved code from Close() method to WM_CLOSE handler; added logic
26835 to only send close-related events if the form is not displayed
26837 * Splitter.cs (..ctor): Fixed typo in resource name
26839 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
26841 - set_Cursor: Now only setting calling into XplatUI if the handle for
26842 the control is already created; this avoids implict handle creation
26843 or crashes if it's not created
26844 - set_Enabled: Now setting the enabled state via the new driver method
26845 instead of just tracking it
26846 - CreateParams: Added logic to set WS_DISABLED based on enabled state
26847 - CreateControl: Reordered event firing and method calls to more
26848 closely fire events in the order MS does. Now setting the
26849 enabled state in the driver when creating the control.
26850 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
26852 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
26853 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
26854 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
26856 - Added tracking of window enabled state (get_Enabled/set_Enabled)
26857 - Added EnabledHwnd property to easily allow a driver to find the
26858 handle of the first enabled window in the parent chain (this is
26859 used by drivers to pass up input events of disabled windows)
26860 * XplatUIDriver.cs: Added IsEnabled() method
26862 - Removed crude and obsolete exiting tracking variable
26863 - Removed internal ModalRun(); replaced by RunLoop()
26864 - Implemented private CloseForms() method to allow closing all
26865 windows owned by a particular (or all) threads
26866 - Exit() now properly closes all windows without forcing the message
26868 - Removed obsolete InternalExit() method
26869 - Changed Run() methods to use new RunLoop() message pump
26870 - Implemented new RunLoop() method for both modal and non-modal forms
26872 - get_CreateParams: Added setting of WS_DISABLED
26873 - Simplified ShowDialog(); now all the work is done in RunLoop(),
26874 invoked via Form.ShowDialog()
26875 * NativeWindow.cs: We don't remove the window from the collection when
26876 the handle is destroyed; there might still be messages for it in the
26877 queue (mainly the resulting WM_DESTROY); instead it will be removed
26878 when Control calls InvalidateHandle in the WM_DESTROY handler
26880 - CreateWindow: Added logic to handle the WS_DISABLED window style
26881 - EnableWindow: Implemented based on Hwnd.Enabled
26882 - GetMessage: Reset PostQuitState so the method can be called again
26883 - Implemented support for disabled windows (passing messages to the
26884 first enabled parent) in handling all input messages
26885 - Added optimizations for handling Expose events
26886 - Implemeted new driver method IsEnabled()
26887 - Now always resetting paint pending tracking vars when we start paint
26888 - Re-implemented UpdateWindow via just sending a WM_PAINT message
26889 * XplatUIOSX.cs: Added IsEnabled method stub
26890 * XplatUIWin32.cs: Implemented new IsEnabled() method
26892 2006-01-11 Jackson Harper <jackson@ximian.com>
26894 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26895 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
26896 variables a little.
26897 * ColorDialog.cs: Clear out the old form before adding the new
26900 2006-01-11 Jackson Harper <jackson@ximian.com>
26902 * X11Dnd.cs: Make sure to add all the text formats when adding
26903 strings to the data object.
26904 * TreeNodeCollection.cs: When adding to a sorted tree we need to
26905 do some redrawing too. Also change the UpdateNode to an
26906 UpdateBelow so the newly added node gets painted.
26908 2006-01-11 Miguel de Icaza <miguel@novell.com>
26910 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26911 LinkLabel.cs, PropertyGrid.cs: Implement the
26912 UseCompatibleTextRendering property for 2.x
26914 * Application.cs (SetCompatibleTextRenderingDefault): Add.
26916 2006-01-11 Jackson Harper <jackson@ximian.com>
26918 * TreeView.cs: Use the property for setting the selected node so
26919 the correct events get raised.
26920 * TreeNode.cs: Update the tree when the fore/back colours of a
26923 2006-01-10 Jackson Harper <jackson@ximian.com>
26925 * TreeView.cs: Allow setting SelectedNode to null.
26927 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26929 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26931 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26933 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26935 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26937 * PrintDialog.cs: Added attributes and set default property values.
26939 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26941 * PrintControllerWithStatusDialog.cs:
26942 Added PrintControllerWithStatusDialog.
26944 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26946 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26947 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26949 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26951 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26953 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26955 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26956 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26958 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26960 * MimeIcon.cs: Added internal class SVGUtil.
26962 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26964 * FileDialog.cs: Don't crash if there are two files with the
26965 same name but different locations.
26967 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
26969 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26970 dates across multiple month grids. Used to not highlight entire
26971 month, but does now.
26973 2006-01-06 Jackson Harper <jackson@ximian.com>
26975 * MonthCalendar.cs: Removed DoEvents call to prevent a running
26976 message loop. Change timer intervals to numbers that seem more
26979 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
26981 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26982 object for location info since screen object is now implemented.
26984 2006-01-05 Jackson Harper <jackson@ximian.com>
26986 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26987 * AsyncMethodResult.cs: We no longer use a WeakReference for the
26988 AsyncMethodResult, this is because we ALWAYS want the
26989 ManualResetEvent to get set.
26990 * Control.cs: When disposing use an async invoke to call shutdown
26991 code, so that thigns don't block on the finalizer thread. Also
26992 check if we even have a message loop before trying to send
26993 messages, if we don't then don't bother sending messages.
26994 - No more weak references for async methods
26995 * XplatUIDriver.cs: No more weak references for async methods.
26997 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26999 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
27000 returns two FontFamily with the same name
27002 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
27004 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
27005 drawing disabled text. Instead using the ColorGrayText color
27007 2006-01-04 Jackson Harper <jackson@ximian.com>
27009 * TreeNode.cs: redraw the node when its image index is changed.
27011 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
27013 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
27014 time I checked there are no others like it.
27016 2006-01-04 Jackson Harper <jackson@ximian.com>
27018 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
27019 this gives the behavoir I was looking for.
27020 * Control.cs: Special case Invoking EventHandlers, this matches MS
27021 and fixes part of bug #76326.
27023 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27025 * ThemeClearlooks.cs, FileDialog.cs:
27026 - Reflect the latest Theme class changes
27027 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
27030 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27032 * Theme.cs: Cache UI resource images and resize them if needed
27034 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27036 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
27037 is called. This fixes the crash in Nexxia when setting the font
27038 attributes in the chat. [However, RTF needs a look-over to make sure
27039 that all SelectionXXX methods handle the special case that selection
27040 is empty and therefore the change must be applied to all text starting
27041 at the cursor/selection start]
27043 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27045 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27046 XplatUIOSX.cs: Added SendMessage and PostMessage methods
27047 * X11Keyboard.cs: Switched to new way of calling PostMessage
27049 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27051 * Theme.cs: Added theme interface for images to allow the theme to
27052 control what images are used for things like FileDialog, MessageBox
27054 * MessageBox.cs: Now uses the new Theme icon/image interfaces
27056 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
27059 - Removed some dead code
27060 - Opening a recently used file does work now
27061 - Small UI enhancements
27064 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
27066 * FileDialog.cs: Forgot too add __MonoCS__
27068 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
27070 * FileDialog.cs: We are able to read recently used files now let's
27071 go on and write them.
27073 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
27075 * FileDialog.cs: Breathe some life into "last open"/"recently used"
27077 * MimeIcon.cs: Do a check for the top level media type also
27079 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
27081 * ThemeClearlooks.cs:
27082 - Added CPDrawStringDisabled
27083 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
27084 some chars if the text doesn't fit into text_rect
27085 - DrawListViewItem: If View = View.LargeIcon center the image;
27086 rewrote the drawing of ListViewItem.Text if View =
27089 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
27091 * MimeIcon.cs: Use default KDE icon theme if there is no
27092 "48x48" directory for the current icon theme, fixes #77114
27093 * Mime.cs: Disable not working and actually not used code.
27094 * ThemeWin32Classic.cs:
27095 - Replace "new SolidBrush" in GetControlBackBrush and
27096 GetControlForeBrush with ResPool.GetSolidBrush
27097 - Changed DrawListViewItem from private to protected virtual
27099 - Added form.MaximizeBox = true
27100 - Don't throw an exception if there is a broken symbolic link
27102 2005-12-23 Jackson Harper <jackson@ximian.com>
27104 * TabControl.cs: Give the panels focus, keyboard navigation is
27105 fixed so this works correctly now.
27106 - We need these key events also.
27107 * ToolBar.cs: Remove some of the poor mans double buffering.
27109 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
27111 * ComboBox.cs: The internal TextBox now returns the focus.
27113 2005-12-23 Jackson Harper <jackson@ximian.com>
27115 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
27117 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27119 * Control.cs: Removed debug code
27120 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
27123 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27125 * Control.cs: When creating the control, update the Z-order after
27126 all it's children are created, too. (Fixes nexxia not showing
27129 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27131 * Control.cs: Do not update the anchoring distances if layout is
27132 suspended, instead do it once layout is resumed
27134 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27137 - After many hours of debugging, for both Jackson and
27138 myself, it turns out that it helps to set the parent of a control
27139 if you want to actually see it onscreen. In the spirit of that
27140 discovery, we're now setting the parent of the control and
27141 it's children when the control's handle is created. This fix
27142 will make Lutz Roeder's Reflector run happily.
27143 - now just creating the handle instead of the whole control when
27144 getting a graphics context for the control.
27146 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27148 * ScrollableControl.cs: When calculating the canvas, don't consider
27149 the scrollbar widths. Instead, predict if horizontal scrollbar
27150 will affect canvas when deciding on vertical display and vice versa.
27152 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27154 * RichTextBox.cs: Set default RTF font for documents that don't
27155 have a font table (Fixes #77076)
27157 2005-12-22 Jackson Harper <jackson@ximian.com>
27159 * TextBoxBase.cs: It's difficult to do, but you can have an empty
27160 clipboard. This prevents a NullRef in that case.
27161 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27162 clipboard. PRIMARY is for the currently selected text only. (We
27163 should implement PRIMARY at some point.
27165 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27167 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27168 a Unicode function with a structure that was defined in Ansi way.
27171 2005-12-21 Jackson Harper <jackson@ximian.com>
27173 * StatusBar.cs: Statusbar handles its fore/back colours on it's
27174 on. Because thats how it rolls. (and this avoids it using ambient
27176 * ThemeWin32Classic.cs: Use the proper back color for filling.
27177 * Menu.cs: Use the system menu bar color for drawing menu
27178 bars. Using the window back color will bring ambient colours into
27181 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
27183 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27184 Bitmaps were created and not disposed.
27186 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27188 * Control.cs (CreateControl): Don't do anything if the control is
27189 already created, otherwise we'd fire the OnCreated event more than
27192 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27194 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
27195 will always match. Instead return -1. Fixes #76464.
27197 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27199 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
27200 neither the beginning nor the end of the line (Fixes bug #76479)
27202 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27205 - ControlNativeWindow.ControlFromHandle(): Now handling situation
27206 where handle is invalid
27207 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
27208 instead of slower linear search
27209 * NativeWindow.cs: Don't remove the window from the hashtable until
27210 after the driver has destroyed it (since the driver might use
27211 Control.FromHandle to lookup the control object
27212 * Hwnd.cs: Added DestroyPending property to track if a window is
27213 already destroyed as far as the driver is concerned and only hasn't
27214 yet notified the control
27216 - Activate(): Check if the window is still valid before using the
27218 - Implemented DestroyChildWindow() method to mark child windows as
27219 destroyed when a window is destroyed. This prevents situations
27220 where we might call an X method based on queued events for a
27221 window that already has been destroyed but we haven't yet pulled
27222 the destroy method from the queue.
27223 - Added a call to the new DestroyChildWindow() method to the drivers
27224 DestroyWindow code. Also now marking the destroyed window itself
27227 2005-12-20 Jackson Harper <jackson@ximian.com>
27230 * StatusBarPanel.cs: Don't calculate panel sizes on draw
27231 anymore. Just do them when needed, also track the rects of panels
27232 so that we can optimize refreshing more in the future.
27234 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
27236 * ColorDialog.cs: Fixed focus drawing in small color controls
27238 2005-12-19 Jackson Harper <jackson@ximian.com>
27240 * InternalWindowManager.cs:
27241 * MdiWindowManager.cs: Cleanup some coordinate system changes so
27242 moving windows works properly.
27244 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
27247 - Removed call to InitLayout() from SetBoundsCore(); doc says
27248 it's only called when a control is added to a container
27249 - Split InitLayout logic, moved to separate UpdateDistances() method
27250 since we need to perform those calculations more often than just
27251 when adding the control to a container. (Needed to fix #77022)
27252 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
27253 - Reduced the OnBindingContextChanged events count, don't send them
27254 unless the control is created, we still aren't totally matching
27255 MS, but I can't quite figure out some of their rules
27257 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27259 * ThemeClearlooks.cs: Corrected distance between ProgressBar
27262 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27264 * ThemeClearlooks.cs:
27265 - Updated ProgressBar drawing
27266 - Corrected drawing of ScrollBars and scroll buttons
27267 - Some temporary fixes for minor pixel artefacts
27269 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
27272 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
27273 cause events to be sent in the same order as MS does.
27274 - Added ChangeParent() method to trigger various OnXXXChanged events
27275 that need to be fired when a parent changes (This is a reworking
27276 of the patch from r54254, with the X11 errors fixed)
27277 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
27278 since on MS we get OnLayoutChanged events when calling Clear()
27279 - Changed Enabled property to consider parent state as well, if a
27280 parent is not enabled, the control will not be either
27281 - Changed Parent property to simply call Controls.Add() since that
27282 now does all the work required, this way we avoid code duplication
27283 - Threw in a few OnBindingsContextChanged calls to try and match
27284 when MS sends them. We seem to send a few too many, though.
27285 - Added call to CreateControl when adding the control to a parent.
27286 We were never calling CreateControl. Still needs some work, in
27287 some places we treat HandleCreated and ControlCreated as equal,
27289 - Removed obsolete commented out code from UpdateZOrder()
27291 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27293 * ThemeClearlooks.cs: Updated TrackBar drawing.
27295 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27297 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27299 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27301 * FileDialog.cs: Add the Help button and the open readonly
27302 checkbox only if needed
27304 2005-12-16 Jackson Harper <jackson@ximian.com>
27306 * Control.cs: Make sure we have an active menu before trying to
27307 process commands on it. Prevents menu-less forms from crashing
27308 when Alt is pressed.
27309 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27311 * RichTextBox.cs: Expand statement to help out gmcs and fix the
27314 2005-12-16 Jackson Harper <jackson@ximian.com>
27316 * InternalWindowManager.cs: Don't translate tool windows screen
27317 coordinates. This fixes windows 'bouncing' around when being moved.
27319 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27322 - MaxLength now treats 2^31-1 equal to unlimited length (this is
27323 not quite MS compatible, MS uses that number only for single line
27324 and 2^32-1 for multi-line, but I figure it won't hurt keeping
27326 - Now enforcing the MaxLength limit when entering characters
27327 - Added argument to internal Paste() method to track if it's called
27328 from programatically or via keyboard, since keyboard driven pastes
27329 need to enforce max-length
27330 - Added logic to Paste to only paste as many chars as MaxLength
27332 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27334 - Added Length property to return number of characters in document
27335 - Added private CharCount property which only tracks actual chars
27336 in the document (no linefeeds) and fires event when CharCount
27338 - Added tracking of character count to all methods that alter it
27339 - Added LengthChanged event to allow applications to subscribe
27340 to any changes to the document
27342 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27345 - Removed local password_char field (moved to TextBoxBase)
27346 - Now setting the document's password var when password is
27349 - Added password_char field (needed here so MultiLine can
27351 - Added logic to MultiLine property setter to set the document's
27352 variable when password display is allowed
27353 - Removed debug code and made some debug code conditional
27355 - Added RecalculatePasswordLine() method to handle special password
27357 - Added PasswordChar property, also added related tracking vars
27358 - Draw() method now uses local text var for grabbing text to draw,
27359 this var is set to line.text unless we're doing password display,
27360 then it is set to the pre-generated all-password-chars line
27361 - Added calling RecalculatePasswordLine() method for password lines
27363 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27366 - Added Reparented property to allow tracking of Window Manager
27367 reparenting actions (which affect X/Y calculations of toplevel
27369 - Made ToString() print window handles in hex
27371 - AddConfigureNotify(): Now uses reparented state off Hwnd to
27372 determine if X/Y needs offsetting
27373 - AddConfigureNotify(): Fixed offset calculations
27374 - Now adds ReparentNotify messages into the queue
27375 - Now processes ReparentNotify messages and causes a
27376 WM_WINDOWPOSCHANGED message to be sent upstream if a window
27377 is reparented (as most likely it's X/Y coordinates are changed
27380 2005-12-14 Jackson Harper <jackson@ximian.com>
27382 * XplatUIX11.cs: Tool windows still need to respek focus.
27384 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27386 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27387 have a working release
27389 2005-12-13 Jackson Harper <jackson@ximian.com>
27391 * Form.cs: Update styles after setting the border style regardless
27392 of whether or not the window is using a window manager.
27394 2005-12-13 Jackson Harper <jackson@ximian.com>
27396 * Form.cs: We now hook into an internal window manager instead of just an
27397 MDI subsystem, this is so we can have properly behaving tool windows.
27398 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27399 * InternalWindowManager.cs: New internal class that acts as a
27400 window manager for tool windows and as a base for mdi windows.
27401 * MdiWindowManager.cs: New class that acts as a window manager for
27404 2005-12-12 Jackson Harper <jackson@ximian.com>
27406 * Control.cs: Updates so we match behavoir for for implicit
27407 controls. Fixes explosions in MDI.
27409 2005-12-12 Jackson Harper <jackson@ximian.com>
27411 * Control.cs: Implement Invalidate (Region).
27413 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
27416 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
27417 the same events as MS does. MS fires events for each property
27418 except, for unknown reasons, Cursor, when the control is reparented.
27419 I can't seem to totally match add/remove since MS also fires some
27420 VisibleChanged events, which makes no sense. Consolidated the
27421 parenting code into a separate method so it can be called from
27422 both Add and Remove. set_Parent no longer needs any special logic
27423 as it calls the parent's add method which implicitly fires
27425 - Removed some obsolete code and debug output
27426 - Enabled state is inherited from parents, if this is enabled
27428 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27430 * Form.cs: Removed commented out code
27432 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27435 - Added internal version of Invoke, with additional argument
27436 indicating if we're calling it from a Dispose() handler. That
27437 way we can avoid BeginInvoke throwing an exception if we're
27438 calling for an already destroyed window.
27439 - Added a dispose argument to BeginInvokeInternal, and made the
27440 check if a valid window handle chain exists conditional on
27441 it not being a dispose call
27442 - Removed code in DestroyHandle to destroy our children. Since we
27443 now handle the WM_DESTROY message we will catch all our children
27445 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27447 - Added a field to track the application context of the form.
27448 - No need to set closing variable as response to WM_CLOSE, instead
27449 we destroy the window. We also call PostQuitMessage if the form
27450 has an application context (which makes it the main app form,
27451 which, when closed terminates the app)
27453 - Dropped Exit() method, it's naming was confusing
27454 - Added PostQuitMessage() which causes GetMessage to return false
27455 once the message queue is empty
27456 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
27458 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27459 no longer a valid XplatUI method, but left it in since it's used
27460 internally. Added empty PostQuitMessage() method.
27461 * MenuAPI.cs: Replaced call to Exit() with call to
27462 PostQuitMessage, even though this is probably no longer needed.
27463 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27464 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27466 - Replaced call to XplatUI.Exit() with PostQuitMessage()
27467 - Removed old debug code that would call XplatUI for exception
27468 display, enabled standard exception handling (Still not enabled
27469 though, until NativeWindow's ExternalExceptionHandler define
27472 - Added internal method to allow control to update NativeWindow
27473 after a window has been destroyed
27474 - Added handling of already destroyed windows when calling i
27476 - Added removal of handle from list on ReleaseHandle
27478 - Dropped GetMessageResult var and related code
27479 - Added PostQuitState to field to track if PostQuitMessage has been
27481 - Dropped Exit() method
27482 - Added PostQuitMessage() method
27483 - GetMessage now will return false if PostQuitState is set and no
27484 more messages are in the queue.
27485 - Expose handler will no longer generate WM_PAINT messages if we are
27486 in PostQuitState since it's very likely any windows have already
27487 been destroyed, and since Hwnd won't get updated until we have
27488 processed the DestroyNotify we'd be causing X errors.
27490 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27492 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27493 Thanks to Mike for pointing out the err of my ways.
27495 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27497 * Control.cs(PreProcessMessage): Moved menu handling back, but
27498 after all other key handling, to match MS (who handles Menu in
27500 * Menu.cs (WndProc): Removed my brainfart
27502 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27504 * Control.cs(PreProcessMessage): Removed special menu handling
27505 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27507 2005-12-07 Mike Kestner <mkestner@novell.com>
27509 * Control.cs : special case SYSKEYUP so that we can adjust keynav
27510 state according in tracker.
27511 * Menu.cs : promote tracker field to base class and provide a tracker
27512 lookup capability. Add/Remove shortcuts dynamically if the top menu
27513 has a tracker. Unparent items that are removed from the collection.
27514 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27515 * Theme*.cs: add always_show_hotkeys field to support configurability
27516 of mnemonic display. win32 doesn't show mnemonics until Alt is
27519 2005-12-07 Jackson Harper <jackson@ximian.com>
27521 * MdiChildContext.cs: Use Control.ResetCursor.
27522 * Control.cs: ResetCursor needs to set the property so that the
27523 correct XplatUI call gets made.
27525 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27527 * Control.cs: More fixes to make our key events match MS. We
27528 were not setting the modifier state on KeyData, and we were
27529 not generating any events when Alt was pressed with a key
27530 since handling of WM_SYSxxx was missing for the OnKey methods.
27532 2005-12-07 Jackson Harper <jackson@ximian.com>
27534 * MdiChildContext.cs: reenable the sizing code.
27535 - When the mouse leaves a window reset its cursor.
27537 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27539 * ThemeClearlooks.cs: Reflect latest Hwnd changes
27541 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27543 * Hwnd.cs: Now using the theme 3d bordersize to calculate
27544 widths of Fixed3D borders
27546 2005-12-07 Jackson Harper <jackson@ximian.com>
27548 * MdiClient.cs: Fix warnings. Earn Mike's love.
27550 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27552 * ThemeClearlooks.cs:
27553 - Adjusted mouse over button color
27554 - Added first parts of CheckBox drawing
27555 - Added correct color for selected text background
27556 - Fixed ComboBox drawing
27557 - Added CPDrawBorder3D and CPDrawBorder
27559 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27561 * XplatUIX11.cs: Added call to XBell for AudibleAlert
27563 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27565 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27566 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27567 alert users via sound. We could add an enum arg with different
27568 types of alerts in the future
27570 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27572 * Control.cs: Fix behaviour problems pointed out by Mike
27574 2005-12-05 Mike Kestner <mkestner@novell.com>
27576 * StatusBarPanel.cs: add Invalidate method and hook it into all the
27577 prop setters. Calls parent.Refresh for now, but could be maybe be
27578 optimized with an internal method on StatusBar at some point.
27581 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
27583 * RichTextBox.cs: Implemented get_SelectionColor
27585 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
27587 * ThemeClearlooks.cs:
27588 - Removed dead code
27589 - Draw black button border only if button is Form.AcceptButton
27590 - Draw correct button color for pressed RadioButton if the mouse
27591 has entered the button
27592 - Updated ProgressBar drawing!
27593 - Updated CPDrawSizeGrip drawing
27594 - Updated StatusBarPanel drawing
27596 2005-12-05 Mike Kestner <mkestner@novell.com>
27598 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27599 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27601 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
27603 * ThemeClearlooks.cs: Initial check-in, activate with
27604 export MONO_THEME=clearlooks
27605 * ThemeEngine.cs: Added ThemeClearlooks
27607 2005-12-03 Mike Kestner <mkestner@novell.com>
27609 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27612 2005-12-02 Jackson Harper <jackson@ximian.com>
27614 * Form.cs: If the child form has no menu the default main menu is
27615 used as the active menu.
27617 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27619 * ListBox.cs: Check if any items exist before trying to resolve
27620 coordinates into items
27622 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27624 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27625 as the second color for the background hatch
27627 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27629 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27630 * RichTextBox.cs: FormatText position arguments are 1-based, now making
27631 sure that what we pass to FormatText is always 1-based. Fixes #76885
27633 2005-11-29 Miguel de Icaza <miguel@novell.com>
27635 * NumericUpDown.cs (EndInit): When we are done initializing,
27636 reflect any updates on the UI.
27638 2005-12-02 Jackson Harper <jackson@ximian.com>
27640 * ImplicitHScrollBar.cs:
27641 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27642 their container controls.
27643 * TreeView.cs: Use the new implicit scrollbars.
27645 2005-12-02 Jackson Harper <jackson@ximian.com>
27647 * TreeView.cs: Make top_node internal so the TreeNodeCollections
27649 * TreeNodeCollection.cs: If we remove the topnode we need to
27650 update topnode to the next node in line.
27651 - When clearing nodes go through the same process as removing
27652 them, so they get depareneted and checked if they are top node.
27654 2005-12-01 Jackson Harper <jackson@ximian.com>
27656 * TreeView.cs: When imagelists are used the image area is
27657 selectable as well as the text.
27658 - If there are no selected nodes select the first one.
27659 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27660 so don't do it more then we need to.
27662 2005-12-01 Jackson Harper <jackson@ximian.com>
27664 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27665 that arrows can be scaled.
27667 2005-12-01 Jackson Harper <jackson@ximian.com>
27669 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27670 fail. Patch by Dieter Bremes
27672 2005-11-30 Jackson Harper <jackson@ximian.com>
27674 * Form.cs: Property is 2.0 only
27675 * PrintDialog.cs: Signature fix.
27677 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27680 - No longer artificially moves text 2 pixels down (now that we have
27681 borders this is no longer needed)
27682 - Added calcs for left, hanging and right indent
27684 2005-11-23 Mike Kestner <mkestner@novell.com>
27686 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27688 2005-11-30 Jackson Harper <jackson@ximian.com>
27690 * MdiChildContext.cs: Set the cloned menus forms, as these don't
27691 get cloned as part of CloneMenu ().
27692 * Menu.cs: Make sure the parent of the items get set correctly
27693 when they are added. And the owners are notified of the changes.
27694 * Form.cs: Create an ActiveMenu property, so that when MDI is used
27695 we can change the menu being displayed/handled by the form without
27696 changing the menu assosciated with the form.
27697 - Don't let Mdi children draw/handle menus.
27699 2005-11-30 Jackson Harper <jackson@ximian.com>
27701 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27702 a MenuChanged event. Just to make the API a little more
27705 * MenuItem.cs: Use the new OnMenuChanged
27706 * MdiChildContext.cs: Handle menu merging.
27707 * Form.cs: Implement MergedMenu.
27709 2005-11-30 Jackson Harper <jackson@ximian.com>
27711 * Menu.cs: We were misusing Add. Add goes behind the specified
27712 index according to the docs, and does not replace the specified
27713 index. So I added an Insert method.
27715 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27717 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27718 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27720 * RichTextBox.cs: Added calls to base for DnD events
27722 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
27725 - Fixed drag-selection related crash; style fixes
27726 - Implemented undo class
27727 o Implemented method to capture document state for specified
27728 range in document tree
27729 o Implemented method to restore captured document state
27730 o Implemented cursor tracking
27731 o Implemented basic undo stack
27732 - Added undo cursor tracking to methods altering cursor location
27733 - Added undo tracking to selection deletion (still missing
27734 other text-altering hookups)
27736 - Added SelectionLength property
27737 - Implemented CanPaste()
27738 - Implemented Paste()
27739 - Added missing protected methods
27740 - Fixed RTF->Document conversion; now uses font index 0 and color
27741 index 0 as the default font for the parsed text
27742 - Fixed RTF<->Document font size translation
27743 - Fixed RTF generation, now properly handles cross-tag boundaries
27744 for single line selection
27745 - No longer always appends blank line to generated RTF
27747 - Added missing attributes
27748 - Hooked up undo-related methods
27750 - Implemented Copy()
27751 - Implemented Paste()
27752 - Implemented Cut()
27753 - Fixed caret mis-behaviour on backspace across line-boundaries
27755 2005-11-29 Jackson Harper <jackson@ximian.com>
27757 * MdiClient.cs: Add a method for activating mdi children. Very
27758 basic right now. I imagine someday it might need more girth.
27759 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27760 children windows names are added to the menu item.
27761 * ThemeWin32Classic.cs: Draw the arrow if the item is an
27762 mdilist. This happens regardless of whether or not there are any
27763 mdi windows to see in the list, and according to my tests happens
27764 before the items are even added. Also happens if there isn't even
27765 an mdi client to get windows from.
27767 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
27769 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27770 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27772 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
27774 * DataGridTableStyle.cs:
27775 - Create always the styles for the missing columns even if they are
27776 provided by the user (not default table style)
27779 - Fixes SetDataBinding (always re-attach source)
27780 - Fixes SetNewDataSource (only clear styles if they are not for
27782 - Expands OnTableStylesCollectionChanged to handle style refresh
27783 and remove properly
27785 2005-11-29 Jackson Harper <jackson@ximian.com>
27787 * FileDialog.cs: Implement missing bits, remove some dead
27789 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27790 creation of the panel so that the options set on the dialog are
27791 seen when the panel is created.
27792 * TreeView.cs: raise a click when items are clicked.
27794 2005-11-29 Jackson Harper <jackson@ximian.com>
27796 * MdiClient.cs: Pass some signature methods through to base.
27798 2005-11-28 Jackson Harper <jackson@ximian.com>
27800 * ListView.cs: Raise the click event when items are clicked.
27802 2005-11-28 Jackson Harper <jackson@ximian.com>
27804 * MdiClient.cs: Make this algorithm even more beautiful. And fix
27807 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
27809 * ThemeNice.cs: - Removed 1 pixel bitmaps
27810 - Use SmoothingMode.AntiAlias where it makes sense
27811 (ScrollButton arrow for example)
27812 - Enhanced Button focus drawing
27813 - Fixed ComboBox drawing (no artefacts anymore, focus
27814 rectangle is back again, reduced size of ComboButton, etc.)
27815 - Fixed RadioButton focus drawing for Appearence.Button
27816 - Slight ScrollButton redesign
27817 - Some LinearGradientBrush size fixes
27818 - GroupBoxes have now rounded edges
27819 - Fixed StatusBar drawing
27821 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
27823 * ThemeNice.cs: - Remove dead code
27824 - use correct background colors for menus, etc.
27825 - Fake pixel drawing with 1 pixel bitmaps
27827 2005-11-24 Jackson Harper <jackson@ximian.com>
27829 * MdiClient.cs: Size the scrollbars when resizing the window.
27830 - Resize the maximized windows when the client is resized
27831 * Form.cs: Make the child context available
27833 2005-11-23 Jackson Harper <jackson@ximian.com>
27835 * MdiChildContext.cs: Don't size windows if they are maximized.
27837 2005-11-23 Mike Kestner <mkestner@novell.com>
27839 * ContextMenu.cs: use MenuTracker.
27840 * Control.cs: remove menu handle usage.
27841 * Form.cs: remove menu handle usage.
27842 * Hwnd.cs: remove menu handle usage.
27843 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
27844 motion and clicks to the new Tracker handlers.
27845 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
27847 * MenuAPI.cs: refactored to combine popup and menubar event handling.
27848 Killed the MENU and MENUITEM data types and associated collections
27849 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
27850 MenuTracker class that exposes the leftovers from the old MenuAPI
27851 static methods. Restructured Capture handling so that only one grab is
27852 done for the entire menu hierarchy instead of handing off grabs to
27853 submenus. Tracker now has an invisible control to Capture when active.
27854 * MenuItem.cs: add sizing accessors, kill Create
27856 * Theme.cs: remove menu handle and MENU(ITEM) usage.
27857 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
27858 MENU(ITEM). remove menu handle usage, use Menu directly.
27859 * XplatUIDriver.cs: remove menu handle usage.
27860 * XplatUIOSX.cs: remove menu handle usage.
27861 * XplatUIWin32.cs: remove menu handle usage.
27862 * XplatUIX11.cs: remove menu handle usage.
27864 2005-11-22 Jackson Harper <jackson@ximian.com>
27866 * Hwnd.cs: Don't compute the menu size for
27867 DefaultClientRectangle.
27868 - Reenable menu sizes being computed for GetClienRectangle.
27869 * Form.cs: Remove comment of trechery
27871 2005-11-22 Jackson Harper <jackson@ximian.com>
27873 * Hwnd.cs: The adjustments for the menu bar are made when it is
27874 attached to the form.
27876 2005-11-19 Jackson Harper <jackson@ximian.com>
27878 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
27879 (just like on windows).
27881 2005-11-19 Jackson Harper <jackson@ximian.com>
27883 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
27884 use real buttons anymore because they are in non client area. The
27885 one TODO here is that I need to somehow invalidate a section of
27886 the non client area.
27888 2005-11-18 Jackson Harper <jackson@ximian.com>
27890 * Control.cs: Put the enum check back in now that MDI doesnt have
27891 to use this to set border styles.
27892 * Form.cs: Only set mdi child windows borders if the handle has
27894 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
27895 this directly on to the driver.
27896 - Get the move start position before adjusting for the titlebar
27897 height, this fixes the windows "skipping" when they are first
27900 2005-11-18 Jackson Harper <jackson@ximian.com>
27902 * XplatUIX11.cs: Just compute the mdi borders separately as they
27903 don't totally match up with normal form borders.
27905 2005-11-18 Jackson Harper <jackson@ximian.com>
27907 * Control.cs: Set WS_ styles for borders, so that the driver does
27908 not have to retrieve the control instance to figure out what kind
27909 of borders it should have.
27910 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
27911 driver can know its an mdi child easily.
27912 * XplatUIX11.cs: Get the border styles and whether the window is
27913 MDI from the Styles and ExStyles params instead of having to get a
27914 control. This prevents a chicken and egg problem.
27916 2005-11-18 Jackson Harper <jackson@ximian.com>
27918 * MdiClient.cs: Fix typo so scrollbars show up correctly.
27920 2005-11-18 Jackson Harper <jackson@ximian.com>
27922 * MdiClient.cs: Calculate when to add and remove scrollbars
27924 * MdiChildContext.cs: Adjust the y position to take the titlebar
27926 - No height for FormBorderStyle.None
27928 2005-11-18 Jackson Harper <jackson@ximian.com>
27930 * Control.cs: Allow non enum values to be used for
27931 InternalBorderStyle. MDI does this to set a special border style.
27932 - New utility methods for converting points to/from client coords
27933 - Add the newly created control to the Controls collection before
27934 updating its style. This way UpdateStyle can walk the control
27935 heirarchy to find the control if needed.
27936 so I don't need to create a new Point object all the time.
27937 * Form.cs: Let MDI windows handle their border styles.
27938 - Set styles on MDI windows so the correct title style is derived.
27939 * MdiChildContext.cs: Move all the painting and window handling
27940 into the non client area.
27941 - Use correct sizing and put correct buttons on frames based on
27942 the FormBorderStyle.
27943 - Notify the mdi client about scrolling
27944 - Need to handle the buttons ourselves now, because they are all
27945 in non client areas and we can't add controls there.
27946 * MdiClient.cs: Halfway to scrolling, this implementation is
27947 somewhat broken though, we need to check to make sure other
27948 windows aren't causing scrolling before removing the bars. Also
27949 the bars need to be drawn on top, maybe I can switch implicit
27950 controls to be on top.
27951 * Hwnd.cs: caption_height and tool_caption_height are now
27952 properties of an hwnd, this way they can be set by the driver
27953 based on the type of window they are. In X11 the window manager
27954 handles the decorations so caption_height is zero unless its an
27956 - Add 3 pixel borders for MDI windows (0xFFFF).
27957 - Get rid of some code duplication, have DefaultClientRectanle
27958 just call GetClientRectangle.
27959 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27961 - Set border styles differently for mdi windows.
27962 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27965 2005-11-15 Mike Kestner <mkestner@novell.com>
27967 * Menu.cs: when adding an item to the collection, if item is already
27968 parented, remove it from the parent.
27970 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
27972 * X11DesktopColors.cs: Added KDE support
27974 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
27977 - Clipboard methods now can translate Rtf format
27978 - No longer removes clipboard contents whenever a new format is added
27979 to allow placing multiple formats on the clipboard
27980 * Clipboard.cs: Clipboard now supports getting a IDataObject and
27981 will place all formats contained in it onto the clipboard. Also
27982 now cleans the clipboard before placing a new object onto it
27984 - Implemented set_Rtf
27985 - Implemented set_SelectedRtf
27986 - Created InsertRTFFromStream() method to allow single code base
27987 for all properties and methods that insert RTF into document
27988 - Removed debug output
27990 - Fixed Delete(int) to fix up line numbers
27991 - Fixed ReplaceSelection to combine start and end line
27992 - Fixed serious DeleteChars bug that would leave the document tree
27994 - Improved DumpTree with several logic checks to detect broken
27996 - Removed debug lines
27997 - Fixed Caret.WordForward/WordBack moving code, now always also
27998 updates caret.tag (fixes crash when word-selecting across tag
27999 boundaries via keyboard)
28000 - Added Insert() method for inserting multiline text into documents
28001 - Fixed DeleteChars() calculation errors that would cause a broken
28002 tag chain with multiple tag lines
28003 - DeleteChars() no longer crashes on multi-tag lines if not all tags
28004 - Split() no longer moves caret if split is at caret location
28005 - ReplaceSelection() now updates the cursor and re-displays it
28006 - ReplaceSelection() now uses new Insert() method to avoid code
28008 - FormatText() can now handle formatting partial lines
28010 - Append now uses new TextControl.Insert() method (this avoids
28012 - Implemented Ctrl-X (Cut) (
28013 - Implemented Ctrl-C (Copy)
28014 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
28015 regeneration when pasting text; roundtripping Copy&Paste within
28016 edit control still fails due to some calculation bugs in GenerateRTF)
28017 - The Delete key will now remove the current selection if it is visible
28018 * TextBox.cs: Removed debug lines
28019 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
28020 driver to be initialized and can't therefore be done via a static ctor)
28022 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
28024 * TextControl.cs: Added backend code for finding char arrays and strings
28026 - Added mouse wheel scroll support
28027 - Added support for VScroll and HScroll events
28029 - Implemented all seven Find() variants
28030 - Implemented GetCharFromPosition()
28031 - Implemented GetCharIndexFromPosition()
28032 - Implemented GetLineFromIndex()
28033 - Implemented GetPositionFromCharIndex();
28034 - Implemented SaveFile for PlainText and UnicodeText
28035 - Fixed set_Font, now setting a new font applies that font to
28037 - Implemented generic Document to RTF converter
28038 - Implemented SaveFile for RichText format (still missing unicode
28039 conversion for non-ansi chars)
28040 - Implemented get_Rtf
28041 - Implemented get_SelectedRtf
28043 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
28045 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
28046 to allow any captures to be released before triggering OnClick. This
28047 way a click handler may capture the mouse without interference.
28048 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
28049 This way we send them even though X may not allow a grab (if the window
28050 isn't visible, for example)
28052 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
28054 * DataGridViewRowEventArgs.cs: DataGridView implementation
28055 * DataGridViewElement.cs: DataGridView implementation
28056 * DataGridViewComboBoxCell.cs: DataGridView implementation
28057 * DataGridViewDataErrorContexts.cs: DataGridView implementation
28058 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
28059 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
28060 * ImageLayout.cs: DataGridView implementation
28061 * DataGridViewComboBoxColumn.cs: DataGridView implementation
28062 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
28063 * DataGridViewSelectionMode.cs: DataGridView implementation
28064 * IDataGridViewEditingControl.cs: DataGridView implementation
28065 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
28066 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
28067 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
28068 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
28069 * DataGridViewColumnSortMode.cs: DataGridView implementation
28070 * DataGridView.cs: DataGridView implementation
28071 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
28072 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
28073 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
28074 * Padding.cs: DataGridView implementation
28075 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
28076 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
28077 * DataGridViewRowEventHandler.cs: DataGridView implementation
28078 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
28079 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
28080 * DataGridViewButtonCell.cs: DataGridView implementation
28081 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
28082 * DataGridViewEditMode.cs: DataGridView implementation
28083 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
28084 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
28085 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
28086 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
28087 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
28088 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
28089 * DataGridViewCellEventHandler.cs: DataGridView implementation
28090 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
28091 * DataGridViewCellStyleConverter.cs: DataGridView implementation
28092 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
28093 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
28094 * DataGridViewColumnEventArgs.cs: DataGridView implementation
28095 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
28096 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
28097 * QuestionEventArgs.cs: DataGridView implementation
28098 * IDataGridViewEditingCell.cs: DataGridView implementation
28099 * DataGridViewTriState.cs: DataGridView implementation
28100 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
28101 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
28102 * DataGridViewColumnCollection.cs: DataGridView implementation
28103 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
28104 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
28105 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
28106 * DataGridViewColumn.cs: DataGridView implementation
28107 * DataGridViewCellBorderStyle.cs: DataGridView implementation
28108 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
28109 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
28110 * DataGridViewRow.cs: DataGridView implementation
28111 * DataGridViewImageCellLayout.cs: DataGridView implementation
28112 * DataGridViewImageCell.cs: DataGridView implementation
28113 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
28114 * DataGridViewCheckBoxCell.cs: DataGridView implementation
28115 * DataGridViewHeaderCell.cs: DataGridView implementation
28116 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
28117 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
28118 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
28119 * DataGridViewTextBoxColumn.cs: DataGridView implementation
28120 * QuestionEventHandler.cs: DataGridView implementation
28121 * DataGridViewCellStyleScopes.cs: DataGridView implementation
28122 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28123 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28124 * DataGridViewCell.cs: DataGridView implementation
28125 * DataGridViewCellEventArgs.cs: DataGridView implementation
28126 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28127 * DataGridViewCellStyle.cs: DataGridView implementation
28128 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28129 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28130 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28131 * TextFormatFlags.cs: DataGridView implementation
28132 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28133 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28134 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28135 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28136 * DataGridViewButtonColumn.cs: DataGridView implementation
28137 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28138 * HandledMouseEventArgs.cs: DataGridView implementation
28139 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28140 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28141 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28142 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28143 * DataGridViewRowCollection.cs: DataGridView implementation
28144 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28145 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28146 * DataGridViewHitTestType.cs: DataGridView implementation
28147 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28148 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28149 * DataGridViewColumnEventHandler.cs: DataGridView implementation
28150 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28151 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28152 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28153 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28154 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28155 * DataGridViewContentAlignment.cs: DataGridView implementation
28156 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28157 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28158 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28159 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28160 * DataGridViewPaintParts.cs: DataGridView implementation
28161 * DataGridViewCellCollection.cs: DataGridView implementation
28162 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28163 * DataGridViewImageColumn.cs: DataGridView implementation
28164 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28165 * DataGridViewElementStates.cs: DataGridView implementation
28166 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28167 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28168 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28169 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28170 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28171 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28172 * DataGridViewRowHeaderCell.cs: DataGridView implementation
28173 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28174 * DataGridViewTextBoxCell.cs: DataGridView implementation
28175 * DataGridViewBand.cs: DataGridView implementation
28176 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28177 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28178 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28179 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28180 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28181 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28182 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28183 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28184 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28185 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28186 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
28188 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
28190 * ThemeWin32Classic.cs:
28191 - Draw the outside focus rectangle around buttons
28192 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
28193 doesn't use end caps for every dash of a line anymore. This
28194 workaround ignores the forecolor.
28196 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
28198 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
28201 2005-11-07 Jackson Harper <jackson@ximian.com>
28203 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
28205 2005-11-07 Jackson Harper <jackson@ximian.com>
28207 * ScrollableControl.cs: Calculate the maximum and change vars
28208 (more) correctly so that scrollbars appear as a sensible size.
28210 2005-11-04 Jackson Harper <jackson@ximian.com>
28212 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
28214 * TreeView.cs: When the tree is sorted null out the top_node so
28215 that it is recalculated.
28216 - Use dotted lines instead of dashed lines to match MS better.
28218 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
28221 - Implements key search for items. Useful when browsing files with FileDialog
28222 - When changing view mode or when clear the items reset scrollbar positions
28224 2005-11-04 Jackson Harper <jackson@ximian.com>
28226 * CurrencyManager.cs: Implement the MetaDataChanged event, the
28227 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
28228 as to what the method may do as there is no real way of creating a
28229 derived CurrencyManager and calling the method.
28231 2005-11-03 Jackson Harper <jackson@ximian.com>
28233 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
28234 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
28235 method which seems to just be used internally to refresh the tabs.
28237 2005-11-03 Jackson Harper <jackson@ximian.com>
28239 * TabControl.cs: Implement the remove method. Fix some broken
28242 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28244 * DateTimePicker.cs:
28245 - Added missing DateTimePickerAccessibleObject class
28246 - Added missing events
28247 - Added OnFontChanged method
28248 * Form.cs: Added missing attributes
28249 * TreeView.cs: Added missing attributes
28251 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28253 * GridItemCollection.cs: Fix signatures
28255 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28257 * XplatUI.cs: Updated build rev/date
28258 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
28259 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
28260 * Application.cs: Trigger context-specific ExitThread events
28262 2005-11-03 Jackson Harper <jackson@ximian.com>
28266 * GridTableStylesCollection.cs:
28271 * MonthCalendar.cs: Signature fixes
28273 2005-11-03 Jackson Harper <jackson@ximian.com>
28275 * TreeNodeCollection.cs: Remove should not be virtual.
28276 * TreeView.cs: Implement the last of the missing methods.
28278 2005-11-03 Jackson Harper <jackson@ximian.com>
28280 * TreeNodeConverter.cs: Implement to get off my class-status back.
28282 2005-11-03 Jackson Harper <jackson@ximian.com>
28284 * TreeView.cs: Hookup the bits for drag and drop.
28285 * TreeNode.cs: Don't cache the tree_view or index anymore, now
28286 that nodes can be moved from tree to tree easily this just causes
28287 all sorts of problems.
28288 * TreeNodeCollection: Don't need to give treenodes an index and
28289 treeview anymore when they are added, these are computed on the
28290 fly. Also make sure to remove a node before its added.
28292 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28295 - Added CaretSelection enum
28296 - Added comparison methods to Marker struct, makes selection code
28298 - Added SelectionStart and SelectionEnd as 'moveable' location for
28299 the CaretDirection enum and handler
28300 - Added selection_prev variable to track optimized invalidation for
28301 word and line selection
28302 - Added SelectionVisible property (returns true if there is a valid
28304 - Switched CaretHasFocus to only display the caret if there is no
28306 - Avoiding StringBuilder.ToString to retrieve a single char, instead
28307 using the direct character index; should be much faster
28308 - Added various conditional debug statements
28309 - Fixed invalidation calculation for selection ranges
28310 - Added ExpandSelection() method to support word and line selection
28311 - Switched SetSelectionToCaret to use new Marker compare overloads
28312 - Added central IsWordSeparator() method to determine word
28313 separators/whitespace and FindWordSeparator() to streamline common
28314 usage of IsWordSeparator()
28316 - Removed unneeded grabbed variable, it was just mirroring
28318 - No longer firing OnTextChanged event when Text setter is called,
28319 since the base will fire the event for us
28320 - Added handling of Ctrl-Up/Down selection
28321 - Added handling of Shift-Cursorkey selection
28322 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28324 - Added handling of Shift and Ctrl-Shift-Home/End selection
28325 - Removed some debug output
28326 - Added handling for single/double/tripple-click to place caret/
28327 select word/select line respectively (Fixes bug #76031)
28328 - Added support for drag expansion of word/line selection
28329 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28332 2005-11-02 Jackson Harper <jackson@ximian.com>
28334 * X11Dnd.cs: If the drag is going to and from a MWF window just
28335 copy the data instead of sending it out through the X Selection
28338 2005-11-02 Jackson Harper <jackson@ximian.com>
28341 * XplatUIX11.cs: When in a drag we don't want motion notify
28342 messages to get passed on to the other controls. This prevents
28343 mouse move messages from showing up in the drag source.
28345 2005-11-02 Jackson Harper <jackson@ximian.com>
28347 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
28348 the correct button is release to end a drag.
28349 * XplatUIX11.cs: Make the button state internal so the drag system
28350 can access it. Dragging needs to know about all button releases,
28351 not just left button.
28353 2005-11-02 Miguel de Icaza <miguel@novell.com>
28355 * Form.cs (Icon): If the icon is null, reset the icon to the
28358 * Cursor.cs: When writing the AND-mask bitmap do not include the
28359 number of colors, but hardcode those to two (black and white),
28360 fixes the loading of color cursors (Paint Dot Net).
28362 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28363 turn off autoscaling.
28365 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28367 2005-11-02 Jackson Harper <jackson@ximian.com>
28369 * X11Dnd.cs: Make sure to send a status message if the pointer
28370 enters a control that can not accept a drop, otherwise the cursor
28371 isn't updated correctly. Also tried to compress the lines of code
28374 2005-11-02 Jackson Harper <jackson@ximian.com>
28376 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28377 set actions correctly. This isn't perfect as XDND and win32 have
28378 some differences on how you allow actions. I'll clear this up by
28379 adding a path for drag from MWF to MWF windows.
28380 * XplatUIX11.cs: Hook into the dnd system.
28382 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
28384 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28385 previously shown but they are no longer need it. Very obvious when
28386 browsing files with FileDialog.
28388 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
28390 * Control.cs: We always need to call OnPaintBackground. We pretty much
28391 ignore AllPaintingInWmPaint and always do the painting there, whether
28392 it's set or not, since we always ignore the WM_ERASEBKGND message
28393 (which we don't generate on X11). This fixes #76616.
28394 * Panel.cs: Removed unneeded background painting. This happens properly
28395 in Control.cs already
28397 2005-10-31 Mike Kestner <mkestner@novell.com>
28399 * Menu.cs: Add items to collection before setting their index.
28400 * MenuItem.cs : add range checking with ArgumentException like MS.
28403 2005-10-31 Jackson Harper <jackson@ximian.com>
28405 * ListBox.cs: Invalidate if the area is visible at all not just
28406 contained in the visible rect. Fixes unselection of semi visible
28409 2005-10-31 Jackson Harper <jackson@ximian.com>
28411 * Control.cs: Consistently name the dnd methods. Make them
28412 internal so we can override them to match some MS behavoir
28414 * Win32DnD.cs: Use the new consistent names.
28416 2005-10-31 Jackson Harper <jackson@ximian.com>
28418 * TreeView.cs: Don't draw the selected node when we lose focus.
28420 2005-10-31 Jackson Harper <jackson@ximian.com>
28422 * X11Dnd.cs: We still need to reset the state even though a full
28423 reset isn't being done, otherwise status's still get sent all over
28426 2005-10-31 Jackson Harper <jackson@ximian.com>
28428 * Control.cs: Make the dnd_aware flag internal so the dnd
28429 subsystem can check it. Catch exceptions thrown in dnd handlers to
28431 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28432 * X11Dnd.cs: Handle null data in the converters. Set the XDND
28433 version when sending a XdndEnter. Use the control/hwnd dnd_aware
28434 flags to reduce the number of dnd enters/status's sent.
28436 2005-10-31 Jackson Harper <jackson@ximian.com>
28438 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28440 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
28442 * PictureBox.cs: Fixes 76512
28444 2005-10-28 Jackson Harper <jackson@ximian.com>
28446 * X11Dnd.cs: Early implementation to support winforms being a drag
28447 source for data on X11. Also restructured the converters so they
28448 can go both ways now.
28449 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28451 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
28453 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28456 2005-10-27 Jackson Harper <jackson@ximian.com>
28458 * TreeNode.cs: Implement serialization so my DnD examples will work.
28460 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
28462 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28463 TreeView.cs: Don't dispose objects that are not owned.
28465 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
28467 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28468 should retrieve the current cursor and report that, but XplatUI
28469 doesn't (yet) have an interface for that (and I'm not sure I even
28471 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28472 until any message loop processing is done (and the WM_SETCURSOR
28473 replaces the cursor to the proper one)
28475 - Fixed override behaviour, we can't set the cursor globally on X11,
28476 just for our windows.
28477 - Invalidating the System.Drawing X11 display handle when we are
28479 * Control.cs: Fix to make csc happy
28481 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
28484 - get_Text: Add last line (without trailing newline) to returned
28485 value (Fixes 76212)
28486 - get_TextLength: Count last line in returned length
28487 - ToString: Call Text property instead of duplicating code
28489 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
28491 * ImageList.cs: Dispose ImageAttributes objects.
28493 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28495 * ImageList.cs: Use attribute constructors with less arguments where
28498 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28500 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28501 Use typeof instead of strings when assembly is referenced. Added
28502 some more comments.
28504 2005-10-21 Jackson Harper <jackson@ximian.com>
28506 * ListView.cs: Raise a double click event. Also tried to somewhat
28507 fix when the selectedindexchanged event is raised. Its still
28510 2005-10-21 Jackson Harper <jackson@ximian.com>
28512 * TreeView.cs: New method to invalidate the plus minus area of a
28513 node without invalidating the whole node (maybe this can be used
28514 in some more places).
28515 * TreeNodeCollection.cs: When adding to an empty node we need to
28516 invalidate its plus minus area so the little block shows up.
28518 2005-10-21 Jackson Harper <jackson@ximian.com>
28520 * TreeView.cs: Make sure that when we invalidate a node the bounds
28521 are big enough to cover the selected box and the focus
28522 rectangle. Use a different colour for the lines connecting nodes
28523 so they show up with all themes.
28525 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28527 * NativeWindow.cs: Don't call anything that could call into the driver,
28528 we might be on a different thread.
28530 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28532 * Control.cs(Dispose): Since Dispose might run on a different thread,
28533 make sure that we call methods that could call into the driver via
28534 invoke, to avoid thread issues
28536 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28538 * XplatUI.cs: Removed finalizer
28539 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28540 not allowing to be called on the finalizer thread.
28542 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
28545 - Reverted r51889 and r51891.
28546 - Added ImageListItem class that stores unmodified image items and image
28547 properties required to create list images until handle is created.
28548 - Added AddItem and moved image creation logic to AddItemInternal.
28549 - Added CreateHandle method that creates images based on unmodified items.
28550 - Added DestroyHandle that changes state to store unmodified items.
28551 - Add and AddStrip methods no more create handle.
28552 - ReduceColorDepth has no return value.
28553 - Dispose destroys handle.
28554 - Modified other methods to reflect the above changes.
28555 - Implemented key support.
28556 - Added profile 2.0 members and attributes.
28557 - Added private Reset and ShouldSerialize methods that provide the same
28558 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28559 them as they are private.
28560 - Added some more comments about implementation details.
28562 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28564 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28566 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28568 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28570 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28572 * DataGridDrawingLogic.cs: Fixes column hit calcultation
28573 * DataGridColumnStyle.cs: Remove debug message
28575 2005-10-20 Jackson Harper <jackson@ximian.com>
28577 * TreeView.cs: We can always get input keys regardless of whether
28578 or not editing is enabled. They are used for navigation.
28580 2005-10-20 Jackson Harper <jackson@ximian.com>
28582 * TreeNode.cs: Use the viewport rect for determining if a node
28583 needs to be moved for visibility. Don't use Begin/End edit. This
28584 calls a full refresh when its done.
28585 * TreeView.cs: New SetBottom works correctly. Make the viewport
28586 rect property internal so the treenodes can see it. When clicking
28587 on a node we need to ensure that its visible because it might just
28588 be partly visible when clicked.
28590 2005-10-20 Jackson Harper <jackson@ximian.com>
28592 * TreeNodeCollection.cs: Remove debug code.
28594 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28596 * Datagrid.cs: Implements column sorting in Datagrid
28597 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28599 2005-10-20 Jackson Harper <jackson@ximian.com>
28601 * TreeNodeCollection.cs: Remove items properly. Update the correct
28602 area after removing them.
28604 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28606 * Datagrid.cs: Should not call base.OnPaintBackground
28608 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28610 * XplatUIX11.cs (GetMessage):
28611 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28612 window instead of client window
28613 - Now properly calculates NC_xBUTTONUP message coordinates
28614 - ScreenToMenu now properly calculates it's coordinates of whole
28615 window, since menus are in the whole window, not in the client
28617 - Added WholeToScreen coordinate translation method
28619 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28621 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28622 want to return a message, loop back to the beginning of the function
28623 and grab the next real message to process instead.
28625 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28627 * Splitter.cs: Properly set limits if no filler control is used
28629 2005-10-19 Jackson Harper <jackson@ximian.com>
28631 * ColorDialog.cs: Don't show the help button if it is not enabled
28632 instead of disabling it (this is what MS does). Don't create the
28633 panel until the dialog is run, otherwise the vars (such as
28634 ShowHelp) are not set yet.
28636 2005-10-19 Jackson Harper <jackson@ximian.com>
28638 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28639 are reduced when adding nodes.
28641 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28644 2005-10-19 Jackson Harper <jackson@ximian.com>
28646 * FolderBrowserDialog.cs: End editing our treeview so the window
28647 actually gets refreshed.
28649 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28651 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
28652 Obsoleted handling of WM_ERASEBKGND, now always draws our background
28655 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28657 * MenuAPI.cs: Returns after Hidding window
28658 * XplatUIX11.cs: Added TODO found while debugging menu issues
28660 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28662 * XplatUIX11.cs: Do not re-map the whole window when it's size
28663 becomes non-zero unless it's supposed to be actually visible
28665 2005-10-18 Jackson Harper <jackson@ximian.com>
28667 * TreeView.cs: We don't need to keep a count anymore.
28668 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28669 use the Grow method.
28671 2005-10-18 Jackson Harper <jackson@ximian.com>
28673 * TreeNodeCollection.cs: Insert is not supported on arrays, so
28674 implement it manually here.
28676 2005-10-18 Jackson Harper <jackson@ximian.com>
28678 * ImageList.cs: Dont kill the list when the colour depth is
28679 changed, just change the colour depth of all the images.
28680 - Same goes for setting the image size. Just resize them all
28681 instead of killing the list softly.
28683 2005-10-18 Jackson Harper <jackson@ximian.com>
28685 * Control.cs: Don't invalidate empty rectangles.
28687 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28690 - Adds checked item to the Checked/Item lists (where empty before)
28691 - Do not add items to the Selected lists if they are already present
28693 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28694 - When deleting items make sure that we delete them for the Selected
28695 and Checked list also.
28697 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28699 * Label.cs: Dispose objects no longer used
28700 * ThemeWin32Classic.cs: Dispose objects no longer used
28702 2005-10-18 Jackson Harper <jackson@ximian.com>
28704 * TabControl.cs: Don't refresh the whole control when the tabs are
28705 scrolled, we just need to refresh the tab area.
28707 2005-10-17 Jackson Harper <jackson@ximian.com>
28709 * XplatUIX11.cs: Compress code a little bit. Only calculate the
28710 after handle when we need it.
28712 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28714 * Control.cs: When the parent size changes, recalculate anchor
28715 positions. Partial fix for #76462
28717 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28719 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
28720 drawn. Fixes #76462
28722 2005-10-17 Jackson Harper <jackson@ximian.com>
28724 * MonthCalendar.cs: Don't create the numeric up down until our
28725 handle is created. Otherwise our handle is created in the
28726 constructor and we don't know if we are a WS_CHILD or WS_POPUP
28729 2005-10-17 Jackson Harper <jackson@ximian.com>
28731 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28734 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28735 * TreeNode.cs : small logical fix (was using local var instead of field)
28737 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28739 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28741 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28743 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28745 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
28748 - Re-implemented anchoring code. My first version was really broken.
28749 This fixes bug #76033. Unlike the previous implementation we will
28750 no longer have round errors since all numbers are calculated from
28751 scratch every time. Removed various anchor-related obsolete vars.
28752 - InitLayout no longer causes layout event firing and layout to be
28755 2005-10-16 Jackson Harper <jackson@ximian.com>
28757 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28760 2005-10-16 Jackson Harper <jackson@ximian.com>
28762 * TabControl.cs: Remove debug code.
28764 2005-10-16 Jackson Harper <jackson@ximian.com>
28766 * XEventQueue.cs: Increase the default queue size (very simple
28767 apps needed to grow the queue).
28768 * Hwnd.cs: No finalizer so we don't need to suppress
28769 finalization. Compute the invalid area manually so a new rectangle
28770 does not newto be created.
28771 * ScrollableControl.cs: Don't set any params (otherwise visibility
28772 isn't set correctly).
28773 * MdiChildContext.cs: New constructor takes the mdi parent so it
28774 doesn't have to be computed and avoids a crash on windows. Draw
28775 the window icon properly, and allow the text to be seen.
28776 * Form.cs: Use new MdiChildContext constructor. Make sure the
28777 child context isn't null in wndproc.
28778 * TabControl.cs: Don't set focus, this is muddling keyboard
28779 behavoir. Expand the tab rows when a window size increase will
28780 allow extra tabs to be seen. Don't allow tabs smaller than the
28781 width of a window to be scrolled out of view.
28783 * TreeView.cs: Use measure string to calculate a nodes width, the
28784 width is cached and only updated when the text or the font is
28785 changed. Don't check for expand/collapse clicks on the first level
28786 nodes if root lines are disabled.
28788 2005-10-16 Ritvik Mayank <mritvik@novell.com>
28790 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28792 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28794 * DataGridBoolColumn.cs: fixes warning
28796 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28798 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28799 to match more to match more precisely the MS Net behavior
28801 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28803 * Hwnd.cs: Added field to track if window is mapped
28805 - Unmap windows if they become 0-size, re-map when
28806 they are >0 again; fixes #76035
28807 - Re-set our error handler after initializing X11Desktop
28808 to override any error handlers Gtk or whatever was called
28811 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28813 * CheckedListBox.cs: Removed unused vars
28814 * ListView.cs: Fixed signatures
28815 * RichTextBox.cs: Removed unused vars
28816 * TextBoxBase.cs: Removed unused vars
28817 * XplatUIWin32.cs: Removed unused vars
28818 * XplatUIX11.cs: Removed unused vars
28819 * XplatUI.cs: Updated version and date to latest published
28821 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28823 * Cursor.cs: Added private .ctor to work around a bug in
28824 resourceset (Thanks to Geoff Norton for the help on this)
28825 * SplitterEventArgs.cs: Made fields accessible so we don't
28826 waste boatloads of objects and can reuse the same one
28828 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28829 any captions and borders when generating screen coordinates
28830 * Splitter.cs: Reimplemented control, now fully complete, uses
28831 rubberband drawing, supports and obeys all properties, has
28834 2005-10-13 Miguel de Icaza <miguel@novell.com>
28836 * Form.cs (Form): Setup default values for autoscale and
28837 autoscale_base_size; Make these instance variables, not static
28840 (OnLoad): on the first load, adjust the size of the form.
28842 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28844 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
28845 width argument to DrawReversibleRectangle()
28846 * XplatUIWin32.cs, XplatUIX11.cs:
28847 - Implemented width for DrawReversibleRectangle()
28848 - Added logic to DrawReversibleRectangle that recognizes a zero
28849 width or height and only draws a line in that situation
28851 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28853 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
28854 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
28855 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
28856 method (it uses our FosterParent window to get a graphics context)
28858 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28860 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
28861 and SetWindowBackground methods
28863 - Setting proper ControlStyles
28864 - We no longer call XplatUI.SetWindowBackground and XplatUI.
28865 EraseWindowBackground, instead we draw the window background
28866 ourselves in PaintControlBackground. This behaviour is
28867 required to match MS, where, when OnPaintBackground is not
28868 called, the background is not drawn.
28869 - Removed unneeded Refresh() in set_Text
28870 * Hwnd.cs: Dropped the ErasePending support. No longer needed
28872 - Created DeriveStyles method to translate from CreateParams to
28873 FormBorderStyle and TitleStyle, also handles BorderStyle (which
28874 matches FormBorderStyle enum values)
28875 - Consolidated SetHwndStyles and CalculateWindowRect border/title
28876 style calculations into single DeriveStyles method
28877 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
28878 from redrawing the whole window on any resize or expose.
28879 - Fixed CreateWindow usage of SetWindowValuemask. Before not
28880 all styles were applied to our whole/client window appropriately
28881 - Removed EraseWindowBackground() and SetWindowBackground() methods
28882 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
28883 no longer clear/redraw the background through X
28884 - Removed handling of erase_pending bit, we have no use for it (or
28887 - Removed generation and handling of WM_ERASEBKGND message
28888 - Removed EraseWindowBackground() and SetWindowBackground() methods
28889 - Removed handling of hwnd.ErasePending flag
28891 - Removed EraseWindowBackground() and SetWindowBackground() methods
28892 - We no longer call EraseWindowBackground on PaintEventStart, we
28893 ignore the fErase flag, erasing is handled in Control in the
28895 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
28896 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
28897 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
28898 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
28899 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
28900 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
28901 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
28903 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
28905 * PropertyGrids.cs: Get sub properties
28906 * PropertyGridView.cs: Fix drawing code
28908 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28910 * ListBox.cs: Fixes 76383
28912 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28914 * DataGridTextBoxColumn.cs: Sets location and size before attachment
28915 * ThemeWin32Classic.cs: Fixes border drawing and calculations
28916 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
28919 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28921 * ComboBox.cs: Fixes border drawing
28923 2005-10-10 Miguel de Icaza <miguel@novell.com>
28925 * MimeIcon.cs: Ignore errors if the file can not be read.
28927 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28929 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28930 - Fixed border calculations
28931 - Fixed horizontal scrolling in single column listboxes
28932 - Fixed drawing issues
28934 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
28936 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
28937 FormBorderStyle enum
28938 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
28939 code to determine FormBorderStyles from CreateParams
28941 - Fixed bug where we'd set the wrong window styles if we were
28942 not creating an MDI window
28943 - Added call to XplatUI.SetBorderStyle when form borders are set
28944 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28946 - Removed obsolete edge style
28947 - Switched from BorderStyle to FormBorderStyle
28949 2005-10-10 Jackson Harper <jackson@ximian.com>
28951 * Form.cs: Use the property to get the window handle instead of
28952 accessing it directly. Prevents a null reference exception.
28954 2005-10-10 Jackson Harper <jackson@ximian.com>
28956 * TreeView.cs: Don't adjust the rect given to DrawString now that
28957 our libgdiplus draws correctly.
28959 2005-10-08 Jackson Harper <jackson@ximian.com>
28961 * TreeView.cs: Don't try to find the clicked on node if there are
28962 no nodes in the tree.
28964 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28970 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28972 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28973 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28975 Use ResPool for brushes and dispose System.Drawing objects that
28976 are not used anymore.
28978 2005-10-07 Jackson Harper <jackson@ximian.com>
28980 * MdiChildContext.cs: Use the new borders instead of drawing them
28983 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28985 * Calling UpdateBounds after changing the window's BorderStyle
28986 since the style can change the ClientSize
28988 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28990 * Control.cs: Made PaintControlBackground virtual
28991 * Panel.cs: Overriding PaintControlBackground instead of using paint
28992 event; paint event method was interfering with 'real' users of the
28995 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28997 * ThemeWin32Classic.cs: remove border drawing since it is handled
28998 by the base control class now and was causing double border drawing.
29000 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29002 * Panel.cs: Redraw our background on paint. Not a pretty solution,
29003 but it does seem to match MS behaviour. This fixes bug #75324
29005 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29007 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
29008 somewhat hackish looking
29010 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29013 - We now accept Enter even if AcceptEnter is false, if the containing
29014 form does not have an AcceptButton configured (fixes bug #76355)
29015 - Calculations are now fixed to no longer use Width/Height, but
29016 ClientSize.Width/Height, since we now support borders (this was
29017 a result of fixing borders and therefore bug #76166)
29018 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
29019 true (fixes bug #76354)
29021 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29024 - Defaulting BorderStyle and setting it in XplatUI when our window
29026 - Added enum check to InternalBorderStyle setter
29028 - Added drawing of window borders
29029 - Now properly calculates WM decorations offset for toplevel
29030 windows (fixes bug #74763)
29032 - Implemented BorderStyles for windows (we're letting win32 draw
29034 - Fixed the signature for SetWindowLong
29035 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
29036 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
29038 * UpDownBase.cs: Remove drawing of borders, this is handled by
29039 the driver, outside the client area
29040 * ListView.cs: Removed bogus border calculations. The control should
29041 be oblivious to borders, since those are not part of the client
29043 * X11DesktopColors.cs: Commented out (currently) unneeded variables
29044 * ThemeWin32Classic.cs: Removed border calculations from ListView
29047 2005-10-06 Jackson Harper <jackson@ximian.com>
29049 * MdiChildContext.cs: Clear out the old virtual position remove
29050 all the unneeded calls to CreateGraphics.
29052 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29054 * TextControl.cs: Use proper color for highlighted text; fixes #76350
29056 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29059 - Added loading and setting of our new default icon
29060 - Only set icon if window is already created
29062 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29065 - Do not explicitly set the foreground and background colors, to
29066 allow inheriting from parents (fixes #76302)
29067 - Use Control's InternalBorderStyle property to deal with borders
29069 2005-10-06 Jackson Harper <jackson@ximian.com>
29071 * MdiChildContext.cs: Use the new xplatui function to draw a
29074 2005-10-06 Jackson Harper <jackson@ximian.com>
29076 * Form.cs: Add the parent before creating the child context cause
29077 we need the parent when setting up the child.
29079 2005-10-06 Jackson Harper <jackson@ximian.com>
29081 * FolderBrowserDialog.cs: redo the tree population code so a
29082 second thread isn't used. Should be a lot faster and more stable
29085 2005-10-05 Jackson Harper <jackson@ximian.com>
29087 * TreeView.cs: There are no expand/collapse boxes if the node has
29090 2005-10-05 Jackson Harper <jackson@ximian.com>
29092 * X11DesktopColors.cs: Get menu colours for the gtk theme.
29094 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
29096 * FileDialog.cs: Fix InitialDirectory
29098 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
29101 - Fixes changing between styles
29102 - Fixes simple mode
29103 - Fixes last item crashing when navigating with keyboard
29105 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
29107 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
29109 2005-10-05 Jackson Harper <jackson@ximian.com>
29111 * TreeView.cs: If updating the root node do a full refresh.
29112 * TreeNode.cs: The root node should be expanded by default. Also
29113 added a utility prop to tell if we are the root node.
29114 * TreeNodeCollection.cs: Only refresh if the node we are being
29115 added to is expanded. Also added a comment on a potential
29118 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
29120 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
29121 in dispose method. Fixes #76330
29123 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
29125 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29127 - Implements vertical and horizontal scrolling using XplatUI
29128 - Fixes keyboard navagation
29129 - Fixes EnsureVisible
29131 - Handles and draws focus properly
29134 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
29136 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29137 Create handle. NET_2_0: Destroy handle when value is null.
29139 2005-10-03 Jackson Harper <jackson@ximian.com>
29141 * ScrollBar.cs: My last scrollbar patch was broken. This is a
29142 revert and a new patch to prevent the thumb from refreshing so
29145 2005-10-02 Jackson Harper <jackson@ximian.com>
29147 * ScrollBar.cs: Don't update position if it hasn't actually
29148 changed. This occurs when you hold down the increment/decrement
29149 buttons and the thumb gets to the max/min.
29151 2005-10-01 Jackson Harper <jackson@ximian.com>
29154 * MdiChildContext.cs:
29155 * MdiClient.cs: Implement ActiveMdiChild in Form.
29157 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
29159 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29161 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
29163 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29166 2005-09-30 Jackson Harper <jackson@ximian.com>
29168 * ListBox.cs: Don't do a full refresh unless some data has
29171 2005-09-30 Jackson Harper <jackson@ximian.com>
29173 * TreeView.cs: Make sure that the checkboxes size is factored in
29174 even when not visible.
29176 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29178 * FileDialog.cs: Fix Jordi's build break
29180 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29183 - Use standard the Windows colours for the combobox as espected
29184 - Dispose objects that use resouces when no longer need them
29186 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29188 * X11DesktopColors.cs: Initial incomplete implementation
29189 * XplatUIX11.cs: Added call to initialize X11DesktopColors
29191 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29194 - Switched Theme color names to match the names defined in
29195 System.Drawing.KnownColors. Life's hard enough, no need to make
29197 - Added setters to all theme color properties so themes can set
29198 their color schemes. The setters also propagate the color changes
29199 to System.Drawing.KnownColors via reflection
29200 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
29201 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
29202 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
29203 use the new, more logical theme color names
29204 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
29206 * ThemeWin32Classic.cs:
29207 - Removed code to set the old classic Windows colors. Instead it
29208 now relies on the colors returned by System.Drawing.KnownColors
29209 which will be either modern static colors (Unix) or colors
29210 read from the user's configuration (Win32)
29211 - Updated to use the new, more logical theme color names
29212 - Switched DataGrid drawing code to use only Theme colors instead of
29213 a mix of System.Drawing.KnownColors and Theme colors
29214 - DrawFrameControl(): Removed code that fills the button area, the
29215 fill would overwrite any previous fill done by a control. This
29217 - Added DrawReversibleRectangle() stub
29218 * ScrollableControl.cs: Set visible state to false when scrollbars
29219 are removed (pdn fix)
29220 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
29221 DrawReversibleRectangle() method to allow drawing primitive
29223 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
29225 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29227 * ImageList.cs: Add(Icon): Create handle.
29229 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29232 * ThemeWin32Classic.cs:
29233 - Fixes detail mode
29235 - Issues with drawing
29237 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29239 * ImageList.cs: Moved RecreateHandle back to ImageList as event
29240 source has to be the ImageList.
29242 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29244 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
29246 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29248 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
29250 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29252 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
29254 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
29255 * GridItem.cs: Fixed TODOs
29256 * GridItemCollection.cs: Added ICollection interface
29258 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29260 * ImageList.cs: Resize icons when needed.
29262 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
29265 - Fixes GetBounds and returns on screen rects
29267 - Fixes vertical and horzintal scrolling of items
29268 * ThemeWin32Classic.cs:
29271 2005-09-29 Raja R Harinath <harinath@gmail.com>
29273 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
29275 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
29277 * ImageList.cs: Added comments about handle creation. Moved Handle,
29278 HandleCreated and OnRecreateHandle implementations to ImageCollection.
29279 Handle is created in Add methods.
29281 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29283 * DataGridDrawingLogic.cs:
29284 - Takes rows into account on Colum calculations
29285 - Returns the column when clickig
29287 - Fixes default HitTestInfo values
29288 - Fixes HitTestInfo.ToString
29289 - Fixes ResetBackColor
29291 2005-09-28 Jackson Harper <jackson@ximian.com>
29293 * MdiChildContext.cs: Obey rules for fixed sized windows (no
29294 sizing or cursor changes). Also added some temp code to draw the
29295 titlebars text (Makes dev a little easier).
29297 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29299 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29301 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29303 * ListBox.cs: Fixes bug 76253
29305 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29307 * ImageList.cs: Added comments about the current implementation. Added
29308 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29309 Format32bppArgb to preserve transparency and can use Graphics.FromImage
29310 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29311 with Bitmap.LockBits for better performance. Revised the whole file to
29312 match MS.NET behaviour and provide better performance. Non-public
29313 interface members are calling public members even when they throw
29314 NotSupportedException for better maintainability. Moved ColorDepth,
29315 ImageSize, ImageStream and TransparentColor implementations to
29316 ImageCollection for better performance as these properties are not used
29318 * ImageListStreamer.cs: Added a new internal constructor that takes an
29319 ImageList.ImageCollection and serializes Images based on
29320 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29321 match ImageList property name.
29323 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
29325 * ListBox.cs: Fixes IndexFromPoint for last item
29327 2005-09-27 Jackson Harper <jackson@ximian.com>
29329 * Form.cs: Set the position of new mdi children correctly.
29331 2005-09-27 Jackson Harper <jackson@ximian.com>
29333 * MdiClient.cs: New mdi children need to be added to the back of
29334 the controls collection so the zorder is set correctly. Also add a
29335 count of all the child windows that have been created.
29337 2005-09-27 Jackson Harper <jackson@ximian.com>
29339 * Form.cs (CreateParams): Setup MDI forms correctly.
29341 2005-09-27 Jackson Harper <jackson@ximian.com>
29343 * MdiChildContext.cs:
29344 * MonthCalendar.cs:
29350 * ScrollableControl.cs:
29351 * ComboBox.cs: Add implicit controls using the new implict control
29352 functionality in ControlCollection. Also try to block multiple
29353 control add in a suspend/resume layout to save some cycles.
29355 2005-09-27 Jackson Harper <jackson@ximian.com>
29357 * Control.cs: Add functionality to the controls collection to add
29358 'implicit controls' these are controls that are created by the
29359 containing control but should not be exposed to the user. Such as
29360 scrollbars in the treeview.
29361 * Form.cs: The list var of the ControlsCollection is no longer
29362 available because of the potential of implicit controls getting
29363 ignored by someone accessing the list directly.
29365 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
29367 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29368 loose it's parent. (Fixed bug introduced in r49103 when we added
29369 setting the child parent to null on Remove)
29371 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
29373 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29374 * Splitter.cs: Added missing attributes for BorderStyle property.
29375 * TextBoxBase.cs: Marked Calculate* methods internal.
29376 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29379 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
29381 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29383 2005-09-25 Jackson Harper <jackson@ximian.com>
29385 * TreeView.cs: Update the node bounds correctly regardless of
29386 whether the node is visible.
29388 2005-09-25 Jackson Harper <jackson@ximian.com>
29390 * ImageList.cs: Don't dispose the image after it is added to the
29391 image list. Only reformat images that need to be resized.
29393 2005-09-25 Jackson Harper <jackson@ximian.com>
29395 * ImageList.cs: Don't set the format when changing the image.
29397 2005-09-25 Jackson Harper <jackson@ximian.com>
29399 * TreeView.cs: We can't just assume the node has a font. Use the
29400 treeviews font if no node font is available.
29402 2005-09-25 Jackson Harper <jackson@ximian.com>
29404 * TreeView.cs: Allow the scrollbars to be reset with negative
29406 - Don't add scrollbars to negative sized windows.
29408 2005-09-23 Jackson Harper <jackson@ximian.com>
29410 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29411 old Mono.Posix. Also remove some stray code that shouldn't have
29414 2005-09-23 Jackson Harper <jackson@ximian.com>
29416 * TreeView.cs: Attempt at proper sizing of the horizontal
29417 scrollbar. Also don't resize the scrollbars unless they are
29420 2005-09-23 Jackson Harper <jackson@ximian.com>
29422 * TreeView.cs: We don't need to expand the invalid area when the
29423 selection changes, as this is all drawn in the node's bounding
29424 box. The area needs to be expanded (previous typo was contracting
29425 it) when the focus rect moves.
29427 2005-09-23 Jackson Harper <jackson@ximian.com>
29429 * TreeView.cs: Display the selection box under the correct
29430 circumstances. We were rendering white text with no selection box
29433 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
29435 * TextControl.cs(Split): Now updates selection start/end if it points
29436 into a line that's being split. Fixes a FIXME and bug #75258
29438 2005-09-23 Jackson Harper <jackson@ximian.com>
29441 * ListControl.cs: Don't use the path when retrieving binding
29442 managers from the binding context. My bat sense tells me that the
29443 path is only used on insertion.
29445 2005-09-22 Jackson Harper <jackson@ximian.com>
29447 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29449 2005-09-22 Jackson Harper <jackson@ximian.com>
29451 * Splitter.cs: There are special cursors used for splitting.
29452 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29454 2005-09-22 Jackson Harper <jackson@ximian.com>
29456 * Splitter.cs: Change the cursor appropriately when the splitter
29457 is moused over, so the user actually knows there is a splitter
29460 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29462 * Label.cs : Fix ToString method to give same output as MS.NET
29464 2005-09-22 Jackson Harper <jackson@ximian.com>
29466 * TreeView.cs: Create the scrollbars when the handle is created
29467 and add them right away, just make them invisble. Also account for
29468 the window being shrunk vertically to the point that the vert
29469 scrollbar needs to be added.
29470 - Remove some 0.5 adjustments to get around anti aliasing issues.
29472 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
29474 * MainMenu.cs: Fixes default value
29475 * MenuItem.cs: Fixes default value
29477 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
29479 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29481 2005-09-21 Jackson Harper <jackson@ximian.com>
29483 * Control.cs: Don't try to set the border style on the window if
29484 it hasn't been created. When the window is created the border
29485 style will be used.
29487 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29489 * Control.cs (Update): Don't call XplatUI if we don't have a
29492 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29494 * ContainerControl.cs: Instead of throwing an exception, print
29495 a one-time warning about Validate not being implemented
29496 * XplatUIWin32.cs: Removed debug output
29498 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29500 * Control.cs: Only set XplatUI background if we expect the windowing
29501 system to handle the background. This stops controls that draw their
29502 own background from flickering
29504 * XplatUIX11.cs: Support custom visuals and colormaps for window
29505 creation. This allows, amongst other things, using MWF X11 windows
29508 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29510 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29511 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29512 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29513 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29514 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29515 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29516 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29517 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29518 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29519 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29520 GridColumnStylesCollection.cs,
29521 IDataGridColumnStyleEditingNotificationService.cs,
29522 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29523 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29524 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
29525 TreeNodeCollection.cs, AmbientProperties.cs,
29526 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29527 DataObject.cs, ErrorProvider.cs, Splitter.cs,
29528 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29529 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29530 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29531 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29532 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29533 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29534 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29535 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29536 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29537 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29538 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29539 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29540 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29541 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29542 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29543 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29544 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29545 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29546 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29547 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29548 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29549 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29550 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29551 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29552 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29553 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29554 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29555 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29556 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29557 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29558 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29559 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29560 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29561 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29562 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29564 2005-09-21 Jackson Harper <jackson@ximian.com>
29566 * TreeNode.cs: Call Before/After Expand not Collapse when
29569 2005-09-20 Jackson Harper <jackson@ximian.com>
29571 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29573 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29577 - Fixes proper storing of subitems
29578 - Fixes not updated items
29580 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29582 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29583 things if our window handle isn't created yet. Also disabled
29584 debug for TextBoxBase
29586 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29588 * MenuAPI.cs: Remove filtering of events to allow menu usage
29590 2005-09-20 Miguel de Icaza <miguel@novell.com>
29592 * Cursor.cs: Allow null to be passed to Cursor.Current.
29594 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
29596 * ThemeWin32Classic.cs:
29597 - Change some private methods/fields to protected virtual so that
29598 they can be accessed and overriden in derived classes
29599 - First refactoring of some methods. Derived themes now don't
29600 need to duplicate the complete code from ThemeWin32Classic
29602 - Added nice StatusBar
29603 - Derive from ThemeWin32Classic and not Theme
29604 - Removed duplicate ThemeWin32Classic code
29606 2005-09-20 Miguel de Icaza <miguel@novell.com>
29608 * Control.cs (ControlCollection.Add): If the value null is passed
29609 the control is ignored.
29611 Optimize this loop.
29613 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29615 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29616 PostQuitMessage state.
29617 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29619 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29621 * Application.cs: Our constructor will never get called, move
29622 initialization to fields; fixes bug #75933
29624 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29627 - Allow files to be selected properly using file name
29629 - Add ability to change diretory (absolute / relative)
29630 using file name combo box.
29632 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29635 - Fixes Multicolumn listboxes item wrong calculations
29636 - Allows to click when only one item is in the listbox
29637 - Fixes crash when no items using keyboard navigation
29639 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
29641 * ComboBox.cs: Reverted almost everything from the latest patch which
29644 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
29647 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29649 - When DropDownStyle is Simple, it does not show scrollbar
29650 to the last item of the list.
29651 - When DropDownStyle is Simple, it crashed when the list was
29652 scrolled down with the down cursor key.
29653 - Fixed a bug that when DropDownStyle is DropDownList, the
29654 selected item was not shown.
29655 - The position of the selected item was not preserved when
29656 the next dropdown happened.
29657 * ThemeWin32Classic.cs:
29658 - Items were wrapped at the right end.
29659 * CheckedListBox.cs:
29662 - Items should be fully shown.
29663 - When resizing and vertical scrollbar disappeared, the item
29664 of index 0 should be on the top of the list.
29665 - GetItemRectangle should consider the size of ver. scrollbar
29667 - SizingGrip area should not be allocated when it is not
29669 - Now it reflects MinWidth of the containing panel and
29670 fixed a crash that happens when its width becomes so small.
29672 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29674 * CheckedListBox.cs: Fixes bug 76028
29675 * ListBox.cs: Fixes bug 76028
29677 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29679 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29680 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29682 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
29684 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29686 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29688 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
29690 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29692 * IRootGridEntry.cs: Added
29693 * PropertyGridCommands.cs: Added
29694 * PropertiesTab.cs: Added missing methods and property
29695 * PropertyGridView.cs: Made class internal
29696 * PropertyGridTextBox.cs: Made class internal
29698 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29700 * MimeIcon.cs: Try to check some other environment variables
29701 if "DESKTOP_SESSION" returns "default"
29703 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29705 * ThemeNice.cs: Corrected background colors (e.g. menus)
29706 * ColorDialog.cs: Use correct background colors for controls
29708 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29710 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29712 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
29714 * RichTextBox.cs: Added initial implementation
29715 * lang.cs: Removed. Was accidentally checked in long time ago
29716 * TODO: Removed. Contents were obsolete
29718 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29720 * PropertiesTab.cs : Added
29722 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29724 * PropertyGrid.cs : Update
29725 * PropertyGridView.cs : Update
29726 * System.Windows.Forms.resx : Added images and strings
29728 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29730 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29732 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29734 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29735 a busy loop right after the Ungrab the X11 display is otherwise
29738 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
29740 * ThemeWin32Classic.cs: Optimise the use of clipping
29742 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
29744 * DataGrid.cs: fixes recursion bug
29746 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
29749 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29752 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
29754 * ThemeNice.cs: Draw nice ProgressBars
29756 2005-09-01 Miguel de Icaza <miguel@novell.com>
29758 * VScrollBar.cs: Another buglet found by Aaron's tool.
29760 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29763 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
29766 - Added nicer menu drawing
29770 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29772 * CreateParams.cs (ToString): Made output match MS
29773 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
29774 handle is already created (to avoid forcing window creation)
29775 * XplatUIX11.cs: Set window text to caption after creating window,
29776 in case Text was set before window was created
29777 * Form.cs: Use this.Text instead of a static string as caption
29779 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29781 * NotifyIcon.cs: Don't set the window to visible; this screws
29782 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29783 OnPaint without a bitmap)
29784 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
29785 happen very often anyway; we could add the check to the WM_PAINT
29786 event generation code
29788 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29790 * NotifyIcon.cs: Fill the icon area with a background color, to
29791 avoid 'residue' when transparent icons are drawn
29793 - Handle whole_window == client_window when destroying windows
29794 - SystrayAdd(): Set client_window to whole_window value to
29795 get mouse and other events passed to NotifyIcon
29797 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29799 * Form.cs: Set proper default for Opacity property
29801 - ShowSystray(): Don't bother creating telling the OS
29802 about the systray item if no icon is provided
29803 - Now handles WM_NCPAINT message to deal with whole/client window
29805 - Create window as visible to not get caught by Expose optimization
29806 * Hwnd.cs: Removed debug message
29807 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29808 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
29809 PaintEventStart/End to use new client argument
29811 - Commented out debug messages
29812 - Switched PaintEventStart/End to use new client argument
29813 * XplatUI.cs: Added client window bool to PaintEventStart()/
29814 PaintEventEnd() calls, to support drawing in non-client areas
29815 * XplatUIDriver.cs:
29816 - Added client window bool to PaintEventStart()/PaintEventEnd()
29817 calls, to support drawing in non-client areas
29818 - Added conditional compile to allow using MWF BeginInvoke
29821 - Added some conditional debug output
29822 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29823 whole/client window split
29824 - Implemented handling of client argument to PaintEventStart()/End()
29826 - Throw exception if BeginInvoke() is called and the window handle
29827 or one of the window's parent handles is not created
29828 - Added conditional compile to allow using MWF BeginInvoke on
29830 - get_Parent(): Only sets parent if handle is created. This avoids
29831 forcing window handle creation when parent is set.
29832 - Now fires Layout and Parent changed events in proper order
29833 - Switched to use Handle instead of window.Handle for Z-Order setting,
29834 the get_Parent() patch above causes us to possibly get null for 'window'
29835 - Implemented handling of client argument to PaintEventStart()/End()
29836 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
29838 - Now sends a Refresh() to all child windows when Refresh() is called
29840 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
29842 * Form.cs: Added (non-functional) Opacity property
29843 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
29845 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
29846 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
29847 use export MONO_THEME=nice to activate it.
29848 Currently supported controls:
29852 - TabControl (TabAlignment.Top only, other will follow)
29853 * ThemeEngine.cs: Add theme nice
29854 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
29857 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
29859 * Splitter.cs: Resize docked control and its neighbor.
29861 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29862 -- Making Windows with Menus layout correctly --
29863 * Form.cs : The first leg of the fix
29864 Menu setter - adjust Client Size as needed to make space for the menu
29865 SetClientSizeCore - doesn't call base version to be able to pass the
29866 menu handle to XplatUI.CalculateWindowRect
29867 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
29868 * XplatUIX11.cs: The critical second leg of the fix
29869 GetWindowPos needs to use a recalculated client_rect
29870 so that resizing the window doesn't break layout of child controls.
29871 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
29872 Lots of \t\n killed
29874 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
29876 * Label.cs: Now properly recalculates width and height on Font and Text
29877 changes if AutoSize is set
29879 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29880 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
29882 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
29884 * ImageList.cs: Makes ToString method compatible with MS
29886 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
29888 * MenuAPI.cs: fixes bug 75716
29890 2005-08-11 Umadevi S <sumadevi@novell.com>
29891 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
29893 2005-08-11 Umadevi S <sumadevi@novell.com>
29894 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
29896 2005-08-10 Umadevi S <sumadevi@novell.com>
29897 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
29899 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
29901 * Menu.cs: fixes bug 75700
29902 * MenuAPI.cs: fixes navigation issues
29904 2005-08-09 Umadevi S <sumadevi@novell.com>
29905 * CheckedListBox.cs - simple fix for GetItemChecked.
29907 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
29909 * ComboBox.cs: Serveral fixes
29910 * ListBox.cs: Serveral fixes
29912 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29914 * ComboBox.cs: Fixes FindString methods and GetItemHeight
29915 * ListBox.cs: Fixes FindString methods
29917 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29919 * DataGrid.cs: fixes bugs exposed by new tests
29921 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
29923 * Mime.cs: Compile Mono assembly references only if compiling
29924 with Mono (Allows to build with VS.Net again)
29926 2005-07-28 Marek Safar <marek.safar@seznam.cz>
29928 * Control.cs (PaintControlBackground): Draw background image
29930 (CheckForIllegalCrossThreadCalls): Stubbed.
29932 * Form.cs (OnCreateControl): Center when should be centered.
29934 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29936 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
29938 * Binding.cs: Binding to properties should be case unsensitive
29940 2005-07-18 vlindos@nucleusys.com
29942 * DataGrid.cs: fixes setmember order
29944 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
29946 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29947 * FileDialog.cs: FileDialog is now resizable and uses the new
29950 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
29952 * DataGridTextBoxColumn.cs: default value
29953 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29954 * GridTableStylesCollection.cs: fixes checking MappingName
29955 * DataGridDrawingLogic.cs: fixes drawing logic issues
29956 * DataSourceHelper.cs: rewritten to make compatible with more data sources
29957 * DataGrid.cs: fixes
29959 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
29961 * MimeGenerated.cs: Use case sensitive comparer for
29962 NameValueCollections
29964 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
29966 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
29967 * ThemeWin32Classic.cs: bug fixes, code refactoring
29968 * DataGridDrawingLogic.cs: bug fixes, code refactoring
29969 * DataGrid.cs: bug fixes, code refactoring
29970 * DataGridTextBox.cs: bug fixes, code refactoring
29971 * DataGridColumnStyle.cs: bug fixes, code refactoring
29972 * Theme.cs: bug fixes, code refactoring
29974 2005-07-01 Peter Bartok <pbartok@novell.com>
29976 * TextControl.cs: Quick fix for the reported crash on ColorDialog
29977 and other text box usage
29979 2005-07-01 Jackson Harper <jackson@ximian.com>
29981 * TabControl.cs: Make sure the bottom of the tab covers the pages
29984 2005-06-30 Peter Bartok <pbartok@novell.com>
29986 * Form.cs (ShowDialog): Assign owner of the dialog
29987 * TextBoxBase.cs: Always refresh caret size when deleting, caret
29988 might have been moved to a tag with different height
29990 2005-06-30 Jackson Harper <jackson@ximian.com>
29992 * Form.cs: Don't create an infinite loop when setting focus
29993 * MenuItem.cs: Don't dirty the parents if we don't have any
29995 2005-06-29 Ben Maurer <bmaurer@ximian.com>
29997 * LibSupport.cs: Rename
29999 2005-06-29 Peter Bartok <pbartok@novell.com>
30001 * TextBoxBase.cs: Re-align caret after deleting a character
30003 - DeleteChars(): Ensure that tag covers the provided position
30004 - StreamLine(): Drop reference for dropped tag
30006 2005-06-29 Peter Bartok <pbartok@novell.com>
30009 - Selections now work properly, anchoring at the initial location
30010 and properly extending in either direction (SetSelectionToCaret(),
30011 SetSelectionStart() and SetSelectionEnd())
30012 - No longer redraws the whole control on selection change, now
30013 calculates delta between previous and new selection and only
30014 invalidates/redraws that area
30015 - Fixed FindPos() math off-by-one errors
30016 - Changed DeleteChars() to verify the provided tag covers the
30017 provided position, selections may have a tag that doesn't cover
30018 the position if the selection is at a tag border
30019 - Fixed off-by-one errors in DeleteChars()
30020 - Added missing streamlining check in DeleteChars() to remove
30022 - Implemented Invalidate() method, now properly calculates exposures
30023 between two given lines/positions
30024 - Implemented SetSelection()
30025 - Obsoleted and removed FixupSelection()
30026 - Improved RecalculateDocument() logic, removing code duplication
30028 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30030 * LibSupport.cs: changes to match different input/output arguments.
30032 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30034 * LibSupport.cs: added libsupport.so init routine.
30036 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
30038 * ControlBindingsCollection.cs
30039 - Throws an exception on null datasource when adding
30040 - Checks for duplicated bindings when adding
30042 2005-06-28 Jackson Harper <jackson@ximian.com>
30044 * TreeView.cs (OnKeyDown): Support left and right properly
30045 (navigates as well as expanding and collapsing.
30046 - Add support for Multiply, this expands all the selected nodes
30048 - Fix some tabbing.
30050 2005-06-28 Jackson Harper <jackson@ximian.com>
30052 * TreeView.cs: Implement keyboard navigation, currently supports,
30053 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
30054 support for toggling checkboxes with the space bar.
30056 2005-06-28 Jackson Harper <jackson@ximian.com>
30058 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
30061 2005-06-28 Jackson Harper <jackson@ximian.com>
30063 * TreeView.cs: Add missing event.
30065 2005-06-27 Peter Bartok <pbartok@novell.com>
30068 - Made line ending size configurable (now allows for counting
30069 lineendings as \n or \r\n)
30070 - Added margin to viewport to keep caret visible on right side
30071 - Fixed translation routines for line/pos to documentpos to consider
30072 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
30073 - Fixed some line-endings to be unix style
30074 - Fixed Document.FormatText to perform it's calculations 1-based
30075 - Added descriptions for a few methods that might otherwise get
30077 - Added NOTE section with some basic conventions to remember at
30078 the top of the file
30079 - Major fixup for RichTextBox selection drawing:
30080 * Fixed crashes when multiple tags on a single line were selected
30081 * fixed selection box drawing not overlaying text
30082 * fixed bogus offset calculation for tags not starting at index 1
30083 * Switched behaviour from using multiple Substrings of a
30084 StringBuilder.ToString() to using multiple
30085 StringBuilder.ToString(start, length) statements, hoping this is
30086 faster (kept original version commented out in the code, in case
30087 original version was faster)
30088 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
30090 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
30093 2005-06-27 Jackson Harper <jackson@ximian.com>
30095 * TabControl.cs: Move to the left and right with the arrow
30096 keys. These keys don't cycle beyond first and last like
30097 tab. Refresh all the tabs when scrolling them to the left or
30100 2005-06-27 Jackson Harper <jackson@ximian.com>
30103 - ToString: Added method
30104 - CreateParams: Remove TODO and comment
30105 - OnKeyDown: Cycle through bounds properly.
30106 - SelectedIndex: Scroll to the right or left if we need to
30107 display the newly selected tab.
30109 2005-06-23 Jackson Harper <jackson@ximian.com>
30111 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
30114 2005-06-23 Jackson Harper <jackson@ximian.com>
30116 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
30117 CTRL-SHIFT-TAB, and HOME, END are there any others?
30119 2005-06-23 Jackson Harper <jackson@ximian.com>
30121 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
30123 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30125 * DataGridTextBoxColumn.cs: fixes and enhancements
30126 * ThemeWin32Classic.cs: fixes and enhancements
30127 * DataGridBoolColumn.cs: fixes and enhancements
30128 * DataGridDrawingLogic.cs: fixes and enhancements
30129 * CurrencyManager.cs: fixes and enhancements
30130 * DataGrid.cs: fixes and enhancements
30131 * DataGridColumnStyle.cs: fixes and enhancements
30133 2005-06-22 Jackson Harper <jackson@ximian.com>
30135 * TabControl.cs: Add some missing methods that just call into the
30136 base. Make the TabPageCollection's IList interface behave in the
30137 same manner as the MS implementation.
30139 2005-06-22 Peter Bartok <pbartok@novell.com>
30141 * TextControl.cs: Added sanity check
30143 - Fixed wrapping behaviour, don't set wrap on single line controls
30144 (this fixes the breakage of colordialog introduced in an earlier
30146 - Added rudimentary support for autoscrolling right-aligned controls
30147 (still needs fixing, also, center alignment scroll is missing)
30149 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30151 * ScrollBar.cs: Fixes thumbpos on Maximum values
30153 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
30155 * PropertyGridView.cs: Pass context information to UITypeEditors
30157 2005-06-21 Peter Bartok <pbartok@novell.com>
30160 - Now calling PositionCaret with absolute space coordinates
30161 - Enabled vertical scrolling
30162 - Better tracking of scrollbar changes, tied into WidthChange
30164 - Improved cursor tracking
30165 - Removed debug output
30167 - PositionCaret coordinates are now works in absolute space, not
30169 - Improved tracking of document size
30170 - Added events for width and height changes
30172 2005-06-21 Peter Bartok <pbartok@novell.com>
30174 * Form.cs: Set focus to active control when form is activated
30176 - Added word-wrap functionality to RecalculateLine()
30177 - Added some short function descriptions for VS.Net to aid in
30178 writing dependent controls
30179 - Added Caret property, returning the current coords of the caret
30180 - Added ViewPortWidth and ViewPortHeight properties
30181 - Added Wrap property
30182 - Added CaretMoved event
30183 - Removed some old debug code
30184 - Split() can now create soft splits
30185 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30186 - Added method to format existing text
30187 - Fixed size/alignment calculations to use viewport
30188 - RecalculateDocument now can handle changing line-numbers while
30192 - Added some wrap logic, we don't wrap if alignment is not left
30193 - Added casts for scrollbar var, base class switched types to
30194 also support RichTextBoxA
30195 - Implemented handling of scrollbar visibility flags
30198 - Switched scrollbars type to RichTextBoxScrollBars to support
30200 - Added tracking of canvas width/height
30201 - Switched scrollbars to be not selectable (to keep focus on text)
30202 - Added central CalculateDocument() method to handle all redraw
30204 - Added ReadOnly support
30205 - Added WordWrap support
30206 - Fixed handling of Enter key (we now treat it as a DialogKey)
30207 - Fixed caret positioning when h or v scroll is not zero
30208 - Fixed placing/generation of vertical scrollbar
30209 - Added CalculateScrollBars() method to allow updating scrollbar
30210 limits and visibility
30211 - Fixed handling of horizontal scroll
30212 - Added handling of vertical scroll
30213 - Implemented auto-'jump' when caret moves to close to a left or
30214 right border and there is text to be scrolled into view (currently
30215 there's the potential for a stack overflow, until a bug in
30216 scrollbar is fixed)
30218 2005-06-21 Geoff Norton <gnorton@customerdna.com>
30220 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
30222 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
30226 - return application/x-zerosize for files with size zero
30227 (if no extension pattern matches).
30228 - check matches collection for strings too.
30229 - return only the first mime type if the name value
30230 collection has more than one mime type.
30232 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
30234 * PropertyGrid.cs: Cleaned up some TODOs
30235 * PropertyGridView.cs: Added support for UITypeEditors
30237 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
30239 * DataGrid.cs: clears cached value
30241 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
30243 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
30244 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
30245 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
30246 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
30248 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
30250 * ThemeWin32Classic.cs: fixes colour
30252 2005-06-15 Peter Bartok <pbartok@novell.com>
30254 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
30255 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
30256 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
30257 * Control.cs: Added some MWFCategory and MWFDescription attributes
30258 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
30260 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
30262 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
30265 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
30267 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
30268 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
30269 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
30270 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
30271 * DataGrid.cs: default datagrid settings for Default Styles, fixes
30272 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
30274 2005-06-13 Jackson Harper <jackson@ximian.com>
30276 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
30277 isn't printed when the user enables dropping. (X11 does accept
30280 2005-06-13 Jackson Harper <jackson@ximian.com>
30282 * TreeView.cs: Remove some TODOS.
30284 2005-06-13 Jackson Harper <jackson@ximian.com>
30286 * Form.cs: Hook into the mdi framework.
30287 * MdiClient.cs: Use the base control collections add method so
30288 parents get setup correctly. Set the default back colour and dock
30290 * MdiChildContext.cs: New class, this bad actor handles an
30291 instance of an MDI window. Right now there is only basic
30292 support. You can drag, close, and resize windows. Minimize and
30293 Maximize are partially implemented.
30295 2005-06-13 Jackson Harper <jackson@ximian.com>
30297 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30298 freaky when both vals are negative. NOTE: There are probably other
30299 places in XplatUIX11 that this needs to be done.
30301 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
30303 * DataGrid.cs: implement missing methods, move KeyboardNavigation
30304 * DataGridColumnStyle.cs: fixes signature
30306 2005-06-12 Jackson Harper <jackson@ximian.com>
30308 * XplatUIX11.cs: Use sizing cursors similar to the ones on
30311 2005-06-11 Jackson Harper <jackson@ximian.com>
30313 * StatusBarPanel.cs: Signature cleanups. Implement
30316 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
30318 * DataGridTextBoxColumn.cs: Honors aligment
30319 * GridColumnStylesCollection.cs: Contains is case unsensitive
30320 * GridTableStylesCollection.cs: several fixes
30321 * DataGridTableStyle.cs: default column creation
30322 * DataGridDrawingLogic.cs: fixes
30323 * CurrencyManager.cs: ListName property
30324 * DataGrid.cs: multiple styles support
30325 * DataGridColumnStyle.cs: fixes
30328 2005-06-10 Peter Bartok <pbartok@novell.com>
30330 * Control.cs(Select): Moved SetFocus call to avoid potential
30331 loops if controls change the active control when getting focus
30332 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30333 the up/down buttons
30335 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
30337 * ImageListConverter.cs: Implemented
30339 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30341 * MonthCalendar.cs: Wired in NumericUpDown control for year
30343 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30345 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30346 DoubleClick events, since they are not meant to be fired.
30348 2005-06-09 Peter Bartok <pbartok@novell.com>
30350 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30351 Jonathan's standalone controls into MWF, implemented missing
30352 events, attributes and methods; added xxxAccessible classes
30353 * AccessibleObject.cs: Made fields internal so other classes
30354 can change them if needed
30356 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
30358 * UpDownBase.cs: Complete implementation
30359 * NumericUpDown.cs: Complete implementation
30360 * DomainUpDown.cs: Complete implementation
30362 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
30364 * DataGridTextBoxColumn.cs: drawing fixes
30365 * DataGridCell.cs: fixes ToString method to match MSNet
30366 * DataGridTableStyle.cs: fixes
30367 * DataGridBoolColumn.cs: fixes, drawing
30368 * DataGridDrawingLogic.cs: fixes, new methods
30369 * DataGridTextBox.cs: Keyboard and fixes
30371 - Keyboard navigation
30373 - Row selection (single, multiple, deletion, etc)
30376 2005-06-07 Jackson Harper <jackson@ximian.com>
30378 * ThemeWin32Classic.cs: Clear the background area when drawing
30381 2005-06-06 Peter Bartok <pbartok@novell.com>
30383 * ImageListStreamer.cs: Fixed signature for GetData
30384 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30386 - Added missing ChildAccessibleObject class
30387 - Added missing OnXXXFocus overrides, switched to using those
30388 instead of the event handler
30390 - Added Parent property for ControlAccessibleObject
30393 - Added ResetBindings()
30394 * ListBindingConverter.cs: Implemented some methods
30395 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30396 * ImageList.cs: Implemented basic handle scheme, removed TODOs
30397 * ContainerControl.cs: Fixed signature, now subscribing to the
30398 ControlRemoved event instead of overriding the handler, LAMESPEC
30399 * CurrencyManager.cs: Added missing attribute
30400 * MonthCalendar.cs: Added missing properties
30402 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30404 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30406 2005-06-06 Gaurav Vaish and Ankit Jain
30408 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30409 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30411 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30413 * Control.cs: fixes CreateParams Width / Height.
30415 2005-06-05 Peter Bartok <pbartok@novell.com>
30417 * Win32DnD.cs: Removed compilation warnings
30419 2005-06-05 Peter Bartok <pbartok@novell.com>
30421 * Control.cs (CreateParams): Since we don't know if one of the
30422 properties we use is overridden, lets make sure if we fail accessing
30423 we continue with a backup plan
30425 2005-06-05 Peter Bartok <pbartok@novell.com>
30428 - Removed debug output
30429 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30431 - Plugged resource leak
30432 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30435 2005-06-05 Peter Bartok <pbartok@novell.com>
30437 * XplatUIWin32.cs: Removed DnD code
30438 * Win32DnD.cs: Implemented drop source and drop target functionality
30440 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30442 * UpDownBase.cs: remove duplicate addition of event, enable some code
30443 that was commented out.
30444 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30445 Validate input when a key is pressed. It works fine now for every
30446 combination of Hexadecimal. Only missing some drawing love when sharing
30447 space with other controls.
30449 2005-06-04 Peter Bartok <pbartok@novell.com>
30452 - We need to pass a window for DragDrop, so enable callback events
30453 - Added DnD callback events when being a DragSource
30454 * XplatUI.cs (StartDrag): Added window handle argument
30455 * XplatUIDriver.cs (StartDrag): Added window handle argument
30456 * QueryContinueDragEventArgs: Made fields internally accessible so
30457 drivers can set them
30458 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30461 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
30463 * DataGridTextBoxColumn.cs: column text editing
30464 * DataGridTableStyle.cs: Respect columns styles created by the user
30465 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30466 * DataGridBoolColumn.cs: bool column editing
30467 * DataGrid.cs: fixes to scrolling, properties, etc
30468 * DataGridTextBox.cs: handle keyboard
30469 * DataGridColumnStyle.cs: fixes
30471 2005-06-02 Jackson Harper <jackson@ximian.com>
30473 * ImageListStreamer.cs: Somewhat broken implementation of
30474 GetObjectData. The RLE needs some work to match MS properly.
30476 2005-06-02 Jackson Harper <jackson@ximian.com>
30478 * X11Dnd.cs: Attempting to keep at least one file in MWF
30481 2005-06-02 Peter Bartok <pbartok@novell.com>
30483 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30486 2005-06-02 Peter Bartok <pbartok@novell.com>
30488 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30489 * XplatUI.cs: Added DoDragDrop() method
30490 * XplatUIDriver.cs: Added DoDragDrop() method
30492 2005-06-02 Jackson Harper <jackson@ximian.com>
30494 * Splitter.cs: Implement BorderStyle.
30496 2005-06-02 Jackson Harper <jackson@ximian.com>
30498 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30499 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30502 2005-06-02 Peter Bartok <pbartok@novell.com>
30505 - Added Data setter
30506 - Fixed broken insertion code for SetData, now also
30507 overwrites any existing entry of the same format name
30508 * Hwnd.cs: Added list of pointers that automatically gets
30509 freed when the window is disposed
30510 * XplatUI.cs: Call driver initialization method when loading
30513 - OnDragLeave takes EventArgs, not DragEventArgs
30514 - Added setting of WS_EX_ACCEPTFILES style when dropping is
30516 - Forces style update when drop state changes
30517 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30518 not perfect since we cannot (yet) call the IDataObject.GetData()
30519 method, we keep getting 0x80004005 error, dunno why)
30521 2005-06-02 Peter Bartok <pbartok@novell.com>
30523 * DragEventArgs.cs: Make fields internal so we can cache the
30524 object and re-set the fields from XplatUI
30526 2005-06-02 Jackson Harper <jackson@ximian.com>
30528 * Control.cs: Add some internal methods so the DnD subsystem can
30529 raise DnD events. Also call into the driver when AllowDrop is set.
30531 * XplatUIDriver.cs: New method for setting whether or not a window
30532 is allowed to accept drag and drop messages.
30534 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
30536 * ScrollBar.cs: Make sure that values sent in Scroll events
30537 are always between Maximum and Minimum.
30539 2005-06-01 Marek Safar <marek.safar@seznam.cz>
30541 * Menu.cs: Call MenuChanged when menuitem visibility has been
30543 * MenuItem.cs: Rebuild menu when item is (not) visible.
30544 * MainMenu.cs: MainMenu has special MenuChanged.
30545 * Theme.cs: Caption and FrameBorderSize are not fixed.
30546 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30547 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30549 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30550 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30552 2005-05-30 Jackson Harper <jackson@ximian.com>
30554 * DataFormat.cs: We can't statically initialize this stuff because
30555 it calls into the xplatui and could create a loop. So we lazy init
30558 2005-05-28 Jackson Harper <jackson@ximian.com>
30560 * Control.cs: Proper implementation of Product(Name/Version).
30562 2005-05-27 Jackson Harper <jackson@ximian.com>
30564 * DataObject.cs: Dont crash if no data is found.
30566 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30567 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30568 as per status page, guessing it should be set to true
30570 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
30572 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30573 * DataGridTableStyle.cs: set proper formatting text, def header text
30574 * ThemeWin32Classic.cs: new themable paramaters
30575 * DataGridBoolColumn.cs: paint check box, get data, fixes
30576 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30577 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30578 * DataGridColumnStyle.cs: fixes
30579 * Theme.cs: new themable paramaters
30581 2005-05-26 Peter Bartok <pbartok@novell.com>
30583 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30585 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30586 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30588 2005-05-24 Peter Bartok <pbartok@novell.com>
30590 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30591 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30592 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30593 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30594 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30595 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30596 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30597 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30598 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30599 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30600 missing attributes, etc
30601 * DataGridPreferredColumnWidthTypeConverter.cs: Added
30603 2005-05-24 Peter Bartok <pbartok@novell.com>
30605 * Help.cs: Added, implemented trivial functions, throws up MessageBox
30606 when user tries to get help
30607 * DataObject.cs, DataFormats.cs, LinkArea.cs,
30608 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30609 to suppress warnings
30610 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30611 avoid unreachable code warning
30613 2005-05-20 Peter Bartok <pbartok@novell.com>
30615 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30617 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30619 * DataGridTextBoxColumn.cs: Basic painting methods
30620 * DataGridTableStyle.cs: Set table style in the column
30621 * ThemeWin32Classic.cs: Use Theme for colors
30622 * DataGridDrawingLogic.cs: Implement more drawing
30623 * DataGrid.cs: drawing, theming, enhacements, fixes
30624 * DataGridColumnStyle.cs: fixes, drawing
30625 * Theme.cs: theming for Datagrid
30627 2005-05-20 Peter Bartok <pbartok@novell.com>
30629 * Cursor.cs: Implemented GetObjectData() method
30631 2005-05-20 Peter Bartok <pbartok@novell.com>
30633 * Cursors.cs: Added setting of cursor name
30635 - Implemented constructors
30636 - Implemented Draw and DrawStretched
30637 - Implemented Current property
30638 - Implemented == and != operators
30639 - Implemented Dispose()
30640 - Implemented ToString
30641 - Added missing attributes
30643 - Added missing reset for OverrideCursor when DoEvents is called
30644 - Fixed creation of cursor, logic was wrong
30646 - Added missing reset for OverrideCursor when DoEvents is called
30647 - Fixed creation of cursor, bit arrays were swapped
30648 * Clipboard.cs: Removed obsolete MonoTODO attribute
30650 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30652 * ComboBox.cs: fixes OnSelectedItemChanged
30653 * ControlBindingsCollection.cs: fixes item range check
30655 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30658 - Calc preferred height properly
30659 - Implement missing properties
30661 * NumericUpDown.cs: Implement missing events
30663 2005-05-19 Jackson Harper <jackson@ximian.com>
30665 * TabControl.cs: New method that resizes the tab pages before
30666 redrawing them. This as needed as the control is double buffered
30667 and sizing will not be recalculated unless ResizeTabPages is
30669 * TabPage.cs: Set base.Text instead of Text in the constructor so
30670 that UpdateOwner does not get called. Use the new Redraw method of
30671 TabControl instead of Refresh so the sizing is recalculated.
30672 * ThemeWin32Classic.cs: Draw the text for button tabs.
30674 2005-05-19 Jackson Harper <jackson@ximian.com>
30676 * Control.cs: Paint control background images. Fix typo where
30677 PaintControlBackground was not getting called correctly.
30679 2005-05-19 Peter Bartok <pbartok@novell.com>
30681 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30682 I can investigate, apparently I broke FileDialog
30684 2005-05-19 Marek Safar <marek.safar@seznam.cz>
30686 * AxHost.cs: Some simple properties.
30687 * Control.cs: window must be accessible after ctor.
30688 * Form.cs: Added TransparencyKey property.
30689 * TextBoxBase.cs: Implemented Clear. Text property can be null.
30690 * XplatUIWin32.cs: SetBorderStyle implemented.
30692 2005-05-18 Peter Bartok <pbartok@novell.com>
30694 * DataObject.cs: Entries are not global but particular to the
30695 DataObject, now it behaves that way
30696 * XplatUIWin32.cs: Implemented Clipboard methods
30697 * Clipboard.cs: Implemented
30698 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30699 * XplatUIOSX.cs: Updated to final clipboard prototypes
30700 * XplatUIX11.cs: Implemented Clipboard methods
30701 * XplatUIDriver.cs: Updated to final clipboard prototypes
30702 * XplatUIStructs.cs:
30703 - Added BITMAPINFOHEADER struct
30704 - Added ClipboardFormats enum
30706 - Added ClipboardStruct
30707 - Added Atom enum items for clipboard types
30708 - Fixed atom types for Selection event structures
30710 - Added internal properties and methods for drivers to enumerate
30712 - Switched initialization method to allow drivers to assign their
30713 own IDs even for the MS predefined clipboard IDs
30714 * XplatUI.cs: Updated to final clipboard interface
30716 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30717 * PropertyGridView.cs: Fixed compiler warnings.
30719 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30720 * PropertyGrid.cs: Added some event calls
30721 * PropertyGridView.cs: Change drawing code to use double buffering
30722 * PropertyGridTextBox.cs: Changed Text property name
30723 * GridItem.cs: Added Bounds property.
30724 * GridEntry.cs: Added Bounds property.
30726 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
30728 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30729 since GetType() may not return the correct type if the object is
30732 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
30734 * TreeNodeCollection.cs: fixes get/set item ranges
30736 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30738 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30740 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30742 * ComboBox.cs: Fix item range comparation
30743 * ListView.cs: Fix item range comparation
30745 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30748 - Clear example panel when OnPaint is called
30749 - Better solution for displaying the example panel text
30750 - Select default indexes in the ListBoxes
30752 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30754 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
30756 2005-05-11 Peter Bartok <pbartok@novell.com>
30758 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30759 * SelectionRangeConverter.cs: Implemented
30760 * PropertyGrid.cs: Fixed attribute value
30762 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30763 - Added Sebastien Pouliot's CAS Stack Propagation fixes
30764 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30765 that's common to all drivers. First methods to go there are
30766 Sebastien Pouliot's CAS Stack Propagation helper methods
30767 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30768 Sebastien Pouliot for CAS Stack Propagation
30770 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30773 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30775 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
30777 * DataGridTextBoxColumn.cs: fixed some members
30778 * GridColumnStylesCollection.cs: indexed column is case insensitive
30779 * DataGridTableStyle.cs: fixes
30780 * ThemeWin32Classic.cs: add new theme parameter
30781 * Theme.cs: add new theme parameter
30782 * DataGridDrawingLogic.cs: Datagrid's drawing logic
30783 * DataGrid.cs: fixes, new internal properties, etc.
30784 * DataGridColumnStyle.cs: allows to set grid value
30787 2005-05-10 Peter Bartok <pbartok@novell.com>
30789 * AccessibleObject.cs:
30790 - Removed MonoTODO attribute on help, method is correct
30791 - Fixed Bounds property
30792 * AxHost.cs: Moved MonoTODO
30793 * ButtonBase.cs: Now setting AccessibleObject properties
30794 * RadioButton.cs: Setting proper AccessibleObject role
30795 * CheckBox.cs: Setting proper AccessibleObject role
30796 * ControlBindingsCollection.cs: Added properties, methods and attributes
30797 * DataFormats.cs: Fixed awkward internal API, and changed to enable
30798 userdefined DataFormats.Format items as well
30799 * ListControl.cs: Removed data_member from the public eye
30800 * OpenFileDialog.cs:
30801 - Made class sealed
30802 - Added missing attributes
30803 * SaveFileDialog.cs: Added missing attributes
30804 * ImageListStreamer.cs: Fixed code that caused warnings
30805 * LinkLabel.cs: Removed unreachable code
30806 * TreeView.cs: Fixed code that caused warnings
30807 * PropertyGridView.cs: Fixed code that caused warnings
30808 * GridColumnStylesCollection.cs: Added missing attributes
30809 * GridTableStylesCollection: Added missing attribute
30810 * PropertyManager: Added .ctor
30811 * SecurityIDType: Added
30812 * DataObject.cs: Implemented class
30813 * LinkArea.cs: Added missing attribute
30815 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
30817 * RadioButton.cs: call base method to allow to fire OnClick event
30818 * UpDownBase.cs: OnMouseUp call base method
30819 * CheckedListBox.cs: call base method before returning
30820 * TrackBar.cs: call base method before returning
30823 2005-05-10 Peter Bartok <pbartok@novell.com>
30825 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30828 2005-05-10 Peter Bartok <pbartok@novell.com>
30830 * DataFormats.cs: Implemented
30831 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30832 XplatUIX11.cs: Added Clipboard APIs
30833 * XplatUIWin32.cs: Implemented Clipboard APIs
30834 * FolderBrowserDialog.cs: Added missing event, attributes
30836 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
30838 * CheckBox.cs: call base method to allow to fire OnClick event
30840 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
30842 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
30844 2005-05-06 Peter Bartok <pbartok@novell.com>
30846 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
30847 * Screen.cs: Implemented
30848 * HelpNavigator.cs: Added
30849 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
30851 * HelpProvider.cs: Implemented all we can do until we have a CHM
30852 help library (which means that "What's This" does work now)
30854 2005-05-06 Jackson Harper <jackson@ximian.com>
30856 * XplatUIX11.cs: Fix waking up the main loop.
30858 2005-05-05 Peter Bartok <pbartok@novell.com>
30860 * XplatUI.cs: Updated revision
30861 * Form.cs: Removed enless loop
30862 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
30863 * Label.cs (OnPaint): Added call to base.OnPaint()
30864 * ToolTip.cs: Made ToolTipWindow reusable for other controls
30865 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
30866 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
30868 * ButtonBase.cs: Moved base.OnPaint() call to end of method
30869 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
30870 to ToolTip.ToolTipWindow for drawing and size methods; this allows
30871 reuse of ToolTipWindow by other controls
30872 * SizeGrip.cs: Moved base.OnPaint() call to end of method
30873 * XplatUIX11.cs: Now clipping drawing area (experimental)
30874 * PictureBox.cs: Moved base.OnPaint() call to end of method
30875 * Theme.cs: Fixed ToolTip abstracts to match new format
30876 * ErrorProvider.cs: Implemented
30878 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
30880 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
30884 - Implements LinkBehavior
30885 - Fixes many issues
30887 2005-05-03 Jackson Harper <jackson@ximian.com>
30889 * ListView.cs: Calculate the scrollbar positioning on resize and
30890 paint, so they get put in the correct place.
30892 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30894 * ColorDialogs.cs: The small color panels are now handled by
30895 SmallColorControl. This fixes drawing of the focus rectangle
30896 and adds a 3D border.
30898 2005-05-03 Peter Bartok <pbartok@novell.com>
30900 * Control.cs: Modified version of Jonathan Chamber's fix for
30903 2005-05-03 Jackson Harper <jackson@ximian.com>
30905 * ListView.cs: Remove redraw variable. Control now handles whether
30906 or not a redraw needs to be done, and will only raise the paint
30907 event if redrawing is needed.
30909 2005-05-03 Jackson Harper <jackson@ximian.com>
30911 * Splitter.cs: No decorations for the splitter form. Cache the
30914 2005-05-03 Jackson Harper <jackson@ximian.com>
30916 * TreeView.cs: Use dashed lines to connect nodes. Use the
30917 ControlPaint method for drawing the focus rect instead of doing
30920 2005-05-02 Peter Bartok <pbartok@novell.com>
30922 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
30924 2005-04-29 Jackson Harper <jackson@ximian.com>
30926 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30927 entire image buffer. Just clear the clipping rectangle.
30929 2005-04-29 Jackson Harper <jackson@ximian.com>
30931 * ThemeWin32Classic.cs: Don't draw list view items that are
30932 outside the clipping rectangle.
30934 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
30936 * ListBox.cs: added horizontal item scroll
30938 2005-04-29 Jackson Harper <jackson@ximian.com>
30940 * ThemeWin32Classic.cs: Remove some old debug code that was
30941 causing flicker with the new double buffering code.
30943 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
30945 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30946 behave like combobox and comboboxlist (still not sure if this is
30949 2005-04-28 Jackson Harper <jackson@ximian.com>
30951 * ThemeWin32Classic.cs: Don't fill the middle of progress
30952 bars. This fills areas outside of the clip bounds that don't need
30955 2005-04-28 Jackson Harper <jackson@ximian.com>
30957 * Control.cs: Don't expose functionality to touch the image buffers.
30959 * ListView.cs: We do not need to (and no longer can) manipulate
30960 the image buffers directly. All of this is handled by Control.
30962 2005-04-28 Peter Bartok <pbartok@novell.com>
30964 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30965 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30966 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30968 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30971 - Adjust control's height for non-simple comboboxes (bug fix)
30973 * MenuAPI.cs: remove unused var
30974 * ScrollBar.cs: remove unsed var
30976 * ListBox.cs: unselect items when clearing
30978 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30980 * ListControl.cs: honors OnPositionChanged and default Selected Item
30981 * ListBox.cs: unselect items when clearing
30983 2005-04-27 Jackson Harper <jackson@ximian.com>
30985 * X11Keyboard.cs: Initialize a default keyboard and give a warning
30986 if a "correct" keyboard is not found. This will make us not crash,
30987 but might give some users bad keyboard layouts...seems to be the
30988 same thing rewind does.
30990 2005-04-27 Jackson Harper <jackson@ximian.com>
30992 * BindingManagerBase.cs: Attach the current/position changed
30993 handlers to their respective events.
30995 2005-04-27 Jackson Harper <jackson@ximian.com>
30997 * Control.cs: Make sure that the first WM_PAINT does a full draw,
30999 * ThemeWin32Classic.cs: Don't fill the background for picture
31000 boxes. This could overright user drawing.
31001 * ComboBox.cs: Just fill the clipping rect not the entire client
31002 rect when drawing the background. This prevents pieces of the
31003 image buffer from getting overwritten and is theoretically faster.
31005 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
31007 * ComboBox.cs: Databinding support fixes, fire missing events
31008 * ListControl.cs: implement missing methods and properties, fixes
31009 * ThemeWin32Classic.cs: Databiding support on Drawing
31010 * CheckedListBox.cs: Databinding support fixes, fire missing events
31011 * ListBox.cs: Databinding support fixes, fire missing events
31013 2005-04-25 Peter Bartok <pbartok@novell.com>
31015 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
31017 2005-04-25 Jackson Harper <jackson@ximian.com>
31019 * TreeView.cs: Use the horizontal scrollbars height not width when
31020 determining how much of the client area is available.
31022 2005-04-25 Jackson Harper <jackson@ximian.com>
31024 * Control.cs: Double buffering is handled differently now. As per
31025 the spec, the extra buffer is created in the WM_PAINT message and
31026 passed down to the control's drawing code.
31034 * PropertyGridView.cs:
31046 * DateTimePicker.cs:
31048 * TreeView.cs: Update to new double buffering system.
31049 * MonthCalendar.cs: Uncomment block, as Capture is now
31050 working. Update to new double buffering
31051 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
31052 * PaintEventArgs.cs: New internal method allows us to set the
31053 graphics object. This is used for double buffering.
31054 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
31055 rectangle. The internal paint_area var has been removed from
31056 StatusBar. The clipping rect should be used instead.
31057 * Theme.cs: Give the PictureBox drawing method a clipping rect.
31058 * TabPage.cs: The RefreshTabs method was removed, so just call the
31059 tab controls Refresh method now.
31060 * TabControl.cs: Update to new double buffering. Make sure the
31061 handle is created before sizing the tab pages, otherwise we will
31062 get stuck in a loop.
31064 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
31066 * LinkLabel.cs: Fix typo, bug #74719; patch
31067 from Borja Sanchez Zamorano
31069 2005-04-22 Jackson Harper <jackson@ximian.com>
31071 * TreeNode.cs: Implement Handle stuff.
31072 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
31074 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
31076 * DataGridTextBoxColumn.cs: call base constructors, fixes
31077 * GridColumnStylesCollection.cs: missing events, methods, and functionality
31078 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
31079 * DataGridTableStyle.cs: implements create default column styles
31080 * DataGridBoolColumn.cs: which types can handle
31081 * DataGrid.cs: missing methods, fixes, new functionality
31082 * DataGridColumnStyle.cs: fixes
31084 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
31085 * FolderBrowserDialog.cs:
31086 - Use a thread to fill the TreeView
31087 - Adjusted some sizes
31089 2005-04-19 Peter Bartok <pbartok@novell.com>
31091 * LinkLabel.cs: (Re-)create the pieces when setting the Text
31092 property. Fixes #74360.
31094 2005-04-19 Jackson Harper <jackson@ximian.com>
31096 * XEventQueue.cs: Lock when getting the lockqueue size.
31097 * PictureBox.cs: Call base OnPaint
31099 2005-04-19 Peter Bartok <pbartok@novell.com>
31101 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
31102 messages were no longer being processed (this broke BeginInvoke)
31105 2005-04-18 Jackson Harper <jackson@ximian.com>
31107 * TreeView.cs: buglet that caused node images to get drawn
31108 regardless of whether or not they were in the clipping rectangle.
31110 2005-04-18 Jackson Harper <jackson@ximian.com>
31112 * CurrencyManager.cs: There are four rules for GetItemProperties:
31113 - If the type is an array use the element type of the array
31114 - If the type is a typed list, use the type
31115 - If the list contains an Item property that is not an object, use
31117 - use the first element of the list if there are any elements in
31120 2005-04-17 Jackson Harper <jackson@ximian.oom>
31122 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31123 click. This handles offsets for scrolling properly and reduces
31124 memory. Also fixed GetNode to not offset now that TopNode works
31126 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31128 2005-04-17 Jackson Harper <jackson@ximian.com>
31130 * CursorConverter.cs: Initial implementation.
31132 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31134 * ListControl.cs: work towards complex data binding support on ListControl
31135 * CurrencyManager.cs: work towards complex data binding support on ListControl
31136 * ListBox.cs: work towards complex data binding support on ListControl
31139 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31141 * GridTableStylesCollection.cs: fixes name and constructor
31142 * DataGridTableStyle.cs: fixes
31143 * DataGridBoolColumn.cs: fixes names and constructors
31144 * DataGrid.cs: define methods and properties. Some init implementations
31145 * DataGridCell.cs: define methods and properties. Some init implementations
31146 * GridTablesFactory.cs: Define methods and properties
31148 2005-04-15 Geoff Norton <gnorton@customerdna.com>
31150 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
31151 graphics port changes. We still want the coordinates in global screen
31154 2005-04-14 Jackson Harper <jackson@ximian.com>
31156 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31157 check plus minus or checkbox clicks unless those features are enabled.
31159 2005-04-14 Jackson Harper <jackson@ximian.com>
31161 * TreeView.cs: Add methods for setting the top and bottom visible
31162 nodes. TreeNode::EnsureVisible uses these methods.
31163 * TreeNode.cs: Implement EnsureVisible
31165 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
31167 * Form.cs: Pospone menu assignation if the window has not been created yet
31168 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31171 2005-04-12 Jackson Harper <jackson@ximian.com>
31173 * TreeView.cs: Set the TopNode properly when scrolling
31174 occurs. This has the added benifit of reducing the amount of
31175 walking that needs to be done when drawing. Also removed an old
31177 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31179 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
31181 * Timer.cs: fixes interval setting when the timer is already enabled
31183 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
31185 * FolderBrowserDialog.cs: First approach
31187 2005-04-09 Peter Bartok <pbartok@novell.com>
31189 * FolderBrowserDialog: Added
31191 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
31193 * LinkLabel.cs: move drawing code into the theme
31194 * ThemeWin32Classic.cs: drawing code and painting background bugfix
31195 * Theme.cs: define DrawLinkLabel method
31197 2005-04-05 Jackson Harper <jackson@ximian.com>
31199 * BindingContext.cs: Use weak references so these bad actors don't
31200 stay alive longer then they need to.
31202 2005-04-05 Jackson Harper <jackson@ximian.com>
31204 * ListControl.cs: Basic implementation of complex databinding.
31206 * ListBox.cs: Add calls to ListControl databinding methods.
31208 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
31211 - Don't change PopupButtonState to Normal when the
31212 PopupButton gets pressed several times.
31213 - Renamed ButtonPanel to PopupButtonPanel
31215 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
31217 * ColorDialog.cs: Use cached objects instead of creating them
31218 * LinkLabel.cs: Use cached objects instead of creating them
31219 * Splitter.cs: Use cached objects instead of creating them
31220 * FontDialog.cs: Use cached objects instead of creating them
31221 * PropertyGridView.cs: Use cached objects instead of creating them
31222 * MessageBox.cs: Use cached objects instead of creating them
31223 * FileDialog.cs: Use cached objects instead of creating them
31224 * ThemeWin32Classic.cs: Use cached objects instead of creating them
31225 * TreeView.cs: Use cached objects instead of creating them
31227 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
31229 * Control.cs: use Equals to compare the font since no == op
31230 * ScrollBar.cs: use Equals to compare the font since no == op
31232 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
31234 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
31236 2005-04-01 Jackson Harper <jackson@ximian.com>
31238 * Binding.cs: Implement IsBinding.
31239 * BindingManagerBase.cs:
31240 * PropertyManager.cs:
31241 * CurrencyManager.cs: Add IsSuspended property.
31243 2005-04-01 Jackson Harper <jackson@ximian.com>
31245 * Binding.cs: Had some IsAssignableFrom calls backwards.
31247 2005-04-01 Jackson Harper <jackson@ximian.com>
31249 * Binding.cs: Handle null data members when pulling data.
31250 * PropertyManager.cs: Handle the data member being a property that
31253 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
31255 * DataGridTextBoxColumn.cs: fixes signature
31256 * DataGrid.cs: calls right constructor
31258 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
31260 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
31261 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
31262 * GridTableStylesCollection.cs: implements GridTableStylesCollection
31263 * DataGridTableStyle.cs: implements DataGridTableStyle
31264 * DataGridBoolColumn.cs: implements DataGridBoolColumn
31265 * DataGridTextBox.cs: implements DataGridTextBox
31266 * DataGridColumnStyle.cs: implements DataGridColumnStyle
31268 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
31270 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
31272 2005-03-29 Peter Bartok <pbartok@novell.com>
31275 - Properly implemented CompanyName property
31276 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
31277 returns a path that includes CompanyName, ProductName and
31278 Version (fixes bug #70330)
31280 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
31282 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
31285 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31287 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
31289 - Added ReadOnly CheckBox
31290 - Further refactoring: moved some code from Open-/SaveFileDialog
31293 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31295 * OpenFileDialog.cs: Fixed CheckFileExists
31297 Moved FileView and DirComboBox outside FileDialog class.
31298 They can now be used outside FileDialog
31300 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31302 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31303 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31305 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31307 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31308 - Added missing CreatePrompt property in SaveDialog
31309 - Overall SaveDialog handling should be better now
31310 - Added non standard ShowHiddenFiles property
31311 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31312 - Added InitialDirectory and RestoreDirectory support
31314 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
31316 * FileDialog.cs: Made dirComboBox usable
31318 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
31320 * FileDialog.cs: Added Filter support (case sensitiv)
31322 2005-03-24 Jackson Harper <jackson@ximian.com>
31324 * TabControl.cs: Need a couple more pixels for the lines.
31326 2005-03-23 Jackson Harper <jackson@ximian.com>
31328 * TabControl.cs: Give the tab page focus when it is selected.
31330 2005-03-23 Jackson Harper <jackson@ximian.com>
31332 * TabControl.cs: Account for the drawing of tabs borders when
31333 invalidating. If the slider was clicked dont do click detection on
31336 2005-03-23 Jackson Harper <jackson@ximian.com>
31338 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31340 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
31342 * CategoryGridEntry.cs: Added
31343 * GridItem.cs: Added helper properties
31344 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31345 * GridEntry.cs: Updated code for collection
31346 * PropertyGrid.cs: Cleaned up some formatting
31347 * PropertyGridView.cs: Added drop down functionality for enums.
31348 * GridItemCollection.cs: Added enumerator logic
31349 * PropertyGridEntry.cs: Added
31351 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31354 - Removed unnecessary commented code
31355 - Fixed handling for entering the filename manually in the combobox
31357 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31359 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31361 2005-03-18 Peter Bartok <pbartok@novell.com>
31363 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31364 them being touching the border
31366 2005-03-18 Peter Bartok <pbartok@novell.com>
31368 * TextControl.cs: Quick hack to center text better
31370 2005-03-18 Peter Bartok <pbartok@novell.com>
31373 - Don't throw NotImplemented exceptions, just print a notice once
31374 instead (requested by Miguel). This makes running existing SWF
31377 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31378 - Added context menu trigger on right click
31379 * Panel.cs: Trigger invalidate on resize
31381 - Removed old double-buffer drawing
31382 - Added ResizeRedraw style to force proper update of statusbar
31384 - Removed debug output
31385 * ThemeWin32Classic.cs:
31386 - Fixed drawing of status bar, now draws Text property if there
31387 are no defined panels
31389 2005-03-18 Jackson Harper <jackson@ximian.com>
31391 * ImageList.cs: When the image stream is set pull all the images
31393 * ImageListStreamer.cs: Implement reading image list streams.
31395 2005-03-18 Peter Bartok <pbartok@novell.com>
31397 * ThemeWin32Classic.cs (DrawPictureBox):
31398 - Fixed calculations for centered drawing
31399 - Fixed drawing for normal mode, not scaling the image on normal
31401 2005-03-18 Peter Bartok <pbartok@novell.com>
31403 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31406 - Made Open/Save button the accept button for FileDialog
31407 - Tied the cancel button to the IButtonControl cancel button
31408 - Save/Open now properly builds the pathname
31409 - Now handles user-entered text
31410 - Preventing crash on right-click if no item is selected
31411 - Fixed Text property, now uses contents of textbox
31412 - Fixed SelectedText property, now just returns the text part that
31413 is selected in the text box
31415 2005-03-18 Jackson Harper <jackson@ximian.com>
31417 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31418 rect, make sure to de-adjust the interior rect after drawing the
31421 2005-03-18 Peter Bartok <pbartok@novell.com>
31423 * MenuAPI.cs: Remove menu *before* executing selected action to
31424 prevent the menu from 'hanging around'
31426 2005-03-17 Geoff Norton <gnorton@customerdna.com>
31428 * XplatUIOSX.cs: Implemented WorkingArea property
31430 2005-03-17 Peter Bartok <pbartok@novell.com>
31432 * XplatUIX11.cs: Fixed menu coord calculations
31433 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31434 for calculating offsets
31436 2005-03-17 Peter Bartok <pbartok@novell.com>
31438 * Hwnd.cs: Do not consider menu presence for default client
31439 rectangle location/size
31440 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31441 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31442 translation functions
31443 * FileDialog.cs: Fixed (what I presume is a) typo
31445 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
31447 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31448 X access (avoids X-Async errors)
31450 2005-03-16 Jackson Harper <jackson@ximian.com>
31452 * TabControl.cs: Raise the SelectedIndexChanged event.
31454 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
31456 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31457 - Removed vertical ToolBar and replaced it with a custom panel
31458 (desktop and home button already work)
31459 - Added Help button (some controls get resized or relocated then)
31460 - Draw correct text depending on Open or Save.
31461 - Fixed some typos...
31463 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
31466 - Only change Maximum and Minimum when need it (bug fix)
31468 2005-03-15 Peter Bartok <pbartok@novell.com>
31470 * Form.cs: Use Handle for icon, to trigger creation if
31471 the window does not yet exist
31473 - CanSelect: Slight performance improvement
31474 - Focus(): Preventing possible recursion
31475 - Invalidate(): Removed ControlStyle based clear flag setting
31476 - WM_PAINT: fixed logic for calling OnPaintBackground
31477 - WM_ERASEBKGND: Fixed logic, added call to new driver method
31478 EraseWindowBackground if the control doesn't paint background
31480 - Moved EraseWindowBackground() method to internal methods
31481 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31482 is sent via SendMessage on BeginPaint call on Win32
31484 - Added EraseWindowBackground() method
31485 - No longer sends WM_ERASEBKGND on .Expose, but on call to
31486 PaintEventStart, which more closely matches Win32 behaviour
31487 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31488 - Fixed SetFocus() to properly deal with client and whole windows
31489 * Hwnd.cs: Added ErasePending property
31490 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31491 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31493 2005-03-12 Geoff Norton <gnorton@customerdna.com>
31496 - Fix hard loop when timers exist.
31497 - Fix bugs with middle and right click for 3 button mice.
31499 2005-03-11 Peter Bartok <pbartok@novell.com>
31502 - get_WorkingArea: Need to call X directly, GetWindowPos only
31503 returns cached data now
31504 - Added sanity check to GetWindowPos hwnd usage
31506 2005-03-11 Jackson Harper <jackson@ximian.com>
31508 * BindingManagerBase.cs: This method isn't used anymore as
31509 PullData now updates the data in the control.
31511 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
31513 * Form.cs: fixes menu drawing on X11
31514 * MenuAPI.cs: fixes menu drawing on X11
31516 2005-03-11 Peter Bartok <pbartok@novell.com>
31518 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31519 from Jonathan Gilbert; should fix bug #73606
31520 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31521 in Screen coordinates. Thanks, Jordi.
31522 * Form.cs: Added missing attribute
31524 2005-03-11 Peter Bartok <pbartok@novell.com>
31527 - Rudimentary Mdi support
31528 - Removed outdated FormParent code
31529 - Implemented lots of missing properties and methods, still missing
31530 transparency support
31531 - Added missing attributes
31532 - Implemented support for MaximumBounds
31533 - Added firing of various events
31534 * XplatUI.cs: Added SetIcon() method
31535 * XplatUIDriver.cs: Added SetIcon() abstract
31536 * XplatUIOSX.cs: Stubbed out SetIcon() method
31538 - Implemented SetIcon() support
31539 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31540 - Switched to unix line endings
31542 - Made POINT internal so for can access it as part of MINMAX
31543 - Implemented SetIcon() support
31544 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31545 native Mdi support again, might have to go managed)
31546 * Control.cs: Now fires the StyleChanged event
31547 * MdiClient.cs: Added; still mostly empty
31549 2005-03-10 Peter Bartok <pbartok@novell.com>
31551 * SaveFileDialog.cs: Added emtpy file
31553 2005-03-08 Peter Bartok <pbartok@novell.com>
31555 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31556 in turn triggers OnCreateContro) when creating a handle for the
31558 * TextControl.cs: Fixed endless loop in certain cases when
31559 replacing the current selection
31561 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
31564 - Honors NewValue changes in Scroll events allowing apps to change it
31565 - Adds First and Last Scroll events
31566 - Fixes Thumb events
31568 2005-03-07 Peter Bartok <pbartok@novell.com>
31570 * Hwnd.cs: Added DefaultClientRectangle property
31571 * XplatUI.cs: Now using the X11 driver Where() method, which provides
31572 more detailed debug information
31574 - Fixed size-change feedback loop, where we would pull an old size
31575 off the queue and mistakenly change our window's size to an
31577 - Now compressing ConfigureNotify events, to reduce looping and
31579 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31582 2005-03-07 Jackson Harper <jackson@ximian.com>
31584 * Binding.cs: Push data pushes from data -> property. Check if the
31585 property is readonly when attempting to set it.
31587 2005-03-07 Jackson Harper <jackson@ximian.com>
31589 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31590 instead of IsSubclassOf. Pulling data now sets the value on the
31592 * PropertyManager.cs:
31593 * CurrencyManager.cs: Just need to pull data when updating now,
31594 because PullData will set the value on the control.
31596 2005-03-04 Jackson Harper <jackson@ximian.com>
31598 * Binding.cs: Implement data type parsing and converting on pulled
31599 data. TODO: Are there more ways the data can be converted?
31601 2005-03-04 Jackson Harper <jackson@ximian.com>
31603 * Binding.cs: Support <Property>IsNull checks. Also bind to the
31604 controls Validating method so we can repull the data when the
31605 control loses focus.
31607 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
31610 - Fixes null string format
31613 - Adds enum type checks
31614 - Fixes redrawing and recalc need after changing some properties
31615 - Fixes on focus_item set after the event
31616 - Fixes adding columns after the control has been created
31618 * ThemeWin32Classic.cs:
31619 - Fixes CheckBox focus rectangle
31620 - Fixes ColumnHeader drawing
31623 2005-03-03 Jackson Harper <jackson@ximian.com>
31625 * Binding.cs: Bind to <Property>Changed events so we can detect
31626 when properties are changed and update the data.
31628 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
31631 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31632 - Fixes ImageList constructor with ImageList container
31633 - Fixes image scaling (wrong parameters at DrawImage)
31635 2005-02-02 Jackson Harper <jackson@ximian.com>
31637 * Binding.cs: Make property searches case-insensitive. Eliminate
31638 some duplicated code.
31640 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
31643 - Handle focus event
31644 - Fix scrollbar events
31645 - Discard highlighted item if remove it
31646 - Fixes SelectedItem with strings
31648 2005-03-01 Peter Bartok <pbartok@novell.com>
31651 - Fixed Visible property, now follows (once again) parent chain
31652 to return false if any control in the chain is visible=false
31653 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31654 - Fixed several places where is_visible instead of Visible was used
31655 - Implemented FIXME related to focus selection when setting focused
31656 control to be invisible
31658 * XplatUIWin32.cs: Now using proper method to find out if window is
31659 visible. Thanks to Jordi for pointing it out
31661 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
31663 * ComboBox.cs: show/hide scrollbar instead of creating it
31665 2005-02-27 Jackson Harper <jackson@ximian.com>
31667 * CurrencyManager.cs: Add PositionChanged stuff.
31669 2005-02-27 Peter Bartok <pbartok@novell.com>
31671 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31672 * XplatUIOSX.cs: Added GetMenuOrigin() stub
31673 * XplatUIWin32.cs: Implemented GetMenuOrigin()
31675 - Implemented GetMenuDC()
31676 - Implemented GetMenuOrigin()
31677 - Implemented ReleaseMenuDC()
31678 - Implemented generation of WM_NCPAINT message
31679 - Implemented generation and handling of WM_NCCALCSIZE message
31680 * Form.cs: Added debug helper message for Jordi's menu work
31682 - Modified ClientRect property; added setter, fixed getter to handle
31683 setting of ClientRect
31684 - Added MenuOrigin property
31686 2005-02-26 Peter Bartok <pbartok@novell.com>
31689 - Destroys the caret if a window that's being destroyed contains it
31690 - Ignores expose events coming from the X11 queue for windows that
31691 already are destroyed
31692 - Now uses the proper variable for handling DestroyNotify, before we
31693 marked the wrong window as destroyed
31694 - Improved/added some debug output
31696 2005-02-26 Peter Bartok <pbartok@novell.com>
31698 * X11Keyboard.cs: Fixes to work on 64bit systems
31700 2005-02-26 Peter Bartok <pbartok@novell.com>
31703 - Now calling OnHandleDestroyed from DestroyHandle()
31704 instead of Dispose()
31705 - Removed bogus call to controls.Remove() from DestroyHandle()
31707 2005-02-26 Peter Bartok <pbartok@novell.com>
31709 * Control.cs: Properly destroy child windows when our handle is
31712 2005-02-25 Peter Bartok <pbartok@novell.com>
31715 - Added 'DriverDebug' define to allow tracing XplatUI API calls
31716 - Alphabetized Static Methods and Subclasses
31719 - Added XException class to allow custom handling of X11 exceptions
31720 - Created custom X11 error handler, tied into XException class
31721 - Added support for MONO_XEXCEPTIONS env var to allow the user
31722 to either throw an exception on X errors or continue running
31723 after displaying the error
31724 - Added handling of DestroyNotify message
31725 - Added handler for CreateNotify message (still disabled)
31726 - Improved (tried to at least) Where method to provide file and lineno
31728 - Added XErrorHandler delegate
31729 - Added XRequest enumeration (to suppor translation of errors)
31731 2005-02-25 Jackson Harper <jackson@ximian.com>
31733 * PropertyManager.cs: Implement editing features
31734 * CurrencyManager.cs:
31735 * Binding.cs: First attempt at UpdateIsBinding
31736 * BindingManagerBase.cs: Call UpdateIsBinding before
31737 pushing/pulling data.
31739 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
31741 * MenuAPI.cs: Respect disabled items
31742 * ThemeWin32Classic.cs
31743 - Caches ImageAttributes creation for DrawImageDisabled
31744 - Fixes vertical menu line drawing
31745 - Draws disabled arrows in disable menu items
31747 2005-02-24 Peter Bartok <pbartok@novell.com>
31750 - Added UserData property to allow associating arbitrary objects
31752 - Fixed leak; now removing Hwnd references from static windows array
31754 - Fixed Graphics leak in PaintEventEnd
31755 - Removed usage of HandleData, switched over to Hwnd class
31756 * HandleData.cs: Removed, obsoleted by Hwnd.cs
31758 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31760 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31761 * ScrollBar.cs: Fixes bug
31762 * TrackBar.cs: removes death code, clipping, mimize refreshes,
31763 keyboard navigation enhancements
31765 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31767 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31768 * GroupBox.cs: Add control styles
31769 * Label.cs: Add control styles
31770 * UpDownBase.cs: Add control styles
31771 * ListBox.cs: Add control styles
31772 * XplatUIWin32.cs: Fixes wrong parameter order
31775 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
31777 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31779 2005-02-23 Jackson Harper <jackson@ximian.com>
31781 * PropertyManager.cs: Implement property binding. This doesn't
31782 seem to work yet though as (I think) there are some bugs in
31783 System.ComponentModel.PropertyDescriptor.
31784 * BindingContext.cs: Use new PropertyManager constructor.
31786 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
31788 * ProgressBar.cs: use clip region in ProgressBar
31789 * ThemeWin32Classic.cs: use clip region in ProgressBar
31791 2004-02-22 Jackson Harper <jackson@ximian.com>
31793 * BindingsCollection.cs: Remove some debug code.
31795 2005-02-22 Jackson Harper <jackson@ximian.com>
31797 * BindingContext.cs:
31798 * ControlBindingsCollection.cs:
31799 * CurrencyManager.cs:
31801 * BindingManagerBase.cs: Initial implementation
31802 * BindingsCollection.cs: Add an internal contains method that the
31803 BindingManagerBase uses to ensure bindings aren't added twice to
31805 * PropertyManager.cs: Stubbed out.
31807 * ContainerControl.cs: Hook up databinding
31809 2005-02-22 Geoff Norton <gnorton@customerdna.com>
31812 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31813 Fixed Invalidate/Update chain.
31814 Fixed tons of other minor bugs (this is almost a complete rewrite).
31816 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
31818 * ComboBox.cs: do subcontrol creation when the control is created
31820 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31822 * Label.cs: fixes image drawing (image and imagelist)
31823 * ThemeWin32Classic.cs: cache brushes
31825 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31827 * Form.cs: Move menu drawing code to Theme class
31828 * ComboBox.cs: Move ComboBox drawing code to Theme class
31829 * MenuItem.cs: Move menu drawing code to Theme class
31830 * MenuAPI.cs: Move menu drawing code to Theme class
31831 * ThemeWin32Classic.cs: New methods
31832 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
31833 * ListBox.cs: Move Listbox drawing code to Theme class
31834 * Theme.cs: New methods
31836 2005-02-20 Peter Bartok <pbartok@novell.com>
31839 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
31840 only process mnemonics on those)
31841 - Fixed event sequence for key handling; first calling
31842 ProcessKeyEventArgs now
31844 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
31845 for processing non-character keys
31846 - Fixed WM_CHAR to generate proper event sequence before processing
31847 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
31850 2005-02-19 Peter Bartok <pbartok@novell.com>
31852 * UserControl.cs: Added TextChanged event; added attributes
31853 * SizeGrip.cs: Implemented resizing and optional display of grip
31854 * Form.cs: Fixed attribute
31855 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31856 Changed meaning of ScrollWindow bool argument; instead of the
31857 clear attribute (which will be true usually anyway), it gives the
31858 option of moving child controls as well.
31860 - Changed to match new ScrollWindow argument
31861 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
31862 now handles the implicit parent window a WM puts around us
31863 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
31865 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
31866 * TreeView.cs: Adjusted to new ScrollWindow arguments
31868 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31870 * Form.cs: Menu integration with non-client area
31871 * MenuItem.cs: Menu integration with non-client area
31872 * MenuAPI.cs: Menu integration with non-client area
31874 2005-02-18 Peter Bartok <pbartok@novell.com>
31876 * MethodInvoker.cs: Added
31877 * MdiLayout.cs: Added
31878 * SendKeys.cs: Started implementation
31879 * ErrorIconAlignment.cs: Added
31881 2005-02-18 Peter Bartok <pbartok@novell.com>
31883 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
31884 * Form.cs: Added handling for Menu-related Non-client messages
31886 2005-02-17 Peter Bartok <pbartok@novell.com>
31888 * UpDownBase.cs: Fixed typo, compilation errors
31889 * DomainUpDown.cs: Fixed attribute value
31891 2005-02-16 Miguel de Icaza <miguel@novell.com>
31893 * UpDownBase.cs: Attach entry events.
31895 Add ForeColor property, Focused, InterceptArrowKeys (interception
31896 does not work yet).
31898 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
31901 - Redraw non client are on Setmenu
31902 - Calc proper menu starting point
31904 2005-02-17 Peter Bartok <pbartok@novell.com>
31906 * Application.cs: Fixed message_filter check
31908 2005-02-17 Peter Bartok <pbartok@novell.com>
31910 * Application.cs: Now calls registered message filters
31911 * DockStyle.cs: Fixed attribute
31912 * Form.cs: Fixed attribute
31913 * Menu.cs: Fixed attribute
31914 * ToolTip.cs: Fixed attribute
31915 * TreeNode.cs: Added missing attributes and arranged in regions
31916 * PropertyGrid.cs: Fixed signatures
31917 * TreeNodeCollection.cs: Added attributes
31918 * Splitter.cs: Added missing attributes; arranged into regions
31919 * TabPage.cs: Added missing attributes; arranged into regions
31920 * TextBoxBase.cs: Added missing attributes
31921 * TextBox.cs: Added missing attributes
31922 * ArrangeDirection.cs: Added missing attributes
31923 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
31924 * ToolBarButton.cs: Fixed attributes
31925 * AnchorStyles.cs: Fixed attribute
31926 * TrackBar.cs: Fixed attributes
31927 * TabControl.cs: Added missing attributes and arranged into regions
31928 * ToolBar.cs: Fixed attribute
31929 * StatusBar.cs: Fixed signature, organized into regions and added
31931 * StatusBarPanel.cs: Fixed attributes
31932 * ContentsResizedEventArgs.cs: Implemented
31933 * ContentsResizedEventHandler.cs: Implemented
31934 * DateBoldEventArgs.cs: Implemented
31935 * DateBoldEventHandler.cs: Implemented
31936 * UpDownEventArgs.cs: Implemented
31937 * UpDownEventHandler.cs: Implemented
31939 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
31941 * Form.cs: first Menu NC refactoring
31942 * MenuAPI.cs: first Menu NC refactoring
31944 2005-02-16 Peter Bartok <pbartok@novell.com>
31946 * ImeMode.cs: Added missing attributes
31947 * Menu.cs: Fixed attribute
31948 * GroupBox.cs: Fixed attribute
31949 * Label.cs: Fixed attribute
31950 * ColorDialog.cs (RunDialog): Removed TODO attribute
31951 * ComboBox.cs: Fixed attributes
31952 * ListControl.cs: Added missing attributes
31953 * PropertyGrid.cs: Fixed attributes
31954 * Control.cs: Fixed attributes
31955 * ListViewItem.cs: Added TypeConverter attribute
31956 * NotifyIcon.cs: Fixed attributes
31957 * ListView.cs: Fixed attributes
31958 * ButtonBase.cs: Fixed attribute
31959 * ImageList.cs: Added missing attributes
31960 * ContainerControl.cs: Fixed signature
31961 * CheckedListBox.cs: Fixed attribute; added missing attributes
31962 * Panel.cs: Fixed attributes
31963 * PropertyTabChangedEventArgs.cs: Added missing attribute
31964 * PropertyValueChangedEventArgs.cs: Added missing attribute
31965 * Binding.cs: Fixed attribute
31966 * ListViewItemConverter: Implemented ListViewSubItemConverter class
31967 * ListBox.cs: Fixed attribute; added missing attributes;
31968 * ScrollableControl.cs: Added missing attributes
31969 * PictureBox.cs: Added missing attributes; implemented missing property
31970 * DateTimePicker.cs: Added missing attributes
31971 * Theme.cs (ToolWindowCaptionHeight): Fixed type
31972 * MonthCalendar.cs: Fixed attributes
31973 * StatusBarPanel.cs: Added missing attributes
31974 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31976 2005-02-16 Peter Bartok <pbartok@novell.com>
31978 * TextBoxBase.cs: The previous method to enforce height yet remember
31979 the requested high was less than ideal, this is an attempt to do
31981 * Control.cs: Added comment about possible problem
31982 * Copyright: Updated format
31983 * GridItemType.cs: Fixed swapped values
31985 2005-02-15 Jackson Harper <jackson@ximian.com>
31987 * BaseCollection.cs: Use property so we never access an
31988 uninitialized list. Also initialize the list in the property.
31990 2005-02-15 Peter Bartok <pbartok@novell.com>
31992 * GroupBox.cs (ProcessMnemonic): Implemented
31993 * Label.cs (ProcessMnemonic): Implemented
31994 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31997 2005-02-15 Peter Bartok <pbartok@novell.com>
31999 * RadioButton.cs (ProcessMnemonic): Implemented
32000 * CheckBox.cs (ProcessMnemonic): Implemented
32002 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
32004 - Added internal method to allow calling ProcessMnemonic from other
32006 * ContainerControl.cs:
32007 - Started support for handling validation chain handling
32008 - Implemented ProcessMnemonic support
32009 - Added Select() call to Active, to make sure the active control
32011 * Form.cs: Setting toplevel flag for Forms (this was lost in the
32012 FormParent rewrite)
32013 * ThemeWin32Classic.cs:
32014 - DrawCheckBox(): Fixed stringformat to show hotkeys
32015 - DrawRadioButton(): Fixed stringformat to show hotkeys
32016 * CommonDialog.cs: Removed WndProc override, not needed
32018 2005-02-14 Peter Bartok <pbartok@novell.com>
32020 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
32021 missed those in the rewrite
32023 2005-02-14 Miguel de Icaza <miguel@novell.com>
32025 * NumericUpDown.cs (Increment, ToString): Add.
32026 (DecimalPlaces): implement.
32030 * UpDownBase.cs: Add the designer attributes.
32032 2005-02-13 Peter Bartok <pbartok@novell.com>
32034 * Panel.cs: Removed border_style, now in Control
32035 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
32036 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
32038 2005-02-13 Peter Bartok <pbartok@novell.com>
32040 * MouseButtons.cs: Added missing attributes
32041 * XplatUIStructs.cs: Added enumeration for title styles
32042 * LeftRightAlignment.cs: Added missing attributes
32043 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
32044 it compatible with Graphics.FromHwnd()
32045 * SelectedGridItemChangedEventArgs.cs: Fixed property type
32046 * Keys.cs: Added missing attributes
32047 * SelectionRange.cs: Added missing attributes
32048 * SelectionRangeConverter.cs: Added
32050 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
32051 ReleaseMenuDC methods
32052 - Renamed ReleaseWindow to UngrabWindow
32053 - Added proper startup notice to allow version identification
32055 - Added missing attributes
32056 - Removed FormParent concept
32057 * Label.cs: Removed border_style field, now in Control
32058 * RadioButton.cs: Now properly selects RadioButton when focus is
32060 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
32062 - Added missing attributes
32063 - Added borderstyle handling
32064 - Removed FormParent concept support
32065 - Fixed calls to XplatUI to match changed APIs
32066 - Fixed bug that would case us to use disposed Graphics objects
32067 - Removed unneeded internal methods
32068 - PerformLayout(): Fixed to handle DockStyle.Fill properly
32069 - SelectNextControl(): Fixed to properly check common parents
32070 * TextBoxBase.cs: Removed border_style field (now in Control)
32072 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
32073 fixed calculations for form size
32074 - Added support for localized strings and icons
32075 - Improved form size calculations, added border
32076 * ListView.cs: Removed border_style field (now in Control)
32077 * X11Structs.cs: Moved several structs from X11 driver here
32078 * X11Keyboard.cs: Changed debug message
32079 * Application.cs: Removed FormParent concept support
32081 - Resetting end_modal flag
32082 - Removed FormParent concept support
32083 * NativeWindow.cs: Removed FormParent concept support
32084 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
32085 Client area and Non-Client whole window to allow support for WM_NC
32087 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
32088 prevent using it until it supports Hwnd as per Geoff Norton's request
32089 * ToolBar.cs: Fixed drawing, was not doing proper drawing
32090 * PictureBox.cs: Removed border_style field, now in Control
32091 * XplatUIWin32.cs: Added new driver methods
32093 2005-02-12 Peter Bartok <pbartok@novell.com>
32095 * OpacityConverter.cs: Implemented
32096 * Hwnd.cs: Internal class to support drivers that need to emulate
32097 client area/non-client area window behaviour
32099 2005-02-11 Peter Bartok <pbartok@novell.com>
32101 * KeysConverter.cs: Implemented
32103 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
32105 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
32106 * LinkLabel: Added missing attributes
32107 * MainMenu.cs: fixes ToString
32108 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
32109 * ListBox.cs: fixes event position
32110 * TrackBar.cs: adds missing attributes and events
32112 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
32114 * MenuItem.cs: Use SystemInformation and bug fixes
32115 * MenuAPI.cs: Use SystemInformation and bug fixes
32117 2005-02-09 Jackson Harper <jackson@ximian.com>
32119 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
32120 their keystate otherwise things like VK_MENU get stuck "on".
32122 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
32124 * ListBox.cs: Fixes AddRange bug
32126 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
32129 - Add missing attributes
32130 - Add missing method
32132 * CheckedListBox.cs: Added missing attributes
32133 - Add missing attributes
32134 - Remove extra method
32136 * ComboBox.cs: Added missing attributes
32137 * VScrollBar.cs: Added missing attributes
32138 * ScrollBar.cs: Added missing attributes
32139 * ListBox.cs: Fixes signature, add missing consts
32140 * LinkArea.cs: Added missing attributes
32143 2005-02-08 Peter Bartok <pbartok@novell.com>
32145 * Menu.cs: Added missing attributes
32146 * MainMenu.cs: Added missing attributes
32147 * GroupBox.cs: Added missing attributes
32148 * Label.cs: Added missing attributes
32149 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32151 - Added Instance and Options properties
32152 - Added missing attributes
32153 * Cursor.cs: Made Serializable
32154 * NotifyIcon: Added missing attributes
32155 * MenuItem.cs: Added missing attributes
32156 * TextBoxBase.cs: Implemented AppendText() and Select() methods
32157 * Panel.cs: Added Missing attributes
32158 * MonthCalendar.cs: Fixed CreateParams
32160 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32164 - Fixes issues with links
32165 - Adds the class attributes
32167 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32170 - Fixes button when no items available in dropdown
32171 - Fixes repainting problems
32172 - Adds the class attributes
32174 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32176 * XplatUIOSX.cs: Detect the menu bar and title bar height from
32177 the current theme. Cache these on startup.
32179 2005-02-07 Jackson Harper <jackson@ximian.com>
32181 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32182 the scrollbar buttons when they are depressed.
32184 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32186 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
32187 Get the display size from the main displayid. We currently dont
32188 support multiple display configurations.
32190 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32192 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
32194 2005-02-07 Miguel de Icaza <miguel@novell.com>
32196 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
32198 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
32200 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
32202 2005-02-04 Jackson Harper <jackson@ximian.com>
32204 * ThemeWin32Classic.cs: Respect the clipping rect when
32205 drawing. Only fill the intersection of clips and rects so there
32206 isn't a lot of large fills.
32207 * ScrollBar.cs: Pass the correct clipping rect to the theme
32208 engine. Remove some debug code.
32210 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
32212 * DateTimePicker.cs:
32213 - Fixed crash on DateTime.Parse, use Constructor instead
32215 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
32219 - Owner draw support (MeasureItem and DrawItem)
32221 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
32224 - Implements FindMergePosition and MergeMenu functions (very poor documented)
32225 - Fixes MenuItems.Add range
32227 - MergeMenu and Clone and CloneMenu functions
32229 2005-02-03 Jackson Harper <jackson@ximian.com>
32231 * ScrollBar.cs: Make abstract
32232 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
32235 2005-02-03 Jackson Harper <jackson@ximian.com>
32237 * ScrollBar.cs: First part of my scrollbar fixups. This removes
32238 all the unneeded refreshes and uses invalidates with properly
32241 2005-02-03 Peter Bartok <pbartok@novell.com>
32243 * ComponentModel.cs: Added
32244 * IDataGridEditingService.cs: Added
32245 * Timer.cs: Added missing attributes
32246 * ToolTip.cs: Added missing attributes
32248 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
32250 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
32252 2005-02-03 Peter Bartok <pbartok@novell.com>
32254 * ListBox.cs: Added missing attributes
32256 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
32259 - Fixes font height after font change
32260 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
32262 2005-02-02 Peter Bartok <pbartok@novell.com>
32264 * HandleData.cs: Introduced static methods to allow class
32265 to be more self-contained and track it's own HandleData objects
32266 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
32267 HandleData to use new static methods
32269 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
32272 - Fixes default size and PreferredHeight
32274 - ObjectCollection.Insert implementation
32280 - ObjectCollection.Insert implementation
32281 - No selection after clean
32284 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32286 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
32288 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
32291 - Caches ItemHeight calculation for OwnerDrawVariable
32292 - Handles dropdown properly
32293 - Fixes several minor bugs
32295 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32298 - Fixes 71946 and 71950
32299 - Fixes changing Multicolumn on the fly
32300 - Fixes keyboard navigation on Multicolumn listboxes
32302 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32304 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32305 crash reporter log.
32307 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32309 * XplatUIOSX.cs: Allow applications to actually exit.
32311 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32313 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
32314 their parent at creation time rather than lazily later. Fixes a major
32315 regression we were experiencing.
32317 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32319 * ThemeWin32Classic.cs: more date time picker painting fixes
32320 * DateTimePicker.cs: more monthcalendar drop down fixes
32321 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32323 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32326 - When moving the thumb going outside the control should stop the moving
32327 - Adds the firing of missing events
32328 - Fixes no button show if Size is not specified
32329 - End / Home keys for keyboard navigation
32331 2005-01-30 Peter Bartok <pbartok@novell.com>
32333 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32334 sanity check to prevent theoretical loop
32335 * XplatUIWin32.cs (SetVisible): Removed debug output
32336 * XplatUIX11.cs (SystrayChange): Added sanity check
32337 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32338 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32339 behaviour, valid until the X11 client window rewrite is done
32340 * TextBox.cs (ctor): Setting proper default foreground and background
32343 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
32345 * Theme: Added DrawDateTimePicker to interface
32346 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32347 * DateTimePicker.cs: Created (still needs keys and painting code)
32348 * DateTimePickerFormat.cs: added
32349 * MonthCalendar.cs: fixed CreateParams for popup window mode
32351 2005-01-29 Peter Bartok <pbartok@novell.com>
32353 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32354 this should also the calculations for ligher/darker
32355 * Theme.cs: Fixed defaults for ScrollBar widths/heights
32357 2005-01-29 Peter Bartok <pbartok@novell.com>
32359 * ArrangeDirection.cs: Added
32360 * ArrangeStartingPositon.cs: Added
32361 * SystemInformation.cs: Implemented
32362 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32363 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32364 used by SystemInformation class
32365 * X11Strucs.cs: Added XSizeHints structure
32367 - Fixed CreateParams to make sure the menu window is always visible
32368 - TrackPopupMenu: Added check to make sure we don't draw the
32371 2005-01-29 Peter Bartok <pbartok@novell.com>
32373 * HandleData.cs: Added method for altering invalid area
32374 * TextBoxBase.cs: Implemented TextLength
32376 2005-01-28 Peter Bartok <pbartok@novell.com>
32378 * XplatUIX11.cs: Improvement over last patch, not sending
32379 the WM_PAINT directly anymore, instead we scroll any pending
32380 exposed areas and let the system pick out the WM_PAINT later
32382 2005-01-28 Peter Bartok <pbartok@novell.com>
32384 * SWF.csproj: Deleted, no longer used. Instead,
32385 Managed.Windows.Forms/SWF.csproj should be used
32386 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32387 directly, to avoid a potential race condition with the next
32390 2005-01-28 Peter Bartok <pbartok@novell.com>
32392 * XplatUI.cs: Made class internal
32394 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
32396 * CheckedListBox.cs:
32399 - Missing methods and events
32401 2005-01-27 Peter Bartok <pbartok@novell.com>
32403 * Application.cs (Run): Don't use form if we don't have one
32405 2005-01-27 Peter Bartok <pbartok@novell.com>
32407 * TextBoxBase.cs (get_Lines): Fixed index off by one error
32409 2005-01-27 Peter Bartok <pbartok@novell.com>
32411 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32412 * GridItem.cs: Added; Patch by Jonathan S. Chambers
32413 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32414 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32415 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32416 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32417 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32418 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32419 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32420 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32421 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32422 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32424 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32427 - Draw focus on Simple Combobox
32428 - Fixes drawing issues
32431 2005-01-27 Peter Bartok <pbartok@novell.com>
32434 - Place window in default location, instead of hardcoded 0/0
32435 - Send initial LocationChanged event
32437 - UpdateBounds after creation to find out where the WM placed us
32438 - Make sure that if the ParentForm changes location the Form
32440 * XplatUIX11.cs: XGetGeometry will not return the coords relative
32441 to the root, but to whatever the WM placed around us.
32442 Translate to root coordinates before returning toplevel
32444 * XplatUIWin32.cs: Removed debug output
32445 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32446 flag to GetWindowPos, to allow translation of coordinates on X11
32448 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32450 * ListBox.cs: connect LostFocus Event
32452 2005-01-27 Peter Bartok <pbartok@novell.com>
32454 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32455 XplatUIX11.cs: Extended the Systray API
32456 * Form.cs: Removed debug output
32457 * Application.cs: Fixed focus assignment, always need to call
32458 XplatUI.Activate() since Form.Activate() has rules that may
32460 * NotifyIcon.cs: Should be complete now
32461 * ToolTip.cs: Worked around possible timer bug
32463 2005-01-27 Jackson Harper <jackson@ximian.com>
32466 - Only invalidate the effected tabs when the
32467 selected index changes. This reduces drawing and gets rid of some
32469 - Only refresh if the tabs need to be shifted, otherwise only
32470 invalidate the slider button.
32471 - On windows the tabs are not filled to right if the slider is
32474 2005-01-27 Jackson Harper <jackson@ximian.com>
32476 * TabControl.cs: Only refresh on mouseup if we are showing the
32477 slider. Also only invalidate the button whose state has changed.
32479 2005-01-26 Peter Bartok <pbartok@novell.com>
32481 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32482 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32483 and SystrayRemove() methods
32484 * XplatUIOSX.cs: Stubbed Systray methods
32486 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32488 - Fixed broken XChangeProperty calls (marshalling messed up things)
32489 * X11Structs.cs: Added enums and structs required for Size hinting
32490 * NotifyIcon.cs: Added & implemented
32492 2005-01-26 Jackson Harper <jackson@ximian.com>
32494 * TabControl.cs: Space vertically layed out tabs properly.
32496 2005-01-26 Peter Bartok <pbartok@novell.com>
32498 * Form.cs (CreateClientParams): Always set the location to 0,0
32499 since we're a child window.
32501 * Control.cs (SetVisibleCore): Always explicitly setting the location
32502 of a toplevel window, apparently X11 doesn't like to move windows
32503 while they're not mapped.
32505 2005-01-26 Jackson Harper <jackson@ximian.com>
32507 * TabControl.cs: Implement FillToRight size mode with vertically
32510 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32512 * ControlPaint.cs, ThemeWin32Classic.cs
32513 - Fixes DrawFocusRectangle
32515 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32518 - MenuBar tracking only starts when item is first clicked
32519 - Fixes menu hidding for multiple subitems
32520 - Unselect item in MenuBar when item Executed
32523 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
32526 - IsInputKey for ListBox
32529 - Shift and Control item selection
32530 - Implement SelectionMode.MultiExtended
32531 - Fixes RightToLeft
32533 - IsInputKey implemented
32534 - Do not generate OnTextChangedEdit on internal txt changes
32536 2005-01-23 Peter Bartok <pbartok@novell.com>
32538 * AccessibleObject.cs: Partially implemented Select()
32539 * MonthCalendar.cs: Added missing attributes and events
32540 * Form.cs: Fixed CreateParams behaviour, now controls derived from
32541 form can properly override CreateParams.
32542 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32543 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32544 Control performs Invalidate & Update
32545 * NativeWindow (CreateHandle): Added special handling for Form
32546 and Form.FormParent classes to allow overriding of From.CreateParams
32548 - ControlNativeWindow: Renamed 'control' variable to more intuitive
32550 - ControlNativeWindow: Added Owner property
32551 - Removed usage of Refresh() on property changes, changed into
32552 Invalidate(), we need to wait until the queue is processed for
32553 updates, direct calls might cause problems if not all vars for
32554 Paint are initialized
32555 - Added call to UpdateStyles() when creating the window, to set any
32556 styles that CreateWindow might have ignored.
32557 - Added support for Form CreateParent overrides to UpdateStyles()
32558 * MessageBox.cs: Removed no longer needed FormParent override stuff,
32559 CreateParams are now properly overridable
32560 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32561 CreateParams are now properly overridable
32563 2005-01-23 Miguel de Icaza <miguel@ximian.com>
32565 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32568 Capture LostFocus and OnTextBoxChanged. The later introduces a
32569 recursive invocation that I have not figured out yet.
32571 Reset the timer when not using (it was accumulating).
32574 (OnTextBoxChanged): Set UserEdit to true here to track whether the
32575 user has made changes that require validation.
32577 Reset changing to avoid loops.
32579 2005-01-22 Miguel de Icaza <miguel@ximian.com>
32581 * NumericUpDown.cs: Display value at startup.
32583 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32586 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32587 filled in. Added some basic parsing of text.
32589 Still missing the OnXXX method overrides, and figuring out the
32590 events that must be emitted.
32592 * UpDownBase.cs: Handle UserEdit on the Text property.
32594 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
32597 - Fixes IntegralHeight
32600 2005-01-21 Jackson Harper <jackson@ximian.com>
32602 * TabControl.cs: Set the SelectedIndex property when SelectedTab
32603 is set so that the page visibility is updated and the tabs are
32606 2005-01-21 Jackson Harper <jackson@ximian.com>
32608 * TabControl.cs: Use cliping rectangle for blitting. Give the
32609 theme the clipping rect so we can do clipping while
32610 drawing. Remove some debug code.
32612 2005-01-21 Jackson Harper <jackson@ximian.com>
32614 * TabPage.cs: Add a new method so tab pages can force the tab
32615 control to recalculate the tab page sizes.
32616 * TabControl.cs: UpdateOwner needs to make the tab control recalc
32619 2005-01-20 Jackson Harper <jackson@ximian.com>
32621 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32623 2005-01-20 Jackson Harper <jackson@ximian.com>
32625 * TreeView.cs: Set the bounds for nodes properly. They were
32626 getting screwed up when checkboxes were not enabled, but images
32629 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
32632 - Owner draw support
32635 2005-01-20 Jackson Harper <jackson@ximian.com>
32637 * XplatUIStructs.cs: More misc keys
32638 * X11Keyboard.cs: Ignore some control keys.
32640 2005-01-20 Jackson Harper <jackson@ximian.com>
32642 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32643 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32645 2005-01-19 Peter Bartok <pbartok@novell.com>
32647 * Control.cs: Un-selecting the control when it is loosing focus
32649 2005-01-19 Jackson Harper <jackson@ximian.com>
32651 * TreeView.cs: Hook up to the text controls leave event so we can
32652 end editing when the users clicks outside the text box.
32654 2005-01-19 Jackson Harper <jackson@ximian.com>
32656 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32657 get set in the conversion array.
32659 2005-01-19 Peter Bartok <pbartok@novell.com>
32661 * Application.cs (ModalRun): Added a call to CreateControl to ensure
32662 focus is properly set
32664 - Added missing attributes
32665 - removed styles, those are already set in the base class
32667 - Added missing attributes
32668 - Added clip window styles
32669 * CheckBox.cs: Added missing attributes
32671 - FormParentWindow.CreateParams: Added required clip styles
32672 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32673 also filters modifier keys
32675 - Added assignment of Accept and Cancel button to enable Enter
32676 and Esc keys in MessageBox dialogs
32677 - FormParentWindow.CreateParams: Added required clip styles
32678 * RadioButton.cs: Added missing attributes
32679 * TextControl.cs: No longer draws selection if control does not
32682 - Now draws simple rectangle around test area to make it obvious
32683 there's a control. This is a hack until we properly support borders
32684 - A few simple fixes to support selections better, now erases selected
32685 text when typing, and resets selection when using movement keys
32687 2005-01-19 Miguel de Icaza <miguel@ximian.com>
32689 * UpDownBase.cs: Added some new properties.
32691 * DomainUpDown.cs: Implement a lot to get my test working.
32693 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32695 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32697 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32699 * OSXStructs (WindowAttributes): Fixed csc complaints
32701 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32704 OSXStructs.cs: Initial refactor to move enums and consts into
32705 OSXStructs and use them in the driver for greater readability.
32707 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32709 * XplatUIOSX.cs: Initial support for Standard Cursors.
32710 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32712 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
32714 * ComboBox.cs: ability to change style when the ctrl is already
32715 created, missing methods and events, bug fixes, signature fixes
32717 2005-01-19 Peter Bartok <pbartok@novell.com>
32719 * Cursors.cs (ctor): Added ctor to fix signature
32721 2005-01-18 Peter Bartok <pbartok@novell.com>
32723 * Button.cs: Implemented DoubleClick event
32725 - Fixed keyboard handling to behave like MS, where the press of
32726 Spacebar is equivalent to a mousedown, and the key release is
32727 equivalent to mouseup. Now a spacebar push will give the same
32728 visual feedback like a mouse click.
32729 - Added missing attributes
32730 - Added ImeModeChanged event
32731 - Added support for generating DoubleClick event for derived classes
32733 - Implemented DoubleClick event
32734 - Added missing attributes
32735 * CommonDialog.cs: Added missing attribute
32736 * ContextMenu.cs: Added missing attributes
32738 - AutoChecked buttons do not allow to be unselected when clicked
32739 (otherwise we might end up with no selected buttons in a group)
32740 - Added missing attributes
32741 - Implemented DoubleClickEvent
32742 * ThreadExceptionDialog.cs: Enabled TextBox code
32744 2005-01-18 Peter Bartok <pbartok@novell.com>
32746 * Form.cs: Removed debug output
32747 * Button.cs: Added support for DoubleClick method
32749 2005-01-18 Peter Bartok <pbartok@novell.com>
32752 - Added method to parent window that allows triggering size
32753 calculations when a menu is added/removed
32754 - set_Menu: Cleaned up mess from early days of Form and Control,
32755 now properly triggers a recalc when a menu is added/removed
32756 - Added case to select form itself as focused form if no child
32758 - Added PerformLayout call when showing dialog, to ensure properly
32761 - Select(): Made internal so Form can access it
32762 - Focus(): Only call Xplat layer if required (avoids loop), and sets
32764 * Application.cs (Run): Removed hack and calls PerformLayout instead
32765 to trigger calculation when Form becomes visible
32767 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
32769 * ComboBox.cs: fixes for ownerdraw
32771 2005-01-18 Peter Bartok <pbartok@novell.com>
32774 - Sentinel is no longer static, each Document gets it's own, this
32775 avoids locking or alternatively overwrite problems when more
32776 than one text control is used simultaneously.
32777 - Switched to use Hilight and HilightText brushes for text selection
32779 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32781 2005-01-18 Peter Bartok <pbartok@novell.com>
32784 - Hooked up the following events:
32792 o SystemColorsChanged
32793 o ParentFontChanged
32795 - Removed debug output
32796 - Added a call to the current theme's ResetDefaults when a color change
32798 * Form.cs: Now setting the proper ImeMode
32799 * Theme.cs: Defined a method to force recreation of cached resources
32800 and rereading of system defaults (ResetDefaults())
32801 * ThemeWin32Classic.cs: Added ResetDefaults() stub
32803 2005-01-17 Peter Bartok <pbartok@novell.com>
32805 * Control.cs: Added missing attributes
32807 2005-01-17 Jackson Harper <jackson@ximian.com>
32809 * TreeNode.cs: Implement editing. Add missing properties selected
32811 * TreeView.cs: Implement node editing. Also some fixes to use
32812 Invalidate (invalid area) instead of Refresh when selecting.
32814 2005-01-17 Peter Bartok <pbartok@novell.com>
32817 - Implemented InvokeGotFocus() method
32818 - Implemented InvokeLostFocus() method
32819 - Implemented InvokePaint() method
32820 - Implemented InvokePaintBackground() method
32821 - Implemented InvokeClick() method
32822 - Implemented FindForm() method
32823 - Implemented RectangleToClient() method
32824 - Implemented ClientToRectangle() method
32825 - Implemented ResetBackColor() method
32826 - Implemented ResetCursor() method
32827 - Implemented ResetFont() method
32828 - Implemented ResteForeColor() method
32829 - Implemented ResetImeMode() method
32830 - Implemented ResetLeftToRight() method
32831 - Implemented ResetText() method
32832 - Implemented Scale() methods
32833 - Implemented ScaleCore() method
32834 - Implemented Update() method
32835 - Removed unused variables
32836 - Stubbed AccessibilityNotifyClients and
32837 ControlAccessibleObject.NotifyClients() methods (dunno what to do
32839 - Now setting proper default for RightToLeft property
32840 - Fixed bug in SetClientSizeCore that would cause windows to get
32842 - Now sending Click/DoubleClick events
32843 - Now selecting controls when left mouse button is clicked on
32845 * AccessibleEvents.cs: Added
32846 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
32847 * XplatUIOSX.cs: Stubbed UpdateWindow() method
32848 * XplatUIWin32.cs: Implemented UpdateWindow() method
32849 * XplatUIX11.cs: Implemented UpdateWindow() method
32850 * Form.cs: Removed stray semicolon causing CS0162 warning
32851 * ThemeWin32Classic.cs: Fixed unused variable warnings
32852 * ScrollableControl.cs: Now calls base method for ScaleCore
32853 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
32854 style to avoid interference with internal click handler (which is
32855 different than standard Control click handling)
32857 - Now unchecks all sibling radio buttons when control is
32858 selected (Fixes #68756)
32859 - Removed internal tabstop variable, using the one inherited from
32862 2005-01-17 Jackson Harper <jackson@ximian.com>
32864 * NavigateEventArgs.cs: Fix base type.
32865 * LinkLabel.cs: Sig fix
32867 2005-01-17 Jackson Harper <jackson@ximian.com>
32869 * TreeView.cs: Only invalidate the effected nodes bounds when
32872 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32874 * XplatUIWin32.cs: fixes Win32 marshaling
32875 * XplatUIX11.cs: fixes method signature
32877 2005-01-17 Peter Bartok <pbartok@novell.com>
32879 * XplatUIX11.cs: Clean up resources when we no longer need them
32881 2005-01-17 Peter Bartok <pbartok@novell.com>
32883 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
32884 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
32885 and DestroyCursor() methods.
32886 * Cursor.cs: Partially implemented, now supports standard cursors;
32887 still contains some debug code
32888 * Cursors.cs: Implemented class
32890 - WndProc(): Added handling of WM_SETCURSOR message, setting the
32892 - Implemented Cursor property
32893 - Replaced break; with return; more straightforwar and possibly
32895 - Now properly setting the result for WM_HELP
32896 * X11Structs.cs: Added CursorFontShape enum
32897 * XplatUIStructs.cs:
32898 - Added StdCursor enum (to support DefineStdCursor() method)
32899 - Added HitTest enum (to support sending WM_SETCURSOR message)
32901 - Now sends the WM_SETCURSOR message
32902 - Implemented new cursor methods
32903 * XplatUIOSX.cs: Stubbed new cursor methods
32905 - Implemented new cursor methods
32906 - Added GetSystemMetrics function and associated enumeration
32908 2005-01-15 Peter Bartok <pbartok@novell.com>
32911 - WndProc(): Now handles EnableNotifyMessage
32912 - SelectNextControl(): Fixed bug where if no child or sibling
32913 controls exist we looped endlessly
32915 2005-01-14 Jackson Harper <jackson@ximian.com>
32917 * TreeView.cs: Recalculate the tab pages when a new one is added
32918 so that the proper bounding rects are created.
32920 2005-01-14 Jackson Harper <jackson@ximian.com>
32922 * TreeView.cs: Draw a gray box instead of a grip in the lower
32923 right hand corner when there are both horizontal and vertical
32926 2005-01-14 Jackson Harper <jackson@ximian.com>
32928 * Control.cs: When erasing backgrounds use FromHwnd instead of
32929 FromHdc when there is a NULL wparam. This occurs on the X driver.
32930 * XplatUIX11.cs: Set the wparam to NULL.
32932 2005-01-13 Jackson Harper <jackson@ximian.com>
32934 * PictureBox.cs: Implement missing methods (except ToString, need
32935 to test that on windows) and events. When visibility is changed we
32936 need to redraw the image because the buffers are killed. When size
32937 is changed refresh if the sizemode needs it.
32939 2005-01-13 Peter Bartok <pbartok@novell.com>
32941 * Control.cs (SelectNextControl): Was using wrong method to select
32944 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32946 * ComboBox.cs: fixes dropstyle
32948 2005-01-13 Peter Bartok <pbartok@novell.com>
32951 - Implemented Select() override
32952 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32953 - Now sets keyboard focus on startup
32954 * Control.cs (SelectNextControl): Now properly handles directed=true
32956 - WndProc: Now passes tab key on to base if AcceptTabChar=false
32957 - Added (really bad) focus rectangle (mostly for testing)
32958 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32959 to enforce redraw on focus changes
32960 * ContainerControl.cs:
32961 - Fixed detection of Shift-Tab key presses
32962 - Fixed traversal with arrow keys
32963 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32964 gonna keep this or if it's complete yet
32966 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32968 * ComboBox.cs: missing properties, fixes
32970 2005-01-13 Peter Bartok <pbartok@novell.com>
32972 * Panel.cs (ctor): Setting Selectable window style to off
32973 * Splitter.cs (ctor): Setting Selectable window style to off
32974 * GroupBox.cs (ctor): Setting Selectable window style to off
32975 * Label.cs (ctor): Setting Selectable window style to off
32977 2005-01-12 Miguel de Icaza <miguel@ximian.com>
32979 * UpDownBase.cs (InitTimer): If the timer has been already
32980 created, enable it.
32982 Use a TextBox instead of a Label.
32984 2005-01-12 Jackson Harper <jackson@ximian.com>
32986 * TreeView.cs: Refresh the tree after sorting the nodes. Always
32987 draw the connecting node lines (when ShowLines is true).
32988 * TreeNode.cs: The nodes index can now be updated. This is used
32989 when a node collection is sorted.
32990 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32991 insert or an existing unsorted node collection can be sorted.
32993 2005-01-12 Peter Bartok <pbartok@novell.com>
32995 * ContainerControl.cs: Implemented ProcessDialogKeys()
32997 2005-01-12 Peter Bartok <pbartok@novell.com>
33000 - Implemented SelectNextControl() method
33001 - Several focus related bug fixes
33002 - Fixed Docking calculations to match MS documentation and
33005 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
33007 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
33010 2005-01-12 Peter Bartok <pbartok@novell.com>
33013 - Fixed broken Contains() method
33014 - Implemented GetNextControl() method. Finally. This is the pre-
33015 requisite for focus handling.
33017 2005-01-12 Peter Bartok <pbartok@novell.com>
33019 * OSXStrucs.cs: Added
33021 2005-01-12 Peter Bartok <pbartok@novell.com>
33024 - Removed PeekMessageFlags
33025 - Implemented SetWindowStyle() method
33026 * XplatUIStructs.cs: Added PeekMessageFlags
33027 * X11Structs: Added missing border_width field to XWindowChanges struct
33029 - PeekMessage: Now throws exception if flags which are not yet
33030 supported are passed
33031 - Implemented SetWindowStyle() method
33032 - Fixed SetZOrder to handle AfterHwnd properly
33033 * XplatUI.cs: Added SetWindowStyle() method
33034 * XplatUIDriver.cs: Added SetWindowStyle() abstract
33036 - Implemented UpdateStyles() method
33037 - Implemented UpdateZOrder() method
33038 * XplatUIOSX.cs: Added SetWindowStyle() stub
33040 2005-01-12 Geoff Norton <gnorton@customerdna.com>
33042 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
33046 2005-01-11 Jackson Harper <jackson@ximian.com>
33048 * TreeView.cs: Still need to draw lines to siblings even if out of
33049 the current node is out of the clip.
33051 2005-01-11 Jackson Harper <jackson@ximian.com>
33053 * TreeView.cs: When setting the hbar/vbar/grip position use
33054 SetBounds so that perform layout is only called once. Also suspend
33055 and resume layout so layout is only done once for all controls.
33056 - Removed some debug fluff
33057 * SizeGrip.cs: Call base implmentation in overriding methods.
33058 - When visibility is changed the drawing buffers are killed so we
33061 2005-01-11 Jackson Harper <jackson@ximian.com>
33063 * TreeView.cs: Calculate the open node count while drawing. This
33064 saves us an entire tree traversal for every paint operation. Use
33065 a member var for the open node count so less vars are passed around.
33067 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
33069 * MonthCalendar.cs:
33070 - fixed selection to use mousemove, not mouse polling on timer
33071 * ThemeWin32Classic.cs
33072 - removed redundant unused variable "no_more_content"
33074 2005-01-11 Peter Bartok <pbartok@novell.com>
33076 * XplatUIX11.cs (DoEvents): Needs to return when no more events
33077 are pending, so it now calls PeekMessage instead of GetMessage;
33078 implemented a incomplete version of PeekMessage
33080 2005-01-11 Peter Bartok <pbartok@novell.com>
33082 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
33084 * TextBoxBase.cs: Added sending of TextChanged event
33086 2005-01-10 Jackson Harper <jackson@ximian.com>
33088 * TreeView.cs: Try not to draw outside the clipping rectangle on
33091 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
33093 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
33095 2005-01-10 Jackson Harper <jackson@ximian.com>
33098 - Implement fast scrolling. Now only the newly
33099 exposed nodes are drawn and the old image is moved using the
33100 XplatUI::ScrollWindow method.
33101 - Factor in height of nodes when calculating whether or not the
33102 node is in the clipping rect.
33104 2005-01-10 Jackson Harper <jackson@ximian.com>
33106 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
33108 2005-01-10 Peter Bartok <pbartok@novell.com>
33110 * Application.cs: Added temporary hack to resolve all our resize
33111 required issues on startup. This will get fixed properly at
33112 some point in the future
33114 2005-01-10 Jackson Harper <jackson@ximian.com>
33116 * SizeGrip.cs: New internal class that is used as a sizing
33117 grip control...hence the name.
33119 2005-01-10 Peter Bartok <pbartok@novell.com>
33121 * Control.cs: Implemented proper TabIndex handling, now assigning
33122 a tabindex when a control is added to a container
33123 * GroupBox.cs (ctor): Now sets the Container style bit, required
33124 for Control.GetNextControl()
33126 2005-01-09 Jackson Harper <jackson@ximian.com>
33128 * TextBoxBase.cs: Clear window when scrolling (fixes build).
33130 2005-01-09 Peter Bartok <pbartok@novell.com>
33132 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33133 XplatUIX11.cs: Added ability to control ScrollWindow expose and
33134 an overload for ScrollWindow to allow only scrolling a rectangle
33136 2005-01-09 Peter Bartok <pbartok@novell.com>
33139 - Implemented SetDesktopBounds method
33140 - Implemented SetDesktopLocation method
33142 2005-01-08 Jackson Harper <jackson@ximian.com>
33144 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33145 the node count has changed, this removes to VScroll::Refresh calls
33148 2005-01-08 Geoff Norton <gnorton@customerdna.com>
33150 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33152 2005-01-07 Jackson Harper <jackson@ximian.com>
33154 * TreeNode.cs: Just update the single node when it is
33155 checked. Don't refresh after toggling, the Expand/Collapse already
33157 * TreeView.cs: Respect clipping a little more when drawing. Try
33158 not to redraw things that don't need to be redrawn. Just hide the
33159 scrollbars when they are no longer needed instead of removing
33160 them, so they don't have to be created again and again.
33162 2005-01-07 Geoff Norton <gnorton@customerdna.com>
33164 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
33165 coordinates to window space to place the caret properly, FIXED.
33166 Implement GetWindowState & SetWindowState
33168 2005-01-06 Peter Bartok <pbartok@novell.com>
33171 - Implemented ClientSize property
33172 - Implemented DesktopBounds property
33173 - Implemented DesktopLocation property
33174 - Implemented IsRestrictedWindow property
33175 - Implemented Size property
33176 - Implemented TopLevel property
33177 - Implemented FormWindowState property
33179 - Implemented GetTopLevel() method
33180 - Implemented SetTopLevel() method
33181 * X11Structs.cs (Atom):
33182 - Added AnyPropertyType definition
33183 - Added MapState definiton and updated XWindowAttribute struct
33184 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33185 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33186 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
33188 - Implemented GetWindowState() and SetWindowState() methods
33189 - Fixed Win32GetWindowLong return type
33191 - Introduced central function for sending NET_WM messages
33192 - Implemented GetWindowState() and SetWindowState() methods
33193 * TextBoxBase.cs (set_Lines):
33194 - Now uses Foreground color for text added via Text property (Duh!)
33195 - Added code to remember programmatically requested size (fixes
33196 behaviour when Multiline is set after Size)
33197 - Added AutoSize logic
33199 2005-01-06 Jackson Harper <jackson@ximian.com>
33201 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
33203 2005-01-06 Jackson Harper <jackson@ximian.com>
33205 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
33206 set to less then 0.
33208 2005-01-06 Jackson Harper <jackson@ximian.com>
33210 * ScrollableControl.cs: Lazy init the scrollbars.
33212 2005-01-06 Jackson Harper <jackson@ximian.com>
33214 * Theme.cs: Speed up getting pens and solid brushes, by using
33215 their ARGB as a hash instead of tostring and not calling Contains.
33217 2005-01-06 Peter Bartok <pbartok@novell.com>
33220 - Implemented OnActivated and OnDeactivate event trigger
33221 - Implemented Activate() method
33222 - Fixed ShowDialog() to activate the form that was active before
33223 the dialog was shown
33225 - Added global active_window var that tracks the currently active
33227 - Now always grabs Property changes from the root window to always
33228 catch changes on the active window property
33229 - Added code to PropertyNotify handler to send Active/Inactive
33230 messages when state changes. This puts X11 and Win32 en par on
33231 WM_ACTIVATE notifications (except for double notifications when
33232 the user clicks away from our modal window to another one of our
33235 2005-01-05 Jackson Harper <jackson@ximian.com>
33237 * ImageList.cs: Implment ctor
33239 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33241 * XplatUIOSX.cs: Implement Activate/SetTopmost
33243 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33245 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
33247 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33249 * XplatUIOSX.cs: Implement GetActive/SetFocus.
33251 2005-01-05 Peter Bartok <pbartok@novell.com>
33253 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
33254 XplatUIOSX.cs: Added GetActive method to return the currently
33255 active window for the application (or null, if none is active)
33257 - Implemented ActiveForm
33258 - Commented out owner assignment for modal dialogs (causes problems
33259 on Win32, since the owner will be disabled)
33260 - Reworked some Active/Focus handling (still incomplete)
33261 * CommonDialog.cs: Commented out owner assignment for modal dialogs
33262 (causes problems on Win32, since the owner will be disabled)
33263 * IWin32Window: Added ComVisible attribute
33265 2005-01-05 Peter Bartok <pbartok@novell.com>
33267 * ToolTip.cs (WndProc): Enable setting focus now that we have the
33268 required XplatUI functions.
33270 2005-01-05 Peter Bartok <pbartok@novell.com>
33272 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
33273 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
33274 to implement focus and activation handling; still incomplete and
33277 2005-01-04 Peter Bartok <pbartok@novell.com>
33279 * TextBoxBase.cs: Changed access level for Document property to
33280 match switch to internal for TextControl
33282 2005-01-04 Peter Bartok <pbartok@novell.com>
33284 * AccessibleObject: Added ComVisible attribute
33286 2005-01-04 Jackson Harper <jackson@ximian.com>
33288 * X11Keyboard.cs: Remove unneeded var.
33290 2005-01-04 Jackson Harper <jackson@ximian.com>
33292 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
33294 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33295 ClientMessage. This makes apps exit cleanly (more often).
33297 2005-01-04 Jackson Harper <jackson@ximian.com>
33299 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33300 handling focus, return correct colors and fonts,
33301 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33302 handle selection, horizontal scrolling, and mouse interaction.
33304 2005-01-04 Peter Bartok <pbartok@novell.com>
33306 * ICommandExecutor.cs: Added
33307 * IDataGridColumnStyleEditingNotificationService.cs: Added
33308 * IFeatureSupport.cs: Added
33309 * IFileReaderService.cs: Added
33310 * IDataObject.cs: Added ComVisible attribute
33311 * AmbientProperties.cs: Added
33312 * BaseCollection.cs: Added missing attributes
33313 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33314 * BaseCollection.cs: Added missing attributes
33315 * Binding.cs: Added TypeConverter attribute
33316 * BindingContext.cs: Added DefaultEvent attribute
33317 * BindingsCollection.cs: Added DefaultEvent attribute
33318 * Button.cs: Added DefaultValue attribute
33319 * DragEventArgs.cs: Added ComVisible attribute
33320 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33321 * KeyEventArgs.cs: Added ComVisible attribute
33322 * KeyPressEventArgs.cs: Added ComVisible attribute
33323 * MouseEventArgs.cs: Added ComVisible attribute
33324 * NavigateEventArgs.cs: Added
33325 * NavigateEventHandler.cs: Added
33326 * FeatureSupport.cs: Added
33327 * OSFeature.cs: Added
33328 * Theme.cs: Added abstract Version property to support OSFeature
33329 * ThemeWin32Classic.cs: Added Version property to
33330 support OSFeature.Themes
33331 * ProgressBar.cs: Removed OnPaintBackground override, not required since
33332 the proper styles to avoid background drawing are set, also doesn't
33334 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33335 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33336 * ScrollEventArgs.cs: Added ComVisible attribute
33337 * SplitterEventArgs.cs: Added ComVisible attribute
33338 * AccessibleSelection.cs: Added Flags attribute
33339 * Appearance.cs: Added ComVisible attribute
33340 * Border3DSide.cs: Added ComVisible attribute
33341 * Border3DStyle.cs: Added ComVisible attribute
33342 * BorderStyle.cs: Added ComVisible attribute
33343 * DragAction.cs: Added ComVisible attribute
33344 * ErrorBlinkStyle.cs: Added
33345 * ScrollEventType.cs: Added ComVisible attribute
33346 * AnchorStyles.cs: Added Editor attribute
33347 * DockStyle.cs: Added Editor attribute
33348 * HorizontalAlignment.cs: Added ComVisible attribute
33349 * HelpEventArgs.cs: Added ComVisible attribute
33350 * PaintEventArgs.cs: Added IDisposable
33352 2005-01-04 Peter Bartok <pbartok@novell.com>
33354 * TextControl.cs: Switched Line, LineTag and Document classes to
33357 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33359 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33360 Simple mode, fixes, IntegralHeight, etc.
33362 2005-01-04 Peter Bartok <pbartok@novell.com>
33364 * TextBoxBase.cs: Using proper font variable now
33366 2005-01-04 Peter Bartok <pbartok@novell.com>
33368 * Form.cs (ShowDialog): Set parent to owner, if provided
33369 * GroupBox.cs: Removed unused vars
33371 - Added GetHashCode() for Document and LineTag classes
33372 - Removed unused variables
33373 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33374 to allow translation between continuous char position and line/pos
33375 * CheckBox.cs: Removed vars that are provided by base class
33376 * RadioButton.cs: Removed vars that are provided by base class, added
33377 new keyword where required
33378 * LinkLabel.cs: Added new keyword where required
33379 * Control.cs (WndProc): Removed unused variable
33381 - Finished SelectionLength property
33382 - Implemented SelectionStart property
33383 - Implemented Text property
33384 - Removed unused vars
33385 * MessageBox.cs: Added new keyword where required
33386 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33388 * MenuAPI.cs: Added new keyword where required
33389 * ButtonBase.cs: Removed vars that are provided by base class, added
33390 new keyword where required
33391 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33392 argument to double, to allow compiling with csc 2.0 (Atsushi ran
33394 * Application.cs (Run): Now triggers the ThreadExit event
33395 * CommonDialog.cs: Added new keyword where required; now properly sets
33396 parent (owner) for dialog
33397 * XplatUIX11.cs: Commented out unused vars
33398 * StatusBar.cs: Fixed signature for Text property
33399 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33401 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33403 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33404 TrackBar.cs, MonthCalendar.cs: remove unused vars
33406 2005-01-03 Jackson Harper <jackson@ximian.com>
33408 * ThemeWin32Classic.cs:
33409 * X11Keyboard.cs: Remove unused vars.
33411 2005-01-03 Peter Bartok <pbartok@novell.com>
33414 - set_Text: Tied into TextControl
33415 - set_TextAlignment: Tied into TextControl
33417 - Added alignment properties and implemented alignment handling
33418 and drawing (still has a bug, not generating proper expose events)
33419 - Added new Line() constructor to allow passing the line alignment
33420 - Fixed selection setting, properly handling end<start now
33421 - Added aligment considerations to RecalculateDocument()
33423 - Now properly enforces control height for single line controls
33424 - Added support for CharacterCasing
33425 - Added IsInputKey override
33426 - Fixed Keys.Enter logic
33427 - Added SetBoundsCore override
33428 - Fixed mouse selection handling
33430 2005-01-03 Jackson Harper <jackson@ximian.com>
33433 - Collapse and uncheck all nodes when CheckBoxes is disabled.
33434 - Checkboxes are always aligned to the bottom of the node,
33435 regardless of item height.
33436 - Use the node bounds to draw the text so we can center it when
33437 the item height is greater then the font height.
33438 - Node::Bounds are only the text part of the node.
33439 * TreeNode.cs: New method to combine collapsing and unchecking all
33442 2005-01-02 Jackson Harper <jackson@ximian.com>
33444 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33445 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33446 tree when a check is changed. TODO: Only refresh the checked node.
33448 2004-12-30 Jackson Harper <jackson@ximian.com>
33450 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33451 * TreeNode.cs: When collapsing make sure to never collapse the
33454 2004-12-29 Jackson Harper <jackson@ximian.com>
33456 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33458 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
33460 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33462 2004-12-28 Peter Bartok <pbartok@novell.com>
33464 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33467 2004-12-28 Peter Bartok <pbartok@novell.com>
33469 * Control.cs (WndProc): Added WM_HELP handler, now generates
33470 HelpRequested event
33471 * Form.cs: Added HelpButton property and required support code
33472 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33474 2004-12-28 Peter Bartok <pbartok@novell.com>
33477 - Made DialogForm.owner variable internal
33478 - Added check to ensure owner form is set before setting
33479 owner properties in CreateParams
33481 2004-12-28 Geoff Norton <gnorton@customerdna.com>
33483 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
33484 swizzling. Implement ClientToScreen and ScreenToClient. Implement
33485 GetCursorPos. Fix major visibility issues. Rework the windowing
33486 system to support borderless/titleless windows (implements menus).
33487 Fix GetWindowPos. Implement initial background color support for
33490 2004-12-28 Peter Bartok <pbartok@novell.com>
33492 * Form.cs (get_CreateParams): Make sure we have an owner before using
33493 the owner variable. Implement proper default if no owner exists
33495 2004-12-28 Peter Bartok <pbartok@novell.com>
33497 * In preparation for making Managed.Windows.Forms the default build target
33498 for System.Windows.Forms, the following stubbed files were added.
33499 Dialogs are currently being implemented by contributors and are only
33500 short-term place holders.
33501 * ColorDialog.cs: Initial check-in (minmal stub)
33502 * DataGrid.cs: Initial check-in (minimal stub)
33503 * DataGridLineStyle.cs: Initial check-in (minimal stub)
33504 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33505 * DataGridTableStyle.cs: Initial check-in (minimal stub)
33506 * FontDialog.cs: Initial check-in (minimal stub)
33507 * FileDialog.cs: Initial check-in (minimal stub)
33508 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33509 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33510 * OpenFileDialog: Initial check-in (minimal stub)
33511 * IComponentEditorPageSite.cs: Initial check-in
33512 * Splitter.cs: Initial check-in (for Jackson)
33513 * SplitterEventArgs.cs: Initial check-in (for Jackson)
33514 * SplitterEventHandler.cs: Initial check-in (for Jackson)
33515 * TextBox.cs: Initial check-in; still needs some wiring to
33516 TextControl backend
33517 * Form.cs: Implemented ControlBox property
33518 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33519 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33520 * TextControl.cs: Added selection functionality; added todo header
33522 - Implemented Lines property
33523 - Implemented TextHeight property
33524 - Implemented SelectedText property
33525 - Implemented SelectionLength property
33526 - Implemented SelectAll method
33527 - Implemented ToString method
33528 - Removed and cleaned up some debug code
33529 - Implemented (still buggy) mouse text selection
33531 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
33533 * ComboBox.cs: Complete DropDownList implementation, fixes.
33535 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
33537 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33538 * ComboBoxStyle.cs: ComboBoxStyle enum
33539 * ComboBox.cs: Initial work on ComboBox control
33541 2004-12-21 Peter Bartok <pbartok@novell.com>
33543 * Control.cs (ctor, CreateParams): Moved setting of is_visible
33544 forward so that anything that creates a window gets the default,
33545 also no longer uses Visible property in CreateParams to avoid
33546 walking up the parent chain and possibly get the wrong visible
33547 status. Fixed IsVisible to no longer walk up to the parent.
33549 2004-12-21 Peter Bartok <pbartok@novell.com>
33551 * Form.cs (ShowDialog): Unset modality for the proper window
33553 2004-12-20 Peter Bartok <pbartok@novell.com>
33555 * CommonDialog.cs: Initial check-in
33557 2004-12-20 Peter Bartok <pbartok@novell.com>
33559 * Control.cs (Visible): Now uses the parent window instead of the
33560 client area window for the property
33563 - ShowDialog(): Now uses the proper window for modality
33564 - The default visibility state for the form parent is now false. This
33565 will prevent the user from seeing all the changes to the form and
33566 its controls before the application hits Application.Run()
33567 - Removed some stale commented out code
33570 - Added FindWindow() method to have a method to check for existence
33572 - Added ability to override default exception handling (for example
33573 when debugging with VS.Net; to do this the ExternalExceptionHandler
33575 - Removed some useless debug output
33578 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33579 not working as expected
33580 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33581 property to allow switching back to the modal window if focus is
33582 given to another one of our windows (Application Modal)
33583 - Now only sets override_redirect if we create a window
33585 - Moved EventMask selection before mapping of newly created window
33586 so we can catch the map event as well
33587 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33588 - Added various Atom related DllImports
33589 - Implemented Exit() method
33590 - .ctor() : No longer shows window if WS_VISIBLE is not defined
33591 in the CreateParams
33593 * MessageBox.cs: Now properly deals with the FormParent window by
33594 providing an override the FormParent CreateParams property to
33595 set as POPUP instead of OVERLAPPED window.
33597 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33599 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
33600 Minor code cleanup.
33602 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33604 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33606 2004-12-18 Peter Bartok <pbartok@novell.com>
33608 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33609 implementing SetModal() method
33611 2004-12-18 Peter Bartok <pbartok@novell.com>
33613 * X11Structs.cs (XGCValues): Fixed type of function element
33614 * XplatUI.cs: Added ScrollWindow() method
33615 * XplatUIDriver.cs: Added ScrollWindow() abstract
33616 * XplatUIWin32.cs: Implemented ScrollWindow() method
33617 * XplatUIX11.cs: Implemented ScrollWindow() method
33618 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33620 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33622 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
33623 Some more keyboard support (INCOMPLETE)
33625 2004-12-17 Peter Bartok <pbartok@novell.com>
33628 - Added color attribute to line tags.
33629 - Added color argument to all functions dealing with tags
33630 - Added color argument support to various functions
33631 - Fixed miss-calculation of baseline/shift in certain circumstances
33633 * TextBoxBase.cs: Added new color option to test code
33635 2004-12-17 Jackson Harper <jackson@ximian.com>
33638 * MonthCalendar.cs: Signature fixes
33640 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33642 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33643 keyboard event moved it. Create a new graphics context for each paint resolves this
33645 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33647 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33648 Make caret exist and go blink blink. Initial keyboard support.
33649 Fix exception handler, Add Invalidate support. Change way RefreshWindow
33652 2004-12-17 Jackson Harper <jackson@ximian.com>
33654 * XplatUIStructs.cs: Updated set of virtual keycodes.
33655 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33657 2004-12-17 Jackson Harper <jackson@ximian.com>
33659 * XplatUIX11.cs: Prune old keyboard code.
33661 2004-12-17 Jackson Harper <jackson@ximian.com>
33663 * XplatUIX11.cs: When generating mouse wparams get the modifier
33664 keys from the ModifierKeys property.
33666 2004-12-17 Jackson Harper <jackson@ximian.com>
33668 * X11Keyboard.cs: Send up/down input when generating
33669 messages. Remove some unused vars.
33671 2004-12-17 Jackson Harper <jackson@ximian.com>
33674 * TreeView.cs: get rid of warnings.
33676 2004-12-17 Jackson Harper <jackson@ximian.com>
33678 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33680 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
33682 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33683 CheckedListBox.cs: Implementation
33685 2004-12-17 Peter Bartok <pbartok@novell.com>
33687 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33689 2004-12-16 Peter Bartok <pbartok@novell.com>
33692 - InsertCharAtCaret(): Fixed start pos fixup
33693 - CaretLine_get: No longer derives the line from the tag, the tag
33694 could be stale if lines in the document have been added or deleted
33695 - RebalanceAfterDelete(): Fixed bug in balancing code
33696 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33697 - Line.Streamline(): Now can also elminate leading empty tags
33698 - DumpTree(): Added a few more tests and prevented exception on
33700 - Added Debug section for Combining lines
33701 - Delete(): Now copies all remaining properties of a line
33704 - Left mousebutton now sets the caret (and middle button still acts
33705 as formatting tester, which must go away soon)
33706 - Added Debug section for Deleting/Combining lines
33707 - Fixed calculations for UpdateView after Combining lines
33709 2004-12-16 Peter Bartok <pbartok@novell.com>
33711 * TextControl.cs: Now properly aligns text on a baseline, using the
33712 new XplatUI.GetFontMetrics() method. Simplified several calculations
33713 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33716 2004-12-16 Peter Bartok <pbartok@novell.com>
33718 * XplatUI.cs: Added GetFontMetrics() method
33719 * XplatUIDriver.cs: Added GetFontMetrics() abstract
33720 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33721 into libgdiplus, our private GetFontMetrics function
33722 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33723 * XplatUIWin32.cs: Implemented GetFontMetrics() method
33725 2004-12-16 Jackson Harper <jackson@ximain.com>
33727 * XplatUIStruct.cs: Add enum for dead keys
33728 * X11Keyboard.cs: Map and unmap dead keys.
33730 2004-12-16 Jackson Harper <jackson@ximian.com>
33732 * X11Keyboard.cs: Detect and use the num lock mask.
33734 2004-12-16 Peter Bartok <pbartok@novell.com>
33736 * Control.cs (CreateGraphics): Added check to make sure the
33737 handle of the window exists before calling Graphics.FromHwnd()
33739 2004-12-16 Peter Bartok <pbartok@novell.com>
33741 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33742 contains a lot of code that's not supposed to be there for the
33743 real thing, but required for developing/testing the textbox
33746 2004-12-16 Peter Bartok <pbartok@novell.com>
33749 - Fixed Streamline method
33750 - Added FindTag method to Line
33751 - Added DumpTree method for debugging
33752 - Added DecrementLines() method for deleting lines
33753 - Fixed UpdateView to update the cursor to end-of-line on single-line
33755 - Added PositionCaret() method
33756 - Fixed MoveCaret(LineDown) to move into the last line, too
33757 - Added InsertChar overload
33758 - Fixed InsertChar tag offset calculations
33759 - Added DeleteChar() method
33760 - Added Combine() method for folding lines
33761 - Fixed Delete() method, no longer allocates wasted Line object and
33762 now copies all properties when swapping nodes
33763 - Delete() method now updates document line counter
33765 2004-12-15 Jackson Harper <jackson@ximian.com>
33767 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33768 * X11Keyboard.cs: Expose the currently selected modifier keys
33769 through a property.
33771 2004-12-15 Peter Bartok <pbartok@novell.com>
33773 * TextControl.cs: Initial check-in. Still incomplete
33775 2004-12-15 Jackson Harper <jackson@ximian.com>
33778 * TreeView.cs: Fix build on csc (second time today ;-))
33780 2004-12-15 Jackson Harper <jackson@ximian.com>
33782 * TreeView.cs: Store the treenodes plus/minus box bounds when it
33783 is calculated and use this for click testing.
33784 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33786 2004-12-15 Jackson Harper <jackson@ximian.com>
33788 * TreeView.cs: Pass the nodes image index to the image list when
33789 drawing that image.
33791 2004-12-15 Jackson Harper <jackson@ximian.com>
33793 * X11Keyboard.cs: Set messages hwnd.
33794 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33795 post_message calls.
33797 2004-12-15 Jackson Harper <jackson@ximian.com>
33799 * X11Keyboard.cs: Fix to compile with csc.
33801 2004-12-15 Jackson Harper <jackson@ximian.com>
33803 * X11Structs.cs: Add key mask values
33804 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33805 * X11Keyboard.cs: New file - Extrapolates and interpolates key
33806 down/up foo into WM_CHAR foo
33807 * KeyboardLayouts.cs: Common keyboard layouts
33808 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33809 post messages into the main queue.
33811 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
33813 * Button.cs: implement ProcessMnemonic
33814 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33816 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33817 * ButtonBase.cs: Show HotkeyPrefix (not the &)
33819 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
33821 * MonthCalendar.cs: Implemented click-hold for next/previous month
33824 2004-12-11 Peter Bartok <pbartok@novell.com>
33827 - Added XKeyboardState (moved from XplatUIX11.cs)
33828 - Added XCreateGC related enums and structures
33829 - Added GXFunction for XSetFunction
33831 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33833 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
33834 CaretVisible() calls
33836 * ToolTip.cs: Added code to prevent stealing focus from app windows
33838 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
33839 DestroyCaret, SetCaretPos and CaretVisible)
33842 - Added implementation for caret functions
33843 - Moved hover variables into a struct, to make it a bit easier
33844 on the eyes and to debug
33845 - Removed XKeyboardState (moved to XplatUIX11.cs)
33846 - Moved Keyboard properties into the properties region
33848 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
33849 call to get a graphics context for our control
33851 * XplatUIOSX.cs: Added empty overrides for the new caret functions
33853 * TreeView.cs: Fixed bug. No matter what color was set it would always
33854 return SystemColors.Window
33856 * XplatUIWin32.cs: Implemented caret overrides
33858 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
33860 * ListBox.cs: fire events, implement missing methods and properties,
33863 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
33865 * MonthCalendar.cs: invalidation bug fixing
33866 * ThemeWin32Classic.cs: paint fixing
33868 2004-12-09 Geoff Norton <gnorton@customerdna.com>
33870 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
33871 prepare the CGContextRef there now.
33873 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
33875 * MonthCalendar.cs:
33876 - optimisationL only invalidate areas that have changed
33877 * ThemeWin32Classic.cs:
33878 - only paint parts that intersect with clip_area
33880 2004-12-09 Peter Bartok <pbartok@novell.com>
33882 * Application.cs: Undid changes from r37004 which cause problems
33885 2004-12-09 Ravindra <rkumar@novell.com>
33887 * ToolBar.cs: Added support for displaying ContextMenu
33888 attached to a button on ToolBar.
33889 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
33892 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33894 * Label.cs: autosize works in text change and removes unnecessary
33897 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33899 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33902 2004-12-08 Geoff Norton <gnorton@customerdna.com>
33904 * XplatUIOSX.cs: Added mouse move/click/grab support
33905 Remove some debugging WriteLines not needed anymore.
33906 Add window resizing/positioning.
33907 Fix visibility on reparenting.
33909 2004-12-08 Peter Bartok <pbartok@novell.com>
33911 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
33913 2004-12-07 Geoff Norton <gnorton@customerdna.com>
33915 * XplatUIOSX.cs: Initial checkin
33916 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
33918 2004-12-03 Ravindra <rkumar@novell.com>
33920 * ListView.cs: Added some keybindings and fixed scrolling.
33921 ScrollBars listen to ValueChanged event instead of Scroll
33922 Event. This would let us take care of all changes being
33923 done in the scrollbars' values programmatically or manually.
33924 * ListView.cs (CanMultiselect): Added a check for shift key.
33925 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
33926 * ListViewItem.cs (Clone): Fixed. We need to make a copy
33927 of ListViewSubItemCollection as well.
33929 2004-12-06 Peter Bartok <pbartok@novell.com>
33931 * Control.cs (Parent): Added check and exception to prevent
33934 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
33936 * ListBox.cs: implemented clipping, selection single and multiple,
33939 2004-12-03 Ravindra <rkumar@novell.com>
33941 * ListView.cs (ListView_KeyDown):
33942 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33943 when CTRL key is pressed.
33944 * ListViewItem.cs (Selected): Fixed setting the property.
33946 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33948 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33950 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33951 MinimizeBox, ShowInTaskbar, TopMost properties.
33953 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33954 will be implemented).
33956 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33958 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33960 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33963 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33965 * TreeView.cs: BackColor is Colors.Window.
33967 2004-12-01 Jackson Harper <jackson@ximian.com>
33969 * TreeView.cs: When resizing the tree if the user is making it
33970 smaller we don't get expose events, so we need to handle adding
33971 the horizontal scrollbar in the size changed handler as well as
33972 the expose handler.
33974 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
33976 * DrawItemState.cs: fixes wrong enum values
33978 2004-12-01 Jackson Harper <jackson@ximian.com>
33980 * TreeView.cs: Resize the hbar as well as the vbar on resize.
33982 2004-12-01 Jackson Harper <jackson@ximian.com>
33984 * NodeLabelEditEventArgs.cs:
33985 * NodeLabelEditEventHandler.cs:
33986 * OpenTreeNodeEnumerator.cs:
33988 * TreeNodeCollection.cs:
33990 * TreeViewAction.cs:
33991 * TreeViewCancelEventArgs.cs:
33992 * TreeViewCancelEventHandler.cs:
33993 * TreeViewEventArgs.cs:
33994 * TreeViewEventHandler.cs: Initial implementation.
33996 2004-12-01 Ravindra <rkumar@novell.com>
33998 * ListView.cs (CalculateListView): Fixed scrolling related
33999 calculations. Also, removed some debug statements from other
34001 * ListViewItem.cs: Changed access to 'selected' instance variable
34002 from private to internal.
34003 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
34005 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
34007 * ThemeWin32Classic.cs: remove cache of brush and pens for
34008 specific controls and use the global system, fixes scrollbutton
34009 bugs (for small sizes, disabled, etc)
34011 * ScrollBar.cs: does not show the thumb for very small controls
34012 (as MS) and allow smaller buttons that the regular size
34014 2004-12-01 Miguel de Icaza <miguel@ximian.com>
34016 * UpDownBase.cs: Add abstract methods for the interface.
34017 Add new virtual methods (need to be hooked up to TextEntry when it
34019 Add override methods for most features.
34020 Computes the size, forces the height of the text entry.
34022 * NumericUpDown.cs: Put here the current testing code.
34024 * Set eol-style property on all files that do not have mixed line
34025 endings, to minimize the future problems. There are still a few
34026 files with mixed endings, and someone should choose whether they
34027 want to move it or not.
34029 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
34031 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
34034 2004-11-30 Ravindra <rkumar@novell.com>
34036 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
34037 drawing and replaced use of SystemColors by theme colors.
34038 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
34039 * ListView.cs (ListViewItemCollection.Add): Throw exception when
34040 same ListViewItem is being added more than once.
34042 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
34044 * MonthCalendar.cs:
34045 - ControlStyles love to make the control not flicker
34047 2004-11-30 Peter Bartok <pbartok@novell.com>
34049 * CharacterCasing.cs: Added
34051 2004-11-29 Peter Bartok <pbartok@novell.com>
34053 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34054 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
34055 I am removing these files as they conflict with already completed
34056 work. While it is fantastic to get contributions to MWF, I
34057 respectfully ask that everyone please coordinate their contributions
34058 through mono-winforms-list or #mono-winforms at this time. We're
34059 explicitly avoiding stubbing and don't want controls that don't have
34060 their basic functionality implemented in svn. Please also see
34061 http://www.mono-project.com/contributing/winforms.html
34064 2004-11-29 Marek Safar <marek.safar@seznam.cz>
34066 * Application.cs (ModalRun): Don't hang after exit.
34068 * Theme.cs: New TreeViewDefaultSize property.
34070 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
34071 with less hardcoded SystemColors constant.
34072 Implemented TreeViewDefaultSize.
34074 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34075 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
34078 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
34080 * MonthCalendar.cs:
34081 - Fix NextMonthDate and PrevMonthDate click moving calendar
34083 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
34085 * MonthCalendar.cs:
34086 - Fix usage of ScrollChange Property when scrolling months
34088 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
34090 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
34091 - Fixes menu destroying
34092 - Support adding and removing items on already created menus
34094 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
34096 * MonthCalendar.cs:
34097 - Re-worked all bolded dates handling to match win32
34098 * ThemeWin32Classic.cs:
34099 - Fixed rendering with bolded dates
34101 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
34103 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
34104 - Horizontal scroolbar
34109 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
34111 * MonthCalendar.cs:
34112 - Fix Usage of MaxSelectionCount from SelectionRange
34113 - Fixed Shift + Cursor Selection
34114 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
34115 - Fixed normal cursor selection to be compat with win32
34116 - Fixed Shift + Mouse Click selection
34118 2004-11-24 Peter Bartok <pbartok@novell.com>
34120 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
34121 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
34123 - CreatedKeyBoardMsg now updates keystate with Alt key
34124 - Added workaround for timer crash to CheckTimers, Jackson will
34125 develop a proper fix and check in later
34126 - Implemented DispatchMessage
34127 - Removed calling the native window proc from GetMessage (call
34128 now moved to DispatchMessage)
34130 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34131 the keydata (Fixes bug #69831)
34134 - (DispatchMessage): Switched to return IntPtr
34135 - Added DllImport for SetFocus
34137 2004-11-24 Ravindra <rkumar@novell.com>
34139 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34140 background drawing.
34141 * ListViewItem.cs: Fixed various properties, calculations
34142 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34143 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34144 and some internal properties. Fixed MouseDown handler and Paint
34147 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34149 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34151 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34153 * ContainerControl.cs: correct accidental check in of local changes
34155 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34157 * ThemeWin32Classic.cs:
34158 - Fixed Drawing Last month in grid (sometimes not showing)
34159 * MonthCalendar.cs:
34160 - Fixed title width calculation bug (makeing title small)
34162 2004-11-23 Peter Bartok <pbartok@novell.com>
34165 - Added generation of WM_MOUSEHOVER event
34166 - Added missing assignment of async_method atom
34167 - Fixed WM_ERASEBKGND; now only redraws the exposed area
34169 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34171 * ThemeWin32Classic.cs:
34172 - Fixed Drawing of today circle when showtodaycircle not set
34173 - fixed drawing of first and last month in the grid (gay dates)
34174 * MonthCalendar.cs:
34175 - Fixed Drawing of today circle
34176 - Fixed drawing of grady dates
34177 - Fixed HitTest for today link when ShowToday set to false
34178 - Fixed DefaultSize to obey ShowToday
34180 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34182 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34183 * System.Windows.Forms/Theme.cs
34184 * MonthCalendar.cs: added for MonthCalendar
34185 * SelectionRange.cs: added for MonthCalendar
34186 * Day.cs: added for MonthCalendar: added for MonthCalendar
34187 * DateRangeEventArgs.cs: added for MonthCalendar
34188 * DateRangeEventHandler.cs: added for MonthCalendar
34190 2004-11-22 Ravindra <rkumar@novell.com>
34192 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
34195 2004-11-22 Miguel de Icaza <miguel@ximian.com>
34197 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
34200 * NumericUpDown.cs: Added new implementation.
34201 * UpDownBase.cs: Added new implementation.
34203 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
34206 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
34209 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
34212 2004-11-21 Miguel de Icaza <miguel@ximian.com>
34214 * Timer.cs (Dispose): Should call the base dispose when
34217 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
34219 * ScrollBar.cs: updates thumb position when max, min or increment
34222 2004-11-21 Ravindra <rkumar@novell.com>
34224 * ListView.cs: Implemented item selection, activation and
34225 column header style. Fixed properties to do a redraw, if
34226 required. Added support for MouseHover, DoubleClick, KeyDown
34227 and KeyUp event handling and some minor fixes.
34228 * ListViewItem.cs: Fixed constructor.
34229 * ThemeWin32Classic.cs: Improved drawing for ListView.
34231 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
34233 * ThemeWin32Classic.cs: initial listbox drawing code
34234 * DrawMode.cs: new enumerator
34235 * ListControl.cs: stubbed class
34236 * ListBox.cs: initial implementation
34237 * Theme.cs: new methods definitions
34238 * SelectionMode.cs: new enumerator
34240 2004-11-17 Peter Bartok <pbartok@novell.com>
34242 * XplatUIWin32.cs: Added double-click events to the class style
34243 * Control.cs (WndProc):
34244 - Added handling of click-count to MouseDown/ MouseUp events.
34245 - Added handling of middle and right mouse buttons
34246 - Removed old debug code
34248 2004-11-17 Jackson Harper <jackson@ximian.com>
34250 * XplatUIX11.cs: Use the new Mono.Unix namespace.
34252 2004-11-17 Ravindra <rkumar@novell.com>
34254 * ListView.cs: Added event handling for MouseMove/Up/Down.
34255 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
34256 * ThemeWin32Classic.cs: We need to clear the graphics context and
34257 draw column header in a proper state.
34260 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
34262 * Menu.cs: fixes signature
34264 2004-11-16 Peter Bartok <pbartok@novell.com>
34266 * XplatUIX11.cs (GetMessage): Implemented generation of
34267 double click mouse messages
34269 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
34271 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
34274 2004-11-11 Peter Bartok <pbartok@novell.com>
34276 * HandleData.cs: Added Visible property
34277 * XplatUIX11.cs (IsVisible): Now uses Visible property from
34279 * XplatUIX11.cs: Removed old debug leftovers
34280 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
34281 * Control.cs (WndProc): Removed old debug leftovers,
34282 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
34283 needed WM_SIZE handling
34285 2004-11-11 Jackson Harper <jackson@ximian.com>
34287 * OwnerDrawPropertyBag.cs:
34288 * TreeViewImageIndexConverter.cs: Initial implementation
34290 2004-11-10 Jackson Harper <jackson@ximian.com>
34292 * ThemeWin32Classic.cs:
34293 * TabControl.cs: instead of moving tabs by the slider pos just
34294 start drawing at the tab that is offset by the slider. This way
34295 scrolling always moves by exactly one tab.
34297 2004-11-10 Jackson Harper <jackson@ximian.com>
34299 * TabControl.cs: You can only scroll left when the slider has
34300 already ben moved right.
34302 2004-11-10 Jackson Harper <jackson@ximian.com>
34304 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34307 2004-11-10 Jackson Harper <jackson@ximian.com>
34309 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34312 2004-11-09 Jackson Harper <jackson@ximian.com>
34314 * TabControl.cs (CalcXPos): New helper method so we can determine
34315 the proper place to start drawing vertical tabs.
34316 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34318 2004-11-09 Jackson Harper <jackson@ximian.com>
34320 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34321 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34322 and Bottom, left and right are illegal values for this and
34323 multiline is enabled when the alignment is set to left or right.
34324 (DrawTab): Each alignment block should draw the text itself now
34325 because Left requires special love. Also add rendering for Left
34328 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
34330 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34331 does not destroy the windows, removes debugging messages
34333 2004-11-09 jba <jba-mono@optusnet.com.au>
34335 * ThemeWin32Classic.cs
34336 (DrawButtonBase): Fix verticle text rect clipping in windows
34337 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34338 rendering and incorrect text rect clipping
34339 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34340 rendering and incorrect text rect clipping
34342 2004-11-08 Jackson Harper <jackson@ximian.com>
34344 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34345 bottom when they are bottom aligned so the bottoms of the tabs get
34347 * TabControl.cs (DropRow): Move rows up instead of down when the
34348 tab control is bottom aligned.
34350 2004-11-08 13:59 pbartok
34353 - Added handling for various window styles
34354 - Added handling for popup windows
34355 - Added SetTopmost handling
34357 2004-11-08 13:55 pbartok
34360 - Added argument to SetTopmost method
34361 - Fixed broken ClientToScreen function
34363 2004-11-08 13:53 pbartok
34365 * XplatUIStructs.cs:
34366 - Added missing WS_EX styles
34368 2004-11-08 13:53 pbartok
34370 * XplatUI.cs, XplatUIDriver.cs:
34371 - Added argument to SetTopmost
34373 2004-11-08 13:52 pbartok
34376 - Added XSetWindowAttributes structure
34377 - Improved XWindowAttributes structure
34378 - Added SetWindowValuemask enum
34379 - Added window creation arguments enum
34380 - Added gravity enum
34381 - Added Motif hints structure
34382 - Added various Motif flags and enums
34383 - Added PropertyMode enum for property functions
34385 2004-11-08 13:50 pbartok
34388 - Fixed arguments for updated SetTopmost method
34390 2004-11-08 13:49 pbartok
34393 - Fixed arguments for updated SetTopmost function
34394 - Fixed usage of PointToClient
34396 2004-11-08 13:44 pbartok
34399 - Added Clipping of children and siblings
34401 2004-11-08 13:41 pbartok
34404 - Removed SetMenuBarWindow call. We do this in Form.cs
34406 2004-11-08 13:40 jackson
34408 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34409 scrolling jimmi in the correct location with bottom aligned tabs
34411 2004-11-08 13:36 pbartok
34413 * ContainerControl.cs:
34414 - Implemented BindingContext
34415 - Implemented ParentForm
34417 2004-11-08 12:46 jackson
34419 * TabControl.cs: Put bottom rendered tabs in the right location
34421 2004-11-08 07:15 jordi
34423 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34426 2004-11-05 17:30 jackson
34428 * TabControl.cs: When selected tabs are expanded make sure they
34429 don't go beyond the edges of the tab control
34431 2004-11-05 14:57 jackson
34433 * TabControl.cs: Reset show_slider so if the control is resized to
34434 a size where it is no longer needed it's not displayed anymore
34436 2004-11-05 13:16 jackson
34438 * TabControl.cs: Make tab pages non visible when added to the
34441 2004-11-05 12:42 jackson
34443 * TabControl.cs: Implement SizeMode.FillToRight
34445 2004-11-05 12:16 jackson
34447 * Control.cs: Do not call CreateHandle if the handle is already
34450 2004-11-05 11:46 jackson
34452 * TabControl.cs: Remove superflous call to CalcTabRows
34454 2004-11-05 09:07 jackson
34456 * XplatUIX11.cs: Update for Mono.Posix changes
34458 2004-11-05 07:00 ravindra
34460 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34463 2004-11-04 22:47 jba
34465 * ThemeWin32Classic.cs:
34466 - Fix Button rendering for FlatStyle = Flat or Popup
34467 - Fix RadioButton and CheckBox rendering when Appearance = Button
34468 (normal and flatstyle).
34469 - Correct outer rectangle color when drawing focus rectangle
34470 - Adjust button bounds to be 1 px smaller when focused
34471 - Make button not draw sunken 3d border when pushed (windows compat)
34472 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34473 - Offset the text in RadioButton and Checkbox when being rendered as
34475 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34477 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34478 - Fixed disabled text rendering for normally rendered radiobuttons
34480 2004-11-04 10:26 jackson
34482 * TabControl.cs: Recalculate tab rows when resizing
34484 2004-11-04 07:47 jordi
34486 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34487 collection completion, drawing issues, missing features
34489 2004-11-04 05:03 ravindra
34492 - We need to recalculate the Thumb area when
34493 LargeChange/maximum/minimum values are changed.
34494 - We set the 'pos' in UpdatePos() method to minimum, if it's less
34495 than minimum. This is required to handle the case if large_change is
34496 more than max, and use LargeChange property instead of large_change
34498 - We return max+1 when large_change is more than max, like MS does.
34500 2004-11-04 04:29 ravindra
34502 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34503 - Changed default value signatures (prefixed all with ListView).
34504 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34506 - Fixed calculations for ListViewItem and implemented Clone()
34509 2004-11-04 04:26 ravindra
34511 * Theme.cs, ThemeWin32Classic.cs:
34512 - Changed default ListView values signatures (prefixed all with
34514 - Fixed default size values for VScrollBar and HScrollBar.
34515 - Fixed DrawListViewItem method.
34517 2004-11-04 04:05 ravindra
34519 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34521 2004-11-04 04:04 ravindra
34523 * ImageList.cs: Implemented the missing overload for Draw method.
34525 2004-11-03 19:29 jackson
34527 * TabControl.cs: Handle dropping rows on selection properly
34529 2004-11-03 11:59 jackson
34531 * TabControl.cs: remove debug code
34533 2004-11-03 11:52 jackson
34535 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34536 the scrolly widgerywoo
34538 2004-11-02 13:52 jackson
34540 * TabControl.cs: Resize the tab pages and tabs when the tab control
34543 2004-11-02 13:40 jackson
34545 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34546 selected tab to the bottom
34548 2004-11-02 13:39 jackson
34550 * TabPage.cs: Store the tab pages row
34552 2004-11-02 12:33 jordi
34554 * MenuItem.cs: fixes handle creation
34556 2004-11-02 11:42 jackson
34558 * TabControl.cs: signature fix
34560 2004-11-02 08:56 jackson
34562 * TabControl.cs: Calculate whether the tab is on an edge properly.
34563 Remove top secret debugging code
34565 2004-11-01 19:57 jackson
34567 * TabControl.cs: Add click handling, and proper sizing
34569 2004-11-01 19:47 jackson
34571 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34574 2004-11-01 19:39 jackson
34576 * TabPage.cs: add internal property to store the bounds of a tab
34579 2004-10-30 04:23 ravindra
34581 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34584 2004-10-30 04:21 ravindra
34586 * ListView.cs, ListViewItem.cs: Added support for scrolling and
34587 fixed calculations.
34589 2004-10-30 03:06 pbartok
34592 - Removed extension of DllImported libs
34594 2004-10-29 09:55 jordi
34596 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34597 navigation, itemcollection completion, menu fixes
34599 2004-10-27 22:58 pbartok
34602 - Now throws a nice error message when no X display could be opened
34604 2004-10-26 13:51 jordi
34606 * ListView.cs: removes warning
34608 2004-10-26 03:55 ravindra
34610 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34611 ThemeWin32Classic.cs: Some formatting for my last checkins.
34613 2004-10-26 03:36 ravindra
34615 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34616 control and default values.
34618 2004-10-26 03:35 ravindra
34620 * Theme.cs: Added some default values for ListView control.
34622 2004-10-26 03:33 ravindra
34624 * ToolBar.cs: ToolBar should use the user specified button size, if
34625 there is any. Added a size_specified flag for the same.
34627 2004-10-26 03:33 ravindra
34629 * ColumnHeader.cs: Added some internal members and calculations for
34632 2004-10-26 03:32 ravindra
34634 * ListViewItem.cs: Calculations for ListViewItem.
34636 2004-10-26 03:31 ravindra
34638 * ListView.cs: Added some internal members and calculations for
34641 2004-10-22 13:31 jordi
34643 * MenuAPI.cs: speedup menus drawing
34645 2004-10-22 13:16 jackson
34647 * XplatUIX11.cs: Make sure to update exposed regions when adding an
34650 2004-10-22 11:49 jackson
34654 2004-10-22 11:41 jackson
34656 * Control.cs: Check to see if the window should have its background
34657 repainted by X when drawing.
34659 2004-10-22 11:31 jackson
34661 * XplatUIX11.cs: When invalidating areas only use XClearArea if
34662 clear is true, this way we do not get flicker from X repainting the
34665 2004-10-22 11:28 jackson
34667 * XEventQueue.cs: Queue properly
34669 2004-10-21 09:38 jackson
34671 * XEventQueue.cs: Fix access modifier
34673 2004-10-21 09:36 jackson
34675 * XEventQueue.cs: Don't loose messages
34677 2004-10-21 09:22 jackson
34679 * XEventQueue.cs: Don't loose messages
34681 2004-10-20 04:15 jordi
34683 * BootMode.cs: enum need it by SystemInfo
34685 2004-10-19 21:58 pbartok
34688 - Small sanity check
34690 2004-10-19 21:56 pbartok
34693 - Added private FormParentWindow class which acts as the container
34694 for our form and as the non-client area where menus are drawn
34695 - Added/Moved required tie-ins to Jordi's menus
34696 - Fixed/Implemented the FormStartPosition functionality
34698 2004-10-19 21:52 pbartok
34701 - Removed unneeded locals
34702 - Added code to all size and location properties to understand and
34703 deal with the parent container of Form
34705 2004-10-19 21:33 pbartok
34708 - Fixed to deal with new Form subclasses for menus
34710 2004-10-19 17:48 jackson
34712 * XEventQueue.cs: commit correct version of file
34714 2004-10-19 16:50 jackson
34716 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34718 2004-10-19 16:15 jordi
34720 * MenuAPI.cs: MenuBarCalcSize returns the height
34722 2004-10-19 08:31 pbartok
34725 - Added missing call to PreProcessMessage before calling OnXXXKey
34728 2004-10-19 00:04 ravindra
34730 * ToolTip.cs: Fixed constructor.
34732 2004-10-18 09:31 jordi
34734 * MenuAPI.cs: menuitems in menubars do not have shortcuts
34736 2004-10-18 09:26 jordi
34738 * MenuItem.cs: fixes MenuItem class signature
34740 2004-10-18 08:56 jordi
34742 * MenuAPI.cs: prevents windows from showing in the taskbar
34744 2004-10-18 00:28 ravindra
34746 * ToolTip.cs: Suppressed a warning message.
34748 2004-10-18 00:27 ravindra
34750 * Control.cs: Default value of visible property must be true.
34752 2004-10-17 23:19 pbartok
34755 - Complete implementation
34757 2004-10-17 23:19 pbartok
34760 - Added EnableWindow method
34761 - Added SetModal stub
34762 - Added generation of WM_ACTIVATE message (still needs testing)
34763 - Added SetTopMost stub
34764 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34766 2004-10-17 23:17 pbartok
34769 - Removed VirtualKeys to XplatUIStructs
34770 - Implemented SetTopMost method
34771 - Implemented EnableWindow method
34772 - Bugfix in ScreenToClient()
34773 - Bugfixes in ClientToScreen()
34775 2004-10-17 22:51 pbartok
34777 * XplatUIStructs.cs:
34778 - Added WS_EX styles to WindowStyles enumeration
34780 2004-10-17 22:50 pbartok
34782 * XplatUI.cs, XplatUIDriver.cs:
34783 - Added method for enabling/disabling windows
34784 - Added method for setting window modality
34785 - Added method for setting topmost window
34787 2004-10-17 22:49 pbartok
34789 * ThemeWin32Classic.cs:
34790 - Added ToolTip drawing code
34792 2004-10-17 22:49 pbartok
34795 - Added ToolTip abstracts
34797 2004-10-17 22:47 pbartok
34800 - Fixed Form.ControlCollection to handle owner relations
34801 - Added Owner/OwnedForms handling
34802 - Implemented Z-Ordering for owned forms
34803 - Removed unneeded private overload of ShowDialog
34804 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34806 - Fixed Close(), had wrong default
34807 - Added firing of OnLoad event
34808 - Added some commented out debug code for Ownership handling
34810 2004-10-17 22:16 pbartok
34813 - Fixed/implemented flat list of controls
34815 2004-10-17 22:14 pbartok
34818 - Added code to simulate modal dialogs on Win32
34820 2004-10-17 16:11 jordi
34822 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34825 2004-10-17 13:39 jordi
34827 * MenuAPI.cs: menu drawing fixes
34829 2004-10-15 09:10 ravindra
34831 * StructFormat.cs: General Enum.
34833 2004-10-15 09:09 ravindra
34835 * SizeGripStyle.cs: Enum for Form.
34837 2004-10-15 09:08 ravindra
34839 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
34840 in Theme for ListView.
34842 2004-10-15 09:06 ravindra
34844 * ColumnHeader.cs: Flushing some formatting changes.
34846 2004-10-15 09:05 ravindra
34848 * ListViewItem.cs: Implemented GetBounds method and fixed coding
34851 2004-10-15 09:03 ravindra
34853 * ListView.cs: Implemented Paint method and fixed coding style.
34855 2004-10-15 07:34 jordi
34857 * MenuAPI.cs: fix for X11
34859 2004-10-15 07:32 ravindra
34861 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
34862 - Renamed Paint() method to Draw() for clarity. Also, moved
34863 DrawImage() to OnPaint().
34865 2004-10-15 07:25 ravindra
34867 * CheckBox.cs, RadioButton.cs:
34868 - Removed Redraw (), we get it from ButtonBase.
34869 - Implemented Paint (), to do class specific painting.
34871 2004-10-15 07:16 ravindra
34874 - Redraw () is not virtual now.
34875 - Added an internal virtual method Paint (), so that
34876 derived classes can do their painting on their own.
34877 - Modified OnPaint () to call Paint ().
34879 2004-10-15 06:43 jordi
34881 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
34882 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
34884 2004-10-15 00:30 ravindra
34887 - MessageBox on windows does not have min/max buttons.
34888 This change in CreateParams fixes this on Windows. We
34889 still need to implement this windowstyle behavior in
34892 2004-10-14 05:14 ravindra
34895 - Changed Redraw () to do a Refresh () always.
34896 - Fixed the MouseMove event handling when mouse is pressed,
34897 ie drag event handling.
34898 - Replaced the usage of ToolBarButton.Pressed property to
34899 ToolBarButton.pressed internal variable.
34901 2004-10-14 05:10 ravindra
34903 * ToolBarButton.cs:
34904 - Added an internal member 'inside' to handle mouse move
34905 with mouse pressed ie mouse drag event.
34906 - Changed 'Pressed' property to return true only when
34907 'inside' and 'pressed' are both true.
34908 - Some coding style love.
34910 2004-10-14 00:17 ravindra
34912 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
34915 2004-10-14 00:15 ravindra
34917 * ButtonBase.cs: Redraw () related improvements.
34919 2004-10-14 00:14 ravindra
34921 * MessageBox.cs: Moved InitFormSize () out of Paint method and
34922 removed unnecessary calls to Button.Show () method.
34924 2004-10-13 17:50 pbartok
34928 - Removed destroying of window until we solve the problem of X
34929 destroying the window before us on shutdown
34931 2004-10-13 16:32 pbartok
34934 - Now Redraws on MouseUp for FlatStyle Flat and Popup
34936 2004-10-13 14:18 pbartok
34939 - Added code to destroy the X window
34941 2004-10-13 14:18 pbartok
34944 - Added code to destroy a window
34946 2004-10-13 14:12 pbartok
34949 - Added the Redraw on Resize that got dropped in the last rev
34951 2004-10-13 09:06 pbartok
34953 * ThemeWin32Classic.cs:
34954 - Path from John BouAntoun:
34955 * Fix check rendering (centre correctly for normal style, offset
34956 correctly for FlatStyle).
34957 * Fix border color usage (use backcolor) for FlatStyle.Popup
34958 * Use checkbox.Capture instead of checkbox.is_pressed when
34959 rendering flatstyle states.
34961 2004-10-12 21:48 pbartok
34963 * ThemeWin32Classic.cs:
34964 - Removed all occurences of SystemColors and replaced them with the
34965 matching theme color
34967 2004-10-12 21:41 pbartok
34969 * ThemeWin32Classic.cs:
34970 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34971 him using the function for flatstyle drawing
34972 - Changed functions to use the new version of CPDrawBorder3D
34974 2004-10-12 21:15 pbartok
34977 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34978 match MS documentation. They need to return defined colors if the
34979 passed color matches the configured control color. Thanks to John
34980 BouAntoun for pointing this out.
34982 2004-10-12 20:57 pbartok
34985 - Fix from John BouAntoun: Raise ForeColorChanged event when text
34988 2004-10-12 20:46 pbartok
34991 - Fix from John BouAntoun: Now properly sets the Appearance property
34993 2004-10-12 20:45 pbartok
34995 * ThemeWin32Classic.cs:
34996 - Fixes from John BouAntoun: now handles forecolors and backcolors
34997 for flatstyle rendered controls much better; It also fixes normal
34998 checkbox rendering when pushed or disabled.
35000 2004-10-08 02:50 jordi
35002 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
35005 2004-10-07 08:56 jordi
35007 * ThemeWin32Classic.cs: Removes deletion of cached brushes
35009 2004-10-06 03:59 jordi
35011 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
35012 XplatUIWin32.cs: removes warnings from compilation
35014 2004-10-05 12:23 jackson
35016 * RadioButton.cs: Fix ctor
35018 2004-10-05 11:10 pbartok
35021 - Partial implementation by Benjamin Dasnois
35023 2004-10-05 10:15 jackson
35025 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
35028 2004-10-05 03:07 ravindra
35031 - Removed a private method, Draw ().
35032 - Fixed the ButtonDropDown event handling.
35033 - Fixed MouseMove event handling.
35035 2004-10-05 03:04 ravindra
35037 * ThemeWin32Classic.cs:
35038 - Added DrawListView method and ListViewDefaultSize property.
35039 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
35040 - Changed DOS style CRLF to Unix format (dos2unix).
35042 2004-10-05 03:03 ravindra
35045 - Added DrawListView method and ListViewDefaultSize property.
35047 2004-10-05 02:42 ravindra
35049 * ToolBarButton.cs: Added an internal member dd_pressed to handle
35050 clicks on DropDown arrow.
35052 2004-10-04 22:56 jackson
35054 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
35055 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
35056 Control handle the buffers, derived classes should not have to
35057 CreateBuffers themselves.
35059 2004-10-04 21:20 jackson
35061 * StatusBar.cs: The control handles resizing the buffers now.
35063 2004-10-04 21:18 jackson
35065 * Control.cs: When resizing the buffers should be invalidated. This
35066 should be handled in Control not in derived classes.
35068 2004-10-04 14:45 jackson
35072 2004-10-04 02:14 pbartok
35074 * LeftRightAlignment.cs:
35077 2004-10-04 01:09 jordi
35079 * ThemeWin32Classic.cs: fixes right button position causing right
35080 button not showing on horizontal scrollbars
35082 2004-10-02 13:12 pbartok
35085 - Simplified the Invalidate method by using an X call instead of
35086 generating the expose ourselves
35087 - Added an expose when the window background is changed
35088 - Implemented ClientToScreen method
35090 2004-10-02 13:08 pbartok
35093 - Added Win32EnableWindow method (test for implementing modal
35095 - Added ClientToScreen method and imports
35097 2004-10-02 13:07 pbartok
35099 * XplatUI.cs, XplatUIDriver.cs:
35100 - Added ClientToScreen coordinate translation method
35102 2004-10-02 13:06 pbartok
35104 * KeyPressEventArgs.cs:
35105 - Fixed access level for constructor
35107 2004-10-02 13:06 pbartok
35110 - Changed access level for the window_collection hash table
35112 2004-10-02 13:05 pbartok
35115 - Added KeyPreview property
35116 - Added Menu property (still incomplete, pending Jordi's menu work)
35117 - Implemented ProcessCmdKey
35118 - Implemented ProcessDialogKey
35119 - Implemented ProcessKeyPreview
35121 2004-10-02 13:02 pbartok
35124 - Added private method to get the Control object from the window
35126 - Implemented ContextMenu property
35127 - Implemented PointToScreen
35128 - Implemented PreProcessMessage
35129 - Implemented IsInputChar
35130 - Implemented IsInputKey
35131 - Implemented ProcessCmdKey
35132 - Completed ProcessKeyEventArgs
35133 - Fixed message loop to call the proper chain of functions on key
35135 - Implemented ProcessDialogChar
35136 - Implemented ProcessDialogKey
35137 - Implemented ProcessKeyMessage
35138 - Implemented ProcessKeyPreview
35139 - Added RaiseDragEvent stub (MS internal method)
35140 - Added RaiseKeyEvent stub (MS internal method)
35141 - Added RaiseMouseEvent stub (MS Internal method)
35142 - Added RaisePaintEvent stub (MS Internal method)
35143 - Added ResetMouseEventArgs stub (MS Internal method)
35144 - Implemented RtlTranslateAlignment
35145 - Implemented RtlTranslateContent
35146 - Implemented RtlTranslateHorizontal
35147 - Implemented RtlTranslateLeftRight
35148 - Added generation of KeyPress event
35150 2004-10-02 05:57 ravindra
35152 * ListViewItem.cs: Added attributes.
35154 2004-10-02 05:32 ravindra
35156 * ListView.cs: Added attributes.
35158 2004-10-01 11:53 jackson
35160 * Form.cs: Implement the Close method so work on MessageBox can
35163 2004-09-30 14:06 pbartok
35168 2004-09-30 11:34 jackson
35170 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35172 2004-09-30 07:26 ravindra
35174 * ListViewItemConverter.cs: Converter for ListViewItem.
35176 2004-09-30 07:26 ravindra
35178 * SortOrder.cs: Enum for ListView control.
35180 2004-09-30 07:25 ravindra
35182 * ColumnHeader.cs: Supporting class for ListView control.
35184 2004-09-30 07:24 ravindra
35186 * ListView.cs, ListViewItem.cs: Initial implementation.
35188 2004-09-30 07:20 ravindra
35190 * ItemActivation.cs: Enum for ListView Control.
35192 2004-09-29 20:29 pbartok
35195 - Added lookup of pixel value for background color; tries to get a
35196 color 'close' to the requested color, it avoids having to create a
35197 colormap. Depending on the display this could mean the used color
35198 is slightly off the desired color. Might have to change it to a more
35199 resource intensive colormap approach, but it will work as a
35200 workaround to avoid red screens.
35202 2004-09-29 14:27 jackson
35204 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
35206 2004-09-28 12:44 pbartok
35208 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
35209 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
35210 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
35211 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
35212 TrackBar.cs, VScrollBar.cs:
35213 - Streamlined Theme interfaces:
35214 * Each DrawXXX method for a control now is passed the object for
35215 the control to be drawn in order to allow accessing any state the
35216 theme might require
35218 * ControlPaint methods for the theme now have a CP prefix to avoid
35219 name clashes with the Draw methods for controls
35221 * Every control now retrieves it's DefaultSize from the current
35224 2004-09-28 12:17 jackson
35226 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
35229 2004-09-24 14:57 jackson
35231 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
35232 Gives us a nice little performance boost.
35234 2004-09-24 12:02 jackson
35236 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
35237 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
35238 Control and supporting classes. Initial checkin
35240 2004-09-23 13:08 jackson
35242 * Form.cs: Temp build fixage
35244 2004-09-23 01:39 ravindra
35246 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
35247 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
35248 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
35249 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
35250 EventHandlers needed by ListView Control.
35252 2004-09-22 14:12 pbartok
35254 * ScrollableControl.cs:
35255 - Implemented DockPadding property
35256 - Implemented AutoScroll property
35257 - Implemented AutoScrollMargin property
35258 - Implemented AutoScrollMinSize property
35259 - Implemented AutoScrollPosition property
35260 - Implemented DisplayRectangle property (still incomplete)
35261 - Implemented CreateParams property
35262 - Implemented HScroll property
35263 - Implemented VScroll property
35264 - Implemented OnVisibleChanged property
35266 2004-09-22 14:09 pbartok
35269 - Added Form.ControllCollection class
35270 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
35271 RemoveOwnedForm (still incomplete, missing on-top and common
35272 minimize/maximize behaviour)
35273 - Added StartPosition property (still incomplete, does not use when
35275 - Added ShowDialog() methods (still incomplete, missing forcing the
35278 2004-09-22 14:05 pbartok
35281 - Added message loop for modal dialogs
35283 2004-09-22 14:02 pbartok
35286 - Fixed wrong types for events
35288 2004-09-22 14:00 pbartok
35290 * Shortcut.cs, FormWindowState.cs:
35291 - Fixed wrong values
35293 2004-09-22 12:01 jackson
35295 * Control.cs: Text is never null
35297 2004-09-20 22:14 pbartok
35300 - Fixed accessibility level for Idle handler
35302 2004-09-20 18:54 jackson
35304 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35305 XplatUIX11.cs: New message loop that uses poll so we don't get a
35308 2004-09-17 10:43 pbartok
35311 - Fixed behaviour of arrow buttons. Now properly behaves like
35312 Buttons (and like Microsoft's scrollbar arrow buttons)
35314 2004-09-17 10:14 pbartok
35317 - Added missing release of keyboard/mouse capture
35319 2004-09-17 06:18 jordi
35321 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35322 Theme.cs: Very early menu support
35324 2004-09-16 17:45 pbartok
35327 - Fixed sending a window to the front
35328 - Added overload for SetWindowPos to avoid casting
35330 2004-09-16 17:44 pbartok
35333 - Added SendToBack and BringToFront methods
35335 2004-09-16 07:00 ravindra
35337 * Copyright: Added Novell URL.
35339 2004-09-16 07:00 ravindra
35341 * ToolBar.cs: Invalidate should be done before redrawing.
35343 2004-09-15 21:19 ravindra
35345 * ColumnHeaderStyle.cs: Enum for ListView Control.
35347 2004-09-15 21:18 ravindra
35349 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35352 2004-09-13 18:26 jackson
35354 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35357 2004-09-13 18:13 jackson
35359 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35360 a second thread and post messages into the main threads message
35361 queue. This makes timing much more consistent. Both win2K and XP
35362 have a minimum timer value of 15 milliseconds, so we now do this
35365 2004-09-13 15:18 pbartok
35367 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35369 - Added Z-Ordering methods
35371 2004-09-13 10:56 pbartok
35374 - Fixed #region names
35375 - Moved properties and methods into their proper #regions
35377 2004-09-13 10:51 pbartok
35380 - Added Accept and CancelButton properties
35381 - Added ProcessDialogKey() method
35383 2004-09-13 08:18 pbartok
35385 * IWindowTarget.cs:
35388 2004-09-10 21:50 pbartok
35391 - Added DoDragDrop() [incomplete]
35392 - Properly implemented 'Visible' handling
35393 - Added SetVisibleCore()
35394 - Implemented FindChildAtPoint()
35395 - Implemented GetContainerControl()
35396 - Implemented Hide()
35398 2004-09-10 19:28 pbartok
35401 - Moved methods into their appropriate #regions
35402 - Reordered methods within regions alphabetically
35404 2004-09-10 18:57 pbartok
35406 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35407 - Added method to retrieve text from window
35409 2004-09-10 18:56 pbartok
35412 - Moved some internal functions into the internal region
35413 - Implemented FontHeight
35414 - Implemented RenderRightToLeft
35415 - Implemented ResizeRedraw
35416 - Implemented ShowFocusCues
35417 - Implemented ShowKeyboardCues
35418 - Implemented FromChildHandle
35419 - Implemented FromHandle
35420 - Implemented IsMnemonic
35421 - Implemented ReflectMessage
35422 - All public and protected Static Methods are now complete
35424 2004-09-10 16:54 pbartok
35427 - Implemented remaining missing public instance properties
35428 - Alphabetized some out of order properties
35430 2004-09-10 05:51 ravindra
35432 * PictureBox.cs: Added a check for null image.
35434 2004-09-10 00:59 jordi
35436 * GroupBox.cs: remove cvs tag
35438 2004-09-09 05:25 ravindra
35440 * ToolBar.cs: Make redraw accessible from ToolBarButton.
35442 2004-09-09 05:23 ravindra
35444 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35447 2004-09-09 02:28 pbartok
35449 * ThemeWin32Classic.cs:
35450 - Improve disabled string look
35452 2004-09-09 01:15 jordi
35454 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35457 2004-09-08 23:56 ravindra
35459 * ItemBoundsPortion.cs: It's enum, not a class!
35461 2004-09-08 23:47 ravindra
35463 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35466 2004-09-08 21:13 ravindra
35468 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35471 2004-09-08 21:03 ravindra
35473 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35476 2004-09-08 21:01 ravindra
35478 * ScrollableControl.cs: Removed unreachable code.
35480 2004-09-08 06:45 jordi
35482 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35484 2004-09-08 01:00 jackson
35486 * XplatUIX11.cs: Only run the timers when updating the message
35487 queue. This effectively gives X messages a higher priority then
35488 timer messages. Timers still need love though
35490 2004-09-07 14:01 jackson
35492 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35493 this for us and the handle is no longer valid.
35495 2004-09-07 13:59 jackson
35497 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35498 loop that manages to not crash. TODO: Add poll and cleanup timers
35500 2004-09-07 11:12 jordi
35502 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35504 2004-09-07 03:40 jordi
35506 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35507 fixes, methods, multiple links
35509 2004-09-06 06:55 jordi
35511 * Control.cs: Caches ClientRectangle rectangle value
35513 2004-09-05 02:03 jordi
35515 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35518 2004-09-04 11:10 jordi
35520 * Label.cs: Refresh when font changed
35522 2004-09-02 16:24 pbartok
35525 - Added sanity check to creation of double buffer bitmap
35527 2004-09-02 16:24 pbartok
35530 - Fixed selection of text color
35531 - Fixed handling of resize event; now properly recreates double
35533 - Added missing assignment of TextAlignment
35534 - Added proper default for TextAlignment
35536 2004-09-02 14:26 pbartok
35539 - Added missing RadioButton.RadioButtonAccessibleObject class
35541 2004-09-02 14:26 pbartok
35544 - Added missing Control.ControlAccessibleObject class
35545 - Started to implement Select()ion mechanisms, still very incomplete
35547 2004-09-02 14:25 pbartok
35549 * AccessibleObject.cs:
35550 - Added missing methods
35552 2004-09-02 14:23 pbartok
35554 * AccessibleNavigation.cs, AccessibleSelection.cs:
35557 2004-09-02 10:32 jordi
35559 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35560 pool for pens, brushes, and hatchbruses
35562 2004-09-01 15:30 jackson
35564 * StatusBar.cs: Fix typo
35566 2004-09-01 14:44 pbartok
35571 2004-09-01 14:39 pbartok
35573 * Button.cs, RadioButton.cs:
35574 - Functional initial check-in
35576 2004-09-01 14:01 pbartok
35579 - Added missing default
35580 - Added missing region mark
35582 2004-09-01 09:10 jordi
35584 * Label.cs: fixes method signatures, new methods, events, fixes
35587 2004-09-01 07:19 jordi
35589 * Control.cs: Init string variables with an empty object
35591 2004-09-01 04:20 jordi
35593 * Control.cs: fires OnFontChanged event
35595 2004-08-31 20:07 pbartok
35598 - Enabled display of strings
35600 2004-08-31 20:05 pbartok
35603 - Added (partial) implementation of DialogResult; rest needs to be
35604 implemented when the modal loop code is done
35606 2004-08-31 19:55 pbartok
35609 - Fixed to match the removal of the needs_redraw concept
35611 2004-08-31 19:55 pbartok
35614 - Removed the rather odd split between 'needs redraw' and redrawing
35615 - Now handles the events that require regeneration (ambient
35616 properties and size)
35618 2004-08-31 19:41 pbartok
35621 - Added firing of BackColorChanged event
35622 - Added TopLevelControl property
35623 - Fixed handling of WM_ERASEBKGRND message
35625 2004-08-31 12:49 pbartok
35631 2004-08-31 12:48 pbartok
35634 - Finished (famous last words)
35636 2004-08-31 04:35 jordi
35638 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35639 scrolling bugs, adds new methods
35641 2004-08-30 14:42 pbartok
35644 - Implemented CheckBox drawing code
35646 2004-08-30 14:42 pbartok
35649 - Made Redraw() and CheckRedraw() virtual
35650 - Improved mouse up/down/move logic to properly track buttons
35652 2004-08-30 09:44 pbartok
35655 - Updated to fix broken build. Not complete yet.
35657 2004-08-30 09:28 pbartok
35662 2004-08-30 09:17 pbartok
35667 2004-08-27 16:12 ravindra
35669 * ToolBarButton.cs: Added TypeConverter attribute.
35671 2004-08-27 16:07 ravindra
35673 * ImageIndexConverter.cs: Implemented.
35675 2004-08-27 14:17 pbartok
35678 - Removed unneeded stack vars
35679 - First attempt to fix sizing issues when layout is suspended
35681 2004-08-25 15:35 jordi
35683 * ScrollBar.cs: more fixes to scrollbar
35685 2004-08-25 14:04 ravindra
35687 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35688 Added the missing divider code and grip for ToolBar Control.
35690 2004-08-25 13:20 pbartok
35693 - Control now properly passes the ambient background color to child
35696 2004-08-25 13:20 jordi
35698 * ScrollBar.cs: small bug fix regarding bar position
35700 2004-08-25 12:33 pbartok
35703 - Now only calls SetTimer or KillTimer if the enabled state has
35706 2004-08-25 12:33 pbartok
35709 - Fixed timer handling, now seems to work
35710 - Improved error message for window creation
35712 2004-08-25 12:32 pbartok
35715 - Fixed generation of MouseUp message
35717 2004-08-25 12:29 jordi
35719 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35720 and fixes for progressbar
35722 2004-08-24 18:43 ravindra
35724 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35725 in ToolBar control.
35727 2004-08-24 17:15 pbartok
35731 - Added missing events
35734 2004-08-24 17:14 pbartok
35736 * StatusBar.cs, PictureBox.cs:
35737 - Now uses Control's CreateParams
35739 2004-08-24 16:36 pbartok
35742 - Fixed background color handling
35743 - Fixed sending of enter/leave events on a grab
35745 2004-08-24 16:35 pbartok
35748 - Refined definitions for CrossingEvent
35750 2004-08-24 12:37 jordi
35752 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35753 formmating, methods signature, and adds missing events
35755 2004-08-24 12:24 jordi
35757 * Control.cs: fire OnEnabledChanged event
35759 2004-08-24 11:17 pbartok
35762 - Implemented SetTimer() and KillTimer()
35764 2004-08-24 11:16 pbartok
35767 - Now uses Remove instead of Add to kill the timer
35769 2004-08-24 10:16 jackson
35771 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35772 picture boxes in the theme now. Draw picture box borders and obey
35775 2004-08-24 05:49 jackson
35777 * Timer.cs: Remove top secret debugging code
35779 2004-08-24 05:34 jackson
35781 * PictureBox.cs: Temp hack to make picture boxes draw their full
35784 2004-08-24 05:29 jackson
35786 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35787 XplatUIX11.cs: Move timers to the driver level. On X they are
35788 queued by the driver and checked on idle.
35790 2004-08-24 01:07 jackson
35792 * XplatUIX11.cs: Use a queue for async messages instead of passing
35793 them as ClientMessages since that was totally broken. Also simply
35794 check for events and return an idle message if none are found. This
35795 gives us an idle handler, and prevents deadlocking when no messages
35798 2004-08-23 18:19 ravindra
35800 * XplatUIWin32.cs: Removed the unwanted destructor.
35802 2004-08-23 17:27 pbartok
35805 - Finishing touches. Works now, just needs some optimizations.
35807 2004-08-23 16:53 jordi
35809 * ScrollBar.cs: small fix
35811 2004-08-23 16:45 pbartok
35814 - Removed debug output
35817 2004-08-23 16:43 jordi
35819 * ScrollBar.cs: [no log message]
35821 2004-08-23 16:10 pbartok
35824 - Fixed handling of WM_CLOSE message
35825 - Removed debug output
35827 2004-08-23 16:09 pbartok
35830 - Added handling of Idle event
35831 - Added handling of form closing
35832 - Fixed reporting of MessageLoop property
35833 - Removed some unneeded code, should provide a bit of a speedup
35835 2004-08-23 15:22 pbartok
35838 - Added InitLayout() method
35839 - Added code to properly perform layout when Anchor or Dock property
35841 - Changed 'interpretation' of ResumeLayout. MS seems to have a
35842 LAMESPEC, tried to do it in a way that makes sense
35844 2004-08-23 14:10 jordi
35846 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
35847 properties and methods
35849 2004-08-23 13:55 pbartok
35852 - Properly fixed Jordi's last fix
35853 - Now uses Cursor's Position property instead of calling XplatUI
35856 2004-08-23 13:44 jordi
35858 * PaintEventHandler.cs: Adding missing attribute
35860 2004-08-23 13:39 pbartok
35863 - Implemented Position property
35865 2004-08-23 13:39 pbartok
35867 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35868 - Added method to move mouse cursor
35870 2004-08-23 13:39 pbartok
35873 - Fixed setting of background color
35874 - Added method to move mouse cursor
35876 2004-08-23 13:16 jordi
35878 * Control.cs: avoids null exception
35880 2004-08-22 17:46 jackson
35882 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
35885 2004-08-22 17:40 jackson
35887 * XplatUIX11.cs: Add some missing locks
35889 2004-08-22 15:10 pbartok
35891 * Control.cs, Form.cs:
35892 - Removed OverlappedWindow style from Control, instead it's default
35894 - Made form windows OverlappedWindow by default
35896 2004-08-22 13:34 jackson
35898 * ScrollBar.cs: Update the position through the Value property so
35899 the OnValueChanged event is raised.
35901 2004-08-22 12:04 pbartok
35904 - Added Cursor.cs and UserControl.cs
35906 2004-08-22 12:03 pbartok
35909 - Started implementation, not usable yet
35911 2004-08-22 12:00 pbartok
35914 - Implemented UserControl (complete)
35916 2004-08-21 19:20 ravindra
35918 * ToolBar.cs: Correcting the formatting mess of VS.NET.
35920 2004-08-21 18:49 ravindra
35922 * ToolBar.cs: Probably this completes the missing attributes in
35925 2004-08-21 18:03 ravindra
35927 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35928 Fixed toolbar control signatures.
35930 2004-08-21 16:32 pbartok
35935 2004-08-21 16:30 pbartok
35940 2004-08-21 16:19 pbartok
35942 * Control.cs, Label.cs:
35945 2004-08-21 15:57 pbartok
35948 - Added loads of debug output for development
35949 - Fixed typo in method name
35951 2004-08-21 15:52 pbartok
35953 * ToolBarButtonClickEventArgs.cs:
35954 - Added missing base class
35956 2004-08-21 14:53 pbartok
35959 - Updated to match new GrabWindow signature
35961 2004-08-21 14:51 pbartok
35963 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35964 - Added method to get default display size
35966 2004-08-21 14:23 pbartok
35968 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35969 - Added method to query current grab state
35970 - Added argument to allow confining a grab to a window
35972 2004-08-21 14:22 pbartok
35975 - Added [Flags] attribute so that modifiers can be used in bitwise
35978 2004-08-21 14:21 pbartok
35980 * TrackBar.cs, ScrollBar.cs:
35981 - Replaced direct XplatUI calls with their Control counterpart
35983 2004-08-21 13:32 pbartok
35986 - Implemented Created property
35988 2004-08-21 13:28 pbartok
35991 - Implemented ContainsFocus
35993 2004-08-21 13:26 pbartok
35996 - Implemented CausesValidation
35998 2004-08-21 13:21 pbartok
36001 - Implemented CanFocus
36002 - Implemented CanSelect
36003 - Implemented Capture
36005 2004-08-21 12:35 pbartok
36008 - Fixed bug with Async message handling
36009 - Implemented getting the ModifierKeys
36011 2004-08-21 12:32 jackson
36013 * AsyncMethodResult.cs: Make sure we have the mutex before we
36014 release it. Fixes BeginInvoke on windows
36016 2004-08-21 11:31 pbartok
36018 * XplatUIWin32.cs, XplatUIX11.cs:
36019 - Drivers now return proper mouse state
36021 2004-08-21 10:54 jackson
36023 * Control.cs: Implement EndInvoke
36025 2004-08-21 10:48 jackson
36027 * Timer.cs: Remove unneeded finalizer
36029 2004-08-20 19:52 ravindra
36031 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
36032 in mouse event handling in the ToolBar control.
36034 2004-08-20 19:50 ravindra
36036 * ImageList.cs: Changed draw method to use the arguments passed in
36039 2004-08-20 18:58 pbartok
36041 * XplatUIStructs.cs:
36042 - Added private message for async communication
36044 2004-08-20 17:38 ravindra
36046 * Control.cs: Made RightToLeft property virtual and removed a
36049 2004-08-20 14:39 jordi
36051 * ThemeGtk.cs: use style_attach
36053 2004-08-20 14:39 pbartok
36056 - Added jackson's Async code from X11 to Win32
36058 2004-08-20 14:09 pbartok
36061 - Added all new files
36063 2004-08-20 14:09 pbartok
36066 - Added call to set window background color
36068 2004-08-20 14:03 pbartok
36070 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36071 - Added method for setting the window background
36073 2004-08-20 14:02 pbartok
36076 - Added method for setting the background color
36077 - Added handling for erasing the window background
36079 2004-08-20 13:45 jordi
36081 * TrackBar.cs: fixes timer, new properties and methods
36083 2004-08-20 13:34 jackson
36085 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
36088 2004-08-20 13:22 jackson
36090 * Timer.cs: Timer Tick events are now handed through Controls Async
36091 mechanism so the callbacks are executed in the same thread as X
36093 2004-08-20 13:19 jackson
36095 * XplatUIDriver.cs: Expose functionality to send async messages
36098 2004-08-20 13:18 jackson
36100 * Control.cs: Implement Begininvoke
36102 2004-08-20 13:14 jackson
36104 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
36105 messages through the driver
36107 2004-08-20 13:12 jackson
36109 * XplatUIX11.cs: Lock before all X operations. Also added Async
36110 method functionality through XSendEvent
36112 2004-08-20 13:11 jackson
36114 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
36115 This will screw up on 64 bit systems)
36117 2004-08-20 13:10 jackson
36119 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
36120 Async messages through X/Win32
36122 2004-08-19 19:39 pbartok
36125 - Updated code to match new HandleData.DeviceContext type
36127 2004-08-19 19:38 pbartok
36130 - Made DeviceContext a generic object to allow usage from various
36132 - Added support for queueing Windows messages
36134 2004-08-19 19:37 pbartok
36137 - Added generation of MouseEnter, MouseLeave and MouseHover events
36138 - Added cleanup on EndPaint
36140 2004-08-19 19:17 pbartok
36143 - Added handling of WM_MOUSEHOVER
36144 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36147 2004-08-19 18:55 jordi
36149 * ThemeGtk.cs: fixes button order
36151 2004-08-19 18:12 jordi
36153 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36155 2004-08-19 17:09 pbartok
36158 - Added Right property
36159 - Added RightToLeft property
36161 2004-08-19 16:27 jordi
36163 * ThemeGtk.cs: experimental GTK theme support
36165 2004-08-19 16:26 jordi
36167 * ITheme.cs, Theme.cs: move themes from an interface to a class
36169 2004-08-19 16:25 jordi
36171 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36174 2004-08-19 16:04 pbartok
36177 - Added colormap basics
36178 - Added a way to re-initialize with a different display handle
36179 - Fixed setting of the window background color
36180 - Added various X11 imports related to colors and colormaps
36182 2004-08-19 15:51 pbartok
36185 - Removed packing hints (Paolo suggested this a while back)
36186 - fixed colormap type
36187 - Added default Atom types
36188 - Added Screen and color structs and enums
36190 2004-08-19 15:39 pbartok
36193 - Added missing Draw() method
36194 - Added missing RecreateHandle event
36196 2004-08-19 15:30 pbartok
36199 - Added handling of WM_CLOSE
36201 2004-08-18 13:16 jordi
36203 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
36206 2004-08-18 09:56 jordi
36208 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
36210 2004-08-17 15:31 ravindra
36212 * SWF.csproj: Updated project.
36214 2004-08-17 15:25 pbartok
36217 - Drawing improvement; don't call UpdateBounds if we are not visible
36218 (or have been minimized)
36220 2004-08-17 15:24 pbartok
36223 - Finished IsVisible
36224 - Added Win32GetWindowPlacement
36226 2004-08-17 15:08 jackson
36228 * Panel.cs: Initial checkin of the Panel
36230 2004-08-17 14:25 pbartok
36233 - Fixed broken handling of default window sizes
36235 2004-08-17 13:29 jackson
36237 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
36238 has a large startup time.
36240 2004-08-17 10:25 jackson
36242 * HandleData.cs: union areas properly
36244 2004-08-17 10:12 jackson
36246 * HandleData.cs: union areas properly
36248 2004-08-16 20:00 ravindra
36250 * ToolBar.cs, ToolBarButton.cs: Added attributes.
36252 2004-08-16 18:48 ravindra
36254 * ToolBar.cs: Added attributes.
36256 2004-08-16 17:17 ravindra
36258 * SWF.csproj: Updated project.
36260 2004-08-16 17:16 jackson
36262 * XplatUIX11.cs: Check for more expose events before sending a
36263 WM_PAINT so they can all be grouped together. This makes dragging a
36264 window across another window redraw in a sane way.
36266 2004-08-16 15:47 pbartok
36269 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
36270 support OnMouseEnter/Leave()
36271 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
36274 2004-08-16 15:46 pbartok
36276 * XplatUIStructs.cs, XplatUIX11.cs:
36277 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
36278 OnMouseEnter/Leave()
36280 2004-08-16 15:34 jackson
36282 * XplatUIX11.cs: Group multiple expose events in HandleData, make
36283 sure messages get the message field set to WM_NULL if they are not
36286 2004-08-16 15:24 jackson
36288 * HandleData.cs: HandleData is used for storing message information
36291 2004-08-15 17:23 ravindra
36293 * ColorDepth.cs: Added attribute.
36295 2004-08-15 17:23 ravindra
36297 * SWF.csproj: Updated project for ToolBar Control.
36299 2004-08-15 17:20 ravindra
36301 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36302 control and also dos2unix format.
36304 2004-08-15 17:13 ravindra
36306 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36307 ToolBarButtonClickEventArgs.cs,
36308 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36309 ToolBarTextAlign.cs: First Implementation of ToolBar control.
36311 2004-08-15 15:31 pbartok
36314 - First (mostly) working version
36316 2004-08-13 16:15 pbartok
36319 - Fixed Anchor default
36321 2004-08-13 15:43 pbartok
36324 - Changed GetCursorPos signature
36326 2004-08-13 15:42 pbartok
36328 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36329 - Changed signature for GetCursorPos
36331 2004-08-13 15:25 pbartok
36335 - Fixed resizing/exposure handling
36337 2004-08-13 15:22 jordi
36339 * ThemeWin32Classic.cs: removes redundant code and fixes issues
36342 2004-08-13 14:55 jordi
36344 * TrackBar.cs: change from wndproc to events
36346 2004-08-13 13:00 jordi
36348 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36349 XplatUIX11.cs: implements PointToClient (ScreenToClient)
36351 2004-08-13 12:53 pbartok
36354 - Changed GetWindowPos to also provide client area size
36355 - Fixed broken prototypes for several win32 functions
36357 2004-08-13 12:53 pbartok
36359 * XplatUI.cs, XplatUIDriver.cs:
36360 - Changed GetWindowPos to also provide client area size
36362 2004-08-13 12:52 pbartok
36365 - Added generation of WM_POSCHANGED
36366 - Changed GetWindowPos to also provide client area size
36368 2004-08-13 12:52 pbartok
36371 - Added Dispose() and destructor
36372 - Fixed resizing and bounds calculation
36374 - Added memory savings for invisible windows
36376 2004-08-13 12:46 jordi
36378 * TrackBar.cs: adds timer and grap window
36380 2004-08-13 10:25 jackson
36382 * Timer.cs: SWF Timer
36384 2004-08-12 16:59 pbartok
36386 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36387 - Implemented method to get current mouse position
36389 2004-08-12 14:29 jordi
36391 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36392 enhancement, fix mouse problems, highli thumb, etc
36394 2004-08-12 13:31 pbartok
36397 - Fixed Anchoring bugs
36399 2004-08-12 13:01 jackson
36401 * StatusBar.cs: Don't forget things
36403 2004-08-12 12:54 jackson
36405 * ThemeWin32Classic.cs: Handle owner draw status bars
36407 2004-08-12 12:54 jackson
36409 * StatusBar.cs: Implement missing properties, events, and methods.
36410 Handle mouse clicking
36412 2004-08-12 10:19 jackson
36414 * StatusBarPanelClickEventArgs.cs,
36415 StatusBarPanelClickEventHandler.cs: Classes for handling status
36416 bar panel click events
36418 2004-08-12 10:10 jackson
36420 * Control.cs: Add missing properties
36422 2004-08-12 09:46 pbartok
36424 * BindingsManagerBase.cs:
36425 - Name changed to BindingManagerBase.cs
36427 2004-08-12 09:25 jordi
36429 * ScrollableControl.cs: calls ctrlbase instead of exeception
36431 2004-08-11 16:28 pbartok
36433 * InputLanguageChangingEventArgs.cs:
36434 - Never check in before compiling. Fixes the last check-in
36436 2004-08-11 16:26 pbartok
36438 * InputLanguageChangingEventArgs.cs:
36439 - More signature fixes
36441 2004-08-11 16:20 pbartok
36443 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36444 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36445 ImageListStreamer.cs, InputLanguage.cs,
36446 InputLanguageChangedEventArgs.cs,
36447 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36448 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36449 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36450 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36453 2004-08-11 16:16 pbartok
36457 - Added .Net 1.1 method
36459 2004-08-11 15:25 pbartok
36462 - Fixed BindingManagerBase.cs filename
36464 2004-08-11 15:22 pbartok
36466 * BindingManagerBase.cs:
36467 - Was checked in with wrong filename
36469 2004-08-11 14:50 pbartok
36474 2004-08-11 13:41 jordi
36476 * XplatUIWin32.cs: Fixes ClientRect
36478 2004-08-11 13:19 pbartok
36480 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36482 - We had SetWindowPos and MoveWindow to set window positions and
36483 size, removed MoveWindow. We have GetWindowPos, so it made sense to
36484 keep SetWindowPos as matching counterpart
36485 - Added some X11 sanity checking
36487 2004-08-11 12:59 pbartok
36490 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36491 (It seems that SetBounds is just a front for SetBoundsCore and
36492 SetBoundsCore updates the underlying window system and
36493 UpdateBounds is responsible for updating the variables associated
36494 with the Control and sending the events)
36495 - Major cleanup of Size handling; we now have two sizes, client_size
36496 and bounds. Bounds defines the window with decorations, client_size
36499 2004-08-11 12:55 pbartok
36501 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36502 - Added method to calculate difference between decorated window and
36505 2004-08-11 12:54 pbartok
36508 - Forcing redraw on resize
36510 2004-08-11 11:43 pbartok
36513 - Removed disposing of the actual images when the list is disposed
36515 2004-08-11 09:13 pbartok
36518 - Now properly reparents windows
36520 2004-08-11 08:37 pbartok
36525 2004-08-11 07:47 pbartok
36528 - Rewrote the collection stuff. Might not be as fast now, not
36529 keeping the number of children around and accessible directly, but
36530 it's more straightforward
36532 2004-08-11 07:44 pbartok
36534 * AccessibleObject.cs:
36535 - Fixed to match ControlCollection rewrite
36537 2004-08-11 07:43 pbartok
36540 - Added missing creation of the collection list
36542 2004-08-10 20:08 jackson
36544 * StatusBar.cs: Get the paint message from WndProc
36546 2004-08-10 19:31 jackson
36548 * ThemeWin32Classic.cs: Create Brushes as little as possible
36550 2004-08-10 19:20 jackson
36552 * UICues.cs: Add Flags attribute
36554 2004-08-10 19:19 jackson
36556 * StatusBarPanel.cs: Signature cleanup
36558 2004-08-10 19:10 jackson
36560 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36561 Initial implementation of status bar item drawing
36563 2004-08-10 17:27 jordi
36565 * TrackBar.cs: add missing methods, properties, and restructure to
36568 2004-08-10 16:24 jackson
36570 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36571 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36574 2004-08-10 13:21 jordi
36576 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36577 enhancements and standarize on win colors defaults
36579 2004-08-10 12:52 jackson
36581 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36582 ThemeWin32Classic.cs: Implement DrawItem functionality
36584 2004-08-10 12:47 jordi
36586 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36588 2004-08-10 12:32 jordi
36590 * Control.cs: throw ontextchange event
36592 2004-08-10 11:43 pbartok
36595 - Added more to the still unfinished Dock/Anchor layout code
36597 2004-08-10 11:39 pbartok
36599 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36600 - Added GetWindowPos method
36602 2004-08-10 11:36 pbartok
36605 - Implemented several methods
36607 2004-08-10 09:47 jackson
36609 * TrackBar.cs: Allow control to handle buffering
36611 2004-08-10 09:41 jackson
36613 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36615 2004-08-10 09:24 jackson
36617 * Label.cs, LinkLabel.cs: Let Control handle buffering.
36619 2004-08-10 09:09 jackson
36621 * StatusBar.cs: Let Control handle all the buffering.
36623 2004-08-10 09:08 jackson
36625 * Control.cs: Control will now handle the buffering code, so each
36626 control does not have to implement this.
36628 2004-08-10 08:34 jackson
36630 * XplatUIDriver.cs: Use default colors from the theme
36632 2004-08-09 17:12 pbartok
36635 - Fixed several bugs Ravindra pointed out
36637 2004-08-09 16:11 pbartok
36640 - Added incomplete dock layout code
36641 - Added support for mouse wheel
36643 2004-08-09 16:09 pbartok
36646 - Added handling for middle and right mousebutton
36647 - Added handling for mouse wheel
36648 - Added handling for key state and mouse state and position
36649 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36652 2004-08-09 15:40 jackson
36654 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36655 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36658 2004-08-09 15:37 jackson
36660 * StatusBar.cs: Initial implementation of StatusBar
36662 2004-08-09 15:36 jackson
36664 * ITheme.cs: Add support for drawing status bar and getting status
36667 2004-08-09 15:35 pbartok
36672 2004-08-09 15:34 jackson
36674 * ThemeWin32Classic.cs: Add support for drawing status bar and get
36675 status bar item sizes
36677 2004-08-09 15:21 jackson
36679 * ThemeWin32Classic.cs: Use known colors for default control
36682 2004-08-09 15:12 jackson
36684 * ThemeWin32Classic.cs: Make the default font static, it is static
36685 in control so this doesn't change functionality and creating fonts
36688 2004-08-09 14:56 pbartok
36691 - Added GrabMode enum
36693 2004-08-09 14:55 pbartok
36695 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36696 - Removed Run method, was only required for initial development
36698 2004-08-09 14:51 pbartok
36700 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36701 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36704 2004-08-09 13:48 pbartok
36707 - Fixed default sizing for child windows
36709 2004-08-09 12:56 pbartok
36712 - Added generation of WM_DESTROY message
36713 - Added handling of window manager induced shutdown
36715 2004-08-09 11:31 jackson
36717 * ThemeWin32Classic.cs: New names for control properties
36719 2004-08-09 11:25 jackson
36721 * Control.cs: Use new color names
36723 2004-08-09 11:02 jackson
36725 * XplatUI.cs: Get default window properties from the theme
36727 2004-08-09 11:01 jackson
36729 * ITheme.cs: The theme engine now controls default window
36732 2004-08-09 11:00 jackson
36734 * ThemeWin32Classic.cs: Add default window color properties
36736 2004-08-09 10:17 jackson
36738 * ThemeWin32Classic.cs: Use correct default back color
36740 2004-08-09 10:05 jackson
36742 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36745 2004-08-09 09:56 jackson
36747 * XplatUI.cs: Remove defaults, these are handled by the theme now.
36749 2004-08-09 09:54 jackson
36751 * Control.cs: Get default properties from the theme.
36753 2004-08-09 09:53 jackson
36755 * ITheme.cs: Themes now handle default control properties
36757 2004-08-09 09:53 jackson
36759 * ThemeWin32Classic.cs: Themes now handle default control
36760 properties so coloring will be consistent
36762 2004-08-08 16:54 jordi
36764 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36766 2004-08-08 15:08 jordi
36768 * XplatUIX11.cs: fixes keyboard crash
36770 2004-08-08 13:47 jordi
36772 * Label.cs: add cvs header info
36774 2004-08-08 12:09 jackson
36776 * ThemeWin32Classic.cs: Add pen_buttonface
36778 2004-08-08 11:52 jordi
36780 * Label.cs, LinkLabel.cs: [no log message]
36782 2004-08-08 11:34 jordi
36784 * ThemeWin32Classic.cs: Use Windows Standard Colours
36786 2004-08-07 17:32 jordi
36788 * TrackBar.cs: throw exceptions of invalid enums values
36790 2004-08-07 17:31 jordi
36792 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36795 2004-08-07 16:56 jackson
36797 * HorizontalAlignment.cs: Initial checkin
36799 2004-08-07 13:16 jordi
36801 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36804 2004-08-07 13:05 jordi
36806 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36807 GetSysColor defines
36809 2004-08-06 18:01 pbartok
36811 * ThemeWin32Classic.cs:
36812 - Fixed some rounding issues with float/int
36814 2004-08-06 18:00 jackson
36816 * DockStyle.cs, AnchorStyles.cs:
36818 Add flags and serializable attributes.
36820 2004-08-06 17:46 pbartok
36823 - Implemented GetParent
36825 2004-08-06 17:18 pbartok
36828 - Fixed some rounding issues with float/int
36830 2004-08-06 17:17 pbartok
36832 * X11Structs.cs, XplatUIX11.cs:
36833 - Fixed Refresh and Invalidate
36835 2004-08-06 15:30 pbartok
36837 * Control.cs, X11Structs.cs, XplatUIX11.cs:
36838 - Fixed recursive loop when resizing
36839 - Improved/fixed redrawing on expose messages
36841 2004-08-06 09:53 jordi
36843 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
36844 keyboard navigation
36846 2004-08-06 08:02 pbartok
36848 * X11Structs.cs, XplatUIX11.cs:
36849 - Fixed reparenting
36850 - Fixed window border creation
36852 2004-08-05 15:38 pbartok
36855 - Attempted fix for reparenting problems
36857 2004-08-04 15:14 pbartok
36860 - Fixed Invalidation bug (calculated wrong client area)
36861 - Added ClientSize setter
36863 2004-08-04 15:13 pbartok
36866 - Added AutoScale properties
36868 2004-08-04 15:13 pbartok
36871 - Added latest files
36873 2004-08-04 14:11 pbartok
36875 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36877 - Added Invalidate handling
36879 2004-08-03 17:09 jordi
36881 * XplatUIDriver.cs: fixes spelling mistake
36883 2004-07-27 09:53 jordi
36885 * TrackBar.cs: fixes trackbar events, def classname, methods
36888 2004-07-27 09:29 jordi
36890 * ScrollBar.cs: fixes scrollbar events
36892 2004-07-27 04:38 jordi
36894 * Control.cs: changes to be able to run winforms samples
36896 2004-07-26 11:42 jordi
36898 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
36899 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
36901 2004-07-26 05:41 jordi
36903 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
36904 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
36907 2004-07-22 09:22 jordi
36909 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
36910 check link overlapping, implement events, and fixes
36912 2004-07-21 10:28 jordi
36914 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
36916 2004-07-21 10:19 jordi
36918 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
36919 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
36920 LinkLabelLinkClickedEventArgs.cs,
36921 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
36922 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
36925 2004-07-19 13:09 jordi
36927 * Control.cs, Label.cs: label control re-written: added missing
36928 functionlity, events, and properties
36930 2004-07-19 10:49 jordi
36932 * Control.cs: fixes SetBounds logic
36934 2004-07-19 01:29 jordi
36936 * Control.cs: Call RefreshWindow only if the window has created
36938 2004-07-15 14:05 pbartok
36940 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36941 - Implemented ImageList and ImageList.ImageCollection classes
36942 - Added ColorDepth enumeration
36943 - Updated SWF VS.Net project
36945 2004-07-15 11:06 jordi
36947 * XplatUIStructs.cs: added MsgButons enum
36949 2004-07-15 11:03 jordi
36951 * Control.cs: added basic mouse handeling events
36953 2004-07-15 03:38 jordi
36955 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36956 Vertical TrackBar control implementation
36958 2004-07-13 09:33 jordi
36960 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36962 2004-07-13 09:31 jordi
36964 * Control.cs, Form.cs: commit: new properties and fixes form size
36967 2004-07-09 14:13 miguel
36969 * ProgressBar.cs: Spelling
36971 2004-07-09 11:25 pbartok
36974 - Removed usage of Rectangle for drawing. Miguel pointed out it's
36977 2004-07-09 11:17 miguel
36979 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
36981 * ProgressBar.cs: Fixed spelling for `block'
36983 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36986 Avoid using the += on rect.X, that exposed a bug in the compiler.
36988 2004-07-08 23:21 pbartok
36990 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36991 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36992 BaseCollection.cs, Binding.cs, BindingContext.cs,
36993 BindingMemberInfo.cs, BindingsCollection.cs,
36994 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36995 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36996 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36997 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36998 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36999 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
37000 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
37001 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
37002 FrameStyle.cs, GiveFeedbackEventArgs.cs,
37003 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
37004 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
37005 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
37006 InputLanguageChangedEventArgs.cs,
37007 InputLanguageChangedEventHandler.cs,
37008 InputLanguageChangingEventArgs.cs,
37009 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
37010 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
37011 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
37012 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
37013 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
37014 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
37015 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
37016 QueryAccessibilityHelpEventArgs.cs,
37017 QueryAccessibilityHelpEventHandler.cs,
37018 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
37019 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
37020 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
37021 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
37022 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
37023 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
37024 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
37025 XplatUIX11.cs, lang.cs: