1 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * ListBox.cs: When calling Items.Clear(), call
4 SelectedIndexCollection.ClearCore instead of normal Clear method, to
5 not fire any Selected*Changed event - this is done to match .net and
6 don't have invalid values when changing the DataSourceProperty.
9 2008-09-12 Mario Carrion <mcarrion@novell.com>
11 * HelpProvider.cs: Control enabled to support accessibility.
12 * Application.cs: Updated to Initialize UIA in HelpProvider.
15 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
17 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
18 make the dialog TopMost as well.
21 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
23 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
24 clipboard data better.
27 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
29 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
30 TextChanged and SelectionChanged events fire in the same order as .Net.
33 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
35 * DataGridView.cs: When sorting a column, if it only contains numbers,
36 do a numeric sort instead of a string sort.
39 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
41 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
42 against NRE's when the settings have a null panel.
43 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
47 2008-09-11 Mario Carrion <mcarrion@novell.com>
49 * ToolTip.cs: Control enabled to support accessibility.
50 * Application.cs: Updated to Initialize UIA in ToolTip.
53 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
55 * Control.cs: Make the custom Enumerator internal to fix build.
57 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
59 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
60 already in edit mode, begin edit mode. Generally edit mode isn't
61 started until the second click, but CheckBoxes are special.
63 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
65 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
66 since that can be set to anything. Always add them to the Control's
67 parent. [Fixes bug #416058]
69 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
71 * ListView.cs: Use a custom enumerator for ListViewItemCollection
72 so items can be deleted in a foreach.
75 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
77 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
78 Store the user set explicit height so that the row can be AutoSized
79 and then when AutoSize is turned off, it can get its original size back.
80 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
81 duplicating the logic. When setting AutoSizeRowsMode to None, reset
82 rows' heights back to their explicit values.
85 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
87 * DateTimePicker.cs: When getting focus, select the checkbox if we are
88 already showing it. Also, don't change its value when pressing space
89 if the checkbox is not visible (ShowCheckBox as false). Finally, the
90 checkbox should remain selected as long as Checked is false, and the
91 other parts are disabled.
94 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
96 * MessageBox.cs: Handle shortcut keys to dialog buttons.
99 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
101 * Binding.cs: When the value retrieved from the control property is
102 null, don't return Convert.DBNull for Nullable instances, since they
103 can *actually* get a null value.
106 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
108 * Control.cs: Add an internal field to force doublebuffering regardless
109 of what the public mechanisms are set to. This is because MS's native
110 controls are doublebuffered even though their .Net bits are set to false.
111 * ProgressBar.cs: Set force_double_buffer to true.
114 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
116 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
118 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
119 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
120 without EditingControls, paint background selection for types without
121 EditingControls, reset the EditingCellValueChanged flag when the
122 cell's value is committed.
123 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
124 have EditingControls, remove a double call to a cell's OnContentClickInternal,
125 don't do cell changing logic in OnMouseDown if the cell didn't change.
128 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
130 * DateTimePicker.cs: Fix the edition of am/pm specifier.
132 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
134 * TextControl.cs: Add "&" to the list of valid characters in a URL.
136 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
138 * DateTimePicker.cs: Before incrementing or decrementing any part in
139 the textbox, end any current edit. Also when ending the current edit
140 use the editing_part_index field instead of the current selected
141 value, since they can be out of synch, and we really need to work on
142 the *real* current edit part. Finally when PartData.Selected changes,
143 always try to end any ongoing edit.
144 This should fix some small errors handling mouse navigation and
145 increase/decrease operations.
147 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
149 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
150 respectively) should handled different, since the 12 hours format
151 needs the value typed by the user to be adjusted depending on the
152 a.m/p.m value, so it is preserved, and only changed when the value
153 reaches the 12 value (when it changes from a.m to p.m).
154 Fixes part of #416555.
156 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
158 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
159 * ToolStripDropDownItem.cs: Don't fire events and such again if
160 ShowDropDown is called on an already dropped down item.
161 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
162 subitems, the user may add some in the DropDownOpening event.
165 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
167 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
170 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
172 * MdiClient.cs: When looking for menustrips on a child form to merge,
173 look inside ToolStripContainers.
176 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
178 * ErrorProvider.cs: Unbreak my previous commit.
180 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
182 * ErrorProvider.cs: Icon should always be 16x16.
185 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
187 * GridEntry.cs: Invalidate the child items cache when the property
190 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
192 * GridEntry.cs, PropertyGridView.cs:
193 - Update the ReadOnly detection and rendering to finally hopefully
194 match the one of MSFT.
195 - Niceify and move the debug CWLS.
198 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
200 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
201 since we are already calling Invalidate for the entire control when
202 needed - and call Redraw() when size changes, since we need to paint
203 there by ourselved and not anymore from the mentioned method.
204 This should improve the layout process. Also clean some not needed calls
207 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
209 * MenuAPI.cs: Add a null check to the Alt-F4 code.
212 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
214 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
217 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
219 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
220 PropertyGridView.sc: Implement lazy/delayed propertygrid population
221 on item expansion. Improves performance and fixes bug #417955.
224 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
226 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
229 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
231 * TextControl.cs: Add "_" to the list of valid characters in a URL.
234 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
236 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
240 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
242 * FontDialog.cs: When storing our font size from the starting font,
243 use SizeInPoints instead of Size in case Size is a different unit
247 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
249 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
250 don't use it for anything else, check if a directory is highlighted.
251 If it is, navigate into it.
254 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
256 * Binding.cs: When acquiring a BindingManagerBase for the first time,
257 check that the specified property actually exists in the data source,
258 and throw an ArgumentException if that's not the case - this is only
259 done for this scenario, since for later cases (such Position changes)
260 we throw different exceptions (match .Net).
262 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
264 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
265 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
266 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
267 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
268 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
269 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
273 2008-09-03 Neville Gao <nevillegao@gmail.com>
275 * StatusBar.cs: Control enabled to support accessibility.
278 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
280 * Binding.cs: When connecting the event handler for the "Changed"
281 event for the property, only do it for PropertyManager, and not for
282 CurrencyManager - this is exactly what does .Net, totally ignoring any
283 change in the property of the elements of a list.
286 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
288 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
289 to Windows when creating a window, as we fake MDI stuffs.
292 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
294 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
297 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
299 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
302 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
304 * DataGridView.cs: Raise CellContentClick event.
305 [Fixes part of bug #420351]
307 2008-08-27 Mario Carrion <mcarrion@novell.com>
309 * ScrollBar.cs: Control enabled to support accessibility.
312 2008-08-27 Mario Carrion <mcarrion@novell.com>
314 * ComboBox.cs: Control enabled to support accessibility.
317 2008-08-27 Mario Carrion <mcarrion@novell.com>
319 * ListBox.cs: Control enabled to support accessibility.
322 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
324 * ComboBox.cs: Don't suppress the TextChanged event when changing
326 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
330 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
332 * ErrorProvider.cs: Fix a regression NRE when setting properties
333 for a control before it has a parent.
336 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
338 * Binding.cs: Use the BindingManagerBase.Current value to obtain
339 connect the property "Changed" event, instead of using the data
340 sources - this is useful when the property specifies actually a
341 multiple objects path.
342 Fixes part of #417973.
344 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
346 * RelatedPropertyManager.cs: PropertyManager instances associated to a
347 nested properties should return not the properties of the data source
348 itself, but the properties of the type of a specific property in the
349 data source - match .net.
351 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
353 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
354 AddRange overloads into AddItems method, and added missing NULL check.
355 Added extra argument check to RemoveAt for compatibility with MS.
356 Modified IList implementation of Add, Contains, IndexOf and Remove to
357 throw an ArgumentException if item is not an int. Modified IList.Insert
358 to throw a NotSupportException instead of an Exception. Implemented
360 (ObjectCollection): To avoid duplication, use AddItems method from
361 AddRange overloads. On 1.0 profile, first perform NULL check on items
364 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
366 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
369 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
371 * X11Keyboard.cs : comment out some Console.WriteLine().
373 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
375 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
376 even if premises are not filled. Also XLookupString() was not
377 receiving correct input, which blocked precise input handling
380 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
382 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
383 type of delegate, instead of EventHandler - this was causing a type
384 cast exception in all apps handling this event.
387 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
389 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
390 ShowDropDown to give the user a chance to dynamically add
391 drop down items. [Step 1 of fixing bug #417877]
393 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
395 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
396 had any mouse motion since the call to StartDrag, to match the dnd
398 Fixes part of #381876.
400 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
402 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
403 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
404 Also, if we are actually moving into a different window after
405 grabbing, generate a LeaveNotify event for the previous window, since
406 we need to fire the leave events until the grab ends, not when
407 actually moving outside of the control.
409 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
411 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
412 events only for client windows was wrong - we need to compare the
413 client window against the window receiving the EnterNotify event, not
414 against zero (since client window is never Zero, btw).
415 This prevents having unnecessary handling of EnterNotify events for
416 non-client windows when a gran begins.
418 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
420 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
421 MouseMove/MotionNotify events at all (which should only happen after
422 MouseUp/ButtonRelease, as .Net does).
423 This avoids firing an extra and unnecessary MouseMove event just after
424 every MouseDown event.
426 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
428 * LinkLabel.cs: Always clear any previous links when LinkArea
429 is set. [Fixes bug #410709]
431 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
433 * ToolStripProfessionalRenderer.cs: Revert last change.
434 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
435 for ToolStripDropDownBackground.
437 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
439 * ToolStripProfessionalRenderer.cs: Use Window color for the
440 background of dropdowns to match .Net when the user is not
441 using the default white. [Fixes bug #418108]
443 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
445 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
446 it caused timer registration twice. Fixed bug #418107.
448 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
450 [Correction: This is the actual change to X11Dnd issue, not the
451 previous one, which was actually a different issue.]
453 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
454 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
455 when the pointer is actually in motion, but only when the pointer
456 seems to stop (as .net does).
457 Fixes part of #381876.
460 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
462 * ListBox.cs: Fix CopyTo implementation.
465 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
467 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
468 drawing a ComboBox's background. Fixes bad disabled rendering when
469 the control is not at 0,0.
472 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
474 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
475 ComponentModel layer, which will properly prioritize the attributes.
476 Avoids wrong prioritization of duplicate attributes when retrieving
477 the converter and editor.
480 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
482 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
483 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
484 when the pointer is actually in motion, but only when the pointer
485 seems to stop (as .net does).
486 Fixes part of #381876.
488 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
490 * GridEntry.cs: Perform stricter check for the ParentEntry's
491 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
495 2008-08-14 Geoff Norton <gnorton@novell.com>
497 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
498 Fixes #396983. Properly fix ActiveWindow trackin and do not
499 prematurely show POPUP windows.
501 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
503 * XplatUIX11.cs: Handle the obscured regions while scrolling using
504 GraphicsExpose event, processing it just after we copy the scrolled
505 area. This ensures that the next calls to ScrollWindow will copy
506 regions already updated, and the scrolling will be smooth. Also remove
507 the code that was trying to detect the obscured regions, since we are
508 not using it anymore (too slow).
510 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
512 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
513 MultiExtended mode, by separating some logic between the ctrl/shift
514 handling. Also ignore any MouseMove events generated together with
515 MouseDown events - we are only interested in the real motion event.
516 Fixes part of #414963.
518 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
520 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
521 is selected. [Fixes bug #414143]
523 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
525 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
526 and not the parent one (the propertyowner). Fixes the behavior of
527 GetConverter/GetEditor.
530 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
532 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
533 [Fixes part of bug #415452]
535 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
537 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
538 GridEntry, not the current.
541 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
543 * TextBoxBase.cs: De-internalize max_length field.
544 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
545 share the same logic.
548 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
550 * ListBox.cs: Selection changes made in the MouseDown handler should
551 use the *Core versions of selection in SelectedIndices collection,
552 since the SelectedIndexChanged/SelectedValueChanged events are fired
553 until we get a MouseUp event, and thus we need to separate the logic
554 from the events, as done in the keyboard navigation. Also, fire those
555 selection events from keyboard navigation in SelectionMode.None, even
556 if we don't have a selection, as .Net does.
558 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
560 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
561 last change introduced when an item is clicked but isn't on a toolstrip.
563 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
565 * ListBindingHelper.cs: When looking for an object's properties, check
566 if it implements ICustomTypeDescriptor, in which case we should
567 resolve the propertu based on its GetProperties method, not in its
568 actual properties. This is what .Net seems to do.
569 Fixes a UsingWebBrowser problem during initialization.
571 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
573 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
574 sitting on a MenuStrip.
576 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
578 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
579 no children with the keyboard, we need to release the keyboard capture.
582 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
584 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
585 no children with the keyboard, we need to release the keyboard capture.
588 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
590 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
591 the GTK+-based implementation of VisualStyles.
592 * ThemeWin32Classic.cs: Exposed various layout values for use in the
593 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
594 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
595 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
596 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
597 TrackBarHorizontalTrackHeight.
599 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
601 * TabControl.cs: Added hot style handling for the scroll buttons.
602 right_slider_state, left_slider_state are now of type PushButtonState to
603 allow for a hot state. Added tracking of the mouse button being held down
604 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
605 LeftScrollButtonArea.
606 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
607 TabControlGetRightScrollRect.
609 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
611 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
614 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
616 * Form.cs: Ensure that we reset the shown_raised flag after
617 the form is closed, so that we raise the show events the next
618 time the form is shown.
621 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
623 * Form.cs: Ensure closing events are raised only once.
626 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
628 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
629 so that we can successfully generate the LParam in-place instead of
630 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
631 navigation for menus.
633 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
635 * MenuAPI.cs: When montion don't set the keyboard navigation state to
636 'navigating'. Fixes bug #411356.
638 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
640 [Fixed remaining issues of #406773 (#1)]
641 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
643 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
644 MainMenu (already done) and ContextMenu creation.
646 * ContextMenu.cs: Create tracker on construction.
648 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
650 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
651 possible to instantiate MenuTracker without GrabControl.
653 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
655 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
657 * MainMenu.cs: Set GrabControl on SetForm using current form.
659 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
661 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
663 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
665 * MenuAPI.cs: Check if menu is activated before deactivate it in
668 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
670 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
672 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
673 - One style instance can only participate in a single style collection.
674 - Styles can request their owner to layout whenever their properties
676 [Fixes bugs #412583 and #412582]
678 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
680 * X11Keyboard.cs: Implement the generation of the LParam for
681 all keyboard messages.
684 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
686 * ListBox.cs: Don't let the user set TopIndex so high that it
687 scrolls up far enough to show empty items.
690 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
692 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
693 (I'm an idiot and forgot to commit the actual changes, as well as
694 specify the right file, which is this one, not ListView.cs).
696 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
698 * ListView.cs: Don't draw ListViewSubItem instances from
699 DrawListViewItem - we need to reuse the main item's drawing for the
700 first sub item in case owner draw is true, but wants the system to
701 do the default draw for the first sub item, without incurring in a
705 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
707 * ToolStripButton.cs: Update Checked for CheckOnClick before
708 raising the Click event. [Fixes bug #412505]
710 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
712 * Form.cs: Remove some seems leftover code for non-TopLevel's
713 CreateParams, which is breaking ClientSize sizing, because it
714 removes the border window styles.
716 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
718 * PropertyGrid.cs: Invalidate the View when the PropertyTab
721 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
723 * WebBrowser.cs: Removed debug output.
725 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
727 * FileDialog.cs: Apply patch from Ernesto to clean up some
730 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
732 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
733 that the change has an immediate effect.
735 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
737 * ScrollableControl.cs: Update PerformLayout calls to include
738 provide the name of the property that changed.
740 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
742 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
743 location. Fixes drawing of border and cell borders if scrollable.
745 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
747 * ScrollableControl.cs: Perform layouting after the AutoScroll
748 properties have changed, so that the changes have immediate
752 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
754 * XplatUIX11.cs: Non Client area is actually Client such in the
755 case of NotifyIcon, so double check WholeWindow == ClientWindow
756 when adding an expose.
757 [Fixes bugs #324237 and #357022]
759 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
761 * TableLayoutPanel.cs: Invalidate after layouting, so that we
762 repaint the cell borders.
764 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
766 * PropertyGridTextBox.cs: Stop filtering messages prior to our
767 disposal to avoid unexpected ObjectDisposedExceptions.
769 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
771 * TableLayoutPanel.cs: Layout on Row/Column count change.
773 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
775 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
777 * PictureBox.cs: When ImageLocation is set to null or an empty string,
778 only set image to null if it was previously initialized from an url
779 (or using ImageLocation). In ImageLocation, load specified image
780 asynchronously if WaitOnLoad is false. Added support for local file
781 paths to LoadAsync, and added missing argument check.
783 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
786 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
787 order to set the value as required (which means: when selection
788 changes for a part being edited, and not before that if not needed).
789 Also use an enum to describe which part are we using, and use the
790 selection as a property in PartData, in order to notify the
791 DateTimePicker owner that we need to end the current edit.
794 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
796 * PropertyGridTextBox.cs: Validation should be performed only if we
797 are focused. We can lose focus for example if the Return key is used
798 to set the entry and there is an error. When the message box is
799 displayed we would have validate on click in the message box.
801 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
803 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
804 in order to determine that we are expandable is wrong. There was a bug,
805 now fixed, in TypeDescriptor that was causing the wrong converter to be
806 returned which caused GetPropertiesSupported == false in most cases.
809 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
811 * ImageList.cs: Fix ICollection.CopyTo implementation for
812 ImageListCollection. [Fixes bug #409169]
814 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
816 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
817 WorkingArea so that menus can appear on the second monitor
818 when one has dual monitors.
820 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
822 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
825 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
827 * TextBox.cs: Implement navigation support for auto complete in
828 TextBox, as well as refactor the code to show the auto complete window
829 when receiving a WM_CHAR message, instead of TextChanged, since
830 autocomplete itself should be able to set the Text a lot of times and
831 finally only typing should show it, not changes from code.
833 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
835 * TabControl.cs: When expanding the selected tab, don't adjust the
836 width if alignment is Right, since it has a different offset than 0,
837 as opposed to the other alignments.
838 Fixes the selected tab not being painted at all with alignment = Right
839 and using FillToRight size mode.
841 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
843 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
845 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
847 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
848 values from the textbox to the boundary values. [Fixes bug #409026]
850 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
852 * TreeNodeCollection.cs: We were copying one too many elements when
853 doing our array copy. Fixes a crash when RemoveAt is called.
856 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
858 * TabControl.cs: When doing the layout and need to call FillRow -using
859 FillToRight size mode-, use the overload receiving a bool param
860 indicating whether we need to do a vertical or horizontal calculation.
861 Fixes part of #399583.
863 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
865 * TextBox.cs: When painting, use the value returned by
866 GetLastVisibleItem instead of using the cached last_item field, since
867 there could be a desynchronization between the layout and the
868 painting. Fixes a AOOR exception in auto complete mode.
870 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
872 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
873 NonClientAreaEnabled until our VisualStyles is modified to allow it.
875 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
877 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
879 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
881 * TextBox.cs: When focus is lost, if the auto complete listbox is
884 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
886 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
887 tracking size for tool windows.
888 * Theme.cs, ThemeWin32Classic.cs : Extracted
889 ManagedWindowSpacingAfterLastTitleButton.
891 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
893 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
894 They are bit-rotted and have always been listed as "unsupported".
896 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
898 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
900 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
902 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
904 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
906 * ListBox.cs: Make sure last_item_visible gets reset before we try
907 to do a layout due to scrollbars appearing or disappearing.
910 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
912 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
913 for different window themes. [Fixes bug #339140]
915 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
917 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
918 in ManagedWindowBorderWidth.
920 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
922 * InternalWindowManager.cs: Change MouseMove to take a point, so
923 we can use the same point later on.
924 * MdiWindowManager.cs: Store point sent to MouseMove so we can
925 later reset to it. On Windows, the Cursor.Position had already
926 changed by the time we were resetting to it.
929 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
931 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
933 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
937 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
939 * MdiWindowManager.cs: Double-clicking on the title bar should not
940 maximize a MDI form if MaximizeBox = false.
942 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
944 * ThemeVisualStyles.cs: Fixed a warning.
946 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
948 * ThemeVisualStyles.cs: Fixed warnings and formatted.
950 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
952 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
953 implementation produces a better result.
955 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
957 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
960 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
962 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
963 cannot be used from the ThemeEngine constructor.
964 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
965 Application.VisualStylesEnabled because it does not work on X11.
967 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
969 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
970 that we did not always check for, as well as fixes to the IList
971 implementations. [Fixes bug #402703]
973 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
975 * IDeviceContext.cs: Added Dispose.
977 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
979 * Control.cs: Added OnSizeInitializedOrChanged.
980 * Form.cs: OnLoadInternal: Added a call to
981 Control.OnSizeInitializedOrChanged.
982 * InternalWindowManager.cs:
983 * HandleTitleBarMouseMove: No longer invalidates the parent window.
984 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
985 * TitleButton: Added Entered.
986 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
987 * MdiWindowManager.cs:
988 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
989 move over the maximized title buttons causes a change.
990 * IsActive: Can now be called before the window is added to a MDI parent.
991 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
992 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
993 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
994 * ThemeWin32Classic.cs:
995 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
996 * DrawTitleButton takes a new form parameter.
997 * Added ManagedWindowTitleButtonHasHotElementStyle,
998 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1000 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1002 * ThemeEngine.cs: ThemeVisualStyles is now selected if
1003 Application.EnableVisualStyles has been called, even if the current system
1004 configuration does not support rendering with Visual Styles.
1005 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1006 Styles should not be used.
1008 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
1010 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
1011 ComboBox in FormsTest.
1013 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
1015 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
1016 for fixed toolwindows.
1018 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
1020 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1022 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1024 * Control.cs: CreateControl just returns if the Control is diposed
1025 and doesn't throw ObjectDisposedException.
1028 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1030 * Control.cs: Do not create the control if the parent isn't created
1031 yet, e.g in the case of a parented form on which .Show is called.
1032 It will be created when the parent is made visible/created.
1035 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1037 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
1038 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1041 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1043 * Form.cs: When disposed set owner to null. Improves #402446.
1045 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1047 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
1048 use children's PreferredSize if in AutoSize mode and ExplicitBounds
1050 * Form.cs: Take the Padding into account for the PreferredSize.
1053 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1055 * TabControl.cs: Since we don't support more than one direction in
1056 TabControl rows alignment (this is, the row becomes the
1057 bottom row when selected), make Direction return always 1. This way
1058 the layout doesn't get confused about a bad calculation.
1061 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1063 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
1064 so that the wparam is properly set.
1065 Fixes form moving in the test case in bug 402446.
1067 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
1069 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1070 the full tree instead of nothing. [Improves bug #406584]
1072 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1074 * ThemeWin32Classic.cs: Adjusted minimized window painting.
1076 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1078 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1081 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
1083 * TreeView.cs: Add a null check when using CollapseAll on an
1084 empty tree. [Fixes bug #406449]
1086 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1088 * Form.cs: Make OnMenuComplete internal so we can call it.
1089 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1092 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1094 * TabControl.cs: Handle Up and Down keys when TabControl is in
1098 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1100 * TabControl.cs: Invalidate when we remove a tab. Guard against
1101 an AOORE when trying to remove a tabpage that is not owned by the
1105 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1107 * ScrollBar.cs: Change the LargeChange calculation to be correct.
1108 Ensure we are using LargeChange instead of large_change so we our
1109 calculations are correct.
1112 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1114 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1115 we need to ensure the ColumnCount/RowCount gets set.
1118 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1120 * ListBox.cs: When handling item navigation, if selection mode is
1121 None, call EnsureVisible, since scrolling is normally handled by
1122 selection, that we are not calling in this case.
1125 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1127 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1128 a null check to our focus walking code. [Fixes bug #394332]
1130 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
1132 * ComboBox.cs: Case missed in bug 379596 "Support item
1133 navigation by entering text": On _close_ drop-down select
1134 the first item matching the text in the textbox. [Fixes bug #397265]
1136 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1138 * DataGridView.cs: Fix a crash when sorting by column headers,
1139 mentioned in bug #404841. Remove some dead switch cases.
1141 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1144 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1145 uses the AutoComplete support in the internal TextBox. Also TextBox
1146 can store a reference to ComboBox, in case AutoCompleteSource is set
1147 to ListItems (this is, ComboBox's items, and we don't want to pass an
1148 additional collection).
1150 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1152 * ListViewItem.cs: Restore the initial value of bounds rect to
1153 Rectangle.Empty, and is this value for Layout detection in virtual
1154 mode. Fixes the tests.
1156 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
1158 * XPlatUI.cs: Remove references to "new" X11 backend.
1160 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1162 * Control.cs: Add an internal virtual OnDragDropEnd method
1163 to allow controls such as ListBox, which depend on a sequence
1164 of MouseDown+Move+End events, to handle the lack of a MouseUp
1165 when a DnD operation is started in MouseDown.
1166 * ListBox.cs: If a DnD operation is started in MouseDown we won't
1167 get a MouseUp, so reset our state whenever a DnD operation ends.
1169 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1171 * PropertyGrid.cs: Clear the root griditem first thing when
1172 new object/s is/are selected. Fixes some rare cases where
1173 the View will get a paint request and won't know that the
1174 grid is in the process of repopulating.
1176 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1178 * XplatUIX11.cs, InternalWindowManager.cs:
1179 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
1180 doesn't automagically update the FormBorderStyle, so we must
1181 double check the CreateParams explicitly to determine if the
1182 window is a toolwindow.
1183 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
1184 instead of doing custom checks.
1186 Fixes toolwindows for the test case in bug #402446
1188 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1190 * Control.cs: Visibility of the control should be false
1191 when the handle is destroyed in WmDestroy and not immediately
1192 in Dispose(). This is effectively where the disposing process
1193 ends even though the control is marked as Disposed immediately
1194 after calling Dispose().
1197 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1199 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
1200 when the textbox gets focus.
1203 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1205 * PropertyGridTextBox.cs, PropertyGridView.cs:
1206 - Alt + Down should show the drop down editor.
1207 - Focus the editor when showing it
1210 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
1212 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1213 that are not the first panel.
1214 * StatusBar.cs: Ensure that the X coordinate of panels is always
1215 stored. Fix IList implementation of StatusBarPanelCollection to
1216 call the regular methods.
1217 [Fixes bug #403599, #402165]
1219 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
1221 * ThemeWin32Classic.cs: Fix position calculation for centered
1222 text on status bar panels. [Fixes bug #402165]
1224 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1226 * Splitter.cs: Fix Splitter to:
1227 - Work for arbitrary splitter size
1228 - Handle MinSize and MinExtra properly
1229 - Get rid of absolute positioning during drag and use relative
1230 - Multiple other fixes
1233 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1235 * Cursor.cs: Show shouldn't hide the cursor.
1237 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1239 * ListViewItem.cs: When invalidating, add some extra space to bounds,
1240 since focus rectangle and selection can add some space and need to
1241 take into account those small offsets - specially in Details view.
1242 * ListView.cs: Instead of invalidate using item Bounds directly, call
1243 item.Invalidate, to have the code centralized.
1244 Fixes focused/selection garbage when selecting and deselecting items
1247 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1249 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1250 mode we can check whether we have to force a Layout or not, and can
1251 cache based on this, instead of avoiding caching all the the time. Do
1252 this check in GetBounds and TextBounds.
1253 Fixes selection in Details view.
1255 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1257 * ListView.cs: Make HeaderControl internal, thus the theme engine can
1258 get its *real* height instead of trying to infere it.
1259 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1260 get the position of them, since it's in general a bad idea in general,
1261 and because we can't do that in virtual mode. Instead get the first
1262 visible item as well as item height, and draw them.
1265 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
1267 * ToolStripSplitButton.cs: We can't add in extra width if
1268 the button is not AutoSize. [Fixes bug #401279]
1270 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
1272 * PaddingConverter.cs:
1273 - Implement conversion to InstanceDescriptor
1274 - Handle "All" in CreateInstance by using the supplied
1275 ITypeDescriptorContext.
1276 [Fixes bugs #396076 and #396078]
1278 Patch by Andy Hume <andyhume32@yahoo.co.uk>
1279 Code contributed under MIT/X11 license.
1281 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
1283 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
1285 Add Category attributes.
1286 Code is contributed under the MIT/X11 license.
1288 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
1291 - Fix a NRE when unparenting a form.
1292 - Do not recreate or destroy a parented form when
1295 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1297 * TextBox.cs: Implement basic support for AutComplete with custom
1300 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
1302 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1303 DropDownButtonBounds should be from the origin of the button, not the
1304 ToolStrip. [Fixes bug #401279]
1306 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
1308 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1309 running gtk_init_check. This prevents GAIL from loading
1310 unnecessarily, which was breaking UIA support. Initial fix for bug
1312 * Application.cs: Add UIA support to Winforms. New static constructor
1313 uses reflection to initialize UIAutomationWinforms assembly. Added
1314 PreRun event so UIA can initialize before the mainloop starts, and
1315 FormAdded event so UIA can provide a11y support for new Forms in an
1318 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
1320 * DataGridView.cs: When binding to a dataset, subscribe to table
1321 and column change events. Unsubscribe to these when we clear bindings.
1324 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
1326 [DataGrid drawing refactory]
1328 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1330 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1331 must be handle by Theme, now it call DataGridPaintColumnHeader.
1333 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1334 test cases must be also fixed because it checks for wrong size.
1336 * ThemeWin32Classic.cs:
1337 - Draw the bottom line of grid caption.
1338 - Prevent to draw caption text when it is empty.
1339 - Use CPDrawBorder3D for 3D efects to simplify code.
1340 - Uses 3D (when not flat) to paint corner shared between row and column
1342 - Fix header drawing issues on win32, now borders are drawing.
1343 - Fix column header paint issues to mimic win32.
1344 - Adjust header drawing for last column, like first one it must be draw
1346 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1348 - DataGridPaintColumnHeader created to draw column headers, it also
1349 paint stuff right on Win32.
1350 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
1354 - DataGridPaintRowHeaderStar method added.
1355 - DataGridPaintColumnHeader method added.
1357 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
1359 * Control.cs: Don't reset to Dock style layout if DockStyle is
1360 set to none. [Fixes bug #399316]
1362 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
1364 * Win32DnD.cs: Fix the check for control not equal null.
1365 Fixes bug #341420 and #381886.
1367 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1369 * DataGridViewRowCollection.cs: Update the indexes of rows after
1370 one has been removed.
1371 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1372 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1373 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1374 rows for the Rows collection, or deleting rows from the bound DataSet.
1376 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1378 * DataGridView.cs: Listen to a DataSet's changed event even
1379 when autogeneratecolumns is false. Refactor the changed event's
1380 add row code to use the same as the existing add row code.
1383 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1385 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1386 much any time the caret moves and there is text, not just when
1387 the selection changes as one would think.
1388 * RichTextBox.cs: Override RaiseSelectionChanged and fire
1392 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1394 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1395 instead of trying to duplicate the code.
1396 * ListBox.cs: Make method internal so we can send keyboard events.
1399 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1401 * TextBoxBase.cs: When pasting and checking the max length,
1402 subtract the selected text length (the text we will be replacing) from
1403 the document length.
1404 * TextControl.cs: Ensure every character insertion is reflected in
1405 charcount, so max length will work properly.
1408 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1410 * ListBox.cs: Ensure scrollbars are updated when a single
1411 column listbox with an already set top-index is created.
1414 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1416 * FontDialog.cs: Typing in the font/style textboxes should search
1417 the list boxes case-insensitively. [Fixes bug #398343]
1419 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
1421 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1422 widths of icon and buttons instead of hard coded values.
1424 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1426 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1427 as well as generating a SelectedIndexChanged event, just like .Net does
1431 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1433 * ListBox.cs: When navigating items visually, use FocusedItem as the
1434 reference point instead of SelectedIndex, since even in
1435 SelectionMode.None we need to support navigation, and in that case we
1436 just can't use SelectedIndex.
1437 Fixes part of #398345.
1439 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
1441 * Control.cs: Make a SetBoundsInternal that avoids the new
1443 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1444 SetBoundsInternal instead of SetBoundsCoreInternal.
1446 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
1448 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
1449 SetBounds for the scrollbars.
1451 2008-06-10 Andreia Gaita <avidigal@novell.com>
1453 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1454 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1455 OnMouseMove, OnMouseOver, OnMouseUp
1456 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1457 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1458 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1459 to the WebControl object to pass to new collection objects
1460 * HtmlHistory.cs: Implement support for individual window histories.
1461 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1462 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1463 GotFocus, LostFocus, OnLoad, OnUnload
1464 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1466 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1467 security level changes and context menu event support.
1469 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1471 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1472 as happens with Esc, patch my Andy Hume.
1475 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1477 * MdiWindowManager.cs: DrawMaximizedButtons now uses
1478 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1479 * Theme.cs: Made MenuButtonSize platform dependent. Added
1480 ManagedWindowButtonSize.
1481 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1482 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1484 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1486 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1487 Added support for rendering with VisualStyles.
1489 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1491 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1492 support for rendering the border with VisualStyles.
1494 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1496 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1497 the icon is not shown.
1498 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1501 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1503 * InternalWindowManager.cs: Draw minimized windows even if they don't have
1506 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1508 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1510 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1512 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1515 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1517 * ComboBox.cs: When snaping height -because of IntegralHeight set to
1518 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1519 if the requested height leaves the listbox area with *less* than the
1520 required are to see one item. We were setting it to PreferredHeight
1521 even for values matching the height for a single item.
1524 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1526 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1528 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1530 * DataGridViewCell.cs: Use property instead of field.
1532 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1534 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1537 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1539 * Theme.cs: Added #region around the managed window code. Made the managed
1540 window methods abstract.
1541 * ThemeWin32Classic.cs: Added #region around the managed window code.
1543 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1545 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
1547 * ThemeWin32Classic.cs: Removed HasBorders checks in
1548 DrawManagedWindowDecorations.
1550 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1552 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1553 Extracted ManagedWindowGetTitleBarIconArea.
1555 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1557 * DataGridViewCellStyle.cs: Don't clone the font.
1559 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1561 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
1563 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1565 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
1566 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
1569 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
1571 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
1572 Use Format/FormatProvider before trying converters.
1573 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
1574 are 'set'. Change constructor to not use ApplyStyle since it wants
1575 everything applied. Clone the Font.
1576 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
1577 ApplyStyle the rest.
1579 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1581 * ListView.cs: We need to calculate the scrollbars even if the handle
1582 hasn't been created - this is needed when methods using scrollbars
1583 info, such EnsureVisible, are called before control has been created.
1586 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
1588 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
1589 only if the elements are defined.
1591 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1593 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
1594 section. Also, when setting bounds, snap height as well as save the
1595 requested height if Dock has any value affecting the height: Left,
1596 Right and Bottom - important if using IntegralHeight as true.
1598 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1600 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
1601 passed to SetBounds to reflect the new adjusted height (Integral-wise),
1602 instead of doing that only in our SetBoundsCore override, since the
1603 bounds cached can be the same as saved one and we could not get the
1607 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1609 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
1610 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
1611 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
1612 ToolWindowCaptionButtonSize.
1613 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
1615 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1617 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
1619 * Theme.cs: Made DoubleClickTime plaform dependent.
1621 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1623 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
1624 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1625 ToolWindowCaptionHeight.
1627 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1629 * InternalWindowManager.cs: The adjustment to ensure positive client area
1630 sizes is now platform dependent (disabled on Windows).
1631 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1632 RequiresPositiveClientAreaSize.
1634 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1636 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1638 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1640 * InternalWindowManager.cs: Changed IconicSize to use
1641 SystemInformation.MinimizedWindowSize.
1642 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1643 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1645 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1647 * ComboBox.cs: If the combobox is anchored both on top and bottom,
1648 adjust height if IntegralHeight is true when calling SetBoundsCore (as
1649 likely the height was modified even if Height wasn't specified in
1650 BoundsSpecified parameter).
1651 Fixes part of #396297.
1653 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
1655 * InternalWindowsManager.cs: Changed minimum window size while resizing to
1656 SystemInformation.MinWindowTrackSize.
1657 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1658 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1660 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1662 * MenuItem.cs: Fixed Dispose.
1664 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
1666 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1667 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1668 EnteredHeaderCell, PressedHeaderCell: Added.
1669 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1670 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1671 theme a chance to override default painting.
1672 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1673 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1674 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1675 ListView and DataGridView header rendering.
1677 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1679 * RichTextBox.cs: GetPositionFromCharIndex should return the
1680 visual position of the character relative to the viewport.
1681 [Fixes part of bug #396664]
1683 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
1685 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
1686 and not just for the existance of an UITypeEditor. In some cases
1687 there is an editor associated just to do PaintValue, but which
1688 doesn't actually support editing.
1691 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1693 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1694 if needed, instead of 0 - this should help us in the corner case where
1695 we have more than one item but we are only partially showing 1 item.
1696 Fixes part of #374713.
1698 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1700 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1701 control, return immediately if the any parent control's handle hasn't
1702 been created or isn't visible, as well as avoiding creating the parent
1703 Form if the handle hasn't been previously created.
1706 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1708 * TableLayoutPanel.cs: Use border sizes when calculating the
1709 panel's preferred size. [Fixes part of bug #396433]
1711 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1713 * SplitContainer.cs:
1714 - Fix SplitterDistance to update only if needed.
1715 - Make it force min and max validation.
1716 - Handle properly mouse moves outside the resizeable area.
1719 2008-06-02 Andreia Gaita <avidigal@novell.com>
1721 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
1722 (which also suppresses all popup dialogs). Throw NotSupported
1723 exceptions for activex getters/setters.
1724 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
1725 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
1726 StatusText, Version, GoSearch
1727 * HtmlDocument.cs: Add DocType support
1729 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
1731 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
1734 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
1736 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
1738 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
1740 * TableLayoutPanel.cs: When calculating preferred size, use the
1741 actual number of columns and rows, not what the user set them to.
1744 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
1746 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
1749 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1751 * XplatUIX11.cs: When detecting areas obscured in a control by other
1752 toplevel windows while scrolling, return if the control hasn't a
1756 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1758 * XplatUIX11.cs: Properly detect the visible area of a control being
1759 scrolled (obscured by other winforms controls and any X toplevel
1760 windows), to mark as invalid the requested area to be scrolled that
1761 isn't visible and thus can't be copied.
1764 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1766 * ListBox.cs: Compute the precise amount to vertically scroll when
1767 using DrawMode.OwnerDrawVariable.
1768 Patch by jkeymer (j.keymer@gmx.net).
1770 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1772 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
1773 to avoid setting an invalid value for the verticall scrollbar
1774 when navigating items. And, duh, also remove my silly debug messages
1775 from previous commits.
1778 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1780 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
1781 make it MS compatible.
1783 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
1785 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
1786 - Allow the editing of entries even if their parent is read-only.
1787 - Do not render expandable properties read-only.
1788 - Refactor expansion checks form PropertyGrid into PropertyGrid.
1790 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
1792 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1793 support for the hover style.
1795 2008-05-29 Andreia Gaita <avidigal@novell.com>
1797 * ContainerControl.cs: Check for null dead-end when traversing the tree
1800 [Fixes #394332, patch by Ernesto Carrea]
1802 2008-05-29 Geoff Norton <gnorton@novell.com>
1804 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
1805 constant that it is. Fixes #393981
1807 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1809 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
1810 that the user probably doesn't want to set this.
1812 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
1814 * ThemeWin32Classic.cs: Don't let the text size be bigger than
1815 the control size for CheckBox/RadioBox.
1816 [Fixes part of bug #394645]
1818 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1820 * PropertyGrid.cs: Update the state of the sorting buttons in
1821 the toolbar if PropertySort is set programatically.
1823 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1825 * GridItemCollection.cs: Add multiple items with conflicting names
1826 support and also preserve name ordering.
1829 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
1831 * GridItemCollection.cs: Revert my multiple items with same
1834 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1836 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
1838 Fixes part of #393908.
1840 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
1842 * ToolStripDrowDown.cs: When using the Show () methods that have a
1843 Control parameter, set the menu owner to that Control.
1846 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
1848 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
1851 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1853 * GridItemCollection.cs: Refactor to support multiple items with the
1857 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
1859 * Control.cs: The 2.0 check for illegal cross thread calls in
1860 Control.Handle were throwing an exception when we were getting
1861 the Handle in order to invoke correctly. Created a private
1862 version that does not contain this check.
1865 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1867 * PropertyGrid.cs: Respect DefaultTabType.
1869 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1871 * ListView.cs: SPACE selects an item.
1874 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
1876 * ListView.cs: Reset the search string whenever the items are
1880 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1882 * ListControl.cs: For the first added item PositionChanged is fired
1883 _before_ ItemChanged, which leave us in a temporary invalid state - so
1884 we need to set the selected index from ItemChanged handler *if* we
1885 know that the first item has just been added *and* the items have been
1886 actually added to the ListControl.
1889 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1891 * TabControl.cs: Only clicks with the left button should be
1895 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1899 * TextBox.cs: Expose an internal method in TextBox to restore the
1900 original context menu, and call it from ComboBox to re-use it in the
1901 combobox containing the file name in FileDialog.cs.
1902 Fixes part of #393775.
1904 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1906 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
1909 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
1911 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
1914 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1916 * ComboBox.cs: Minor correction to previous patch: PageDown should
1917 also *try* to move by one item if the computed offset is negative,
1918 just like the PageUp case.
1920 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
1923 should be done for at least 1 item, and not stay at the same item.
1924 Fixes part of #374713.
1926 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
1928 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
1929 directories. [Fixes bug #393931]
1931 2008-05-22 Andreia Gaita <avidigal@novell.com>
1933 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
1934 Don't fire events until the initial about:blank page has finished
1935 loading. Clean up events.
1937 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1939 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
1940 FocusIn() too. This should fix the issue on switching
1943 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
1945 * X11Keyboard.cs : set XIM font size to somewhat reasonable
1946 number (ideally the input textbox size, but that could be
1949 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
1951 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
1952 the ToolStripItem's TextChanged. [Fixes bug #393597]
1954 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1956 * TabControl.cs: When invalidating in SelectedIndex and we need to
1957 inflate to take into account the border of the tabs, make sure that
1958 the invalidated rect doesn't overflow the control bounds, since that
1959 would avoid updating at all.
1961 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1963 * TabControl.cs: Don't substract scroller width from the row width,
1964 since we need to take into account the total width of the control when
1965 calculating the position of the tabs. This avoids showing scroller
1966 when it is actually not needed.
1967 Fixes part of #322325.
1969 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1971 * ThemeVisualStyles.cs: Added support for TextBoxBase.
1973 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1975 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1976 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1978 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1980 * DataGridView.cs: Only paint the top left header cell if there
1983 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1985 * DataGridView.cs: When binding to a BindingSource, get the underlying
1986 list to bind to. [Fixes bug #345483]
1988 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1990 * DataGridView.cs: Do not bind to collection properties.
1993 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1995 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1997 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1999 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2002 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2004 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2006 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2008 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2011 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2013 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2015 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2017 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2020 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2022 * TabControl.cs: Extended to handle the hot style.
2024 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2026 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2027 Extended UpDownBase code to handle hot and disabled styles.
2029 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2031 * DataGridView.cs: Handle databinding to generic list type things.
2034 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2036 * DataGridViewCellCollection.cs: Add a method to find the cell
2037 with the given DataPropertyName.
2038 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2039 * DataGridViewColumnCollection.cs: Add a method to clear all
2040 autogenerated columns.
2041 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2045 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2047 * DataGridView.cs: Don't try to update the RowTemplate with
2048 a null CellTemplate.
2050 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2052 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2053 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2054 * DataGridView.cs: Lots of fixes/enhancements to databinding to
2057 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2059 * Control.cs: Remove invalidating implicit child controls when
2060 control is invalidated. It was causing too many redraws on
2061 controls with implicit scrollbars.
2062 * ListView.cs: Listen to the Invalidated event and invalidate
2065 2008-05-20 Andreia Gaita <avidigal@novell.com>
2067 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2068 * HtmlDocument.cs: Check for nulls
2070 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2072 * Control.cs: In ControlCollection.RemoveInternal, remove the
2073 internal control before calling PerformLayout and OnControlRemoved,
2074 which was leaving us in an invalid state and causing a X error (bad
2075 match). Observe that Remove () call has the same order.
2076 Fixes an X error changing ComboBoxStyle.DropDownStyle.
2078 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2080 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2081 being fired if ControlStyles.UserPaint style is activated.
2084 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2086 * GridEntry.cs: Don't be so strict when setting the value -
2087 do not check if what we set is what we get.
2090 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2092 * XplatUIX11.cs: If there are no timers timeout should be 0
2095 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2097 * Control.cs: As a followup to invalidating implicit children when
2098 a control is invalidated, only invalidate them if they are in the
2101 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2103 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2105 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2107 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2109 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2111 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2112 * XplatUIWin32.cs: Made Win32DeleteObject public.
2114 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2116 * GridEntry.cs: Determine HasDefaultValue more strictly by using
2117 PropertyDescriptor.ShouldSerializeValue.
2120 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2122 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2123 in the classic theme.
2125 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2127 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2129 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2130 ScrollBarHasPressedThumbStyle.
2132 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2134 * TextRenderer.cs: Included some methods in the 1.1 profile.
2136 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2138 * Control.cs: When we make a control visible, it may have been
2139 previously visible and while it wasn't visible, the z-order of
2140 things may have been shuffled, so the control needs to have its
2141 z-order updated just in case. [Fixes bug #391518]
2143 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2145 * ThemeVisualStyles.cs: Added support for GroupBox.
2147 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2149 * GroupBoxRenderer.cs: Included in the 1.1 profile.
2151 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
2153 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2154 bug #389996; XSelectInput() behaved as mouse handler robber,
2155 so remove extra call to it.
2157 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2159 * Control.cs: Simplify ControlCollection.Contains method.
2161 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2163 * DataGridViewRow.cs: Implement GetPreferredSize.
2165 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2167 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
2169 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2171 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2172 painting and edit control fixes.
2174 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2176 * DataGridView.cs, DataGridViewCell.cs: Work around some external
2177 checks to make sure we are in an actual row/col for top left header cell.
2178 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2180 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2182 * Control.cs: Use long instead of int when handling WParam from
2183 mousewheel scrolling. Int was overflowing on Win64.
2185 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2187 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2188 flow panel without scrolling first, and then calculate the
2189 scrolling based on the new layout. [Fixes bug #390149]
2191 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2193 * ListBox.cs: Invalidate after scrolling up when selected index
2194 changes. [Fixes bug #390151]
2196 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2199 set, default height to 150. I tried first with DefaultSize, but this
2200 is not generating a SetBoundsCore call before handle creation time, so
2201 we can take it into account. This is just what .net does.
2203 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2205 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2206 as it broke some stuff. Calberto is filing a bug for eno to
2209 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2212 to 0 is the current value is -1, and if style is not Simple, just
2213 return, like .net does.
2214 Fixes part of #374713.
2216 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2218 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2219 progress bar stuffs, use doubles instead of ints to prevent
2220 overflow. [Fixes bug #389798]
2222 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2224 * XplatUIX11.cs, X11Keyboard.cs :
2225 Significant refactoring on XIM support. Now IM engine UI
2226 should show up, at mostly-correct preedit position.
2227 - Eliminated use of FocusWindow, as it is never mapped
2228 and hence blocks correct preedit position. XIC is now
2229 created per window, and it must be destroyed too when
2230 the window is destroyed.
2231 - WM_QUIT messages should not be filtered even when hwnd
2232 is zombie. Filtering it could cause endless loop.
2233 - Preedit position must move only when the window is alive.
2234 - Make it IDisposable and make sure to release XIM/XICs.
2236 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2238 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2239 XplatUIX11.cs, XplatUIWin32.cs :
2240 fix for bug #325033 and #387693;
2241 - WM_QUIT should not be sent when no running application
2243 - SetTimer/KillTimer (especially on win32) should be
2244 invoked for the window that the timer is/will_be attached.
2245 - There could be unattached timers to a window when it's
2246 started. For those timers, hold pending timers and when
2247 a window is mapped, attach them to it.
2248 - WaitForHwndMessage() could run into loop when
2249 WM_SHOWWINDOW is handled before this method is called.
2250 So, strictly check wm_showwindow state.
2251 - Tick handler should not be invoked while one Tick handler
2252 call is still running (introduced Busy state).
2254 2008-05-13 Andreia Gaita <avidigal@novell.com>
2256 * WebBrowserBase.cs: Override Internal alternative methods for
2257 SetBoundsCore and OnResize instead of the protected ones.
2258 * Control.cs: Move SetBoundsCore and OnResize implementations to
2259 SetBoundsCoreInternal and OnResizeInternal, so they can be
2260 overriden internally (WebBrowserBase needs to catch them but can't
2261 override the protected methods without api compat problems)
2263 2008-05-13 Andreia Gaita <avidigal@novell.com>
2265 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2267 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2270 * ListView.cs: Remove debug messages.
2272 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2274 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2275 area is empty. Also calculate scrollbars in Simple mode based in area
2276 height and total number of items, not in MaxDropDownItems.
2277 Fixes part of #371991.
2279 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2281 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
2283 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2285 * BindingSource.cs: GetListSortDescription is not public.
2287 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2289 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2291 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2293 * HtmlElement.cs: Fix parameter names to match MS.
2294 * HtmlWindowCollection.cs: Should not be sealed.
2296 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2298 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2299 button, because the thumb button will not get drawn if the scrollbar
2300 is disabled. [Fixes bug #389262]
2302 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2304 * ListBox.cs: Handle End key for multi-column listboxen.
2307 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2309 * ListBox.cs: Fix algorithm to determine which column our item is in.
2312 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2314 * ListBox.cs: Invalidate when the listbox is resized.
2317 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2319 * ListBox.cs: There is always at least one row in the ListBox (if
2320 we are doing these calculations.) [Fixes bug #389253]
2322 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2324 * ListBox.cs: There is always at least one column in the ListBox.
2327 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2329 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2330 ensure in Simple mode that the height is exactly the requested one.
2331 Also add the ComboBoxListControl to the controls collection in Simple
2332 mode even if handle hasn't been created.
2333 Fixes part of #371991.
2335 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2337 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2338 our ComboBox owner instead of giving it back to the previous control (
2339 as done in other controls). Also remove the empty override of Select
2340 method, since we want to be selected *and* give focus to our owner.
2341 This should let the user do keys-navigation in Simple mode.
2343 2008-05-10 Geoff Norton <gnorton@novell.com>
2345 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2346 problems with rapid scrolling of treeviews. Fixes #381084
2348 2008-05-10 Geoff Norton <gnorton@novell.com>
2350 * XplatUICarbon.cs: Deactivate the active window before
2351 activating the desired window. Completes fixing #386504
2353 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2355 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2356 SmallChange to the item size width plus the padding, to match .net.
2358 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2360 * FileDialog.cs: Apply the custom filter typed by the user in the file
2361 name combobox as much as possible while navigating in the file dialog.
2364 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2366 * Binding.cs: Actually use NullValue if the retrieved value of
2367 data source is null or DBNull. Makes a test pass.
2369 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
2371 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2372 * MimeIcon.cs: Provide a way to get icons from resources.
2374 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376 * Binding.cs: When the value retrieved from the control to be assigned
2377 to the data source is null, actually use the 2.0 DataSourceNullValue
2378 value. Make pass a data binding test.
2380 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2382 * Control.cs: We need to invalidate implicit children even when
2383 invalidate is called with invalidatechildren = false. (Implicit
2384 children are really part of the parent.)
2385 * ListView.cs: Double-buffer internal child controls for less
2387 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2388 owner ListView subitems for greatly increased performance.
2391 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2393 * FileDialog.cs: When the user types a wildcard character in the
2394 filename combobox, update the contents of the folder using the text as
2396 Fixes part of #385261.
2398 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2400 * ListBox.cs: Various fixes for MultiColumn listboxen.
2403 2008-05-08 Andreia Gaita <avidigal@novell.com>
2405 * HtmlElement.cs: Implement Style property
2407 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2409 * ListBox.cs: Respect checkboxes when measuring item size.
2410 * ThemeWin32Classis.cs: When drawing list items, don't draw
2411 text outside of the item's bounds to prevent overlapping.
2412 (.Net actually overlaps, but that's just silly.)
2415 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
2417 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2418 Gert Driesen. Fixes bug #324830.
2420 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
2422 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2425 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2427 * BindingSource.cs: When calling IsSynchronized, return the value of
2428 the related IList list.
2430 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2432 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2435 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2437 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
2438 navigation to scroll the grid if the current cell is not visible.
2440 2008-05-07 Andreia Gaita <avidigal@novell.com>
2442 * HtmlElement.cs: Implement TabIndex
2444 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2446 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2447 properties, even when there are no items.
2450 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
2452 * NativeWindow.cs: Add support for multiple handles per window.
2453 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
2454 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
2455 directly - use FromHandle instead.
2458 2008-05-07 Andreia Gaita <avidigal@novell.com>
2460 * HtmlElement.cs: Implement InnerHTML setter
2462 2008-05-07 Andreia Gaita <avidigal@novell.com>
2464 * HtmlDocument.cs: Implement Focused
2466 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2468 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2469 methods, as well as add messages to the exceptions.
2471 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2473 * BindingSource.cs: Setting DataSource should only reset DataMember if
2474 the previous value was null (make pass a not working test).
2476 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2478 * BindingSource.cs: When EndInit call is postponed and is called until
2479 DataSource.EndInit is called, remove the handler for data source.
2481 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2483 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2485 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2487 * ToolStripManager.cs: Store references to toolstrips as
2488 weak references so they do not prevent forms from getting collected.
2491 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2493 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2494 on .Net. So do the same thing in WndProc.
2496 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2498 * TrackBar.cs: Commit patch from Andy Hume that corrects
2499 the clickable areas to better match .Net.
2502 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2504 * TrackBar.cs: Commit patch from Andy Hume that adds the
2505 ResizeRedraw control flag so the track bar repaints itself
2506 when it is resized. [Fixes bug #387072]
2508 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2510 * TrackBar.cs: Commit patch from Andy Hume that adds better
2511 support for keyboard navigation when the TrackBar is vertical.
2514 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2516 * BindingSource.cs: Implement ISupportInitializeNotification support.
2518 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2520 * ThemeVisualStyles.cs: Added support for ToolBar.
2522 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2524 * ToolBar.cs: Made the Vertical property internal.
2526 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2528 * ThemeVisualStyles.cs: Added support for TrackBar.
2530 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2532 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2533 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2534 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2535 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2536 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2537 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2539 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2541 * ThemeVisualStyles.cs: Added support for UpDownBase.
2543 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2545 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
2546 Extracted Theme.UpDownBaseDrawButton.
2548 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2550 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
2551 removed from the static toolstrips collection in ToolStripManager
2552 when they are disposed. Provides a workaround for bug #386483.
2554 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
2556 * GridEntry.cs: Read-only properties with Editor with
2557 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
2560 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
2562 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
2563 the menu key and there are no items on the menu.
2566 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
2568 * Control.cs: Avoid calling ToString on a string.
2569 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
2570 * GroupBox.cs: In FlatStyle property throw, not just create, the
2571 exception. Avoid calling ToString on a string.
2572 * ProgressBar.cs: Avoid calling ToString on a string.
2573 * ScrollBar.cs: Avoid calling ToString on a string.
2574 [All issues were found using Gendarme]
2576 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2578 * NotifyIcon.cs: Prevent click events to be trigger after double click
2579 events. Fixes remaining issues of bug #324832.
2581 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
2583 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
2584 to mimic win32 behavior. Partially fixes bug #324832.
2586 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2588 * BindingSource.cs: Implement Find methods.
2590 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2592 * BindingSource.cs: Implement Sort, ApplySort overloads, and
2595 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2597 * ListBindingHelper.cs: When calling GetListItemProperties and the
2598 passed object is ITypedList, return the result of
2599 ITypedList.GetItemProperties instead.
2601 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2603 * LinkLabel.cs: Set default value of name on constructor of Link class
2604 only for 2.0 profile.
2606 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2608 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
2609 Fixes remaining issues of bug #346154.
2611 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2613 * LinkLabel.cs: Set a default value for name on internal contructor of
2614 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2616 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
2618 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
2619 and refer all instances to owner.links. Partially fixes #346154.
2621 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2623 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
2624 length equal zero. Also called CreateLinkPieces in constructor. It fixes
2625 the LinkLabel test 'TestLinkArea'.
2627 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2629 * Form.cs: Remove menu before close form to prevent form to be not gaced.
2632 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2634 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2637 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2639 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2642 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2644 * MenuAPI.cs: Remove unused ProcessCmdKey method.
2646 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2648 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
2651 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2653 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2656 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
2658 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2659 sometimes we open a conext menu on mouse down of some controls and the mouse
2660 up is dispatched to menu and dont need to. It fix remaining issues of
2661 #363711 and other problems related to menu mouse click events.
2663 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2665 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2666 some var names to better fit changes, now we have month_menu and today_menu
2667 vars. Fixes bug #363711.
2669 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2671 * MonthCalendar.cs: Handle every right mouse click to open context menu,
2672 right now the default month menu but it will be change to have "Go to today"
2675 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2677 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2679 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
2681 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2683 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2685 * ThemeVisualStyles.cs: Added support for TreeView.
2687 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2689 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2690 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2692 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2694 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2696 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2698 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2699 Implement 2.0 SP1 stuffs.
2701 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2703 * FileDialog.cs: Implement 2.0 SP1 stuffs.
2705 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2707 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
2708 Implement CanEnableIme property. (2.0 SP1)
2710 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2712 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
2715 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2717 * Control.cs: Provide an internal way for a control to override
2718 the setting of Height.
2719 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
2720 set height using new method.
2722 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2724 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2726 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2728 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2729 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2731 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2733 * ThemeVisualStyles.cs: Added support for StatusBar.
2735 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2737 * DataObject.cs: Add the other IDataObject interface.
2739 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
2741 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
2742 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2744 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2746 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
2747 * ListView.cs: Hide non-public API.
2748 * MaskedTextBox.cs: Remove extra attribute.
2750 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
2752 * DataGridViewImageCell.cs: Use formatted value instead of value
2753 to calculate preferred size.
2755 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2757 * ListBox.cs: Move some initialization around so that selected_indices
2758 is not accessed before it is created.
2760 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2762 * InputLanguageCollection.cs: Implement the collection better.
2765 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2767 * ToolStripDropDownItem.cs: Get the correct event object for
2768 DropDownItemClicked.
2769 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
2772 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
2774 * DataGridViewRowCollection.cs: We don't currently support shared
2775 rows. Should fix test failures caused by previous commit.
2777 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2779 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
2780 datagridview gets set. Only paint cells in visible columns.
2781 * DataGridViewCell.cs: Draw border after cell content.
2782 * DataGridView.cs: Invalidate after setting some properties. Only
2783 use visible columns. Fit hit test bug with areas in the col/row header
2784 area but not in a row or col. Implement UpdateCell/Row methods.
2786 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2788 * DataGridViewElement.cs: Don't throw NIEX.
2789 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
2790 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
2791 * DataGridViewCheckBoxColumn.cs: Implement ToString.
2792 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
2793 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
2794 if the user filled in the formatting Value, use it.
2796 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
2798 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
2801 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2803 * BindingSource.cs: Some corrections to Filter property, as well as
2804 setting it for our list when resetting it.
2806 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
2808 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
2809 than the maximum. Fixes reopened bug #384182.
2811 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2813 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
2814 Fixes remaining issues of #367490.
2816 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2818 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
2819 SystemInformation.WorkingArea to get max_screen value.
2821 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2823 * BindingSource.cs: Implement Filter and RemoveFilter.
2825 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2827 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
2829 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2831 * X11Dnd.cs: When trying to convert data and we know we started the
2832 dnd loop, don't try to use the cached data if the loop is not running,
2833 which means that the data has been resetted.
2836 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2838 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
2841 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2843 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
2844 it to drawn off screen edge. Fixes bug #367490.
2846 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2848 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
2849 menu position to have only one assignment of Location var.
2851 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
2853 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
2854 for this patch. Fixes bug #384115.
2856 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2858 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
2859 the same. If LargeChange is zero, set a minimum size for the scroll
2860 thumb grip. [Fixes bug #384182]
2862 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2864 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
2867 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
2869 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
2871 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2873 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
2874 patch from Ernesto).
2876 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2878 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
2880 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2882 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2884 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2886 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2888 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
2890 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2892 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
2894 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2896 2008-04-27 Andreia Gaita <avidigal@novell.com>
2898 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
2899 supposed to return a reference to an mshtml interface, which we
2901 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
2902 reference to an mshtml interface, which we don't support). Code
2904 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
2905 DomDocument getter (it's supposed to return a reference to an
2906 mshtml interface, which we don't support). Code formatting cleanup.
2908 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2910 * ListView.cs: Ouch, forgot to commit.
2912 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2915 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2917 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2919 * ListView.cs: When calculating box selection for virtual mode, don't
2920 look for intersection with item's text, but item bounds, since that
2921 would mean read ListViewItem's text for _every_ item, and that's
2922 something we just can't do in virtual mode (items are only requested
2925 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
2927 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
2928 partial support for managed windows (based on the patch from Ernesto).
2930 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2932 * ListView.cs: When doing a key search use FindItemWithText method
2933 instead of doing the search by ourselves, this way we avoid
2934 duplicating the code and also we handle the special case for virtual
2935 mode. To achieve that make our private overload of FindItemWithText
2936 internal and also have a 'roundtrip' parameter.
2938 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2940 * ListView.cs: When doing the layout don't request the
2941 ListViewItem instance if we are in virtual mode (since we can't request it
2942 until the item is actully drawn).
2944 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2946 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
2949 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2951 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
2952 the patch from Ernesto).
2954 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2956 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
2957 * ThemeVisualStyles.cs: Added.
2959 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2961 * IDeviceContext.cs: Added a missing using.
2963 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2965 * ButtonBase.cs: Made IsDefault protected internal.
2966 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2968 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2970 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
2971 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2972 RadioButtonRenderer.cs: Included in the 1.1 profile.
2973 * IDeviceContext.cs: Added.
2974 * TextRenderer.cs: Included a member in the 1.1 profile.
2976 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2978 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2980 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2982 * ErrorProvider.cs: Make the error icons come after the control
2983 they refer to. It isn't the way the MS does it, but its better
2984 than what we were doing. See bug #368587.
2986 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2988 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2989 from Eric Albright that lazy loads the input language as ensures
2990 everything gets properly initialized. Fixes bug #373871.
2992 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2994 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2995 implicit mnemonics. [Fixes bug #383000]
2997 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2999 * X11Dnd.cs: When canceling the operation, automatically restore the
3000 default cursor - normally the default cursor is restored when the
3001 mouse buttons are released, but we should be able to restore it even
3002 if the buttons are still pressed (for example, when pressing ESC to
3006 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3008 * X11Dnd.cs: When starting a new drad and drop operation, set control
3009 field to null, just as the other fields, to avoid calling any
3010 operation on a previous control. Also, when calling DndLeave on a
3011 control, set it to null, thus we don't fire that event multiple times
3015 2008-04-23 Geoff Norton <gnorton@novell.com>
3017 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3018 the whole_window object. Fixes #377084.
3020 2008-04-23 Andreia Gaita <avidigal@novell.com>
3022 * HtmlElement.cs: Implement RaiseEvent (event injection into the
3025 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
3027 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3029 2008-04-23 Andreia Gaita <avidigal@novell.com>
3031 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3034 2008-04-23 Andreia Gaita <avidigal@novell.com>
3036 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3039 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3041 * X11Dnd.cs: When the drop was cancelled, or could just not be
3042 performed, return DragDropEffect.None always (match .net).
3044 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3046 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3048 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3050 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3052 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3054 * DataGridView.cs: Add support for error icon tool tips.
3055 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3056 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3058 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
3060 * X11Structs.cs: Add mouse button masks enum.
3061 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
3062 WM_EXITSIZEMOVE only once at the beginning and at the end of the
3063 form resize/move operation instead of for each step of it.
3064 [Fixes bug #346529 for the x11 backend]
3066 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3068 * DataGridView*: Implement support for drawing error icons.
3070 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3072 * TreeView.cs: Make vbar and hbar internal.
3073 * TreeNode.cs: If collapsing the node removes one of the TreeView's
3074 scrollbars, invalidate the whole thing.
3077 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3079 * TreeView.cs: Calling Sort() sets Sorted = true.
3080 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3081 if the nodes need to be sorted.
3084 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
3086 * Form.cs: Fire SizeChanged for both when the form is minimized and
3088 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
3089 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3091 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3093 * ComboBox.cs: If the combobox is disabled, draw a disabled
3094 background before painting anything else.
3097 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3099 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3100 forget to send a Leave event to the target window - just as .net does
3101 when cancelling dnd operations.
3103 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3105 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3106 soon as possible - this happens when we send the drop message to the
3107 target window. This way we avoid firing any DragOver _after_ drop finished.
3110 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3112 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3113 * Form.cs: Handle form minimization as a special state, where size doesn't
3114 change, but we have to fire SizeChanged.
3115 [Fixes bug #325122 for the win32 and x11 backends]
3117 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3119 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
3120 if the handle is disabled.
3123 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3125 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
3126 for forms with FormBorderStyle.None.
3129 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3131 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
3133 [Fixes bug #346529 for the X11 backend]
3135 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3138 - Send a mouse Enter message after say dragging the mouse with a
3139 button down and then release it in another client.
3140 - Reset the cursor to prevent X11 from remembering it and setting it
3141 before the control gets WM_SETCURSOR.
3142 - Qeueue a mouse move after a mouse enter like win32.
3145 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3147 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
3148 It's sent when the form gets moved, resized, closed.
3149 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3150 [Fixes bug #359193 for X11]
3152 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3154 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
3157 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3159 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
3160 group. Fixes the 1.1 build.
3162 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3164 * ListView.cs: Use display indexes for selection in Details view, as
3165 well as do the proper layout based on display indexes for that view
3168 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3170 * ListView.cs: Focused item information is now stored as a display
3171 index, and display indexes are used all over the place for selection,
3172 instead of ListViewItem.Index values, which doesn't give us enough
3173 information to modify the selection in groups mode, and was broken.
3175 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
3177 * Control.cs: Do not fire MouseDown if validation of the control has
3179 * Form.cs: Validate the form before closing.
3180 [Fixes bugs #330501 and #353310]
3182 2008-04-18 Andreia Gaita <avidigal@novell.com>
3184 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3185 CreateWebBrowserSiteBase implementations
3186 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3187 Style and TabIndex setters
3189 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3191 * ListViewGroup.cs: When returning the actual item count, return the
3192 proper count for default group.
3195 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3198 * ListViewGroup.cs: When calculating groups layout, get the actual
3199 number of items per group, since groups added to the group BUT not
3200 added to the ListView are just ignored, and can cause some nasty
3201 exceptions because of the lack of synchronization. Also for
3202 ListViewGroup don't use lazy initialization for items, since we
3203 the common scenario is to use it always - and it helps us to refactor
3204 and clean the .ctor overloads.
3206 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3208 * ListView.cs: When adding an item to a ListViewItemCollection
3209 belonging to a group (ListViewGroup.Items), don't generate a redraw if
3210 the added item hasn't beeen previously added to the ListView instance
3211 refered by the group, since it will be ignored. This should avoid some
3212 really nasty flickering.
3214 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3216 * ListView.cs: When accessing an item in a specific display
3217 position, use the helper method GetItemAtDisplayIndex, instead of
3218 direct access to the reordered_items_indices array. When doing layout
3219 for groups set the correct Items index for the display position (since
3220 in groups mode items don't have the same position as in Items
3222 * ListViewGroup.cs: Add a field to store the starting item number,
3223 which is later used when calculating the layout.
3227 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
3229 * Application.cs: Fixed ProductVersion to fallback to the assembly
3230 version. Fixes regression for bug #325413.
3232 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3234 * ListView.cs: New helper method to retrieve an item in a _specific
3235 display_ position (the items can be displayed in a different order
3236 than one of Items collection).
3237 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3238 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3239 specific display position (again remember that items can be sorted
3240 different than Items).
3242 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3244 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3245 list and update it when the collection changes. We were recreating
3246 this several times per row paint and for every pixel the mouse moved
3248 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3251 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3253 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3254 list to use generics.
3255 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3256 and remove unneccessay casts.
3258 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3260 * DataGridViewBand.cs: Add internal way to set displayed variable.
3261 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3262 * DataGridView.cs: Make sure we always keep track of Displayed
3263 rows and columns, and only draw things that are displayed.
3265 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
3267 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3268 whether the key events are filtered or not. Introduced
3269 PreFilter() process for this purpose. This fixes atokx3/iiimx
3272 2008-04-16 Andreia Gaita <avidigal@novell.com>
3274 * HtmlHistory.cs: Implement Length property
3276 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
3278 * DataGridView.cs: Call EndEdit when a sort is performed so we take
3279 away the edit textbox. Refactor to reuse column sort code.
3281 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
3283 * MenuAPI.cs: Remove the code that save and restore capture status of
3284 grab_control, this fixes some Menu and Context menu bugs but maybe it can
3285 cause some others, I cant figure the possible problems of this patch but
3286 right now remove the code looks to be better than keep it. This patch fixes
3287 bugs #357638, #378721 and #379570.
3289 2008-04-12 Andreia Gaita <avidigal@novell.com>
3291 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3292 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3293 add missing properties and event handlers.
3295 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
3297 * ListBox.cs: Make sure the LargeChange we are setting is at least
3298 zero, to prevent an IOORE. [Fixes bug #379531]
3300 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
3302 * ComboBox.cs: Support item navigation by entering text. Firstly,
3303 in DropDownList mode, for each key-press select the next item
3304 starting with that letter.
3305 For other modes, when no item selected, on arrow-up/-down and open
3306 drop-down select the first item matching the text in the textbox.
3308 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
3310 * X11Keyboard.cs : Control.FromHandle() could return null
3311 in MoveCurrentCaretPos().
3313 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3315 * ListView.cs: When changing the size in VirtualMode, also Reset the
3317 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3318 changing selection info for VirtualMode.
3321 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3323 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3324 view, don't use LineLimit for the first item - use NoWrap *always*
3325 instead, since ListView.LabelWrap is not used for this view.
3328 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3330 * Binding.cs: Call UpdateIsBinding when setting control - probably
3331 Binding is already usable and we don't need to wait to check the
3332 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3333 Created, just like 2.0 does.
3334 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3336 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3338 * Binding.cs: Just realized we don't need to have a handler for
3339 BindingContextChanged, since this info should be now consumed directly
3340 in the BindingManagerBase. And also, the manager.IsBindingSuspended
3341 state info is checked directly, instead of caching it.
3343 * CurrencyManager.cs: IsSuspended should return always false if Count
3346 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3348 * Binding.cs: When calling PushData, return if manager.Count == 0,
3349 since we just don't have data to be read. Also, when setting the
3350 Control for binding, hook up some events to refresh the IsBinding
3351 state when BindingContext change or control gets created; use
3352 Control.IsHandleCreated instead of Control.Created check to set
3353 IsBinding state - we *actually* need to modify IsBinding when control
3354 is created, but we don't have any Created event, only HandleCreated.
3355 Fixes part of #349364.
3357 2008-04-11 Geoff Norton <gnorton@novell.com>
3359 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
3360 warping a null Caret.
3362 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3364 * DataGridView.cs: Implement row/column autosizing methods. Implement
3366 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3367 * DataGridViewRowCollection.cs: Add an internal sorting method.
3369 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3371 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3372 value in ListView drawing code.
3374 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3376 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3377 is clicked. Respect the user setting Cancel in FileOk.
3379 2008-04-11 Geoff Norton <gnorton@novell.com>
3381 * ListView.cs: Avoid setting and resetting control Width/Heights and
3382 calculate the final value and set it once. Prevents a feedback loop
3385 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3387 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3390 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
3392 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3393 Add some on-the-spot code, but it seems we don't need it.
3395 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3397 * Form.cs: Add method for DataGridView to trigger focus cues
3398 even when it handles the tab keypress.
3400 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3402 * DataGridView.cs: More keyboard handling, tab, esc.
3403 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3404 when at the beginning or end of the text in the text box.
3406 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3408 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3410 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3412 * DataGridView.cs: Some fixups for showing and adding the edit control.
3413 * DataGridViewButtonColumn.cs: Implement ToString.
3414 * DataGridViewCell.cs: Size and position the control simultaneously.
3415 * DataGridViewTextBoxCell.cs: Use base to position control.
3417 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3419 * DataGridViewCell.cs: Fix up some formatting and painting code.
3420 * DataGridViewImageCell.cs: Implement some NIEX methods.
3422 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3424 * ToolStripItemCollection.cs: What moving an item from one owner
3425 to another, remove from source owner before adding to destination.
3428 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3430 * PictureBox.cs: Call Load when ImageLocation is set.
3433 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
3435 * X11Keyboard.cs, XplatUIX11.cs :
3436 Implement over-the-spot mode (with some odd offsets).
3437 - set preedit position when caret is set.
3438 - Wrap XMoveResizeWindow() to move preedit position.
3440 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3442 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3445 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3447 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3448 and ScanTableIndex public, it fix compilations errors when compiling
3449 WinForms to generate keyboard layout resources.
3451 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3453 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
3454 different element count than scan table. It prevents some errors in non
3457 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3459 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3461 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3463 * DataGridView.cs: Call OnContentClick.
3464 * DataGridViewCell.cs: Do a null check on ValueType instead
3466 * DataGridViewCheckBoxCell.cs: Implement.
3468 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3470 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3472 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3474 * X11Keyboard.cs : Check XGetIMValues() return value in
3475 case it does not return input styles in some environment.
3477 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3479 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3481 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3483 * BindingContext.cs: Stub UpdateBinding method.
3485 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
3487 * X11Structs.cs : added couple of structs for XIM support.
3489 Release XIM in case it failed to create XIC.
3490 Use consts for XNblah string.
3491 Add support for IM style customization and XIC creation
3492 for preedit-position and preedit-callback.
3493 Right now use MONO_WINFORMS_XIM_STYLE environment variable
3494 (list of: over-the-spot | on-the-spot | root). Only root
3497 (redoing r99172 with fix.)
3499 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3501 * TreeView.cs: Center the checkbox a little better.
3503 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3505 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3506 Apply very nice patch from Ernesto Carrea that simplifies our
3507 scrollbar drawing. [From bug #376146]
3509 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3511 * TreeView.cs: Correct the location of the root node checkbox when
3512 ShowRootLines = false. Don't draw the root lines for the root node
3513 when ShowRootLines = false. [Fixes bug #377535]
3515 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3517 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3519 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3521 * MaskedTextBox.cs: Added missing attribute. Code formatting.
3522 * PageSetupDialog.cs: Added missing attribute. Code formatting.
3523 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3524 * ImeMode.cs: Added missing field.
3525 * HtmlWindow.cs: Code formatting. Fixed line endings.
3526 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3528 * HtmlHistory.cs: Code formatting. Fixed line endings.
3529 * HtmlDocument.cs: Code formatting. Fixed line endings.
3530 * ToolStripPanel.cs: Added missing IList implementation.
3531 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3533 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3535 * BindingContext.cs: Changed argument names to fix corcompare errors.
3536 * DataGridView.cs: Removed extra explicit interface implementation
3537 of IDropTarget. Code formatting.
3538 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
3539 * ComboBox.cs: Changed argument names to fix corcompare errors.
3540 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
3542 * GridColumnStylesCollection.cs: Changed argument names to fix
3543 corcompare errors. Removed extra tabs.
3544 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
3546 * Control.cs: Changed argument names to fix corcompare errors. Code
3547 formatting. Removed extra explicit IList implementation.
3548 * TextBox.cs: Changed argument names to fix corcompare errors. Code
3549 formatting. Use string.Empty instead of "".
3550 * GridItemCollection.cs: Changed argument names to fix corcompare
3551 errors. Code formatting.
3552 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
3553 corcompare errors. Code formatting.
3554 * ImageList.cs: Changed argument names to fix corcompare errors.
3555 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
3556 * DataGridViewRowCollection.cs: Changed argument names to fix
3557 corcompare errors. Code formatting.
3558 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
3559 * DataGridViewSelectedCellCollection.cs: Changed argument names to
3560 fix corcompare errors. Code formatting.
3561 * DataGridViewComboBoxCell.cs: Changed argument names to fix
3562 corcompare errors. Code formatting.
3563 * LinkLabel.cs: Changed argument names to fix corcompare errors.
3564 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
3566 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
3568 * BindingSource.cs: Changed argument names to fix corcompare errors.
3569 Removed extra explicit interface implementations.
3570 * DataGridViewSelectedRowCollection.cs: Changed argument names to
3571 fix corcompare errors. Code formatting.
3572 * ToolStripItemCollection.cs: Removed extra explicit interface
3573 implementation of IList.ReadOnly.
3574 * DataGridViewColumnCollection.cs: Changed argument names to fix
3575 corcompare errors. Code formatting.
3576 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
3577 * ListView.cs: Changed argument names to fix corcompare errors.
3578 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
3580 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
3582 * ListBindingHelper.cs: Changed argument names to fix corcompare
3584 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
3585 fix corcompare errors. Code formatting.
3586 * ToolStripPanel.cs: Removed extra explicit implementation of
3587 IDropTarget interface.
3588 * ListBox.cs: Changed argument names to fix corcompare errors. Code
3589 formatting. Removed extra tabs and spaces.
3590 * DataGridViewCellCollection.cs: Changed argument names to fix
3592 * Help.cs: Changed argument names to fix corcompare errors. Code
3594 * TabControl.cs: Changed argument names to fix corcompare errors.
3595 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
3597 * TableLayoutSettings.cs: Changed argument names to fix corcompare
3600 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3602 * ListBindingHelper.cs: When returning properties, only return those
3603 that are browsable. Also, don't do a linear search of the properties,
3604 but use the indexer of the PropertyDescriptorCollection class.
3606 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3608 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
3609 Dictionary containing the related (child) currency managers. Also,
3610 when setting DataSource, add datasource to our List if it is not a list.
3612 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3614 * PropertyGridTextBox.cs: Fix background color of the buttons.
3615 * PropertyGridView.cs: Make the entry less jumpy.
3617 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3619 * PropertyGrid.cs: Fix unused variable warnings.
3621 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
3623 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
3624 double-click. It expanded it once in the mouse down and then
3625 again in the double-click handler.
3627 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3629 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
3630 TypeConverter and UITypeEditors.
3632 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
3634 * Control.cs: Visibility should be set synchronously,
3635 so we must also redraw once it is and not rely on layouting or
3636 other code to repaint.
3639 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
3641 * DataGridViewCell.cs: Respect DataGridView.GridColor.
3643 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3645 * Control.cs: Invalidate when the alpha channel is less than 255,
3646 not only when control is transparent.
3648 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3650 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3651 Implement some painting convenience methods that threw NIEX.
3653 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
3655 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3656 * DataGridViewLinkCell.cs: Implement.
3658 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3660 * GridEntry.cs: Report the conversion exception error description.
3663 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
3665 * PropertyGridView.cs: Do not scroll to item on resize.
3668 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3670 * BindingContext.cs: When retrieving a BindingManagerBase, if the
3671 dataSource parameter is ICurrencyManagerProvider, then return
3672 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3673 instead of creating a new one.
3675 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3677 * BindingSource.cs: Implement support for Type instances as
3680 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3682 * DataGridView.cs: Minor cleanups and call CellMouseUp.
3683 * DataGridViewCell.cs: Make some painting routines internally virtual.
3684 * DataGridViewButtonCell.cs: Implement.
3686 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
3688 * Control.cs: We always need to invalidate our children with
3689 transparent backgrounds when we are invalidated.
3692 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3694 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3695 and CancelCurrentEdit on CurrencyManager respectively. Implement
3696 support for ICancelAddNew too.
3698 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3700 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3701 call EndNew/CancelNew if list is ICancelAddNew.
3703 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3705 * DataGridView.cs: Guard against an exception while painting
3706 if there are no rows.
3708 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
3710 * DataGridView.cs: Implement a bunch of keyboard commands.
3712 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
3714 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
3715 isn't set, don't call OnPaint. [Fixes bug #375300]
3717 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3719 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
3720 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
3721 hookup the remaining events related to CurrencyManager, and fire
3722 OnListChanged also for the Clear () method.
3724 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3726 * BindingSource.cs: Use Current and Position implementations in
3727 CurrencyManager instead of using our own routines, since we need
3728 to be in synch with it. Count should NEVER return a -1 value, and
3729 also report ListChanged events for both simple IList data
3730 sources (manually) as well for IBindingList ones (by hooking up an
3731 event handler for it).
3733 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3735 * BindingSource.cs: Make one .ctor call the another, to avoid
3736 duplicate code. Add the CurrencyManager property, and also for AddNew
3737 throw the proper exceptions and show better error messages.
3739 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3741 * ComboBox.cs: Only adjust selectedindex if Handle has been
3742 created. Fixes failing test.
3744 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3746 * ComboBox.cs: Adjust selectedindex if we insert a new item
3747 above the current selectedindex in a sorted ComboBox.
3750 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3752 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
3755 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
3757 * DataGridViewTextBoxCell.cs: Implement stuffs.
3759 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3761 * TreeView.cs: Create the scrollbars even earlier to be
3762 double dog certain they are created before they are accessed.
3764 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3766 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
3768 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3770 * ScrollBar.cs: Create an internal safe Value setter so we
3771 won't crash if we try to set a value outside the min and max.
3772 * TextBoxBase.cs: Use safe value setter to guard against a
3773 potential NRE that is being reported by Reflector.
3775 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3777 * TreeView.cs: Create the scrollbars earlier in the constructor
3778 to attempt to guard against an NRE in SetTop in Reflector.
3780 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
3782 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
3783 DataGridViewRowCollection.cs: Do not scroll column and row headers,
3784 show messagebox on data format error, use column display index
3785 correctly, make sure HitTest supports new layout stuff,
3786 make sure scrollbars support new layout stuff.
3788 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3790 * XplatUIX11.cs : Patch by Doug Rintoul.
3791 For some IM engines, keypress events need to delay call
3792 to XPending() and XNextEvent() in the loop so that it
3793 does not mess the orders in XIM commit callback.
3794 Some KeyRelease events such as shift keys need to be
3795 processed both in the IM engine and winforms driver
3796 itself since winforms holds its own state check.
3798 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
3800 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
3802 * X11Keyboard.cs, XplatUIX11.cs :
3803 add primitive support for XIM input support (preedit-
3804 nothing and status-nothing). It requires precise event
3805 capturing (XSelectInput/"filterEvents") and different
3806 call to XFilterEvent against root window.
3807 Get composed string and send dummy WM_IME_COMPOSITION.
3808 Free XIM and XIC instances in finalizer.
3810 (This first patch does not include suggested changes
3811 by Doug Rintoul. It will follow.)
3813 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3815 * DataGridView.cs: When binding to a property, if the property
3816 doesn't have a setter, set the column to readonly.
3819 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3821 * ComboBox.cs: Guard against NRE if an arrow key is hit while
3822 we aren't dropped down. Support Home/End in DropDownList mode.
3825 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
3827 * TreeNodeCollection.cs: Don't increment count until we've
3828 saved our index to return.
3831 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3833 * Label.cs: Add padding to the label's AutoSize calculation.
3836 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3838 * ListBindingHelper.cs: Actually implement GetListName method.
3840 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3842 * BindingSource.cs: Throw the propert expceptions for some methods, as
3843 well as detect the list item type for Add method if DataSource is null.
3845 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3847 * DataGridViewCell.cs: I don't know why I commented this out,
3848 putting it back for now.
3850 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3852 * DataGridViewCell.cs: Remove storage for owning column, just
3854 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
3855 * DataGridViewColumnHeaderCell.cs: If the header text has been
3856 explicitly set, return it.
3859 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
3861 * DataGridViewRowCollection.cs: Disable row sharing when
3862 using data binding. Its a great feature, but lets work on
3863 getting DGV usable first before we worry about optimizations.
3865 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3867 * BindingSource.cs: When resetting our internal list, compute list
3868 item type information to be used for indirect list access. Also
3869 implement/tune some properties and methods related to the list access
3871 * ListBindingHelper.cs: Add a stub for GetListName method, used from
3874 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3876 * DataGridView.cs: If RowCount is increased while ColumnCount
3877 is zero, add a column. [Fixes bug #331649]
3879 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3881 * DataGridViewRowCollection.cs: When adding new rows for
3882 databinding, make sure they are place before the add row.
3885 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3887 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
3888 instead of Index order.
3890 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3892 * DataGridView.cs: If columns are added by increasing ColumnCount,
3893 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
3896 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3898 * DataGridView.cs: Turn off and on the "new row" when
3899 AllowUserToAddRows is toggled. When the handle is created,
3900 set current cell and selected cell/row/col.
3902 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
3904 * ComboBox.cs: When navigating the drop down by keyboard, we
3905 need to scroll the list box if our selection moves out of the
3906 currently shown items. [Fixes bug #371990]
3908 2008-03-24 Luke Page <luke.a.page@gmail.com>
3910 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
3911 on the control. Also now handles unicode compatibility characters and
3912 stores the unicode compatibility length on the stack. Fixes Bugs
3913 #355198 and #366436.
3915 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3917 * BindingSource..cs: Take into account DataMember when re-creating the
3918 List property, and also create a specific kind of list as needed.
3920 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3922 * ListBindingHelper.cs: Add a new case for GetList () method - when we
3923 get an empty IEnumerable, try to detect whether the datamember is
3924 valid or not for that type, if true, return null, and throw exception
3927 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
3929 * ComboBox.cs: Alt-Down should drop down the list, Esc should
3930 retract it. [Fixes bug #371989]
3932 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3934 * PropertyGrid.cs: Initialize the sorting button as pushed.
3936 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
3939 - Visually select the PropertyTab.
3940 - Filter Properties by Attributes properly.
3942 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3944 * MenuItem.cs: Remove menu item from parent when disposed.
3947 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3949 * ToolBar.cs: Don't reset layout_type if Dock = None.
3951 2008-03-21 Andreia Gaita <avidigal@novell.com>
3953 * UserControl.cs: Select the first available control when we get focus.
3956 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3958 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
3959 the content if we are in edit mode. [Fixes bug #343964]
3961 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
3963 * DataGridViewCell.cs: Fix border painting for column headers.
3965 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3967 * BindingSource.cs: When setting or resetting data source,
3968 use ListBindingHelper.GetList () method, since it will get the list in
3969 case datasource is IListSource.
3971 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3973 * DataGridViewCell.cs: Implement lots more stuffs.
3975 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3977 * PropertyGridView.cs, GridEntry.cs: Implement support for
3978 UITypeEditor.IsDropDownResizable.
3980 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3982 * DataGridViewCell.cs: Remove unused variables, improve how
3983 several of the property getters work.
3984 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3985 get its size from the parent row/col.
3987 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3989 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
3990 user alters manually the PropertyTabs collection via the
3991 PropertyTabs property.
3993 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3995 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3996 new tests for them to be sure to be compatible with .net.
3998 2008-03-20 Andreia Gaita <avidigal@novell.com>
4000 * WebBrowserBase.cs: Fix attributes, add events
4001 * WebBrowser.cs: Fix Padding signature
4003 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4005 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4007 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
4009 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4010 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4011 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4012 passes the new suite of tests for it.
4014 2008-03-18 Andreia Gaita <avidigal@novell.com>
4016 * WebBrowser.cs: Add missing attributes, missing Padding and
4017 DefaultSize properties, remove extraneous getters
4019 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4021 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4024 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4026 * ComboBox.cs: Move resetting the selected index to keypress
4027 instead of textchanged. Changing the text programmatically
4028 should not trigger resetting the selected index. Fixes test.
4030 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4032 * ComboBox.cs: When the user types into the textbox, reset
4033 the selected index to -1. [Fixes bug #371672]
4035 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4037 * FileDialog.cs: Support Control-A for selecting everything
4038 in an OpenFileDialog. [Fixes bug #371564]
4040 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
4042 * DataGridView.cs: When row/column visible/height properties
4043 change, invalidate. Take the NIEX out of InvalidateRow/Column
4044 etc. We don't support them yet, but we can just invalidate
4045 everything until we do support them. (Added MonoTODO). Set
4046 proper control styles.
4047 * DataGridViewRow.cs: Don't call PaintHeader if row headers
4050 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4052 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4054 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4056 * DataGridViewRow.cs: Only paint the white background in
4057 cell bounds, the row bounds extends past the cells if the
4058 grid width isn't as wide as the DGV.
4060 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4062 * DataGridView*: Completely revamp the drawing to match the
4063 public API. Our grids now look better, and call all the
4064 appropriate methods and event to allow users to override
4065 the painting and do their own.
4067 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4069 * ListBindingHelper.cs: Implement 2.0 GetList methods.
4071 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4073 * DataGridView.cs: Implement BorderStyle.
4075 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4077 * FileDialog.cs: Apply patch from Andy Hume: Any time we
4078 are comparing attributes, make sure we only look at the
4079 one we are interested. These calls were failing if there
4080 were more than one attribute.
4083 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4085 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4087 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4089 * PageSetupDialog.cs: Stub EnableMetric.
4090 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4091 * PrintPreviewDialog.cs: Add ProcessDialogKey,
4094 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4096 * MonthCalendar.cs: Remove unused variable.
4098 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4100 * DataGridView*.cs: corcompare stuffs.
4102 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4104 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4105 The savings aren't worth the extra code to fix the optimization.
4108 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4110 * ToolBar.cs: Always call base.Dock in the Dock override so that
4111 Control's layout_type gets reset correctly.
4114 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
4116 * X11Dnd.cs: End DnD operation also for the middle mouse button.
4118 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4120 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4121 at the same time we do explicit ones, because we have to give all
4122 other controls on the container a chance to handle explicit ones
4123 first. If no one has an explicit mnemonic, then we can let the
4124 MenuStrip have a shot at implicit mnemonics.
4125 * MenuStrip.cs: Create an implicit mnemonic function.
4126 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4127 mnemonics for MenuStrips.
4130 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4132 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4133 DataGridColumnStyle.cs: corcompare stuffs.
4135 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4137 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4138 Details - This is needed after we added the bits to use any available
4139 column also for List and SmallIcon view.
4141 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4143 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4144 at the proper place, not only when changing SelectedIndex and changing
4145 the selection using keys/mouse, as .net does.
4147 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4149 * ControlBindingsCollection.cs: Implement last 2.0
4150 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4151 in the new 2.0 Add methods.
4153 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4155 * ListBox.cs: When calling SelectedIndexCollection.Clear,
4156 return if no items are previously selected - this is done to avoid
4157 firing OnSelectedIndexChanged without need to do so. Also,
4158 when creating handle ensure that the focused item is visible (as
4161 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4163 * ListBox.cs: Rewrote/refactored most of selection code. We require
4164 the following things in selection: a) keep selection sorted (both
4165 indices and items), b) SelectedIndices automatically detect the
4166 selection mode, c) SelectedIndex should be the first selected item
4167 index, d) Need to Focus/adjust scroll bar when selecting a new item,
4168 not only for SelectedIndex, which is specially important in Multi*
4169 selection modes. To achieve this we are moving the selection core to
4170 SelectedIndexCollection and make depend all selection modifications on
4174 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4176 * ToolStrip.cs: Enable implicit mnemonics for drop down
4177 menu strips. [Fixes part of bug #367692]
4179 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4181 corcompare - fix parameter names [stragglers].
4182 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4183 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4186 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4188 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4189 was a mnemonic pressed as well as Alt. Also, if nothing handles a
4190 mnemonic, let the ToolStripManager have it even if it doesn't
4191 have a matching mnemonic.
4194 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4196 corcompare - fix warning about implicit implementation
4197 * ToolStrip.cs: Add IToolStripData interface.
4198 * IToolStripData.cs: Add.
4200 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4202 corcompare - fix warning about implicit implementation
4203 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4206 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4208 corcompare - fix parameter names [N-Z].
4209 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4210 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4211 PropertyManager.cs, RichTextBox.cs,
4212 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4213 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4214 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4215 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4216 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4217 ToolStripContentPanel.cs, ToolStripDropDown.cs,
4218 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4219 ToolStripPanel.cs, ToolStripSeparator.cs,
4220 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4221 UICuesEventHandler.cs, UpDownBase.cs.
4223 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4225 corcompare - fix parameter names [G-M].
4226 GridColumnStylesCollection.cs, GridItemCollection.cs,
4227 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4228 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4229 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4230 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4231 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4233 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4235 corcompare - fix parameter names [A-F].
4236 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4237 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4238 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4239 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4240 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4241 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4242 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4244 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4246 * GridEntry.cs: Do not convert not only if the types match,
4247 but also if the property type is assigneable from the value's
4251 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4253 * PropertyGridView.cs:
4254 - Subscribe to the listbox only once and not everytime.
4255 - Update the textbox even if SetValue fails.
4256 - Close the listbox before calling TrySetValue just in case.
4259 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
4261 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4263 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4265 * ListView.cs: Implement support for custom column width based on
4266 Columns collection (we were previously using this collection only
4270 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4272 * ListViewItem.cs: For Tile view, always set bounds for the first
4273 subitem (which is the main one), and also don't let Width be larger
4274 than ListView.TileSize.Width. Improve code readibility also.
4275 * ThemeWin32Classic.cs: When painting the ListViewItem instances
4276 in Tile view, _always_ use the NoWrap flag.
4279 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
4281 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
4283 * GridEntry.cs: For MS compitability make all child properties
4284 readonly if the parent is readonly. Ugh.
4285 [Fixes bug #365945 and #365944]
4287 2008-02-29 Andreia Gaita <avidigal@novell.com>
4289 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4290 relative to the history
4292 2008-02-29 Andreia Gaita <avidigal@novell.com>
4294 * HtmlElement.cs: More handlers for mouse and key events
4296 2008-02-28 Andreia Gaita <avidigal@novell.com>
4298 * WebBrowserBase.cs: MouseClick sig changed.
4299 * HtmlHistory.cs: Implement history navigation
4300 * HtmlElement.cs: Add event handlers, and connect them.
4302 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
4305 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4306 so that DisplayNameAttribute doesn't get ignored.
4307 - Check for ParenthesizeNameAttribute and parenthesize the Label.
4308 - Add support for PasswordPropertyTextAttribute
4309 * PropertyGridView.cs: Check if an entry is a password.
4310 [Fixes bugs #365589, #365586, #365588]
4312 2008-02-28 Andreia Gaita <avidigal@novell.com>
4314 * PropertyGridView.cs: Revert the message filtering change, as we
4315 need it to block after all. Remove block parameter, unnecessary.
4317 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
4319 * UserControl.cs: Better implementation of GetPreferredSize.
4320 First step to fixing bug #361441.
4322 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4324 * Binding.cs: Actually implement data binding support for
4325 classes implementing IBindableComponent.
4326 * ControlBindingsCollection.cs: Likewise.
4328 2008-02-26 Andreia Gaita <avidigal@novell.com>
4330 * PropertyGridView.cs: Use a message filter to check when to
4333 2008-02-26 Andreia Gaita <avidigal@novell.com>
4335 * Application.cs: Change the message_filters loop so a filter
4336 can be removed while looping.
4338 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
4340 * GridEntry.cs: Optimization in ToggleValue so that it caches
4342 * PropertyGridView.cs: An optimization so that the property isn't
4343 re-read twice for each StandardValue added to the drop-down menu.
4344 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4348 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
4350 * Application.cs: Apply patch from Justin Cherniak to match
4351 MS better for ProductName, ProductVersion, and CompanyName.
4354 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4356 * Binding.cs: Actually implement 2.0 NullValue property. Also
4357 when changing the formatting related properties, only update the state
4358 if formatting_enabled is true (we don't mind otherwise).
4360 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
4362 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4365 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4367 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
4368 of GetType on the current value as it uses reflection to
4369 determine the type. This fixes the case where the new value is
4372 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4374 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4377 2008-02-24 Luke Page <luke.a.page@gmail.com>
4379 * Line.cs, TextControl.cs: Implement offset x and y so that a
4380 document doesn't have to begin at (0,0) on the viewpoint.
4381 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4382 bars and switches the text alignment (and therefore is now
4383 implemented for textbox). Fixes #321383.
4385 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4387 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4388 properties. Also when changing FormattingEnabled update the control
4389 property -as .Net does-.
4391 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4393 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4394 * Binding.cs: Add stubs for the overloads of the Add method in
4397 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4399 * Binding.cs: PullData () returns a false value if we got an exception.
4400 Also when validating the control and we get an error, instead of
4401 setting the value of the previous one, cancel the event (tested in 1.1
4404 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
4406 * TreeView.cs: Make selected_node and highlighted_node internal.
4407 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4408 to null when Nodes.Clear is called.
4411 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4413 * FontDialog.cs: Ensure that when the Font is set in code,
4414 all the gui pieces are updated accordingly.
4417 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4419 * TextRenderer.cs: Respect proposed size for MeasureString.
4420 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4421 autosize, use a proposed width to force wrapping for long text.
4424 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4426 * TreeView.cs: Factor in checkboxes = false and state images in
4427 to HitTest. [Fixes bug #363360]
4429 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4431 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4432 when drawing the selected range.
4435 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4437 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4438 ResizeRedraw control styles.
4441 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4443 * TreeView.cs: StateImages are basically custom checkboxes, so
4444 factor their size the same as real checkboxes when determining
4448 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4450 * MessageBox.cs: Make the message box wider if the form caption
4451 is longer than the text in the form.
4454 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4456 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4458 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4460 * TreeNode.cs: Guard against an NRE when the parent's
4461 StateImageList hasn't been set.
4464 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4466 * SplitContainer.cs: Add SupportsTransparentBackColor and
4467 OptimizedDoubleBuffering control styles.
4470 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4472 * Application.cs: For the app data paths and the registry key paths,
4473 ensure they are created before returning them to the user.
4476 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4478 * Application.cs: Guard against an NRE in CompanyName and
4481 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4483 * Application.cs: For CompanyName, ProductName, and ProductVersion,
4484 make sure we handle all three cases correctly: attribute is present,
4485 attribute is present but is an empty string, and attribute is not
4488 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4490 * PropertyGridView.cs:
4491 - Fix a NRE that caused a test failure
4492 - Another performance improvement - cache the standard values
4495 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4497 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4500 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
4502 * PropertyGridView.cs: Fix a big performance bug.
4504 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4506 * SelectionRange.cs: Apply patch from Andy Hume to make
4507 constructor behavior more accurate. [Fixes bug #362117]
4509 2008-02-19 Andreia Gaita <avidigal@novell.com>
4511 * Control.cs: Added a new flag is_disposing to track if the
4512 window is currently in the process of being disposed of.
4513 This is used so that, when firing visibility changes triggered
4514 by unparenting controls during Dispose, the control doesn't
4517 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4519 * ComboBox.cs: Set height to preferred height when the handle
4520 is created. [Fixes bug #360862]
4522 2008-02-18 Andreia Gaita <avidigal@novell.com>
4524 * XplatUIX11.cs: Create FosterParent with border width at 0.
4525 With the previous value of 4, everytime a control got reparented
4526 from parent = null, it's location would be shifted right and
4527 down by 4, since these coordinates would be offset by the
4528 FosterParent's border width.
4530 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
4532 * Control.cs: During diposing firstly remove ourselfes from
4533 the parent and *then* destroy our handle, because removing
4534 ourselfes from the parent controls collection causes
4535 VisibilityChange, etc events, which require a handle and end
4536 up recreating the control.
4538 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
4540 * GridEntry.cs: Set expanded state before notifying that the
4541 expansion has taken place.
4542 * PropertyGridView.cs:
4543 - Set the propertygridtextbox text to the selected
4544 StandardValue before proceeding to setting it.
4545 - Scrolling bugfixes.
4547 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4550 - Fix ValueText to not return null.
4551 - Fix conversion error reporting to actually happen.
4552 * PropertyGridView.cs: Set entry only if the text has changed.
4555 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4558 - Fix handling of a null current value.
4559 - Swallow editor exceptions.
4562 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
4564 * PropertyGrid.cs: Clear current items first thing before
4565 repopulating subitems.
4567 - Handle null StandardValuesCollection.
4568 - Mark as not editable if there is no PropertyDescriptor and
4569 if the Converter cannot convert from string.
4570 [Part of fix for bugs #360666 and #358332]
4572 2008-02-15 Luke Page <luke.a.page@gmail.com>
4573 * MaskedTextBox.cs: Now skips non editable characters after a
4574 character has been entered and we are progressing to the next
4575 position in the MaskedTextBox.
4577 2008-02-15 Luke Page <luke.a.page@gmail.com>
4578 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
4579 that it changes the selection rather than just repositioning the
4580 cursor. Fixes Bug #360873.
4582 2008-02-15 Luke Page <luke.a.page@gmail.com>
4583 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
4584 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
4585 correctly. See #359330
4587 2008-02-15 Andreia Gaita <avidigal@novell.com>
4589 * XplatUIX11.cs: If the handle is null when posting a message, use the
4590 current thread queue to post instead. Fixes #332409
4592 * SendKeys.cs: Slight optimization
4594 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
4596 * PropertyGrid.cs, PropertyGridView.cs:
4597 Fix multiple scrolling and sizing issues.
4600 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4602 * PropertyGridView.cs: Ensure that drop down editors are shown
4603 in the WorkingArea of the screen.
4606 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
4608 * GridEntry.cs: Fail silently when UITypeEditor is missing.
4611 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4613 * Binding.cs: Implement 2.0 DataSourceNullValue property.
4615 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4617 * PropertyGridView.cs:
4618 - Clear the controls in the drop down form after it is hidden.
4619 - Fix Width sizing of the dropdown editors to match MSFT.
4621 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4623 * PropertyGridView.cs:
4624 - Fix height for drawing the grid entry
4625 text value, so that it clips multiline text properly.
4626 - Fix unfocusing to match MSFT.
4628 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
4630 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
4631 Fixes a bug where on repopulation after value changed items become
4634 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4636 * Binding.cs: For the 2.0 profile, look for a
4637 'PropertyChanged' event in the target control, and add checks for
4638 DataSourceUpdateMode property to change -or not- the data source
4639 from validation/control property change.
4641 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
4643 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4644 not compare struct with null in 2.0).
4646 2008-02-10 Luke Page <luke.a.page@gmail.com>
4648 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4649 updates the provider and if not using a provider, uses the internal document
4650 class implementation of password char. Also when showing text, uses display string
4651 from the provider, instead of the actual text.
4653 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4655 * Binding.cs: Ooooops, forgot to take into account the data_source
4656 and binding_member_info null case (it was breaking the Binding tests).
4658 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4660 * Binding.cs: Implement support for data source changes exposed by
4661 'PropertyNameChanged' events, and update the control property as
4664 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4666 * Binding.cs: Implement 2.0 WriteValue method.
4668 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4670 Commit patch from James Purcell for better AutoScale implementation:
4672 * ScaleControl should call GetScaledBounds with the control's total size rather
4673 than client size. GetScaledBounds should handle ignoring the borders in its
4674 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
4675 (for the most part they just call the base code now since that is fixed).
4676 * Added ScaleChildrenInternal to allow controls to disable scaling of children
4677 without having to override ScaleChildren (since none of .NET's controls do).
4678 This is required for most controls in Mono that have scrollbars to prevent the
4679 scrollbars from being moved/resized.
4680 * Nested ContainerControls can have a different scale mode than their parent.
4681 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4682 designer produce different results both of which look incorrect).
4683 * Default AutoScaleMode for ContainerControl should be Inherit.
4684 * Simplified workaround for ComboBox scaling issue.
4685 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
4686 1.0 style auto scaling should scale the whole control's size instead of
4687 ignoring the borders (except for Form) and the rounding is done differently to
4688 preserve control alignment.
4689 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4691 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4692 * CurrentAutoScaleDimensions should round the estimated character width instead
4694 * ListBox's GetScaledBounds should always use the height it was set to instead
4695 of the height that was passed in. This prevents rounding errors from
4696 accumulating quickly with IntegralHeight.
4699 2008-02-08 Andreia Gaita <avidigal@novell.com>
4701 * Form.cs: Add a null check (darn it).
4703 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4705 * MdiClient.cs: Make sure the requesting form actually owns the
4706 control menu items before removing them. Also, use
4707 Suspend/ResumeLayout when adding or removing items so we only
4711 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
4713 * Control.cs: Guard against an NRE in ShowFocusCues.
4716 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4718 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
4719 property, as well as stubbing DataSourceUpdateMode.
4721 2008-02-08 Andreia Gaita <avidigal@novell.com>
4723 * Form.cs: When closing forms, get focus back to the active control of the
4724 active form. [Fixes #341314, corner case]
4726 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4728 * MdiClient.cs: After we move the scrollbars, invalidate the NC
4729 area, so any old scrollbar artifacts are cleaned up.
4732 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4734 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
4735 for our menus, display that control box menu instead of the 1.1
4738 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4740 * MdiControlStrip.cs: Add property to access the mdi form tied to
4742 * MdiClient.cs: Be smarter about removing and adding toolstripitems
4743 to the implicitly merged menu. Every time we clicked the form, items
4744 were getting removed and the re-added, causing the form to jump around
4745 as the menu resized.
4747 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4749 * MdiClient.cs: Make sure the NormalBounds always gets set. It
4750 was being reset by the implicit menu merge for menustrips.
4753 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4755 * Form.cs: Don't do the previous change when WindowState = Normal,
4756 or it messes up where the window is placed. Fixes test failure.
4758 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
4760 * Form.cs: When becoming visible, if we are an MDI child, call
4761 SetWindowState with a dummy old_state so that changes will actually
4763 [Fixes the 2nd part of bug #325473]
4765 2008-02-07 Andreia Gaita <avidigal@novell.com>
4767 * Control.cs: Reset properties to their pre parent-change values in case
4768 the new parent == null (in which case we're basically removing the control,
4769 and don't want any events fired due to fake property changes)
4772 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
4774 * PropertyGridView.cs:
4775 - Refactor SetValue to allow setting the value
4776 when a custom editor is used, but the entry is not editable.
4777 - Remove the custom editor control on CloseDropDown.
4780 2008-02-06 Andreia Gaita <avidigal@novell.com>
4782 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
4783 reflection only on 1.1, this property is public on system.drawing on 2.0.
4786 2008-02-06 Andreia Gaita <avidigal@novell.com>
4788 * WebBrowser.cs: Do a normal page refresh by default.
4790 2008-02-05 Andreia Gaita <avidigal@novell.com>
4792 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
4793 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
4794 platforms. Fixes #359036
4796 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
4797 platform-specific flags.
4799 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4801 * Binding.cs: Add 2.0 BindableComponent property - just return control
4804 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
4806 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
4807 Jonathan for this patch. Fixes #358442.
4809 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
4811 * Form.cs: If we change the active MDI child form, let the others
4812 know they need to repaint their title bar so it will appear inactive.
4813 [Fixes part 1 of bug #325473]
4815 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
4817 * PropertyGridView.cs: Do not trucate custom editors' width
4818 and align them to the left.
4819 [Fixes #358353 and #358349]
4821 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4823 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
4824 Also fix the arguments passed to CollectionChangeEventArgs in the
4827 2008-02-04 Geoff Norton <gnorton@novell.com>
4829 * Hwnd.cs: The conversion to Quartz coordinates happens in
4830 System.Drawing. Removing this translation from here.
4832 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
4834 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
4835 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
4836 GridItemCollection.cs:
4837 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
4839 2008-02-04 Geoff Norton <gnorton@novell.com>
4841 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
4842 SYSKEYUP if any other key has been pressed in the mean time.
4845 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4847 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
4848 when the item in current position is different than 0. Also, save the
4849 item index in the beginning of the operation, instead of getting the
4850 index of the item when the event is actually performed. Lastly clean
4851 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
4855 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4857 * Form.cs: Alt-Minus for MDI children system menu should work
4858 with both the minus keys on the keyboard.
4861 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4863 * Control.cs: Don't invalidate on region change. The WM should
4864 take care of this automagically. Keeps us out of an infinite
4865 paint loop if someone changes the Region in the OnPaint.
4868 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
4870 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
4872 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4874 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
4875 down the MonthCalendar only on F4, not Alt+F4.
4876 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
4879 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4881 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
4882 if its part of a DateTimePicker, else, use the back color.
4885 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
4887 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
4890 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4892 * CurrencyManager.cs: When we get a ListChanged event from our source,
4893 always fire our own ListChanged event, as .Net does.
4895 2008-02-03 Luke Page <luke.a.page@gmail.com>
4897 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
4900 2008-02-03 Luke Page <luke.a.page@gmail.com>
4902 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
4903 property. Removed if for richtext property that was always true.
4904 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
4906 2008-02-03 Luke Page <luke.a.page@gmail.com>
4908 * TextBoxBase.cs - commited patch from James Purcell that
4909 correctly sets the FixedHeight control style when the MultiLine
4910 property is changed on a TextBox control. Fixes bug 358229.
4912 2008-02-02 Luke Page <luke.a.page@gmail.com>
4914 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4915 Fixes bug 351938 - caret is positioned correctly when drawn
4916 and when calculating textual position of caret, no longer
4917 has a NRE in certain situations.
4919 2008-02-01 Geoff Norton <gnorton@novell.com>
4921 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
4922 get that region removed from the paint event.
4923 * XplatUICarbon.cs: Remove the window mapping after disposing of
4924 window. Prevents a crash with handle reuse. Optimize exposes
4925 only onto visible windows (rare; but possible).
4927 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4929 * UpDownBase.cs: Make sure the internal textbox calls the base's
4930 OnMouseDown and OnMouseUp so the textbox will function correctly.
4931 There were notes saying it doesn't chain up, but its an internal
4932 class, so our implementation may differ.
4935 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4937 * ListBox.cs: Fix a logic error and don't process MouseDown
4938 for mouse buttons other than Left.
4940 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4942 * Control.cs: Remove HeightInternal.
4943 * ListBox.cs: Commit patch from James Purcell that correctly
4944 calculates heights for ListBoxen.
4947 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4949 * Label.cs: Apply patch from James Purcell that corrects the
4950 signature of the AutoSize property.
4953 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
4955 * ListBox.cs: Don't throw [Mouse]Click events for buttons
4956 other than the left mouse button.
4958 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
4960 * Control.cs: Remove my awesome optimization as it caused some
4961 regressions with control ordering. :(
4964 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
4966 * PropertyGridView.cs: Fix a NRE on double click when there is no
4969 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4971 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4973 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
4975 * ListBox.cs: Call MouseClick and MouseDoubleClick.
4978 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4980 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4981 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4982 instead of Hwnd.bmp_g.
4984 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4986 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4987 Use the Hwnd one instead.
4989 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4991 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4993 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4995 * Form.cs: corcompare for RestoreBounds.
4997 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4999 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5001 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5003 * Form.cs: Handle Alt-Minus for MDI children forms.
5004 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5005 Add mnemonics to the control menu.
5008 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5010 * Binding.cs: Initial implementation bits of FormattingEnabled
5011 property and BindingComplete event (2.0).
5012 * BindingCompleteEventArgs.cs: Internal methods for setting error text
5015 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5017 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5018 table.Location. [Fixes bug #354672]
5020 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5022 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5023 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
5025 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5027 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5028 of doing all the re-bound work, just invalidate and call SetControlText
5029 to set the updated text of selected item to our textbox.
5032 2008-01-28 Andreia Gaita <avidigal@novell.com>
5034 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
5035 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5036 missing properties and methods. Add Load, Unload, Error, GotFocus,
5037 LostFocus, Resize, Scroll events (only load and unload are connected)
5039 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
5041 * AccessibleObject.cs: Modified argument names to match MS.
5042 * Button.cs: Modified argument names to match MS.
5043 * BindingContext.cs: Modified argument names to match MS.
5044 * BindingMemberInfo.cs: Modified argument names to match MS.
5045 * ButtonBase.cs: Modified argument names to match MS.
5046 * ComboBox.cs: Modified argument names to match MS.
5047 * Control.cs: Modified argument names to match MS.
5048 * CheckedListBox.cs: Modified argument names to match MS.
5049 * CommonDialog.cs: Modified argument names to match MS.
5050 * DataGrid.cs: Modified argument names to match MS.
5051 * CursorConverter.cs: Modified argument names to match MS.
5052 * ControlPaint.cs: Modified argument names to match MS.
5053 * CheckBox.cs: Modified argument names to match MS.
5054 * ControlBindingsCollection.cs: Modified argument names to match MS.
5055 * BindingSource.cs: Modified argument names to match MS.
5056 * DataFormats.cs: Modified argument names to match MS.
5057 * ContainerControl.cs: Modified argument names to match MS.
5058 * CurrencyManager.cs: Modified argument names to match MS.
5059 * Application.cs: Modified argument names to match MS.
5060 * ContextMenuStrip.cs: Modified argument names to match MS.
5061 * ContextMenu.cs: Modified argument names to match MS.
5062 * BindingManagerBase.cs: Modified argument names to match MS.
5063 * WindowsFormsSection.cs: Fixed line ending.
5065 2008-01-27 Andreia Gaita <avidigal@novell.com>
5067 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5068 detecting that the dropdown toolwindow is hidden. EndLoop outside the
5071 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
5073 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5074 MS. Code formatting.
5076 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5078 * Binding.cs: Don't avoid the Format event if the control
5079 property type is object. Also, if the value retrieved by
5080 the data source is null _and_ the control proeprty type
5081 is object, return Convert.DBNull (match .Net).
5082 Fixes part of #324286.
5084 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5086 * ListControl.cs: Since we are getting two BinginContextChanged events
5087 for the same binding context instance (when the control is added to
5088 form, and when the form is actually shown), take it into account only the
5089 first time for a given binding context instance.
5090 Fixes part of #324286.
5092 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5094 * PropertryGridView.cs: Ops.
5096 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5098 * PropertyGridView.cs: Close dropdown form if the owner form is
5102 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
5104 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
5105 RootGridEntry.cs, CategoryGridEntry.cs:
5106 PropertyGrid rewrite.
5107 - Rewrite all of the control logic in PropertyGrid.
5108 - Rewrite all of the ComponentModel logic in GridEntry.
5109 - Rewrite all UI work in PropertyGridView.
5110 - Many bugfixes, etc.
5112 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
5114 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5115 when all contained controls are autosize or dock-fill. Also take into
5116 account when the total percentage of column/row sizes is not 100%.
5119 2008-01-24 Andreia Gaita <avidigal@novell.com>
5122 - Save a reference to the IDocument in the instance and
5123 use that one instead of going to WebHost.Document; the document that the
5124 WebHost returns might not be the right one (in case of frames).
5125 - Use the hashcode returned from the IDocument interface.
5126 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
5127 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
5128 LinkColor, Url, VisitedColor, Window
5131 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
5132 set_Attribute, NextSibling, Parent, TagName, AppendChild,
5133 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5134 SetAttribute, Equals, equality operators.
5135 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
5136 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
5138 * HtmlElementCollection.cs: Change implementation to use a generic
5139 collection. Implemented Enumerator and CopyTo
5141 * HtmlHistory.cs: Add constructor, no implementation yet.
5143 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5144 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
5145 Equals, equality operators.
5147 * HtmlWindowCollection.cs: Implemented.
5149 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5150 has been deprecated).
5152 * WebBrowserBase.cs: Use Completed event to track document loading
5153 (Navigated has been deprecated)
5155 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
5157 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
5158 level MenuItems do not respect tabs.
5161 2008-01-23 Geoff Norton <gnorton@novell.com>
5163 * XplatUICarbon.cs: Ensure that windows are created in their initial
5164 FormWindowState. Finished fixing Fullscreen windows on Carbon
5166 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5168 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5169 be used as grab_control. Also save status of capture before show ContextMenu
5170 and restore it after close.
5172 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5174 * Control.cs: Internal FindRootParent method added to return high control
5177 2008-01-23 Geoff Norton <gnorton@novell.com>
5179 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5180 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5181 it work again. Handle HITTEST events.
5183 2008-01-23 Geoff Norton <gnorton@novell.com>
5185 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
5186 a crash in certain cases. Support for fullscreen windows in certain cases.
5188 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
5190 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5193 2008-01-23 Geoff Norton <gnorton@novell.com>
5195 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5197 2008-01-23 Geoff Norton <gnorton@novell.com>
5199 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
5201 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5203 * SplitContainer.cs: Remove unused declarations.
5204 * Binding.cs: Remove unused declarations.
5206 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5208 * Form.cs: Remove unused declaration of 'active' in Activate method.
5209 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
5210 prevent compilation warnings.
5211 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5212 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5213 * Bindings.cs: Remove unused formatting_enabled declaration.
5214 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5216 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5218 * PropertyGridView.cs: Remove usused 'ex' declaration.
5219 * DataGridView.cs: Remove unused declarations.
5221 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5223 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5225 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
5226 to Control class, it makes possible to grab menu to controls that can't
5227 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5228 WmMouseMove removed since it was used only to track menu events.
5231 - Moved all active_tracker stuff from Form.
5232 - ProcessActiveTracker added to prevent code duplicity, now mouse events
5233 can call this method instead of reimplement all necessary code handle for
5235 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5239 - Remove special handle to ToolStripOverflow, now we can grab menu to
5240 controls that can't reach Form using parent tree.
5241 - Change type of grab_control from Form to Control.
5243 2008-01-22 Geoff Norton <gnorton@novell.com>
5245 * TextBoxBase.cs: Split up the sizing of controls and placing of
5246 controls. Fixes a bug where scrollbars in Reflector could be sized
5247 wrong and have non-working thumbers.
5249 2008-01-23 Geoff Norton <gnorton@novell.com>
5251 * XplatUI.cs: Refactor environment variables to default support to the
5252 Carbon driver on the Mac.
5254 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5256 * Label.cs: Uses new LabelPainter for drawing operations.
5257 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5258 * Theme.cs: DrawLabel and LabelDefaultSize removed.
5260 2008-01-22 Geoff Norton <gnorton@novell.com>
5262 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5264 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5266 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5267 through the normal flat button code and don't draw the checkbox glyph.
5268 * Theme.cs: Button->ButtonBase signature change.
5271 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5273 * LinkLabel.cs: Uses new class LinkLabelPainter.
5275 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5277 * MessageBox.cs: Adjust right border space, we don't need to add
5278 "space_border*2" two times.
5280 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5282 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5283 becomes a wrapper around Padding.
5284 [Fixes a part of bug #354676]
5286 2008-01-22 Geoff Norton <gnorton@novell.com>
5288 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
5289 acquired. Also ensure the buffer is large enough to grab the header
5290 we need on linux boxes.
5292 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5294 * Control.cs: Implement a custom enumerator so people can delete
5295 from the Controls collection while in a foreach.
5298 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5300 * PropertyGridView.cs: Fix focusing behavior:
5301 - Tab should focus the grid text box.
5302 - Clicking on the labels shouldn't focus the grid text box.
5304 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5306 * PropertyGridView.cs: IsValueTypeGridItem should return true
5309 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5311 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5312 - Renamed GridEntry.SelectedObjects to TargetObjects to better
5313 reflect the property name role.
5314 - PropertyGrid.GetTarget is not required as the target is known
5316 - Setting values will handle value types as a special case now and
5317 populate them up in the chain.
5320 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
5322 * Hwnd.cs: Create a public property for the Graphics we keep around.
5324 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5326 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
5327 when the current object selection changes.
5328 Fixes failing test SelectedObject_Null2.B5.
5330 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5332 * PropertyGrid.cs: Process Browsable properties with
5333 DesignerSerializationVisibilityAttribute.Content as being expandable.
5334 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5335 will not be expandable. We should be nested components-friendly now.
5337 2008-01-21 Andreia Gaita <avidigal@novell.com>
5339 * WebBrowserBase.cs: Check if control was loaded properly,
5340 don't bind if it wasn't.
5342 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
5343 GetElementFromPoint, equality operators, OpenNew, Write.
5344 Remove extra set_Body
5346 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5348 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5349 that makes our AutoScale* stuff more tolerant to different orders
5350 of being set. [Fixes bug #354669]
5352 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5354 * PropertyGridView.cs, PropertyGridTextBox.cs:
5355 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5356 [Fixes #339005 and #348209]
5358 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5360 * PropertyGridView.cs: Hide the grid text box before adjusting it
5361 for the newly selected GridItem.
5364 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5366 * Form.cs: Give MDI children the opportunity to cancel the parent form
5367 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
5368 properly for both the parent and child.
5369 * Application.cs: Signature of internal method changed, pass the previous
5373 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5375 * PropertyGridView.cs: Set the property value only if it has changed.
5378 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5380 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5381 If the mouse hasn't actually moved, ignore these messages so the currently
5382 highlighted menuitem isn't reset to the one under the mouse.
5385 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5387 * PropertyGridView.cs: When the property changes Invalidate the GridItem
5388 in order for the properties with UITypeEditor.GetPaintValueSupported == true
5389 to reflect the change visually.
5392 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5394 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5395 to 2.0 button drawing.
5396 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
5397 the button text is tall enough for one line. LineLimit says it will
5398 always draw at least one line, but it is a lie.
5401 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
5403 * XplatUIStructs.cs, X11Keyboard.cs :
5404 added some more VK_* keys to be handled.
5406 2008-01-16 Andreia Gaita <avidigal@novell.com>
5408 * Control.cs: Check if there is a container before setting or getting
5409 the validation flag.
5411 2008-01-16 Andreia Gaita <avidigal@novell.com>
5413 * ContainerControl.cs: Add flag to track if a control cancels validation,
5414 so we don't fire click events.
5417 - (HandleClick) Check if validation was cancelled before firing the click
5418 events (doubleclicks are fired, but not clicks)
5419 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
5420 ContainerControl.set_ActiveControl, but in the case of non-selectable
5421 controls, like a Label, activecontrol is not set.
5423 * ButtonBase.cs: Only fire clicks if validation passes.
5427 2008-01-16 Geoff Norton <gnorton@novell.com>
5429 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5432 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
5434 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5435 SelectedPath, just display the default dialog instead of crashing.
5438 2008-01-16 Geoff Norton <gnorton@novell.com>
5440 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
5441 AddExpose instead of trusting apples compositing manager which doesn't
5442 work for our use case. Remove some dead code causing warnings and
5443 redecorate some other code to prevent warnings.
5445 2008-01-16 Geoff Norton <gnorton@novell.com>
5447 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
5448 carbon signals us to redraw. Fixes another portion of the flickering bug
5450 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5452 * Form.cs: Prevent the MdiParent property to be set when value is the same
5453 as value already set. Fixes bug #328019.
5455 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5457 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
5458 it prevents NRE when closing mdi child windows. Fixes bug #325211.
5460 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5462 * InternalWindowManager.cs: Invalidade close button after mouse up when
5463 mdi form is prevented to close.
5465 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5467 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5468 thanks to Andy Hume. Fixes bug #325433.
5470 2008-01-16 Andreia Gaita <avidigal@novell.com>
5472 * LinkLabel.cs: Reset focused_index when resellecting the control.
5475 2008-01-15 Geoff Norton <gnorton@novell.com>
5477 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
5480 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5482 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5485 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5487 * ContainerControl.cs: Setting AutoScaleMode to anything should set
5488 Form.AutoScale to false.
5489 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5490 AutoScaleBaseSize should be changed on Font change unless it has been
5494 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5496 * MenuAPI.cs: On instance of MenuTracker check if source control is
5497 ToolStripOverflow and use properly method to find form.
5500 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5502 [Fixes bug #323241 Transparent toolbar support]
5504 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5507 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5508 defined in control style to mimic win32 behavior.
5510 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
5511 it will be transparent.
5513 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5515 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5516 CreateParams for ToolBar controls.
5518 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5520 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5521 FixedToolWindow, SizeableToolWindow, or None for border styles have
5522 different minimum sizes than regular forms. Implemented to fix
5523 regression in PDN with toolbox being too wide.
5525 2008-01-14 Andreia Gaita <avidigal@novell.com>
5527 * HtmlElementCollection.cs: Implemented
5529 * HtmlElement.cs: Implemented:
5537 * HtmlDocument.cs: Implemented GetElementsByTagName.
5539 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5541 * Screen.cs: Stub BitsPerPixel to always return 32.
5543 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5545 * Form.cs: Implement RestoreBounds.
5547 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5549 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
5550 Sebastien and his fabulous magical problem-finding machine:
5551 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
5552 respect the value set.
5554 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5556 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
5557 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
5559 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5561 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
5562 messages (to match .Net), we need to remove the capture ourselves.
5564 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
5566 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
5567 will process the message and close our window.
5570 2008-01-10 Geoff Norton <gnorton@novell.com>
5572 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
5573 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
5576 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5578 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
5581 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5583 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
5584 Linux doesn't care, having a minimum matches MS and keeps the window
5585 from becoming too small to use window decorations.
5588 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5590 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
5591 ShowFocusCues. Make focus rectangles fit the text instead of the whole
5592 control. [Fixes bug #325419]
5594 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
5596 * ComboBox.cs: Guard against an NRE if the user open a new form from a
5597 SelectedIndexChanged event. This closes the combobox dropdown, and we
5598 were trying to dispose it. [Fixes bug #352830]
5600 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5602 * Control.cs, Form.cs: Implement the necessary semantics for
5603 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
5604 to determine if a focus rectangle should be drawn.
5605 * PropertyGrid.cs: Fix property visibility to match override.
5606 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
5608 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
5610 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
5613 2008-01-09 Geoff Norton <gnorton@novell.com>
5615 * XplatUICarbon.cs: Scroll windows in the correct direction.
5617 2008-01-09 Geoff Norton <gnorton@novell.com>
5619 * XplatUICarbon.cs: Track all created utility windows so we can hide them
5620 when the app is deactivated or spaces is enabled.
5622 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5624 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
5625 extra separation pixel for the label rect origin if SmallImageList is
5626 null, and thus we don't need that separation between icon and label
5628 Patch by Ernesto Carrea.
5631 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
5633 * StatusStrip.cs: Invalidate after completing a layout. The base
5634 OnLayout does this, but we don't call the base.
5635 * ToolStripItem.cs: Revert the previous change to invalidate after
5637 [Fixes bug #351341 better.]
5639 2008-01-07 Geoff Norton <gnorton@novell.com>
5641 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
5642 not a notification to exit the application. Listen for WM_QUIT
5645 2008-01-07 Andreia Gaita <avidigal@novell.com>
5647 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5649 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
5651 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5652 so it can repaint at the correct location.
5655 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5657 * ListControl.cs: SelectedValue should return a null value if
5658 SelectedIndex is -1. Also, when setting it, it should throw an
5659 ArgumentNullException if the value is null, as well as taking
5660 into account the String.Empty value, instead of ignoring it (we have
5661 tests for that now).
5662 Fixes part of #324286.
5664 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
5666 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5667 SelectionStart is updated after pressing enter. Fixes bug #351918.
5669 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5671 * TextControl.cs: Revert a piece r92316 that prevented the fix
5672 from working when there were multiple tags in the text box.
5675 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5677 * TextControl.cs: Apply patch from Luke Page that prevents an
5678 NRE when determining the beginning of a paragraph.
5681 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5683 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5684 caret gets moved with clicking away from a selected block of
5685 text. Fixes bug #351885.
5687 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5689 * TextControl.cs: Apply patch from Luke Page that takes line
5690 alignment into account for mouse selection, so that center and
5691 right aligned text can be selected.
5694 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5696 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5697 issues after loading an RTF file by using the correct line feeds.
5700 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
5702 * TextControl.cs: When deleting multiple line selections, we need
5703 to invalidate every line beginning at the first line of the selection.
5704 Patch from Luke Page fixes bug #351791.
5706 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5708 * ListControl.cs: When getting a CurrencyManager.PositionChanged
5709 event, don't set SelectedIndex if the number of items is 1. This is
5710 because, for the first item, PositionChanged is fired _before_
5711 ItemChanged (the place where we actually populate the items), and
5712 leave us in a temporary invalid state (since items collection is
5716 2008-01-04 Geoff Norton <gnorton@novell.com>
5718 * XplatUICarbon.cs: Create native toolwindows instead of
5719 the managed drawing ones.
5721 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5723 * LineTag.cs: If the line doesn't have any characters, return
5724 0 for GetCharIndex. Fixes an AOORE exception after certain
5725 caret movements. Fixes bug #351683. Patch by Luke Page.
5727 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5729 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
5730 is hit when there is selected text, only the selected text gets
5731 deleted, not the character in front of the selection as well.
5734 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5736 * ComboBox.cs: When the values are displayed, calculate the
5737 ComboListBox scrollbar's LargeChange based on the visible area's
5738 height and the actuall ItemHeight, instead of calculating it
5739 based on MaxDropItems value, since it's not used by our _current_
5743 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5745 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5746 Patch from Luke Page that fixes issues with font colors and styles
5747 not showing up in a readonly RichTextBox. Fixes bug #324354.
5749 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
5751 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
5752 from Luke Page. This one fixes bug #349926.
5754 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5756 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
5757 an item in the IBindingList source changes with
5758 ListChangedType.ItemAdded. Ignore for now firing the event for other
5759 changes, since we want to have tests for those cases as well.
5761 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5763 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
5766 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5768 * TextBoxTextRenderer.cs: Implement a cache for measuring each
5769 character. This is effective because the typical usage of a
5770 TextBox is with a limited amount of fonts and characters, and
5771 the current implementation of TextBox measures everything one
5772 character at a time. Another second or two speedup for bug #347238.
5774 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5776 * Control.cs: Rewrite the Font getter to only query the parent's
5777 Font property once instead of twice. Since this operation is
5778 recursive, the queries were growing exponentially as the control
5779 tree got deeper. Another second or two speedup for bug #347238.
5781 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
5783 * Control.cs: Avoid setting a parent (and more importantly, updating
5784 the zorder of all its children) if the parent is already correct in
5785 WmShowWindow. Decreases the startup time of the test case on bug
5786 #347238 from 35 seconds to 11 seconds.
5788 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5790 * X11Dnd.cs: When the dnd operation has started and we are
5791 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
5792 This is done to match .Net, which doesn't send those messages after
5793 dnd operation was completed/cancelled.
5796 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5798 * ToolStrip.cs: Previous change should be != null, not == null.
5801 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
5803 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
5804 user may have moved the mouse off the current item during the event.
5806 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5808 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
5809 calling GetItemAt for every MouseMove event by also taking into
5810 account whether any mouse button is pressed (probably dragging);
5811 if so, we can call GetItemAt, and if not, try to not call it
5812 (GetItemAt can be quite expensive when used with a large number of items).
5814 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5816 * ListView.cs: Implement -finally- support for dnd, by calling
5817 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
5819 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
5820 simple calculation of distances for all the items in the owner
5823 2007-12-21 Geoff Norton <gnorton@novell.com>
5825 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
5826 for windows that are originally created as invisible. Fixes missing
5827 main window in paint-mono.
5829 2007-12-21 Geoff Norton <gnorton@novell.com>
5831 * XplatUICarbon.cs: Register our D&D handler. Register our custom
5832 subclass handler for com.novell.mwfview subclassing HIView. Implement
5833 Pasteboard and Dnd methods.
5835 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5837 * ListBox.cs: When we got focus, give focus to first item if there
5838 wasn't any pervious focused item. Also update navigation to depend on
5839 SelectedIndex rather than FocusedItem, just as .Net does.
5842 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5844 * ListBox.cs: Both FindString and FindStringExact methods must do an
5845 case insensitive search, should allow the last valid index to be
5846 passed in the overload taking an initial index, and should also
5847 continue searching from the top back to the specified index when it
5850 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5852 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
5853 redraw issue, and allows RichTextBox to draw colored text even while
5854 disabled or readonly.
5856 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5858 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
5859 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
5860 and doesn't grey text in a disabled RichTextBox.
5862 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5864 * RichTextBox.cs: Apply patch from Luke Page that adds better support
5865 for many RTF commands: quad alignment, separate formatting for blocks
5866 inside groups, and ParDef support. Makes the test case from bug #324589
5869 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5871 * LineTag.cs: Fix an error in the new Draw method that caused
5872 a crash when rendering the document on bug #324589.
5874 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
5876 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
5877 TextControl.cs: Apply patch from Luke Page that adds support
5878 for URL links in RichTextBox.
5879 [Fixes enhancement #342516]
5881 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
5883 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
5884 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
5886 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5888 * ListBox.cs: When a key gets pressed, try to find a string
5889 if the key is a character or a digit.
5892 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5894 * TableLayoutPanel.cs: Remove some unused variables.
5896 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5898 * DateTimePicker.cs: Commit patch from Luke Page that ensures
5899 we don't end up at an invalid date when we click the up/down
5900 spinner to change the month or year. Fixes bug #348682.
5902 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
5904 * Application.cs: Calling Exit in 2.0 should chain to the
5905 Exit (CancelEventArgs) version so it can be cancelled.
5906 * Form.cs: Create a flag to allow raising the Closing
5907 events to be skipped. We raise them once in Application.Exit
5908 and don't want to raise them again when the Form is actually
5909 closed. [Fixes bug #349073]
5911 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
5913 * ToolStripDropDown.cs: Guard against an NRE when there
5914 hasn't been a mainform set in the application context.
5917 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5919 * ListBox.cs: When SetBoundsCore gets called, besides
5920 calling UpdateScrollBars, update the value of
5921 last_visible_index, since we could need to show more items
5922 than before, and we need to let the paint routines know that.
5925 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5927 * ListView.cs: Add DesignerSerializationVisibility attribute to
5928 InsertionMark property.
5929 * ListViewItem.cs: Add same attribute to Position property.
5931 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5933 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
5936 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
5938 * ThemeWin32Classic.cs: Don't draw the background on a
5939 flat button if there is a background image.
5942 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5944 * ListBox.cs: If we remove the item currently selected,
5945 remove it not only from SelectedItems, but also
5946 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
5947 the items count decreased and focused_item has bigger value than that.
5949 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5951 * Control.cs: Perform our layout after we resize ourselves
5952 if we had to adjust our AutoSize. Missed commit for bug
5955 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
5957 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
5958 we can provide an implementation of AutoSize.
5961 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5963 * ListBox.cs: Add the internal overload Sort (bool paint),
5964 to indicate whether we actually need a paint or we will
5965 call Refresh ourselves. This way we don't request a paint
5966 _before_ having an updated and valid layout.
5969 2007-12-12 Andreia Gaita <avidigal@novell.com>
5971 * XPlatUIX11.cs: Send paint messages when updating a systray icon
5972 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5973 properly invalidated.
5976 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5978 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5979 don't simply assign it to our internal group field, but instead
5980 use our Group property, which should do all the neccessary work
5981 required to support groups. Fixes an issue reported to me (mail) by a
5982 guy using this new feature.
5984 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
5986 * Control.cs: Use Scale instead of ScaleControl to ensure the
5987 whole hierarchy gets scaled.
5990 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5992 * DateTimePicker.cs: Don't set the internal MonthCalendar's
5993 Parent property. Doing this causes the control to be hosted by
5994 the Form instead of being a popup window.
5997 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5999 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6000 at an index higher than Count, just use Add instead of Insert.
6003 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6005 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6006 DrawPictureBox, this is handled by Control.PaintBackground.
6009 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
6011 * MenuAPI.cs: When process menu keys return true by default only if menu is
6012 active. Fixes bug #342892.
6014 2007-12-09 Andreia Gaita <avidigal@novell.com>
6016 * Control.cs: check if windows are actually mapped before
6017 trying to zorder. Fixes #342509, #346955
6019 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6022 * ListViewInsertionMark.cs:
6023 * ThemeWin32Classic.cs: Implement the drawing side of the
6024 new 2.0 ListView.InsertionMark property.
6026 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
6028 * CurrencyManager.cs: Silence some debug spew.
6030 2007-12-07 Geoff Norton <gnorton@novell.com>
6032 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6033 masks for our children as well as siblings to avoid having to query
6034 Quartz for this information.
6035 * XplatUICarbon.cs: Implement a delegate based system to pass
6036 information to System.Drawing. Implement Async methods. Remove
6037 the hack for the resize thumb and imlpement a transparent Grow Box.
6038 Rework the messaging system to proplery create window's and messages,
6041 2007-12-06 Andreia Gaita <avidigal@novell.com>
6043 * X11Keyboard.cs: Use Xutf8LookupString to support international
6044 characters under alternate codepages. Patch from #340878
6046 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6048 * ListView.cs: When doing layout computations, set position in the
6049 ListView instances (we cache the position just as .Net does).
6050 * ListViewItem.cs: New internal setter method for Position. Also set
6051 position field as also available in 1.1, since we are going to use it
6052 now in the common case.
6054 2007-12-06 Andreia Gaita <avidigal@novell.com>
6056 * Control.cs: When removing controls, get the actual container
6057 to notify about active control changes. Fixes 341314.
6059 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6061 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6063 2007-12-05 Andreia Gaita <avidigal@novell.com>
6065 * Control.cs: When updating the zorder, ignore windows that are not
6066 mapped. Fixes #342509
6068 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6070 * ListViewItem.cs: Actually implement serialization on this class.
6072 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
6074 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6075 LinkCollection. Spaces to tabs, and removed extra tabs.
6077 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
6079 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6080 tests to fail (hopefully).
6082 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6084 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6085 the image margin so custom renderers can correctly place it.
6087 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6089 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6090 so custom renderers can correctly place it.
6092 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6094 * Application.cs: Let WM_CHAR messages flow through to controls
6095 hosted in Strips. [Fixes bug #343972]
6097 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6099 * ToolStripManager.cs: Guard against an NRE I ran into.
6101 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6103 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
6104 a Link is manually added to the Links collection, we need to set
6105 its owner, so it can invalidate properly.
6108 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6110 * ListView.cs: When changing ListViewItem.Position (which calls
6111 ListView.ChangeItemLocation), invalidate not only the area
6112 corresponding to the main item, but also to the area occupied
6113 by the items being moved.
6115 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6117 * ListView.cs: When changing the position of a given item,
6118 don't use item bounds, but item areas (which includes the item spacing
6119 between them). Also, use first/last position if the requested
6120 position is outside bounds (as .Net does). Invalidate the previous and
6121 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6122 in a specific position, instead of directly accessing Items collection
6123 (this is done to get the right item - remember an Item can have a
6124 different position in the grid than in the Items collection).
6126 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6128 * MessageBox.cs: Calculate text area instead of just top left, this rect
6129 area will be used in DrawString. Fixes bug #343364.
6131 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6133 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6134 screen width. Partially fixes bug #343364.
6136 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6138 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6139 code inside recalculate, it makes code more simple.
6141 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
6143 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6144 between update or add icon. Fixes bug #324344.
6146 2007-11-21 Andreia Gaita <avidigal@novell.com>
6148 * XPlatUIX11.cs: Do not treat tool windows as if they have no
6149 window manager, since that stretches the drawing area to include
6150 the window decorations, and they get hidden. Reverts r84444 and fixes
6151 #335849 and #342790 (mdi and pdn3 regression)
6153 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6155 * ListView.cs: When setting focused item, try to give focus to the
6156 previous one _only_ if the previous one remains valid.
6159 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
6161 * Application.cs: Revert r89650, as it broke a common case to fix
6162 an obscure case. Fixes bug #342606.
6164 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6166 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6168 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6170 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
6171 alignment. [Fixes #324228]
6173 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6175 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6178 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
6180 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6181 it prevent problems when empty captions. [Fixes #342141]
6183 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6185 * Label.cs: Use Size instead of None. Fixes bug #342077.
6187 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6189 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6191 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6193 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6194 but there isn't a MdiContainer.
6197 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6199 * TextControl.cs: Don't recalculate document if the recalc_start and
6200 recalc_end hasn't changed.
6203 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
6205 * DataGridViewTextBoxCell.cs: Removed CWL.
6207 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6209 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6211 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6213 * TextControl.cs: Missed some code for bug 341534 to trigger a
6214 recalculation when the font changes.
6216 2007-11-16 Andreia Gaita <avidigal@novell.com>
6218 * Control.cs: When updating the zorder, check if the child to update is
6219 the same control that is set to always be on top (i.e., scrollbars), and
6220 just put it on top directly. Fixes BadMatch error on pdn3
6222 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6224 * ListView.cs: Throw the needed exceptions for FindNearestItem.
6226 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6228 * Control.cs: Don't perform a new layout when a label changes its text,
6229 cause label handles its own autosizing.
6232 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6234 * ListView.cs: Implement 2.0 FindNearestItem methods.
6236 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6238 * ToolStripPanel.cs: Make Join at least add the control to the panel,
6239 even if the rest of what Join does isn't supported. Add some more
6240 support for vertical toolbars.
6241 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6242 [Fixes the application breaking parts of bug #341998]
6244 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6246 * ToolStripItem.cs: When determining if we have a check/image margin,
6247 we need to look at ShowCheckMargin as well as ShowImageMargin.
6249 2007-11-15 Geoff Norton <gnorton@novell.com>
6251 * XplatUIOSX.cs: Rename to...
6252 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6253 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
6255 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6257 * KeysConverter.cs: The default values should be an array of Keys, not
6258 strings. Also, the array has more values for 2.0.
6261 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6263 * Application.cs: Change ExecutablePath to use
6264 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6267 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6269 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6270 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6271 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6272 be ignored. Create a new GetLineEnding that can specify which types of
6273 line endings to look for. On Insert, only create new lines for \n and \r\n.
6276 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6278 * TextBoxBase.cs: As we loop through each line changing the font, tell
6279 the document that the line needs to be recalculated. Fixes bug #341534.
6281 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
6282 [Another round of refactoring]
6283 * Line.cs: Add DeleteCharacters.
6284 * LineTag.cs: Add Delete.
6285 * TextBoxBase.cs: Update to use new methods.
6286 * TextControl.cs: Refactor the Delete* methods.
6288 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
6290 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6291 the patch. [Fixes #324856]
6293 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6296 * ListViewItem.cs: Add an initial implementation of
6297 2.0 ListViewItem.Position getter.
6299 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6301 * ListView.cs: Add a reordered_items_indices array, to allow us
6302 to have a different sorting than that of Items (the sorting in Items
6303 could not match the actual sorting in screen). This is needed to
6304 implement a pair of 2.0 features.
6305 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6306 actual position in the ListView grid, since it could have a position
6307 different than its Index (position in ListViewItemCollection).
6309 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6311 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
6312 not draw partial lines.
6313 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6314 LineLimit flag from the base is preserved.
6315 Fixes the windows part of bug #338965.
6317 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6319 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6320 so that it can be canceled in KeyPress.
6323 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6325 * ListView.cs: In ItemControl, reset mouse-handling related
6326 fields even if we dont' have items (we still should reset them when
6327 we had items but then called Items.Clear). Partially based in a patch
6331 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
6333 * Application.cs: In ProductVersion first try AssemblyFileVersion
6334 before falling back to assembly version. Fixes bug #339787.
6336 2007-11-08 Andreia Gaita <avidigal@novell.com>
6338 * HtmlElement.cs: Implement InnerText setter.
6339 * WebBrowserBase.cs: Implement Navigated event support.
6340 Add flag to track when the browser "document" is ready to be retrieved.
6341 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6342 Make sure browser document is ready before retrieving it.
6343 Clean up cached objects (document) when moving to a new page through
6344 any of the navigation methods.
6345 Use the new Mono.WebBrowser.INavigation interface to control navigation.
6346 Implement OnNavigated event.
6348 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
6350 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6351 DrawLinkLabel, this is handled by OnPaintBackground.
6352 Fixes bug #339565, part II.
6354 2007-11-07 Andreia Gaita <avidigal@novell.com>
6356 * Control.cs: Revert r88915. Selecting text on a textbox depends on
6357 getting a Select call on click, so this call needs to be here for now.
6360 2007-11-07 Geoff Norton <gnorton@novell.com>
6362 * OSXStructs.cs: Add the kEventClassApplication constants.
6363 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
6364 application is deactivated otherwise Menu overlays linger on top of
6365 other application windows.
6367 2007-11-07 Geoff Norton <gnorton@novell.com>
6369 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6370 dont support cursors yet anyways. This allows Reflector to run.
6372 2007-11-07 Geoff Norton <gnorton@novell.com>
6374 * XplatUIOSX.cs: Implement DragSize.
6376 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6378 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6379 ItemControl, request the focus, as .Net does. This is needed after
6380 Control does not request focus anymore when it receives a
6383 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
6385 * Label.cs: Make DrawImage internal so it can be called from Theme code.
6386 Remove the DrawImage call from OnPaint.
6387 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6388 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6389 but before we draw the text for DrawLabel and DrawLinkLabel.
6392 2007-11-05 Andreia Gaita <avidigal@novell.com>
6394 * Control.cs: Remove select call on click. Fixes #325809
6396 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6398 * ListViewItem.cs: Add 2.0 Position property getter.
6400 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6402 * ListView.cs: Add 2.0 BackgroundImageTiled property.
6403 Also, to make it work properly, change item's BackColor and
6404 BackgroundImageLayout as needed.
6405 * ThemeWin32Classic.cs: Don't fill any background rectangle
6406 in ListView.ItemControl when drawing items; just let the Control
6407 base implementation fill it.
6409 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6411 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6412 as well as adding a custom 'dummy' Converter, as .net does.
6414 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6416 * PropertyGridView.cs: When clicking drop-down button,
6417 select an index in the listbox only if our standard values collection
6418 has one or more items.
6420 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6422 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6425 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6427 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6428 the value is not changed. This ensure a pushed button remains in that
6429 state when clicked again. When switching the value of PropertySort
6430 between Categorized and CategorizedAlphabetical, do not update the
6431 grid items and do not fire a PropertyChangedEvent. When clicking the
6432 sorting buttons, do not modify the PropertySort value when switching
6433 between Categorized and CategorizedAlphabetical but only update the
6436 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6438 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6440 * PropertyGrid.cs: Also put Categorized button in pushed state when
6441 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6442 for help description label.
6444 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6446 * ListView.cs: When calculating the biggest item for a given column,
6447 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6450 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
6452 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6453 value for PropertySort on 1.0 profile. PropertySortChanged event
6454 should only be fired on 2.0 profile. Fixed NullReferenceException
6455 in UpdateSortLayout when PropertyGrid contains no items.
6457 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
6459 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6462 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6464 * ListViewItem.cs: Implement 2.0 IndentCount property.
6466 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6468 * X11Dnd.cs: When sending status in a dnd operation, compare current
6469 effect with the 'allowed' field instead of 'drag_data.Allowed', since
6470 the later is only created when a Winforms application is both the
6471 source and the target, but not when we are the target only.
6472 Fixes part of #324251.
6474 2007-11-01 Geoff Norton <gnorton@novell.com>
6476 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6478 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
6479 children out of the drawing view on mac.
6480 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
6481 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6483 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6485 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6486 on the non-hosted-control part of it shouldn't do anything.
6487 Fixes part of bug #327498.
6489 2007-11-01 Andreia Gaita <avidigal@novell.com>
6491 * WebBrowserBase.cs: revert previous change, resize can be called anytime
6493 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6495 * Application.cs: When a toolstrip has the keyboard input loop, let messages
6496 it does not use flow through to controls that are hosted in menus.
6497 Same with mouse clicks.
6498 * Form.cs: Don't close all menus on click if the click is on a
6499 control hosted in a menu.
6500 Fixes part of bug #327498, and part of bug #325969.
6502 2007-10-31 Andreia Gaita <avidigal@novell.com>
6504 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6506 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
6508 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6509 Addresses an issue raised in bug #336218.
6511 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
6513 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6514 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
6516 2007-10-30 Andreia Gaita <avidigal@novell.com>
6518 * ContainerControl.cs: Check if the active control is a
6519 child of a removed control and update active_control accordingly.
6522 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6524 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6525 or the MaxDate. Fixed bug #337693.
6527 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6529 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6530 after calling SetWindowLong for a form, to force an immediate NC refresh.
6531 Fixes first part of bug #325150.
6533 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6535 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6536 simple. Fixes the last part of bug #322668.
6538 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6540 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
6541 needs to be TopMost as well, or else the MessageBox is under the form.
6542 Patch by George fixes bug #325300.
6544 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6546 * X11Dnd.cs: When starting a new drag operation, reset the static
6547 'dropped' field to false (previously the implementation didn't reset
6548 it and got confused after the first drag).
6551 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6553 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
6554 items instead of re-creating them all. For this purpose we now cache
6555 both CategoryGridEntry items and the GridEntries for the main object's
6557 * GridItem.cs: Make SetParent method abstract.
6558 * GridEntry.cs: Override the SetParent method (already there, but now
6562 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6564 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
6565 depending on its depth (as .Net does). Update the needed values in
6566 MouseDown handler. Also draw the plus/minus rect after the label,
6567 so we don't draw on top of it.
6569 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
6571 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
6572 processed by forms or controls when menu is active. [Fixes #333548]
6574 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6576 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
6577 parent doesn't have focus. This was causing ToolStripTextBoxes to take
6578 focus on mouse over.
6580 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6582 * TextControl.cs: Code cleaning, simplifying.
6584 2007-10-24 Geoff Norton <gnorton@novell.com>
6586 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
6587 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
6589 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
6591 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
6592 the cap is maxvalue, not actually 0. [Fixes bug #336218]
6594 2007-10-24 Andreia Gaita <avidigal@novell.com>
6596 * SendKeys.cs: apply jpobst's patch to bug #332409
6598 2007-10-23 Andreia Gaita <avidigal@novell.com>
6600 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
6601 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
6604 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6606 * PropertyGridView.cs: If a property has an UIEditor available,
6607 make the drop-down/editor button available only if the property
6610 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6612 * PropertyGridView.cs: Don't make the grid item textbox
6613 editable when a drop-down control is available, but
6614 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
6615 true. The same bur the color of the grid item value's label.
6617 2007-10-22 Geoff Norton <gnorton@novell.com>
6619 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
6620 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
6621 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
6622 driver. Padd the bottom of all real windows so the resize thumb doesn't
6623 obscure scroll/status bars.
6625 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
6627 * WindowsFormsSection.cs: Implement.
6629 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6631 * MdiClient.cs: Maximize new active mdi child when a maximized child is
6632 closed see #325434 patch.
6634 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
6636 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6639 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6641 * PropertyGridView.cs: When showing the textbox for a grid item,
6642 have two local variables to store the read-only and non-editable
6643 status of a grid item (we were previously using just one variable
6644 to do this, when actually they are slightly different).
6645 Fixes part of #325023.
6647 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6649 * PropertyGridView.cs: When showing a drop-down list, try to get the
6650 values using TypeConverter.ConvertTo (to convert to a string). Fixes
6653 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6655 * PropertyGrid.cs: When updating a property and populating sub grid
6656 items, remove the previous ones, and invalidate the specific area.
6657 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6658 area behind a grid item.
6659 * GridItemCollection.cs: Add an internal Clear method, to allow us to
6660 clean the items if needed (specially for controls implementing
6661 ICustomTypeDescriptor and returning a variable number of properties).
6664 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
6666 * TextControl.cs: Clean up and document the Insert function.
6668 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6670 * TextControl.cs: Make sure we know our start point for updating the view
6671 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
6674 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6676 * ListView: Couple of corcompare fixes.
6678 2007-10-17 Geoff Norton <gnorton@novell.com>
6680 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
6681 the title caption of real window.
6683 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6685 * ErrorProvider.cs: Add the error provider's internal window to a
6686 containercontrol when the parent changes. [Fixes bug #329714]
6688 2007-10-17 Geoff Norton <gnorton@novell.com>
6690 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
6691 When we make a new window; restore the old active window - fixes dialogs.
6693 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6695 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6696 when modifying a property, and if found then invalidate as
6698 Fixes part of #324865.
6700 2007-10-17 Geoff Norton <gnorton@novell.com>
6702 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
6703 highly experimental. Fixed coordinate translation. Fixed window locations.
6704 Initial support for clipping. Implemented NC areas and menus. Support for
6705 launching from command line from Will Johansson (wjohansson@atacomm.com).
6706 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
6707 wjohansson@atacomm.com)
6708 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
6709 Hwnds now track the existence of all of their children for Mac clipping.
6710 * XplatUI.cs: Re-enabled the native driver on the Mac.
6712 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
6714 * Line.cs: Move the InsertString function to here.
6715 * TextControl.cs: Cleanup some duplicate code, move some InsertString
6716 functionality to Line.
6718 2007-10-17 Geoff Norton <gnorton@novell.com>
6720 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
6722 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
6724 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
6725 always setting value to true.
6726 * Form.cs: When changing AcceptButton, notify new and original button.
6728 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
6730 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
6731 a custom control that implements IButtonControl instead of an actual
6732 button. [Fixes bug #334244]
6734 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6736 * Form.cs: Change SelectActiveControl to internal, we need to call it in
6739 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
6740 active control when activate a new mdi window.
6744 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
6746 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
6750 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6752 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
6753 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
6754 so we always recalculate the whole document instead of just the new part.
6757 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6759 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
6760 when the mouse was to the left of the first character in the line.
6762 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
6764 * TextBox.cs, TextBoxBase.cs: When setting the document's password
6765 character, use the property instead of the variable so that the
6766 UseSystemPasswordChar property is taken into account.
6769 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6771 * FolderBrowserDialog.cs: When a node is right clicked and the "New
6772 folder" contex menu appears, actually add the new folder to it, even
6773 if the node is not currently selected. Still use SelectedNode in case
6774 there wasn't found a node under the pointer.
6777 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6779 * ListViewItem.cs: When retrieving the focused state, the index check
6780 should be done only when ListView is in virtualmode, as it is an
6781 expensive check for normal mode.
6783 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6785 * ListViewItem.cs: Make the focus state information be stored
6786 in the ListView, not in the items. This is done to match the MS
6787 behaviour for items that are not yet part of a ListView control;
6788 besides that, since just one item can be focused at the same time,
6789 we save a little space in our items.
6790 Fixes part of #331643.
6792 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6794 * ComboBox.cs: When focus is lost, deselect the text. When setting
6795 text of control, select all text. Do not hide selection when control
6796 does not have focus. Fixes bug #333663.
6798 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6800 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
6801 instead of ArgumentException when SelectionLength is set to negative
6802 value. Added same check to SelectionStart. Code formatting.
6804 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
6806 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
6807 or SelectionStart. Code formatting.
6809 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6811 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
6812 indicating that there was not a previous drag-and-drop operation going
6814 Fixes part of #325071.
6816 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6818 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
6819 AllowedEffect, don't let the drop operation happen.
6822 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6824 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
6826 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6828 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
6831 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
6833 * Line.cs: Add a method that finds the tag that contains an x-coord.
6834 * LineTag.cs: Add a method that finds the character at an x-coord using
6835 a binary search, the old way was a linear search.
6836 * TextControl.cs: Change FindCursor to use the above new methods.
6838 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6840 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
6841 value different than AllowedEffect). This should be possible to
6842 indicate that dragging is not possible in some control/area.
6844 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
6846 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
6847 descent internally when font changes instead of outside code being responsible
6849 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
6850 instead of accessing internal variables.
6852 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
6854 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
6855 remove special treatment for ArrangeIcons since it is already arranged.
6857 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6859 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
6860 the Win32 backend uses Color.
6861 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6862 Refactor to store a Color instead of a Brush for Color.
6864 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6866 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
6867 away. I didn't realize I needed this when I refactored these earlier.
6869 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6871 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
6872 store a Color structure and use the ResPool for back color instead of
6873 holding onto brushes.
6875 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
6877 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
6880 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6882 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
6883 to recalculate its size. Fixes a part of bug #331052.
6885 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6887 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
6888 button. Fixes a part of bug #331052.
6890 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6892 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
6894 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
6898 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6900 * TextBoxTextRenderer.cs: Don't make this a static class, as static
6901 doesn't exist in 1.1. (Thanks jb!)
6903 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
6905 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
6906 class to allow us to use different backends on different platforms.
6907 Linux uses the current [Draw|Measure]String backend. Windows uses
6908 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
6909 of GDI+. This leads to better looking text and more accurate measurements
6910 on Windows, fixing many of the reported issues.
6911 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
6913 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6915 * FolderBrowserDialog.cs: When running on Windows,
6916 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
6917 since we must match both "C:" and "C:\" forms. A little hackish, but
6921 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6923 * ListView.cs: When calling EndEdit (after editing an item),
6924 create a new instance of LabelEditEventArgs to keep clean the fields
6925 in case we get a new call to BeginEdit; also do Application.DoEvents
6926 to have focus in synch. This is a fix similar to TreeView's #325244.
6928 2007-10-07 Andreia Gaita <avidigal@novell.com>
6930 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
6931 * WebBrowserBase.cs: Added dialog support, calling the
6932 WebBrowserDialogs classes for each specific dialog type.
6934 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6936 * ListView.cs: When the last item is focused and is removed,
6937 move the focus to the previous item (in Items order). This is what MS
6941 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6943 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
6944 instead of the opposite (RemoveAt call Remove). This is a better
6945 approach since we don't need to to a pair of traversals when using
6948 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6950 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
6951 check that the node actually has nodes, and if not, move to the
6952 parent node instead.
6955 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6957 * TreeView.cs: Move the previous change to the general case (to
6958 call Application.DoEvents in cases where the method was called by
6961 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6963 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
6964 call Application.DoEvents. This is neccessary when we get a call to
6965 BeginEdit from an AfterLabelEdit handler, because the focus always
6966 goes to the TreeView, even if we try to give it to our
6967 LabelEditTextBox. The call do Application.DoEvents seems to
6968 synchronize the focus, basically.
6971 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6973 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6974 should be false. This also removes some nasty recursive paths. Fixes
6977 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
6979 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6980 state to normal. Also resize window when cascading. Fixes #325433.
6982 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6984 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6985 DefaultForeColor, as drawing empty colored lines isn't very useful.
6986 [Fixes the not drawn lines part of bug #324358]
6988 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6990 * TextControl.cs: Move Line and LineTag classes into separate files to
6991 make things easier to find.
6992 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6993 * RichTextBox.cs: Capitalize LineTag.Length property access.
6994 - This is purely an organizational/formatting change, no logic changed. -
6996 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6998 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
7001 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7003 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7006 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7008 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7009 prevent calling of OnBackColorChanged. Fixes #325321.
7011 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7013 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7014 because control can be disabled because owner is disabled.
7016 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7018 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7019 string.Empty, test failed from previous change.
7021 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7023 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7024 is null, not String.Empty. See bug #323038.
7026 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
7028 * TextControl.cs: Change the margins to match MS a little better.
7029 Still not perfect for X11 due to some DrawString differences, but
7030 is still an improvement over the old stuff.
7031 Partially fixes #324467.
7033 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7035 * FolderBrowserDialog.cs: When using MyComputer as
7036 RootFolder, let absolute paths be considered as valid ones. Also, use
7037 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7038 for Windows compatibility.
7039 Partially fixes #325247.
7041 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7043 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7044 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7045 method, since it causes the dialog to not select folders directly
7046 under the root path (when setting SelectedPath property).
7048 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7050 * TreeNode.cs: When calling Expand/Collapse and need to call
7051 ExpandBelow/CollapseBelow respectively, take into account
7052 partially visible nodes (previously Expanding/Collapsing
7053 a partially visible node in the bottom was not updating its +- sign).
7055 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7057 * TreeView.cs: When calling Expand on a TreeNode, and we need to
7058 expand nodes below (ExpandBelow), scroll the entire Viewport
7059 area if the node is above it and not visible (instead of scrolling
7060 the area from node's Bottom, which applies only when the node is
7064 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7066 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7067 node in the bottom area (as .Net does). This is done to preserve the
7068 scroll position when ExpandAll is called before handle is created for
7069 the 1.1 profile (bottom area, as opposed to top area in 2.0).
7072 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
7075 bottom area if we are in fact not using the vertical scroll bar.
7078 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7080 * Control.cs: Comment out a double buffering optimization that doesn't
7081 take into account invalidates created in OnPaint, causing the control
7082 to never be redrawn. It would take quite a bit of work to work around
7083 this, but I left it commented with an explanation for later possible
7087 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7089 * Control.cs: Ask parent to perform a layout if control is AutoSize and
7091 * RadioButton.cs: Implement GetPreferredSizeCore.
7094 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7096 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7099 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7101 * Application.cs: Move the sync context stuff to Run instead of RunLoop
7102 so that it doesn't get uninstalled on modal forms.
7103 * Control.cs: Install a sync context when a control is created.
7104 * WindowsFormsSyncronizationContext.cs: Create a private static control
7105 to invoke on. This is easier than trying to find a created control we
7109 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
7111 * Application.cs: Install a WindowsFormsSynchronizationContext in the
7112 run loop, and uninstall it when done.
7113 * WindowsFormsSynchronizationContext.cs: Implement.
7114 [Fixes the common case in bug #327608]
7116 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
7118 * DataGridViewCellCollection.cs: Added argument checks for indexers.
7119 Use case-insensitive lookup of column name in indexer. Code
7122 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7124 * TreeNode.cs: When collapsing or expanding a node, check whether its
7125 change will affect the visible area (we were previously doing a
7126 IsVisible check, but that check is not enough since children nodes
7127 could be still visible). Fixes part of #325266.
7129 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7131 * TreeView.cs: Always select the first node when the TreeView gets
7132 focus if there is no currently selected node.
7135 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7137 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7138 node being selected is null.
7139 [Patch from Yves Bastide fixes bug #326858]
7141 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7143 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7144 whether all the parent nodes are expanded.
7145 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7146 call RecalculateVisibleOrder if all previous nodes are expanded.
7147 Before that we were doing a IsVisible check, but sometimes the node
7148 is not in the visible area, but _should_already be ready, because of
7149 all previous nodes are expanded. Fixes #325259.
7151 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7153 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7154 portion of the item is clicked.
7156 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7158 * TextControl.cs: Do not tell the system to move the cursor if the
7159 textbox isn't focused. Fixes part of bug #322668.
7161 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7163 * ComboBox.cs: When there are no items, do not show the dropdown if
7164 the down arrow is clicked. Fixes part of bug #322668.
7166 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7168 * ToolStripComboBox.cs: Manually set the size of this control in the
7169 constructor, as it doesn't seem to be the same as DefaultSize.
7170 Fixes a failing monobuild test.
7172 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7174 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7175 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
7177 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7179 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7180 Desktop. This lets it work for people who have moved their desktops
7181 from the default location on windows. For people who have not, both
7182 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
7184 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7186 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7187 but when the base constructor sets this, the control is null. Set it
7188 again in the constructor. Fixes a failing monobuild test.
7190 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7192 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7194 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7197 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7199 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7200 will handle it themselves.
7201 * ToolStripItem.cs: When deciding what the text of a tooltip should
7202 be, use the Text property instead of the text field.
7203 * ToolStripTextBox.cs: Handle tooltips.
7204 [Fixes bugs #325417 and #325973]
7206 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7208 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7209 left click. Fixes the easy part of bug #325969.
7211 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7213 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7214 bug #325406, but set a minimum for StatusStrip to 22 to keep
7215 bug #325390 fixed. I think this minimum would have been figured
7216 up automatically if the grip was actually a ToolStripItem, but it
7219 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7222 as this is apparently the actual value used by .Net. Also apply
7223 ItemPadding in Details view only, and decrease the general width padding,
7224 to have only the needed. This should fix #324340 in Windows too.
7226 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7228 * ListViewItem.cs: Don't Invalidate item if parent is inside
7229 a BeginUpdate/EndUpdate block. This prevents to have differences
7230 between the ListView and items state, as well as avoid some exceptions
7232 * ListView.cs: Make 'updating' field internal.
7234 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7236 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7237 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7238 size if appropriate.
7239 Fixes reopened bug #325414.
7241 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7243 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7244 * ToolStripItem.cs: Invalidate before and after our new autosize when
7246 Fixes reopened bug #325390.
7248 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7250 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7251 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
7254 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7256 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
7258 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7260 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7261 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7264 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7266 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
7267 item to select when the ToolStrip is selected.
7268 * ToolStripControlHost: Realign the control when the bounds or visibility
7270 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7271 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7273 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7274 base.OnPaint. Was causing text not to be drawn.
7276 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7278 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7280 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7282 * TreeView.cs: When creating the label edit text box,
7283 set is initially to Visible = false. This is done to
7284 prevent a confusion in the layout which makes it to lose
7285 focus when shown the first time. Fixes part of #82592.
7287 2007-09-13 Andreia Gaita <avidigal@novell.com>
7289 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7291 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7293 * ToolStrip.cs: Take Margin into account when calculating preferred
7294 size. Also, allow preferred size to get smaller than the explicit
7296 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7297 First step towards fixing bug #82747.
7299 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7301 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7302 full row select background over the plus/minus glyph. Also, turn
7303 off the focus rectangle for full row select since MS doesn't seem
7304 to ever paint it. [Fixes bug #81839]
7306 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7308 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7309 This was causing keyboard opened dropdowns to lose focus.
7312 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7314 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7315 ClientRectangle instead. [Fixes bug #82838]
7317 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7319 * SplitContainer.cs: We can't reset Visible on every layout because
7320 someone may have set Visible = false explicitly on a SplitterPanel.
7321 Make sure when we switch orientation the SplitterDistance does not
7322 change. Fixes two failing tests.
7324 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7326 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7327 TextRenderer, since the latter is only available in 2.0.
7329 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
7331 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7332 * SplitContainer.cs: Implement FixedPanel layouting.
7334 2007-09-12 Andreia Gaita <avidigal@novell.com>
7336 * WebBrowserBase.cs: setup shutdown routine
7338 2007-09-12 Andreia Gaita <avidigal@novell.com>
7340 * Application.cs: Let keyboard events that are targetted
7341 to non-mwf windows hosted inside mwf (as in, webbrowser),
7342 propagate properly. Fixes keyboard handling on the webbrowser.
7344 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7346 * ListView.cs: When handling MouseUp event and we are
7347 highligting a node with the mouse right button, don't trigger
7348 Before/AfterSelecting event, since we are not actually selecting
7351 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7353 * TreeView.cs: When editing a node, modify the edit text box
7354 depending on the text length (as you are typing), like MS does.
7356 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7358 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
7359 Override GetPreferredSizeCore to perform calculations. Remove custom
7360 autosize logic. [Fixes bug #82739]
7362 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7364 * TextBoxBase.cs: Modified should default to false.
7366 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7368 * Control.cs: Update the anchoring distances even when layout is supspended.
7369 Patch provided by George fixes bug #82805.
7371 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7373 * Control.cs: Provide a setter for ExplicitHeight.
7374 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7375 remove the hacks in here for requested_height.
7378 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7380 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7381 Maximum to lower that its current Value caused an ArgumentException by setting
7382 the Value to the new Maximum.
7384 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7386 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
7387 handle moves to the closest tick when it is being dragged.
7390 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7392 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7393 can't let them count as real items when calculating where to merge in the
7394 user's items. [Fixed bug #82786]
7396 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7398 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7399 who want to add a menu item directly onto a toolstrip.
7400 [Fixes bug #82775, part II]
7402 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7404 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7405 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7406 don't set it to available.
7407 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7408 [Fixes bug #82727, part II]
7410 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7412 * StatusStrip.cs: Change item placement to None if not visible.
7413 * ToolStripItem.cs: Invalidate when InternalVisible changes.
7414 These should have been committed to fix 82723, but I missed them.
7416 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7418 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7419 Click, and that it is only called once.
7420 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7421 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7425 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7427 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7429 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7430 instead of 8, just like above. Partially fixes #82734.
7432 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7434 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
7437 * ListView.cs: Remove extra space between rows in Details view (match
7439 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7442 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
7444 * Application.cs: Modified ProductVersion to return value of
7445 AssemblyInformationVersion if available, and fallback to assembly
7446 version. Fixes bug #82746. Code formatting.
7447 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7450 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7452 * Control.cs: When updating ZOrder for a child control,
7453 take into account the implicit ones (we need it in our controls
7454 using them). Fixes #82642.
7456 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7458 * ToolStripItem.cs: Add support for animated images.
7461 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7463 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
7464 visible. [Fixes bug #82727]
7466 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7468 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7469 so we repaint using the new size. [Fixes bug #82723]
7471 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7473 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7474 option. [Fixes bug #81779]
7476 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7478 * TreeView.cs: Override HandleClick because the StandardClick style is
7479 set to false. According to MSDN (and testing), the click events should
7480 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
7482 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7484 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7485 the border will disappear. Fixes reopened #82653.
7487 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7489 * Control.cs: If the control is autosize, and its preferred size changes
7490 when it lays out its children, tell its parent so it can be re-layed out.
7491 Fixing some of the fallout from r85433.
7493 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7495 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7496 and CheckBox share some code.
7498 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7500 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7501 the TrackBar, not every mouse move. [Fixed bug #82718]
7503 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7505 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7506 under 2.0 rendering. [Fixes bug #82657]
7508 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7510 * TreeView.cs: If we found a TreeNode to display a context menu, but
7511 it doesn't have one to show, let the TreeView display its menu
7512 instead. [Fixes bug #82680]
7514 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7516 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7517 OnPaintInternal instead. Give the internal TextBox a Border property
7518 so it can draw itself more correctly. [Fixes bug #82653]
7520 2007-09-06 Zoltan Varga <vargaz@gmail.com>
7522 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7524 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7526 * ComboBox.cs: Adjust combobox button state to reflect current state when
7527 back to enabled = true. Fixes first issue of #82654.
7529 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7531 * Control.cs: Fix last patch regression, prevent forms to update zorder when
7532 setting visible property.
7534 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7536 * Control.cs: Update zorder after control creation in SetVisibleCore, it
7537 fix zorder for controls initially created as non visible. Fixes #82667.
7539 2007-09-04 Everaldo Canuto <everaldo@simios.org>
7541 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
7542 mimic win32 look. Fixes #82656.
7544 2007-09-01 Zoltan Varga <vargaz@gmail.com>
7546 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
7547 Stubs for new net 3.5 classes.
7549 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7551 * ListViewItem.cs: In ListViewItemCollection operations calculate
7552 Layout for owner as well as invalidate it. Fixes part of #82642.
7554 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
7556 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
7557 when returning Enabled. [Fixes bug #82651]
7559 2007-08-30 Everaldo Canuto <everaldo@simios.org>
7561 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
7563 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7565 * ListView.cs: Put item padding info in a single place
7566 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
7568 * ThemeWin32Classic.cs:
7569 * Theme.cs: Likewise.
7571 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7573 * ListView.cs: When a ListViewSubItem instance is invalidated,
7574 invoke Invalidate on parent ListViewItem, not parent ListView.
7577 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7579 * ListView.cs, ListViewItem.cs: corcompare stuffs.
7581 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7583 * BindingMemberInfo.cs: Implement == and != operators.
7585 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
7587 * HtmlElementEventArgs.cs: Implement properties.
7589 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7591 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
7593 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7595 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
7596 Add (string,string,string) to implement the imagekey. It turns out, we
7597 use the requested imagekey whereas .Net does not. So I broke ours to match
7600 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7602 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
7604 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
7606 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
7608 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
7610 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
7611 up-to-date. Fixes bug #82618.
7613 2007-08-29 Everaldo Canuto <everaldo@simios.org>
7615 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
7616 reflect document changes. Fixes #82367.
7618 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7620 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
7621 as well as add new ones. This should make work the BackgroundImage
7622 property for ListView again.
7624 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7626 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
7627 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
7628 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
7630 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7632 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7635 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7637 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7638 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7640 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
7642 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
7643 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7645 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7647 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7649 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
7651 * GridEntry.cs: Implement GetService.
7653 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
7655 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7656 for label editting, make sure we focus back on the TreeView.
7659 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7661 * ListView.cs: Add some 2.0 overrides.
7663 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7665 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7666 because getter dont returns right value before handle creation. Thanks
7667 to George. Fixes #82569.
7669 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7671 * Theme.cs: Revert last patch, it causes error under win32.
7673 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
7675 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
7676 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
7677 logical Desktop rather than the physical file system location. Fixes #82603.
7679 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
7681 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7682 for the patch. Fixes #82568.
7684 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7686 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7689 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7691 * ListViewInsertionMark.cs: New stubbed class.
7693 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7695 * FolderBrowserDialog.cs: When adding folder, immediately create the
7696 directory with temporary name and rename the directory when editing
7697 finishes. This matches MS. Ensure the node for the new folder is
7698 selected and LabelEdit is disabled, when editing is either finished
7701 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7703 * TreeView.cs: When editing label of node, ensure node is visible.
7705 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
7707 * PropertyGridView.cs: Set the value only if it has changed.
7709 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7711 * ListView.cs: Some more code refactoring to add support sorting
7712 with groups (now for Details view). Remove unused code also.
7714 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7716 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
7717 Not a big fan of reacting immediately to a field in an EventArg, but that's
7718 the way it's done. (This is part of the previous commit that got left out.)
7720 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
7722 * FolderBrowserDialog.cs: Removed need for separate description field.
7723 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
7724 has focus when dialog box is displayed again, regardless of what
7725 button was pressed the previous time. Set RootFolder and SelectedPath
7726 each time dialog box is displayed. This ensures the treeview is
7727 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
7728 when it does not have focus. Added support for more special folders.
7730 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7732 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
7733 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
7734 it resets the edit_args.
7735 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
7738 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
7740 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
7741 button to match MS. Provide more meaningful exception message for
7742 invalid RootFolder value. Use zero-length string when SelectedPath
7743 is set to null. Allow non-rooted paths in SelectedPath, but ignore
7744 them in FolderBrowserTreeView. Allow folders to be created in
7745 RootFolder. Fixes bug #82576.
7747 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7749 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
7750 since we need to take into account the group headers and the margin
7752 * ListViewGroup.cs: Add a rows field to store the number of rows per
7755 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7757 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
7758 Anyways, let's just follow the lead.
7760 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7762 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
7763 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
7764 controls in GetPreferredSizeCore.
7765 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
7768 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
7770 * PrintDialog.cs: Need to instantiate the form variable here too.
7772 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7774 * ListView.cs: Do some reorganization to support sorting in groups,
7775 by doing the layout sequentially in ListView.Items. Also add support
7776 for the Default Group, which should be available for items with no
7778 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
7779 for storing layout info also.
7780 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
7781 collection, as well as providing internal members to do a traversal
7782 including the default group (needed when doing layout/drawing).
7783 * ThemeWin32Classic.cs: When drawing group headers use internal
7784 ListViewGroupCollection members to take into account the default
7787 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
7789 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
7791 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7793 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
7794 been created. If handle is created, we want arror keys. If we are editing
7795 a node, we want things like enter, esc, home, end, page up, page down.
7796 Allows Esc to work for FolderBrowserDialog.
7798 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7800 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
7801 they close when ESC is pressed. Thanks Andy!
7803 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7805 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
7806 This way we can tell if this is a CommonDialog provided with mono, or one
7807 that is being implemented outside by a developer. If it is an external one,
7808 the developer is responsible for showing their own form. We were showing
7809 our blank form after the developer showed his.
7810 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
7811 PageSetupDialog.cs: Instantiate form variable in our constructor.
7814 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7816 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
7817 and always return true. [Fixes bug #81616]
7819 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
7821 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
7822 TextBox. [Fixes bug #82549]
7824 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
7826 * FileDialog.cs: When Save/Open is clicked and no filename is selected
7827 or entered then do not close the dialog. Fixes bug #82539. Removed
7830 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
7832 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
7833 code to this method. It is calling every time filter changes. This method
7834 will help to fix the bug #80887.
7836 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
7838 * CheckBox.cs: Implement AutoSize calculation.
7840 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
7842 * CheckBox.cs: Use new 2.0 rendering for 2.0.
7843 * Theme.cs: Method declarations for 2.0 rendering path.
7844 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
7846 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7848 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
7850 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7852 * ListViewGroupCollection.cs: Implement AddRange the right way, to
7853 only call Redraw on the parent one time.
7855 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7857 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
7858 GetClipboardContent.
7859 * DataGridViewCell.cs: Implemented GetClipboardContent,
7860 GetEditedFormattedValue, GetFormattedValue.
7861 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
7863 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
7865 * TableLayoutStyleCollection.cs: corcompare fix.
7867 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7869 * DataObject.cs: Implemented retrieval of convertible / not convertible
7872 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
7874 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
7875 ourselves. This ensures the entire old bounds are repainted, in case our new
7876 size is smaller. [Fixes bug #82518]
7878 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
7880 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
7881 flag to make fast handle of mouse events, without this the mouse move is
7882 handled in some manner, whether it is a mouse move or not. Fixes #81588.
7884 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7886 * ListView.cs: When doing layout calculations don't use a ref
7887 param to keep the current item; instead use its Index value (this
7888 is specially important when doing the layout with Groups
7889 and Items being sparse). Also don't take into account items added to
7890 the Group but not yet added to the main ListView.Items collection.
7892 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7894 * ListViewGroupCollection.cs: Forgot to mimic an issue
7895 in the indexer (don't assign the ListView owner for new values).
7897 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7899 * ListViewGroupCollection.cs: Make the string indexer use
7900 the int based indexer to re-use code, instead of duplicate the code.
7901 Also Redraw as needed and take into account null values.
7903 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7905 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
7908 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
7910 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
7911 when other buttons are clicked or navigated to.
7913 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7915 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
7916 it's XplatUIX11 that attaches them.
7918 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7920 * DataGridView.cs: If a column has been added, recreate the editing row.
7923 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7925 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
7926 of the tag to draw. Makes disappearing text show up again.
7928 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7930 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
7931 Contents. Fixes #82487.
7933 2007-08-19 Andreia Gaita <avidigal@novell.com>
7935 * Added HtmlElement.cs, HtmlElementCollection.cs,
7936 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
7938 2007-08-19 Andreia Gaita <avidigal@novell.com>
7940 * BindingSource.cs: Implement this, dispose and getenumerator.
7941 * DataGridViewRowCollection.cs: Move the InvalidOperationException
7942 out of AddInternal, throw it only on public Add calls. The
7943 UsingWebBrowser sample was blowing up with this when setting the
7944 DataSource after adding DataBindings, so it's likely that .net
7945 only throws this exception when Add is called directly.
7947 * ToolStripControlHost.cs: Return the hosted control's text
7948 property, and not the ToolStripItem one (it would always return
7951 * HtmlDocument.cs: Implement GetElementById and All
7952 * WebBrowser.cs: Remove exception on set_DocumentStream.
7954 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7956 * Form.cs: Fix the max and min value for opacity (0~1).
7958 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7961 * DataGridTableStyle.cs: Default header font is now null, on getter it
7962 returns datagrid font when is null. On setter permits null.
7965 - When ResetHeaderFont set header font to null.
7966 - On EndInit set grid_style.DataGrid.
7968 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7970 * TabControl.cs: Fix regression in default padding x.
7972 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7974 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7976 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7978 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7979 not 2. Fixes #82229.
7981 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7983 * TabControl.cs: Fix tab size when image height is less than text height.
7984 Partially fixes #81837.
7986 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7988 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
7989 "alt + tab". It works only for Win32, for X11 theres no way to remove window
7990 from taskbar and keep it on "alt_tab". Fixes #81722.
7992 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7994 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7995 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
7996 Fixes #80877 and #79418.
7998 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8000 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
8001 between position and one of the screen borders. Fixes #82349.
8003 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8005 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8006 the MessageBox in the taskbar. Fixes #82457.
8008 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8010 * MessageBox.cs: Fix form size when icon is set and text height is bigger
8011 than icon. Fixes #82468.
8013 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8015 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8016 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8017 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8018 Refactored HandleNCCalcSize somewhat to avoid code duplication.
8019 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8020 FormBorderStyle to decide if we're calculating a new size from the
8021 client size or not. CreateParams: Don't fake tool windows, only the X11
8022 backend manages toolwindows manually.
8024 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8026 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8027 ObjectDisposedException.
8029 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8031 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
8032 in OnLoad should not have any effect. [Fixes bug #82470]
8034 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8036 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8037 paint for controls that create their own ToolTipWindow instead of
8038 going through ToolTip.
8040 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8042 * ToolTip.cs: Make Hide internal instead of public to match MS API.
8044 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8046 * ListViewGroupCollection.cs: Use generic List instead of an
8047 ArrayList, since this collection is 2.0 only.
8049 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
8051 * ToolTip.cs (Hide): Made public to make the build work (should
8052 this not be public?).
8054 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8056 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8058 * ToolTip.cs: Add an internal Visible property to facilitate transition.
8060 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8062 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8063 PopupEventHandler.cs: Make these internal for 1.1.
8064 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8065 use ToolTipWindow internals.
8066 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
8067 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8069 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8071 * X11Dnd.cs: Add a null check.
8073 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8075 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8076 nothing else succeeds. Fixes #82453.
8078 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8080 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8081 rectangle if we're painting to another window than the one the paint
8082 message was generated on. Simplify the code somewhat, which makes
8083 PaintEventEnd also simpler.
8085 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8087 * Control.cs: When changing parent of a form, let the form decide whether
8088 XplatUI.SetParent should be called or not.
8089 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8090 recreating the handle. If the new parent's handle isn't created, don't
8091 recreate our handle, just destroy it. CreateParams: Check if the
8092 parent's handle is created before fetching it.
8094 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8096 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8097 Update calls to PaintEventStart/End to take a Message argument.
8098 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8099 take a Message argument.
8100 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8101 Message argument, and handle the case where we don't paint to the window
8102 for which the paint message was generated.
8104 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8106 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8107 Marshal.GetLastWin32Error. Plug nasty memory leak in
8108 PaintEventStart/End, we were creating a DC we weren't releasing.
8110 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8112 * ListView.cs: Add Groups support in Details view. Also have a small
8113 method to do the layout of the group header. Don't use a separate
8114 method to do the groups calculation in Icons view, since our methods
8115 are now a little simpler.
8116 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8118 * ThemeWin32Classic.cs: Likewise.
8120 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8122 * Application.cs: Add FilterMessage method and rework our message loop
8125 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8127 * Application.cs: Add some methods and stub a few methods that are
8128 pretty much never used.
8130 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
8132 * TreeNode.cs: Add some serialization methods.
8134 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8136 * ListView.cs: In ListViewItemCollection have a
8137 'is_main_collection' field to not modify ListViewItem.ListView
8138 when using it as ListViewGroup.Items (and not ListView.Items)
8139 and also don't modify selection state (.Net behaviour).
8140 Instead, set group for items contained in a ListViewGroup.Items collection.
8141 * ListViewItem.cs: Simplify some code in Group setter.
8142 * ListViewGroup.cs: use the new .ctor to pass the current instance
8143 to the ItemsCollection.
8144 * ListViewGroup.cs: Set the ListView property for ListViewGroup
8145 instances when adding/removing. Also make Remove use RemoveAt, which
8146 should perform better.
8148 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8150 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8151 that crept into the 1.1 profile.
8153 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8155 * ToolBarButton.cs: Implement ImageKey.
8157 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8159 * ToolBar.cs: Implement ScaleControl/ScaleCore.
8161 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8163 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8164 created, it might have gotten destroyed since we last checked. Fixes
8167 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
8169 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8170 tooltip will hide when mouse is moved off the control.
8173 2007-08-11 Andreia Gaita <avidigal@novell.com>
8175 * WebBrowserBase.cs, WebBrowser.cs: add implementation
8176 using Mono.Mozilla for loading and navigating webcontrol
8178 The initial implementation was done on
8179 /trunk/mozembed/tests/browser , and copied here.
8181 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
8183 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8184 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8186 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8188 * DataGridView.cs: Add support for an editing row. Fixes #82226.
8189 RowTemplateFull: throw an exception if a column doesn't have a template.
8190 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8191 add the row just before it.
8192 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8194 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8195 DataGridView field to be able to reach the grid's editing row.
8197 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8199 * ToolTip.cs: If the control's handle hasn't been created when it has a
8200 tooltip set on it, don't check to see if we need to show the tooltip. This
8201 check was causing the control's handle to be created.
8204 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8206 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8208 Handle Not Created -1 0
8212 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8214 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8217 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8219 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8220 * ToolTip.cs: Implement some properties and owner draw.
8222 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8224 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8225 show them again, since setting visibility causes a paint, causing an
8226 endless loop (instead use a temporary and set it all when it's known if
8227 they should be shown or not). Fixes #79265.
8229 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8231 * DataGridView.cs: Only do a full column/row selection if a header was
8232 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8233 isn't pressed, deselect everything before selecting something.
8235 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8237 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8238 behaviour according to bug #81075 - they are returned in the order they
8239 are selected. Fix HitTest to check if the point is within any of the
8240 headers. Allow for row/column selection when in ColumnHeader or
8241 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8242 the row and column to call when their selected state changes, and
8243 updated selected_[rows|columns] whenever SetSelected* is called.
8244 * DataGridViewBand.cs: Initialize isRow correctly. Call
8245 SetSelected[Row|Column]CoreInternal when the selected state changes, and
8246 add a SelectedInternal to avoid StackOverflows.
8247 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8248 ReadOnly no matter what.
8249 * DataGridViewSelectedColumnCollection.cs,
8250 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8251 the items in reverse order (just as MS does...)
8253 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8255 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8256 itself, not part of a mnemonic. [Fixes bug #82378]
8258 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8260 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8261 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8262 the DGV, the column, the row, or the cell itself is readonly.
8264 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8266 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8268 * FileDialog.cs: Same.
8269 * TextRendered.cs: Same.
8270 * FolderBrowserDialog.cs: Same.
8271 * TextBoxBase.cs: Same.
8272 * Application.cs: Same.
8274 * ThemeClearLooks.cs: Same.
8276 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8278 * XplatUI.cs: Added RunningOnUnix property to be used by controls
8279 instead of duplicating these checks everywhere.
8280 * FileDialog.cs: Use case-insensitive comparison for populating the
8281 DirComboBox when not running on unix. Fixes bug #82385.
8282 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
8285 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8287 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8288 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8289 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8290 cell and column selection with ctrl and shift pressed. Call the correct
8291 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8292 the corresponding virtual method (PaintBackground to paint background,
8294 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8295 either the column, row or the cell itself is selected.
8296 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8298 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8299 here. When the row is selected, don't select all cells. Each cell now
8300 queries the row to see if the row is selected.
8302 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8304 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8307 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8309 * ListView.cs: In ListViewItemsCollection check that owner is
8310 not null before trying to access it (this happens quite often
8311 using Groups). Also don't duplicate calls by calling CollectionChanged
8314 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8316 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
8317 when we are dismissed to clear keyboard mnemonics.
8318 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
8319 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8320 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8321 was activated by keyboard or the OS tells us to always draw them.
8322 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8323 [Fixes bugs #82376, #82377]
8325 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8327 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
8328 shot at having it because Alt was pressed.
8329 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8330 the first real menu item.
8331 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8332 a mnemonic if Text is null.
8335 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8337 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8338 search do check whether the item is already contained in the
8339 collection or not; instead check if the owner of the item is the same
8340 as ours. Also, remove a redundant check in the same method.
8342 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8344 * Control.cs: Allow the clip region to be set back to null.
8345 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8346 [Fixes button still showing up in bug #82370 when Show Through is turned off]
8348 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8350 * GridEntry.cs: Add a null check.
8351 * PropertyGrid.cs: When checking for existing grid entries, ignore category
8352 entries. Fixes #82297.
8354 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8356 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8359 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8361 * ListBox.cs: Implement ScaleControl.
8363 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8365 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8367 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8368 parent has a menu strip. Fixes #81689.
8370 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8372 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8373 moments, so apply some fuzzy logic to determine if the mouse is still
8374 inside a control or not. Fixes #82288 (for the third time).
8376 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8378 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8379 Don't create the child if it has been disposed already (may happen if
8380 the user closes the form the Load event).
8382 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8384 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8387 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8389 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8390 might call us after we've been destroyed, in which case our own private
8391 parent field is null. Fixes #82326.
8393 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8395 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8396 check for setting the dropdown's owner.
8398 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8400 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8401 before removing system menu items.
8403 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
8405 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8407 * MdiControlStrip.cs: Added. These are the menu items used in mdi
8409 * ToolStrip.cs: Add a null check to mnemonics.
8410 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8412 [Fixes most of bug #81689]
8414 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8416 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8418 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8420 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8422 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8424 * DataGridViewCell.cs: EditType: returns
8425 DataGridViewTextBoxEditingControl always.
8427 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
8429 * TextRenderer.cs: Remove the LineLimit string format flag from the
8430 DrawString fallback method so that things like buttons that aren't
8431 tall enough to draw a full line will still draw part of the text.
8432 [Fixes part of bug #82272]
8434 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8436 * DataGridView.cs: Implemented AutoResizeColumn(s).
8437 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8438 according to the Alignment.
8439 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8440 Implement alignment and padding when painting.
8441 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8443 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8445 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8448 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8450 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8453 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8455 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8456 hide GetPreferredSize from public API.
8457 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8458 * ToolStripItem.cs: Stub out drag and drop methods and events.
8459 * ToolStripManager.cs: Stub out Save/LoadSettings.
8460 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8461 * ToolStripPanel.cs: Fix corcompare error.
8462 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8463 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8464 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8466 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8468 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8469 bounds height instead of PreferredHeight. Puts things back the way
8470 they were for height while still fixing the width. Fixes broken unit
8473 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8475 * Binding.cs: Implement 2.0 constructors and add a null check.
8477 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8479 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8480 and fix row index (off by one).
8482 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8484 * PropertyGridView.cs: Remove debug output.
8486 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8488 * Control.cs: We need to reset the is_created flags when the handle is
8489 destroyed. Fixes #82187.
8490 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8491 client coordinates if the window doesn't have a parent.
8492 Win32GetParent returns the parent or the owner, and for top-level
8493 windows with no parent (but with an owner) we were calculating the
8494 location from the location of the owner.
8495 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8496 form has been disposed.
8497 * MdiClient.cs: Add a null-check.
8499 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8501 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8502 actually do auto-sizing. Override the internal GetPreferredSizeCore
8503 so we can provide an implementation that returns the current width
8504 and preferred height. Allows anchor = right to work with TextBox 2.0.
8507 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8509 * ListView.cs: Add support for navigating items in Groups mode, by
8510 creating a big matrix containing all rows and cols of all groups. When
8511 are in other mode than Details, pressing Up should have a similar
8512 behaviour as that one of Down (moving to the next available column if
8513 current one doesn't have an item in the requested row). Also, don't
8514 proceed to use groups if ShowGroups is false.
8515 * ListViewGroup.cs: Add an internal int field to store the starting
8516 row of the group (used by the big matrix used for navigating the
8518 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8521 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8523 * ToolStripDropDown.cs: When we do Show, start with the
8524 DefaultDropDownDirection, but if our popup menu is going to off-screen,
8525 modify the direction to keep it on screen. [Fixes bug #82210]
8527 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
8529 * FileDialog.cs: Accept any FilterIndex value, and store it
8530 unmodified. When FilterIndex is less than 1, or greater than number
8531 of filters, then default to first filter. Only add filter extension to
8532 file if user did not specifiy an extension. When type of dialog is
8533 OpenFileDialog and DefaultExt is set, then only use filter extension
8534 if: CheckFileExists is true and no file wih the default extension
8535 exists, or CheckFileExists is false, and user specified file does not
8536 exist. When CheckFileExists is true, then add first extension of
8537 selected filter that matches existing file. Perform checks for
8538 existing file, overwrite and create after extension has been added to
8539 file name. When CheckFileExists is true and type is SaveFileDialog,
8540 then only consider first filter extension if DefaultExt is set.
8541 When CheckFileExists is true, then ignore DefaultExt if file with that
8542 extension does not exist. Also perform check for existing file when
8543 type is SaveFileDialog. Changed some field to constants.
8545 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8547 * ListView.cs: Take into account the region used by header
8548 control when doing the vertical scroll (this way we invalidate
8549 the precise area, and don't get any dirty one).
8551 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
8553 * FileDialog.cs: Check for valid filterIndex on button open/save.
8556 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8558 * ListView.cs: Update some layout calculations in details view
8559 and clean the code in a pair of assignations.
8561 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8563 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
8564 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
8565 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
8566 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
8568 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8570 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
8571 performance of thread-safe Graphic methods. (Thanks rolf!)
8573 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8575 * ListView.cs: When doing the layout calculations, don't calculate
8576 scroll bars before handle is created. This is unnecessary and also
8577 calculating them before handle creation item causes a number of random
8578 bugs (which begin to appear after Chris' big patch for handle creation
8581 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
8583 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
8584 for things that don't have a Graphics object. Currently, things just use
8585 the static Hwnd.bmp_g which is not thread safe.
8587 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8589 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
8590 dialog. Fixes #82187.
8592 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
8594 * DataGridViewElement.cs: Initialize state.
8595 * DataGridView.cs: Forward a few Mouse events to cells. Add
8596 GetRowInternal and GetCellInternal that doesn't unshare rows.
8597 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
8598 don't use the index, but look it up. Add
8599 DataGridViewControlCollection.RemoveInternal to remove controls
8600 that Remove won't remove (scrollbars, edit control).
8601 * DataGridViewColumn.cs: Initialize State correctly.
8602 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
8603 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
8605 * DataGridViewRowCollection.cs: Implemented shared rows.
8606 * DataGridViewRow.cs: Throw exceptions as MS do.
8607 * DataGridViewCell.cs: A few properties are implemented by a
8608 Get<Property> method, so move implementation there and remove the
8609 NIEX in the method. Add a bunch of OnXInternal that DataGridView
8610 calls when necessary.
8611 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
8612 complicates matters.
8613 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
8616 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8618 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
8619 the children controls. Instead, we will just set up the proper docking for the
8620 children controls so we don't have to worry about it. [Fixes bug #82188]
8622 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8624 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
8625 canceling and correct Before/AfterLabelEdit properties as layed out in bug
8626 81847. [Fixes bug #81847]
8628 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
8630 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
8631 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
8632 an explicit size based on the design-time size of the text. Since our fonts
8633 may not match this explicit size, we tend to cut off the ends of people's labels.
8635 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
8637 * Menu.cs: Add some missing methods to MenuItemCollection.
8639 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8641 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8642 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8643 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8644 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8645 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8646 * DataGridViewElement.cs: State defaults to Visible.
8647 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8648 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8650 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8652 * Control.cs: Minor 1.1 corcompare fix.
8654 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8656 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8657 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8659 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8661 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8662 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8663 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8664 DataGridViewSelectedColumnCollection.cs,
8665 DataGridViewSelectedRowCollection.cs: Corcompare work.
8667 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8669 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
8670 it is autoset by VS2005 designer and the effect is barely noticeable.
8672 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
8674 * TreeView.cs: Implement HitTest.
8676 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8678 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8679 manually adding and removing the control from the Controls
8681 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8682 EditingControlInternal property that tracks the editing control.
8683 Always keeping the scrollbars in the Controls collection, as MS
8684 testing confirms is the right behaviour.
8686 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8688 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8689 according to MSDN and new test.
8691 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8693 * TreeNode.cs: Implement ToolTipText.
8694 * TreeView.cs: Implement tooltips, NodeMouse* events.
8696 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8698 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8700 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8702 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8703 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
8705 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
8707 * Control.cs, Form.cs, ContainerControl.cs,
8708 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
8709 for misc properties.
8711 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
8713 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
8714 * TreeView.cs: Implement StateImageList.
8716 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8718 * Form.cs: Don't check if the current form is the active form before
8719 activating it. Fixes #81904.
8721 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8723 * Form.cs: Don't check if the current form is the active form before
8724 activating it. Fixes #81904.
8726 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8728 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
8730 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8732 * Form.cs: Don't try to position the form after loading if the form was
8733 disposed. Fixes #81969.
8735 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8737 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
8738 properties. Had to change ToolBar into ToolStrip, which required a
8741 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8743 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
8744 resized, fixes part of #79829 (vertical lines in toolbar).
8745 PropertyGrid: Refactored Populate* to something that's easier to
8746 follow at least for me, as well as splitting it up into several new
8747 methods, required to update only subitems when something has
8748 changed by a popup editor or listbox. Don't use events to check
8749 when any values are changed, since the events are unreliable (we're
8750 changing the objects the events are registered with, and if the
8751 event handling requires the objects to be immutable (objects stored
8752 in hashtables for instance), the events will never be raised).
8753 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
8754 everytime we change a value, since events are unreliable.
8755 DropDownButtonClicked: For the same reason don't compare objects to
8756 check if it has changed or not, it would require all objects to
8757 derive Equals. Fix dialog location on windows, MS is doing weird
8758 things when creating parented forms.
8759 * GridEntry.cs: Add a SelectedObject setter.
8761 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8763 * TreeNode.cs: Add some corcompare attributes.
8764 * TreeNodeCollection.cs: Implement 2.0 stuffs.
8765 * TreeView.cs: Implement some 2.0 stuffs.
8767 2007-07-18 Andreia Gaita <avidigal@novell.com>
8769 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
8772 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
8774 * ListBox.cs: Implement custom tab offsets.
8776 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8778 * ToolStripContentPanel.cs: Support System renderer.
8779 * ToolStripControlHost.cs: Set RightToLeft to default to No.
8781 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8783 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
8785 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8787 * CheckBox.cs: Chain TextAlign to base implementation instead of
8788 maintaining another one.
8790 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8792 * ButtonBase.cs: Fix an incorrect string constant.
8794 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8796 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
8797 of creating one for measuring strings.
8799 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
8801 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
8802 Implement MaxItemSize.
8804 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8806 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
8807 for DeviceContext. Instead, use the static one available in Hwnd.
8808 Informal tests show this saves about 500k on formtest.exe.
8810 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
8812 * ContainerControl.cs: Implement 2.0 AutoScaling.
8814 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8816 * ComboBox.cs: Work around bug #82120 (bug in mcs).
8818 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8820 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
8821 Darken the focus color.
8823 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
8825 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
8827 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
8828 X, Y instead of a rect for drawing text.
8829 - For ControlPaint.DrawCheckBox, center the check a little better when the
8830 checkbox is odd width. When drawing a flat checkbox, use a white background
8831 when state != inactive.
8832 [Fixes bugs #82097, 82100]
8834 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
8836 * ListControl.cs: When changing CurrencyManager, disconnect event
8837 handlers from previous one. Fixes bug #81771. Code formatting.
8839 2007-07-15 Andreia Gaita <avidigal@novell.com>
8841 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
8842 full preview invalidation from layout invalidation, and only invalidate
8843 the layout when setting zoom or other properties. Invalidation should
8844 always be done even when resetting properties with the same values as
8845 what is there. Fixes #81744 and #79830.
8847 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8849 * ListView.cs: Implement initial support for Groups. Split some of the
8850 LayoutIcons code to render a partial list of the items (needed by
8851 items contained in ListViewGroup instances). Let the
8852 ListViewItemsCollection.ListView property be modifiable (needed when
8854 * ListViewGroup.cs: Use a Bounds property rather than a Location
8855 one. Also invalidate the bounds when they get changed.
8856 * ThemeWin32Classic.cs: When drawing items, also draw the group header
8857 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
8860 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8862 * ListView.cs: When space gets pressed and CheckBoxes is true,
8863 don't invoke the Begin and EndUpdate methods. We are generating
8864 a redraw of the entire control without need to do so.
8866 2007-07-13 William Holmes <billholmes54@gmail.com>
8868 * Control.cs: Changing logic in FindFlatForward and
8869 FindFlatBackward to handle multiple Controls with
8871 This fixes bug 81687.
8873 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
8875 * OSFeature.cs: Enable IsPresent.
8877 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8879 * Control.cs: Don't do anything in WmShowWindow if the control has been
8880 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
8881 control is created, put on a form, the control is disposed (the
8882 form is never shown), and then we get a MapNotify, triggering a
8884 * Form.cs: Exclude the current form when sending Deactivate to all
8886 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
8887 there was a race condition because assigning the handle raises
8888 events, we can get more messages, therefore trying to assign the
8889 handle again, which would fail if any of those event handlers
8890 closed/disposed the control.
8892 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8894 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
8896 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8898 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
8899 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
8901 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8903 * DateTimePicker.cs: If there's no part format specifier, return an
8906 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
8908 * FlatButtonAppearance.cs: Throw NotSupportedException for a
8909 Transparent BorderColor.
8911 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
8913 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
8914 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
8915 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
8916 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
8917 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
8918 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
8919 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
8921 * X11Structs.cs: Remove warnings, add ToString implementations.
8923 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8925 * XplatUIX11.cs: Translate min/max size according to the actual min/max
8926 size, and not the current size. Fixes #81798.
8928 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8930 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
8931 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
8932 to the control yet).
8934 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8936 * PropertyGridTextBox.cs: Add a method that sends any forwarded
8937 mousedowns to the contained textbox.
8938 * X11Structs.cs: More ToString implementation.
8939 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
8942 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
8944 * PropertyGridView.cs: Add a null-check, fixes a few tests.
8946 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8948 * TableLayoutPanelCellPosition.cs: TypeConverter.
8950 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8954 * PropertyGridTextBox.cs: Propagate any color changes to all contained
8956 * PropertyGridView.cs: A few color fixes.
8958 2007-07-10 Jackson Harper <jackson@ximian.com>
8960 * TextControl.cs: Remove some old unused text formatting stuff.
8962 2007-07-10 Jackson Harper <jackson@ximian.com>
8964 * TreeView.cs: Update full row select invalidation to match the
8965 newer DrawSelection... method.
8966 - Make sure to invalidate the entire width when selecting a new
8967 node, if we have full row selection enabled.
8969 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8971 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8972 display of properties again.
8974 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8976 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8977 to existing collections.
8979 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8981 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8982 that changed between 1.1 and 2.0.
8984 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8986 * PowerStatus.cs: Added. This is just a data class, it is filled
8987 in by SystemInformation.
8989 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8991 * Message.cs: Add op_Equality and op_Inequality.
8993 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8995 * MenuStrip.cs: Finish corcompare work.
8997 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8999 * LinkArea.cs: Add op_Equality and op_Inequality.
9001 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9003 * Application.cs: Add MessageLoopCallback delegate.
9005 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9007 * ListBox.cs: First set of 2.0 stuffs.
9009 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9011 * Control.cs: Make an internal Height property we can override
9012 without messing up the public API.
9013 * ListBox.cs: Override HeightInternal to always return the size
9014 the user set. [Fixes bug #80466]
9016 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
9018 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9019 paint cell borders if we haven't calculated where they go yet.
9020 [Fixes bugs #82040 and #82041]
9022 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9024 * ListView.cs: In Details view, set the location of item_control
9025 in the (0,0) position (and the header_control is thus on the
9026 item_control). This way the Bounds of the Items are relative to the
9027 ListView control (before this, they had a Bounds value without the
9028 header_control offset, which wasn't matching .Net). Fixes #82004.
9030 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9032 * ListControl.cs: When DataSource is set to null, pass an empty
9033 array of object to SetItemsCore. This is done to clean the items
9034 in the ListContol children. Fixes #81788.
9036 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9038 * ListControl.cs: Add 2.0 stuffs.
9040 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9042 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
9043 Refresh is overkill for just about every repaint request.
9045 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9047 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9048 so remove my custom Get method and fix the property getter.
9050 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9052 * Label.cs: DefaultMargin for 2.0.
9054 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9056 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
9057 reported issue where other controls with mnemonics would steal strokes
9058 from a selected ComboBox.
9060 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9062 * ScrollOrientation.cs: Make internal for 1.1.
9063 * ScrollEventArgs.cs: Add 2.0 stuffs.
9065 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
9067 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9068 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9069 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9071 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9073 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9075 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9077 * ListView.cs: Implement the so-incredibly broken 2.0
9078 VirtualItemsSelectionRangeChanged event.
9080 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9082 * ListView.cs: When enter is pressed and selection is non empty,
9083 an OnItemActivate event must be fired.
9085 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9087 * ListView.cs: Store the FocusedItem information as an
9088 int instead of a ListViewItem (needed by VirtualMode).
9089 Update the calls to SetFocusedItem to pass an index instead of
9091 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9092 the Focused state from the owner ListView.
9094 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9096 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9097 property. Also, invalidate previous focused item in the mentioned
9098 property (match .Net).
9100 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9102 * ListView.cs: Implement 2.0 FocusedItem property setter.
9104 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9106 * ListView.cs: Implement 2.0 TopItem property setter.
9108 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
9110 * StatusStrip.cs: The default renderer is System.
9111 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
9112 if the user specifies it.
9113 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9114 if we are ManagerRenderMode.
9115 * ToolStripMenuItem.cs: Calculate our text color better.
9116 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9117 from Professional to the base class based off working with the System renderer.
9118 * ToolStripSystemRenderer.cs: Added.
9120 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9122 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9124 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
9126 * ToolTip.cs: Implement 2.0 Tag property.
9128 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9130 * ListView.cs: Implement 2.0 HitTest methods.
9132 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9134 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9135 item is under the pointer or not (sugar). Also remove the TODO
9136 regarding to the cursor changes in OneClick activation.
9137 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9138 the subitems use the parent's HotFont if UseItemStyleForSubItems is
9139 true; otherwise don't show the underline style.
9141 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9143 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9144 the code to retrieve the item at position only one time. Also
9145 change cursor when Activation is ItemActivation.OneClick as well
9146 as invalidate the item if HotTracking is true (to show/hide the
9147 underline style). Add an internal HotItemIndex property to retrieve
9148 the current hot item's index.
9149 * ListViewItem.cs: Add an internal HotFont property to cache the
9150 font used when HotTracking is true and the pointer moves within the
9152 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9153 HotFont depending on the hot state of the item.
9155 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9157 * ListView.cs: Implement 2.0 HotTracking property.
9159 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9161 * ToolStripControlHost.cs: If our hosted control never got created,
9162 don't try to dispose it. [Fixes bug #81909]
9164 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9166 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9168 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9170 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
9172 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9174 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
9176 * DrawListViewColumnHeaderEventArgs.cs:
9177 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9178 using the DrawText () methods.
9180 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
9182 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9183 background which got erased in my changes yesterday.
9185 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9187 * ListViewItem.cs: Actually set bounds for subitems in Details view
9189 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9190 can invoke from the owner draw routines if we need it. Also, add
9191 support for Owner draw in Details view.
9193 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9195 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9196 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9197 ShowImageMargin setting, properly align text in a ToolStripLabel
9198 hosted on a ToolStripDropDown.
9200 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9202 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9203 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9205 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9207 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9209 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9211 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9212 location to match ToolStripMenuItems.
9214 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9216 * DrawListViewColumnHeaderEventArgs.cs:
9217 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9218 column headers in ListView.
9220 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9222 * UserControl.cs: Implement AutoSize.
9224 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9226 * DrawListViewItemEventArgs.cs:
9228 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9231 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9233 * ToolStripDropDownItemAccessibleObject.cs: Added.
9234 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9235 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9236 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9237 ToolStripTextBox.cs: corcompare work.
9239 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9241 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9242 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9243 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9246 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9248 * OSFeature.cs: Add IsPresent.
9249 * PrintPreviewControl.cs: Add RightToLeft.
9250 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9251 * SplitterPanel.cs: Add AutoSizeMode.
9253 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9255 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9256 * MdiClient.cs: Add 2.0 ScaleControl.
9257 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9258 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9260 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9262 * Form.cs: Implement some scaling methods, stub some RTL methods,
9265 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9267 * Control.cs: corcompare work.
9268 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9270 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9272 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9273 ControlPaint 2.0 stuffs.
9275 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9277 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9279 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9281 * UpDownBase.cs: Add 2.0 stuffs.
9283 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9285 * NumericUpDown.cs: Add 2.0 stuffs.
9287 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9289 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9291 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9293 * ErrorProvider.cs: Implement 2.0 stuffs.
9295 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9297 * DomainUpDown.cs: Implement 2.0 stuffs.
9299 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9301 * CheckedListBox.cs: Fix RefreshItems signature.
9303 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9305 * PictureBox.cs: Implement 2.0 stuffs.
9307 2007-06-12 Andreia Gaita <avidigal@novell.com>
9309 * TabControl.cs: Check if there are tabpages before checking
9310 the selected index - fix #81802 (font changes raise a ResizeTabs
9311 call on controls.add, which blew up nicely with no tabpages)
9313 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9316 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9318 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9321 * ListViewItem.cs: In VirtualMode the selection information
9322 resides in the ListView, rather than in the Items. Also, throw
9323 InvalidOperationExceptions when VirtualMode is being used and
9324 CheckedItemCollection is accessed.
9326 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9328 * ComboBox.cs: Add ScaleControl.
9330 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9332 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9334 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9336 * GroupBox.cs: Add 2.0 stuffs.
9338 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9340 * Panel.cs: Add autosize properties/event.
9342 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9345 - When we remove a control, remove it from the collection before performing the layout.
9346 - Setup an internal property for explicit_bounds.
9347 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9348 - Perform a layout when we set a new AutoSizeMode.
9350 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9352 * ScrollableControl.cs: Add 2.0 stuffs.
9354 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9356 * ScrollBar.cs: Add 2.0 stuffs.
9358 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9360 * Splitter.cs: Add 2.0 stuffs.
9362 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9364 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9365 to have BindingContext simply use base implementation.
9367 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9369 * ColumnHeader.cs: corcompare fix.
9371 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9373 * Button.cs: corcompare fixes.
9374 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9376 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9378 * Button.cs: Override GetPreferredSizeCore.
9379 * ButtonBase.cs: PerformLayout after changing properties that can affect
9380 AutoSize. Simplify some mouse/keyboard code.
9381 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9382 * MouseEventArgs.cs: Make Location internal for 1.1.
9383 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9384 * Theme.cs: Add CalculateButtonAutoSize.
9385 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9387 2007-06-05 Miguel de Icaza <miguel@novell.com>
9389 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9391 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9393 * ListViewItem.cs: We can't cache Bounds in VirtualMode
9394 since we can get different item instances every time we retrieve it.
9396 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9398 * ListView.cs: Work around for #81602, since an unkown an pretty
9399 infrequent condition appears only in some systems (old linux boxes, it
9402 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9404 * Button.cs: Completely reformat and a little refactor to bring
9405 this closer to Mono circa 2007.
9407 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9409 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9410 to be ButtonBase.Invalidate.
9412 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9414 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
9416 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9418 * ButtonBase.cs: Completely reformat and a little refactor to bring
9419 this closer to Mono circa 2007.
9421 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
9423 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9424 values for autosize. Fixes #80137.
9426 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9428 * Control.cs: Don't perform layout when AutoSize changes.
9429 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
9430 directly when autosizing, use SetBounds with BoundsSpecified.None.
9431 Fixes unit tests my last commit broke.
9433 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9435 * Control.cs: Perform layout when AutoSize changes.
9436 * Form.cs: Implement AutoSizing.
9438 2007-06-01 Chris Toshok <toshok@ximian.com>
9440 * DataGrid.cs: remove the XXX'ed check at the top of
9441 ProcessGridKey. fixes #80464.
9443 2007-06-01 Chris Toshok <toshok@ximian.com>
9445 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9446 adding idempotent (add/remove in Edit()), and also make sure we
9447 don't add it until after we set the text, so it's not tripped in
9448 Edit(). Fixes unit test regression.
9450 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9452 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9453 change is user explicit, not when the layout engine moves stuff. Fixes
9454 anchoring to bottom and right. [Fixes bug #81790]
9456 2007-06-01 Andreia Gaita <avidigal@novell.com>
9458 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9460 2007-06-01 Andreia Gaita <avidigal@novell.com>
9462 * ContainerControl.cs:
9463 Fire enter event for common ancestor if it is not a ContainerControl.
9464 Send focus to the active_control and not the 'value', the active
9465 control might have been changed in one of the events fired.
9466 Definitely fixes #80159.
9468 2007-06-01 Andreia Gaita <avidigal@novell.com>
9470 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9472 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9474 * PropertyGrid.cs: Anchor the help description to the bottom of the
9475 help panel and refactor SelectGridItem into a
9476 SelectGridItemInternal that can be set to null (and update it to
9477 clear the help texts when it is set to null). Set root item to null
9478 when there's no SelectedObject. Fixes #80438.
9479 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9480 when we're recalculating after a resize (only).
9482 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9484 * ListView.cs: Implement 2.0 RedrawItems method.
9486 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9488 * ListControl.cs: Disconnect PositionChanged and ItemChanged
9489 handlers from previous data manager when DataSource is set to
9492 2007-05-31 Jackson Harper <jackson@ximian.com>
9494 * TextBoxBase.cs: These seem to be the correct values.
9496 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
9498 * FileDialog.cs: When close dialog with ok set filterindex using combobox
9499 value. Fixes #81784.
9501 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
9503 * Control.cs: Implement 2.0 scaling methods.
9505 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9507 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9508 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9511 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9513 * ProgressBar.cs: Implemented missing 2.0 members.
9515 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9517 * Control.cs: Corcompare issues.
9518 * MessageBox.cs: Implemented missing 2.0 functions.
9520 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9522 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9523 Implemented more 2.0 members.
9525 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9527 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9528 null (strange, but it seems to happen when running unit tests).
9530 2007-05-30 Andreia Gaita <avidigal@novell.com>
9532 * ContainerControl.cs: Set active_control even earlier, before
9533 firing any events, and undo it if validation returns false.
9535 2007-05-30 Andreia Gaita <avidigal@novell.com>
9537 * ContainerControl.cs: Raise Validation and Enter/Leave events
9538 even if there is no Form and set active_control earlier, just
9539 before firing Enter events (toshok's patches). Fixes #80647.
9541 2007-05-30 Jackson Harper <jackson@ximian.com>
9543 * TextControl.cs: Redid the pageup/pagedown a little to simplify
9544 things and fix bug #81311.
9546 2007-05-30 Jackson Harper <jackson@ximian.com>
9548 * X11Dnd.cs: Now that we have our own event loop, we need to
9549 cancel when we get a mouseup but it won't be accepted.
9551 2007-05-30 Chris Toshok <toshok@ximian.com>
9553 * DataGrid.cs (set_CurrentCell): guard against negative
9556 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
9557 array index syntax instead of looping over the property names.
9559 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
9560 and set IsInEditOrNavigateMode to false there.
9562 2007-05-30 Jackson Harper <jackson@ximian.com>
9564 * TreeView.cs: Make sure we don't get a bad visible order when
9565 setting to the top node. Fixes some misc crashing in
9568 2007-05-30 Andreia Gaita <avidigal@novell.com>
9570 * UserControl.cs: Add 2.0 AutoSizeMode
9572 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9574 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
9576 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9578 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
9579 lines. Fixes #80285.
9581 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9583 * DataGridColumnStyle.cs: Add char trimming column header text format.
9585 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
9587 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
9590 2007-05-29 Jackson Harper <jackson@ximian.com>
9592 * TreeNode.cs: Fix off by one on calculating whether or not a node
9595 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
9597 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
9598 * ScrollableControl.cs: Force an UpdateDistances when we move the
9602 2007-05-29 Andreia Gaita <avidigal@novell.com>
9604 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
9605 update the page setup screen.
9607 2007-05-29 Andreia Gaita <avidigal@novell.com>
9609 * PageSetupDialog.cs: Fix landscape mode.
9611 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9613 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
9614 IconSizeHorizontalSpacing.
9616 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618 * ListView.cs: The declaration of prev_tooltip_item should be inside
9619 a NET_2_0 conditional (avoid a warning).
9621 2007-05-28 Andreia Gaita <avidigal@novell.com>
9623 * PageSetupDialog.cs: Implement PrintPreview control to display
9624 the preview thumbnail. Change unit conversion to use
9625 PrinterUnitConvert methods.
9627 Note: there is a huge bug in ms.net where the default margins are
9628 interpreted as centimeters (?), when in fact they are set in inches. When
9629 loading the page setup dialog initially (ms.net), the default margins
9630 are set to 1 inch, and the dialog shows them with value 10, when in fact
9631 it should be 25 (properly converted). Our dialog doesn't have this bug.
9633 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
9635 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9637 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9640 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9643 2007-05-28 Andreia Gaita <avidigal@novell.com>
9645 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9646 an IntPtr on csc (it builds fine on mcs, could it be a compiler
9647 bug?), convert the ptr to Int32 first.
9649 2007-05-28 Jackson Harper <jackson@ximian.com>
9651 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9652 recieved, we will exit the dnd tracking loop.
9654 2007-05-28 Jackson Harper <jackson@ximian.com>
9656 * X11Dnd.cs: Keep tracking until the xdnd finished event is
9657 recieved. TODO: I should probably stick a timer on the dropped
9658 event, and finish the drag if the XDND Finished event never shows
9659 (because some apps don't seem to send it).
9661 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
9663 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9666 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9668 * MonthCalendar.cs: Only mark the keypresses we actually handle as
9671 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9673 * MonthCalendar.cs: Set the size after initializing all the relevant
9674 variables. Fixes #81742.
9676 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
9678 * KeyEventArgs.cs: Fix typo.
9680 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
9682 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9683 to match MS. Fixed MinDate to only accept value less than or equal
9684 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9685 Removed TODO's that are now verified by unit tests.
9687 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
9689 * TreeNodeCollection.cs: Minor corrections to exceptions to match
9692 2007-05-25 Jackson Harper <jackson@ximian.com>
9694 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9695 it's own message loop.
9696 * XplatUIX11.cs: Remove some of the dnd hooks
9698 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
9700 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9701 instead of MinimizedWindowSize.
9703 2007-05-25 Jackson Harper <jackson@ximian.com>
9705 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
9707 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9709 * KeyEventArgs.cs: Added SuppressKeyPress.
9710 * Control.cs: Added support for SuppressKeyPress.
9712 2007-05-24 Andreia Gaita <avidigal@novell.com>
9714 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
9715 problems with PieChart. suppress_validation should not be a counter,
9716 if there are several BeginInit calls, the first EndInit will
9717 activate validation. Fix exceptions thrown by set_Value.
9718 * UpDownBase.cs: ValidateText only if it's the user editing it.
9720 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9722 * ListControl.cs: FilterItemOnProperty should return the filtered
9723 item proeprty even if DataSource is null. The same applies for
9724 GetItemText. Fixes #80427.
9726 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9728 * Control.cs: If a control doesn't have a parent when it's Dock is
9729 set, but it has children, it needs to do a layout. Fixes some nested
9730 controls issues. [Fixes bug #81199]
9732 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9734 * ComboBox.cs: If there are few items in the drop down list, make it
9735 the exact size the items need, no bigger. Fixes #81612.
9737 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9739 * Application.cs: When we have captured the keyboard for a menu,
9740 check for mouse down events in case we need to close the menu.
9741 * Control.cs, Form.cs: Remove mouse down checks for menus.
9743 2007-05-24 Jackson Harper <jackson@ximian.com>
9745 * TextControl.cs: Handle tabs in non multiline mode a little
9748 2007-05-24 Jackson Harper <jackson@ximian.com>
9750 * TextControl.cs: We need to manually break apart tabbed text and
9751 move the tabs, since the system.drawing tabbing mechanism relies
9753 * TextBoxBase.cs: Move the caret properly when the user enters a
9756 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
9758 * ContainerControl.cs: Don't check CanSelect before calling
9760 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
9761 release a KeyboardActive on click if it's not ours.
9763 2007-05-23 Andreia Gaita <avidigal@novell.com>
9765 * ColumnHeader.cs: Add TypeConverter
9767 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9769 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
9771 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9773 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
9775 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9777 * LinkLabel.cs: Implement public Padding property.
9779 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9781 * LinkLabel.cs: Implement public FlatStyle.
9783 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
9785 * Control.cs: Apply patch from George to call parent.PerformLayout
9786 when Visible is changed. [Fixes bugs #81118, 81718]
9788 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9790 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
9792 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9794 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
9796 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
9798 * ContextMenu.cs: Implement Collapse.
9800 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9802 * ToolBarButton.cs: Implement Name.
9804 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9806 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
9807 use current_item, it prevents some NRE. Fixes #81675.
9809 2007-05-22 Andreia Gaita <avidigal@novell.com>
9811 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
9812 without updating the text.
9814 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9816 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
9817 without calling DeleteObject. [Should fix bug #81709]
9819 2007-05-22 Jackson Harper <jackson@ximian.com>
9821 * RichTextBox.cs: Set the line endings correctly, when flushing
9824 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
9826 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
9829 2007-05-22 Jackson Harper <jackson@ximian.com>
9831 * TreeView.cs: Setting top with a null node should set to the very
9834 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9836 * Form.cs: ShowDialog: destroy the handle when message loop is
9837 finished, matches MS behaviour. Refactor parts of WmClose into
9838 RaiseCloseEvents, that only raises events if they haven't already
9839 been raised. Fixes #81688 and #81521.
9840 * Application.cs: Don't call close on the form when exiting a modal
9841 loop, it will raise all the (Form)Closed/Closing events again if
9842 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
9843 which doesn'r raise any events it they have been raised before.
9845 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
9847 * Control.cs: Add OnPrint.
9848 * ToolStrip.cs: Add GetChildAtPoint.
9849 * ToolStripContainer.cs: Add OnRightToLeftChanged.
9850 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
9852 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
9854 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
9856 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9858 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
9859 isn't visible anymore. Fixes #81651.
9861 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9863 * Control.cs: WmShowWindow: Update children's z-order after setting
9864 their parent. SetParent may show the window, thereby corrupting
9865 z-order, since the window will be shown on top.
9866 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
9867 multiple (and redundant) WM_SHOWWINDOW messages.
9868 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
9869 event has already been raised.
9870 * Form.cs: Change is_changing_visible_state to a counter, since
9871 SetVisibleCore can be called recursively. CreateHandle: when
9872 creating mdi children, send (De)Activated events.
9873 * MdiClient.cs: Update use of is_changing_visible_state.
9874 * Application.cs: OnThreadException: Surround exception handling with
9875 try/finally to ensure we always reset the error-handling state
9878 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
9880 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
9883 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9885 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
9886 SmallIcon views, now that we have a standarized horizontal spacing.
9888 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
9889 4, just like the other views (Match .Net).
9891 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
9893 * Control.cs: Delay calculating anchor distances until we actually layout.
9894 Always query the WM for the actual size and location it put us at instead of
9895 only when we send negative values.
9896 [Fixes bugs #81694, 81695]
9898 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
9900 * Application.cs: Avoid a possible stack overflow when trying to exit
9903 2007-05-19 Marek Safar <marek.safar@gmail.com>
9905 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
9908 2007-05-19 Andreia Gaita <avidigal@novell.com>
9910 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
9911 * NumericUpDownAcceleration.cs,
9912 NumericUpDownAccelerationCollection.cs: Added 2.0
9915 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
9917 * RichTextBox.cs: Recalculate the document after the ScrollBars
9918 property is changed. Fixes bug #81681.
9920 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9922 * DataObject.cs: Implement 2.0 methods.
9924 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9926 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
9927 in the center of the checkbox, not in the left-top corner.
9930 2007-05-18 Jackson Harper <jackson@ximian.com>
9932 * RichTextBox.cs: Recalculate the document after the scrollbars
9933 property is changed.
9934 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
9937 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9939 * CreateParams.cs: Make HasWindowManager marginally faster.
9940 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
9941 into Hwnd so that other drivers can use it as well.
9942 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
9943 the default location from Hwnd. Fixes MDI client windows always
9944 showing up at (0,0) in Windows (Win32 won't set the default
9945 location since the window styles aren't correct).
9947 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
9949 * TreeView.cs: Modified DoubleBuffered to just use the base
9952 2007-05-18 Jackson Harper <jackson@ximian.com>
9954 * TreeView.cs: Set the top node to the last child node when
9956 - When we get focus, if there is no selected node, use the top
9959 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
9961 * KeysConverter.cs: Add CanConvertTo.
9962 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
9963 * LinkConverter.cs: Added.
9965 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9967 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
9968 it prevents error when file dont have write access. Fixes #81669 and #81667.
9970 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9972 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
9973 button text. Fixes #79640.
9975 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9977 * Control.cs: According to MSDN controls created in the designer theres
9978 keyboard accelerators visible by default. So included check for design
9979 in ShowKeyboardCuesInternal.
9981 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9983 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
9986 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9988 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9989 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
9991 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9993 * Control.cs: Finish implementation of UI State using WmChangeUIState
9994 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9995 in some controls to check for show_keyboard_cues to draw accell keys "_".
9997 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9999 * ListBox.cs: When calculating the horizontal scrollbar
10000 in single column mode, don't use values less than 0 for
10001 Maximum. Fixes #81474.
10003 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10005 * ListBox.cs: Throw the some missing exceptions in
10006 ListBox.ObjectCollection methods.
10008 2007-05-17 Jackson Harper <jackson@ximian.com>
10010 * TextBoxBase.cs: Recalculate the document when the word wrap
10011 value has changed. This fixes 81488.
10013 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10015 * Clipboard.cs: Implement missing GetText overload.
10017 2007-05-17 Chris Toshok <toshok@ximian.com>
10019 * Control.cs (CheckDataBindings): remove the binding_context arg
10022 * CurrencyManager.cs (OnItemChanged): fix this now that
10023 BindingManagerBase is fixed. also remove the comment telling where
10024 the fix should go. We set transfering_data to true/false around
10025 the call to PushData to keep UpdateIsBinding from being called.
10026 (ListChangedHandler): remove the extra OnMetaDataChanged call for
10027 PropertyDescriptorAdded in the 1.1 case. The extra call is
10028 actually generated by System.Data generating 2 metadata changed
10029 events of its own per column add. The fix should go there. Add a
10030 comment to that affect in our test's Assert.Ignore.
10032 * BindingManagerBase.cs: Rework PullData and PushData slightly.
10033 we keep a boolean flag (transfering_data) that keeps us from
10034 calling UpdateIsBinding multiple times if we re-enter either of
10037 * ControlBindingsCollection.cs (AddCore): remove the
10038 binding_context arg to binding.Check.
10040 * Binding.cs (IsBinding): don't check if we're binding here, just
10041 return our cached value. we update it in UpdateIsBinding.
10042 (Check): don't take the binding_context arg, we'll just use our
10043 control's. Also, for some reason MS doesn't use the data member
10044 field when getting the bindingmanager for this binding. it just
10045 uses the datasource. Make this method callable multiple times,
10046 and only do the is_null_desc stuff if manager.Position != -1 (so
10047 we don't get an exception accessing manager.Current).
10048 (UpdateIsBinding): move the code from IsBinding here.
10049 (PositionChangedHandler): call Check here to we can initialize
10050 things that require a non- -1 position.
10052 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10054 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10057 2007-05-17 Andreia Gaita <avidigal@novell.com>
10059 * TabControl.cs: Add 2.0 methods and events, including
10060 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10061 * TabPage.cs: Add 2.0 methods
10063 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10065 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10066 keyboard_cues is properly handled by message method.
10068 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10070 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10072 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10074 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10076 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
10079 - WmUpdateUIState added to handle state changes, it make call to
10080 OnChangeUICues event.
10081 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10084 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
10086 * ImageKeyConverter.cs: Added.
10087 * TreeViewImageKeyConverter.cs: Added.
10089 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10091 * ToolTips.cs: Update Text if SetToolTip is called for a control
10092 already showing the tooltip, as well as restarting its timer; show
10093 tooltip if we are inside the control bounds by the time of calling
10094 SetToolTip. Inside ShowTooltip remove the check to not show the
10095 tooltip again for the active control (it is allowed by .Net to
10096 show the tooltip on the same control multiple times).
10098 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10100 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10102 2007-05-16 Andreia Gaita <avidigal@novell.com>
10104 * ContainerControl.cs: only process tab key if there are no
10105 modifier keys present, otherwise the control does the
10106 tab processing, if it needs to. Fixes #81622
10107 * TabControl.cs: Fixes calculation for which tab to select on
10110 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10112 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10114 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
10116 * Control.cs: Make IsInputCharInternal to allow controls to
10117 override it and still match MS API.
10118 * TextBoxBase.cs: Override IsInputCharInternal and always
10122 2007-05-15 Jackson Harper <jackson@ximian.com>
10124 * TextBox.cs: Disable some of the menu options when using a
10127 2007-05-15 Jackson Harper <jackson@ximian.com>
10131 * RichTextBox.cs: Some new 2.0 methods
10133 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
10135 * FileDialog.cs: On 1.0 profile, do not support multidotted
10138 2007-05-14 Jackson Harper <jackson@ximian.com>
10140 * TextBoxBase.cs: Implement some of the new 2.0 methods.
10141 * RichTextBox.cs: We need to override these methods on 2.0.
10142 * MaskedTextBox.cs: These are implemented now
10143 * TextControl.cs: This was off by one.
10145 2007-05-14 Jackson Harper <jackson@ximian.com>
10147 * TextControl.cs: Because the line endings are including in the
10148 text, we don't need to add them in anymore.
10150 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10152 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10153 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10155 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10157 * ToolBar.cs: Adjust size to default size when button theres no text and
10158 image, it fixes remaining issues from #81524.
10160 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10163 - When not flat call redraw to recalculate sizes on creare handle to match
10165 - Revert 77220 because it causes some regressions in toobar
10168 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10170 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10171 now actually enters a usable state.
10173 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10175 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10176 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10179 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10181 * ToolBar.cs: Save default_size on create handle to use later for buttons
10182 without text, needed to mimic win32 behavior.
10184 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10186 * ToolBar.cs: Fix button layour to best fit width or height according to
10187 vertical or not. Fixes #81524.
10189 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10191 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10192 toolbar size info because different styles theres different sizes.
10195 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10197 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10198 if we are using checkboxes, checked is true, and we have less
10199 than two images in StateImageList; for the 1.1 in the same scenario
10200 draw the first image if we have at least one image in StateImageList.
10201 Fixes part of #81191.
10203 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10205 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10206 the owner's Items collection on merge.
10208 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10210 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10211 * ToolStripItemCollection.cs: Lots of fixes to when events get called
10212 and parent/owner gets changed based on gert's unit tests.
10214 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10216 * MaskedTextBox.cs: Started implementing parts of it.
10218 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10220 * ListView.cs: When clicking the checkbox on the items
10221 take into account the double clicks even if we have only
10222 one image in StateImageList (only for 1.0/1.1). Also
10223 generate an extra change of checked state when we receive
10224 the second click on checkbox (match .Net behaviour).
10225 Fixes part of #81191.
10227 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10229 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10231 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10233 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10234 even if OnLoad is overriden and base.OnLoad is not called.
10237 2007-05-10 Andreia Gaita <avidigal@novell.com>
10239 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
10240 shame. (I blame my ever-persisting and annoying cold)
10242 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10244 * ListView.cs: Don't eat navigation keys. Let them flow through to
10245 KeyDown/KeyPress routines. [Fixes bug #81569]
10247 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10249 * ListView.cs: When handling keys for selecting the item based off
10250 keyboard input, do not consider keys pressed with Alt or Control. Also,
10251 correctly handle keys when the Shift key is down. [Fixes bug #81578]
10253 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10255 * Control.cs: When using UseWaitCursor, we have to store the requested
10256 Cursor to use when UseWaitCursor is turned off.
10258 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10260 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
10262 * Application.cs: Use PreProcessControlMessage instead of
10264 * PreProcessControlMessage.cs: Make internal for 1.1.
10266 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10268 * Control.cs: Add InternalContains focus property, which hast the same
10269 functionality of ContainsFocus, but also including implicit controls.
10270 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10271 since we need to know if the focus is contained in our implicit
10272 ItemControl when calculating Layout. Fixes part of #80888.
10274 2007-05-08 Everaldo Canuto <everaldo@simios.org>
10276 * ToolTip.cs: Remove center form string alignment as it must be align to
10279 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
10281 * ToolStripItemCollection.cs: Set the new item's parent and owner
10282 in Insert like we do in Add. [Fixes bug #81568]
10284 2007-05-08 Jackson Harper <jackson@ximian.com>
10286 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10287 - Off by one error in SetTop
10288 - Disable DoubeBuffering
10290 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10292 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10293 control as much as necessary in order to make it entirely visible,
10294 instead of centering the control in the container (matches MS
10295 behaviour). CalculateCanvasSize: we need to take the current scroll
10296 position into account when calculating the maximum canvas,
10297 otherwise the following scenario will fail: resize so that the
10298 scrollbars appear, use the scrollbars to scroll, resize again
10299 smaller, and now the canvas size is too small. Recalculate: when
10300 showing scrollbars make sure they start off at 0, and try to scroll
10301 the active control into view. Fixes #79540. HandleScrollBar: don't
10302 scroll anywhere if the scrollbar isn't visible.
10304 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10306 * ListView.cs: When focus changed, call Layout/Invalidate
10307 in the focused item to update the selected state (should show
10308 entire label when ListView is focused, and a part of it if is not).
10309 * ListViewItem.cs: When doing layout for LargeIcon, take into account
10310 for displaying the entire label not only the Focused state of the
10311 item, but also the Focused state of the ListView (match .Net
10314 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10316 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10317 Implement UseWaitCursor.
10319 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10320 Applying contributed patch from Sergey Volk.
10322 * Clipboard.cs: Implement SetDataObject retry logic and new overload
10324 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10326 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10328 * Control.cs: Implement DrawToBitmap.
10330 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10331 Applying contributed patch from Stefan Noack.
10333 * Control.cs: Add [Get|Set]AutoSizeMode.
10335 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10337 * MdiClient.cs: Unmerge menus when the last child is closed.
10339 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10341 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10342 * ToolStripManager.cs: Call Merge on DropDowns.
10345 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10347 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10349 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10350 visibility. We can't create forms visible, since we have to set the
10351 owner before making the form visible (otherwise Win32 will do
10352 strange things with task bar icons). The problem is that we set the
10353 internal is_visible to true before creating the control, so
10354 is_changing_visible_state is the only way of determining if we're
10355 in the process of creating the form due to setting Visible=true -
10356 this works because SetVisibleCore explicitly makes the form
10357 visibile afterwards anyways. Fixes #80775.
10359 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10361 * ThemeWin32Classic.cs: When drawing ListViewItems,
10362 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10363 or LargeIcon _and_ item is not focused (match .Net behaviour).
10365 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10367 * Control.cs, Form.cs: Fix some obsolete method warnings.
10369 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10371 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10372 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10374 2007-05-04 Andreia Gaita <avidigal@novell.com>
10376 * ContainerControl.cs: Fix active_control attribution when going
10377 up the parent chain so that the first parent container gets the control
10378 and the rest of the parent containers get the child containers (skips
10379 non-containers). Fixes #80729
10381 2007-05-04 Randolph Chung <tausq@debian.org>
10383 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10386 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10388 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10389 takes a size parameter, since the CreateParam's size isn't true for
10390 minimized forms. Fixes #81518,
10392 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10394 * Form.cs: Add OnDeactivateInternal.
10395 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10397 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10399 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10400 accessing the parent. Fixes #81508.
10402 2007-05-03 Chris Toshok <toshok@ximian.com>
10404 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10405 2.0 block, pass listposition + 1 to ChangeRecordState when a row
10406 was added before the current listposition. Fixes the
10407 TestInsertRowBeforeCurrent unit test.
10409 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
10411 * Application.cs: Add RaiseIdle.
10412 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10413 XplatUIX11.cs: Implement RaiseIdle.
10415 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
10416 corcompare work: N - Z
10420 * ScrollableControl.cs
10421 * SplitContainer.cs
10424 * SystemInformation.cs
10426 * TableLayoutControlCollection.cs
10427 * TableLayoutPanel.cs
10432 * ToolStripComboBox.cs
10433 * ToolStripContainer.cs
10434 * ToolStripContentPanel.cs
10435 * ToolStripDropDown.cs
10436 * ToolStripDropDownItem.cs
10437 * ToolStripDropDownMenu.cs
10439 * ToolStripItemCollection.cs
10440 * ToolStripMenuItem.cs
10441 * ToolStripPanel.cs
10442 * ToolStripSplitButton.cs
10445 * TreeNodeCollection.cs
10446 * TreeNodeMouseHoverEventArgs.cs
10449 2007-05-01 Everaldo Canuto <everaldo@simios.org>
10451 * ContextMenu.cs: Add public method Show with alignment property to 2.0
10452 stuff. Thanks aatdark for the patch.
10454 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10456 * GridItem.cs: Implement 2.0 Tag property.
10458 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
10460 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10461 count instead of Nodes.Length. [Fixes bug #81448]
10463 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10465 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10468 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10469 corcompare work: A - M
10470 * BindingNavigator.cs
10475 * FlowLayoutPanel.cs
10481 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10483 * Application.cs: Give toolstrips a chance to process mnemonics.
10484 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10485 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10486 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10488 2007-05-01 Jackson Harper <jackson@ximian.com>
10490 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10492 - Don't set the BoundsSpecified
10494 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10496 * Application.cs: When using the toolstrip shortcut mechanism, allow the
10497 message to pass through to a regular control if it hosted by a toolstrip.
10498 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10499 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10501 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10503 * TextRenderer.cs: Use the flags argument when using the MeasureString
10504 fallback algorithm.
10506 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10508 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10509 the MDI menu item. [Fixes bug #81483]
10511 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
10513 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10514 string. When setting Name to null, use zero-length string instead.
10516 2007-04-29 Andreia Gaita <avidigal@novell.com>
10518 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
10519 DeselectTab). Implement missing 2.0 TabPageCollection methods
10520 (Add, ContainsKey, RemoveByKey, IndexOfKey)
10522 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
10524 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10526 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
10528 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10529 Fixes bug #81479. Include details of exception when LoadFile fails.
10531 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
10533 * DrawListViewSubItemEventArgs.cs: Added missing setter
10535 2007-04-27 Andreia Gaita <avidigal@novell.com>
10537 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
10538 Hide methods (not complete). Implement missing 2.0 OnPopup event.
10540 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10542 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
10543 removed in ly last commit (it was breaking the Label edit feature).
10545 * ThemeWin32Classic.cs: When drawing a ListViewItem use
10546 StringAlignment.Near for LineAlignment (match .Net).
10548 2007-04-27 Andreia Gaita <avidigal@novell.com>
10550 * TabControl.cs: Change SetTab so it adds the tabpage to the list
10551 of controls if it isn't already there - was blowing up when doing
10552 tabcontrol.TabPages[i]=new TabPage().
10553 SetTab now does a replace by removing the page at the index.
10554 Add a new InsertTab method that inserts a page in a given index
10555 instead of replacing.
10556 Implements TabPageCollection.Insert(int, TabPage).
10558 2007-04-27 Chris Toshok <toshok@ximian.com>
10560 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
10561 internal handler that can be invoked from our subclasses.) Also,
10562 add a comment to PushData about how we need to fix it.
10564 * CurrencyManager.cs: tons of changes here. trying to get things
10565 matching the behavior of .net wrt event orders (ItemChanged,
10566 CurrentChanged, PositionChanged.) I've implemented a private .net
10567 symbol (ChangeRecordState) that appears in stack traces because
10568 it's actually easier to do this than to effective inline all its
10569 various behaviors at every call site.
10571 * RelatedPropertyManager.cs: guard against an exception here by
10572 not using parent.Current if the position is set to -1 (if the
10573 parent datasource is cleared, for instance).
10575 * Binding.cs: don't parse data in PushData (this might be wrong,
10576 but it jives with MS's behavior.) Also, don't call PushData when
10577 we get a CurrentChanged event.
10579 2007-04-27 Andreia Gaita <avidigal@novell.com>
10583 WebBrowserSiteBase.cs,
10584 HtmlDocument.cs: Added stubbed out classes, no real implementations
10587 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10589 * MainMenu.cs: In draw method without parameters call draw method with
10590 PaintEvent, another one (just rect) adjust rectangle and we dont need it
10591 as Rect property is already adjusted. Fixes #80694.
10593 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
10595 * Application.cs: Need to handle keyboard menu deselection here.
10596 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
10597 navigation, allowing keyboard to work on X11.
10598 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
10600 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10602 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
10603 menu bar. It fixes some drawing issues in menu bar.
10605 2007-04-27 Everaldo Canuto <everaldo@simios.org>
10607 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
10608 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
10609 when <alt> key is pressed.
10611 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10613 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
10614 example just set visible to false and make this prevent from other problems.
10615 In SystrayAdd always remove pending expose. Fixes #81072.
10617 2007-04-26 Marek Safar <marek.safar@gmail.com>
10619 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
10622 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10624 * ListView.cs: Added three missing 2.0 events and corresponding
10625 EventHandlers. Added the OwnerDraw property.
10626 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
10628 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10630 * DrawListViewItemEventArgs.cs
10631 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10633 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
10635 * TextControl.cs: Fixed typo in constructor
10637 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
10639 * Application.cs: Create a shortcut path so that currently selected
10640 MenuStrips can intercept keyboard events without having focus.
10641 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10642 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10643 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10644 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
10645 generate WM_SYSCOMMAND message in X11 for other platforms.
10646 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10647 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10648 * ToolStripSplitButton.cs: Add DefaultItem property.
10650 2007-04-26 Everaldo Canuto <everaldo@simios.org>
10652 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10653 fixes some menu draw problem on Windows with border diferent from default
10654 it also fixes #81403.
10656 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10658 * Form.cs: Refactor WndProc into separate methods, just like Control is
10661 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10663 * Control.cs: set_Text: move the call to the driver into a seperate
10664 virtual method so that Form can override it.
10665 * MaskedTextBox.cs: Corcompare fixes.
10666 * Form.cs: Override UpdateWindowText and only update the styles if the
10667 form has been shown (fixes #81405).
10669 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10671 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10672 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10673 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
10674 the form lost focus or another control was clicked.
10676 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
10678 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10681 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10683 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10684 DrawListViewItemEventHandler.cs,
10685 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10687 * X11Structs.cs: More ToString implementation.
10689 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
10691 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10692 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10694 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10696 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10698 * FormCollection.cs: Don't add a form if it's already in the
10700 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10701 according to behaviour and MSDN. The ownerWin32 is the active
10702 window at the moment when we call ShowDialog, not the context's
10703 main form (the context's main form may open another form that opens
10704 a form with ShowDialog, the win32 owner is the second form). Add
10705 and remove forms to the Application.OpenForms in other places to
10706 better match MS behaviour. Add an IsActive property that raises
10707 On(de)Activated only if the active state has changed (we were
10708 raising OnDeactivated before OnActivated while creating forms).
10709 * Application.cs: Refactor Enabling/Disabling of windows for modal
10710 dialog loops out to separate methods, and restore the thread
10711 context when we quit the method. Fixes #81407.
10713 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10715 * ListView.cs: In ItemControl.HandleClicks, also fire
10716 2.0 MouseClick or MouseDoubleClick events on the parent,
10717 not only the Click/DoubleClick events.
10719 2007-04-24 Andreia Gaita <avidigal@novell.com>
10721 * TableLayoutSettings.cs:
10722 - Added a GetControls method and a support structure to help the
10723 TypeConverter to enumerate the controls for serialization.
10724 - Added a new serialization constructor.
10725 - Added a isSerialized flag initialized to true on the
10726 serialization constructor so that the TableLayoutPanel.LayoutSettings
10727 setter does not throw the designed NotSupportedOperation exception
10728 when the object is built through deserialization.
10729 - Implemented GetObjectData
10731 * TableLayoutPanel.cs: Added check on LayoutSettings.
10733 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10735 * ListView.cs: Report Click and DoubleClick events to the parent
10736 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
10737 from breaking the click count state when using dialog forms (Control
10738 reports the clicks in a similar fashion). In the previous behaviour
10739 the last WM_LBUTTONUP message in a double click was sent to the
10740 ListView's form, instead of the ListView, which was breaking the click
10741 count for it. Fixes #80387.
10743 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10745 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
10747 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10749 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
10750 us from created dropdowns for menu items that do not have subitems.
10751 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10752 Check HasDropDownItems before calling DropDown so a dropdown will not be
10753 created if it isn't needed.
10755 2007-04-24 Jackson Harper <jackson@ximian.com>
10757 * TreeView.cs: Set the first node to the selected node when we get
10758 focus if there is no selected node.
10760 2007-04-24 Andreia Gaita <avidigal@novell.com>
10762 * MimeIcon.cs: remove using blocks so that image streams are
10763 not disposed of. Fixes #80151
10765 2007-04-24 Jackson Harper <jackson@ximian.com>
10767 * TextBoxBase.cs: Fixup the height of textboxes when the control
10770 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
10772 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
10773 for each ToolStripItem when the parent's RightToLeftChanged is called.
10775 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10777 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
10779 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
10780 property, so that the setter can be overriden too.
10781 * TextBox.cs: Change GetContextMenuInternal() to use
10782 ContextMenuInternal.
10784 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10786 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10789 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10791 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10794 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10796 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
10797 avoid duplicate work. Mostily skeleton code, it's not working at
10800 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
10802 * NotifyIcon.cs : stub for MouseClick event
10803 * Application.cs: stub for SetUnhandledExceptionMode
10805 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
10807 * BindingNavigator.cs : Initial (partial) implementation
10809 2007-04-23 Jackson Harper <jackson@ximian.com>
10811 * TreeView.cs: Do not create the treeview's handle when setting
10812 the scroll position.
10813 - ExpandAll needs to compute the scrollbars so it knows which
10814 position to set the bar too.
10816 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
10818 2007-04-23 Jackson Harper <jackson@ximian.com>
10820 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
10823 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
10825 * ToolStripItem.cs: Make GetImageSize internal.
10826 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
10827 need to draw an item. Fixes a reported issue where images on menus
10828 that were not 16x16 were drawing incorrectly.
10830 2007-04-21 Miguel de Icaza <miguel@novell.com>
10832 * Padding.cs: Use the converter, fixes the resgen2 issue with
10835 2007-04-21 Jackson Harper <jackson@ximian.com>
10837 * TreeView.cs: Dont try to unhighlight the selected node if there
10838 isn't a selected node.
10840 2007-04-21 Jackson Harper <jackson@ximian.com>
10846 * TreeView.cs: Use the InternalBorderStyle property to set the
10847 initial border style, this forces the client rectangle to be sized
10850 2007-04-20 Jackson Harper <jackson@ximian.com>
10852 * TreeView.cs: Simplify scrolling to the last node after expanding
10854 - Fix some off by ones with setting the bottom.
10856 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10858 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
10859 that. We were incorrectly doing it the other way around. Also,
10860 update ClientSize if we change the BorderStyle before the control
10863 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10865 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10866 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10867 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
10868 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10869 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10870 Caption to CaptionHeight.
10871 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
10872 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
10873 and FixedFrameBorderSize to return value from current XplatUI driver.
10874 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
10875 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
10876 and FixedFrameBorderSize using win32 API. Renamed Caption to
10878 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
10879 * SystemInformation.cs: Fixed typo in BorderSize.
10881 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
10883 * XplatUI.cs: Added MenuAccessKeysUnderlined.
10884 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
10885 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
10887 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
10888 value from XplatUI driver.
10889 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
10890 SystemParametersInfo.
10891 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
10893 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
10896 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10898 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
10900 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10902 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
10904 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
10906 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
10907 MenuStrips that contain ToolStripSeparators.
10909 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
10911 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
10912 DefineStdCursorBitmap.
10913 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
10914 has been created off a standard cursor. This is used to get a
10915 bitmap of the standard cursor when Draw or DrawStretched is called
10916 in order to draw the cursor.
10917 * X11Structs.cs: Added XcursorImage and XcursorImages.
10918 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
10919 DefineStdCursorBitmap.
10920 * Cursors.cs: Update all relevant creations of Cursor to use the new
10921 internal constructor.
10923 2007-04-19 Jackson Harper <jackson@ximian.com>
10925 * TextBox.cs: Move the has_been_focused into the base control, so
10926 some of the text adding methods can manipulate it (probably time
10927 for a better name for this flag too).
10928 - Call a new version of selectall that doesn't scroll
10929 * TextBoxBase.cs: When we append text, if the document is empty,
10930 don't scroll. If the document has text already, we scroll to the
10931 end of the appended text.
10932 - When the text is changed, we reset the has_been_focused, so the
10933 next time the control gets focused, all the text is selected.
10935 2007-04-19 Jackson Harper <jackson@ximian.com>
10937 * TextControl.cs: Move the margins to the document, add a method
10938 so the margin sizes can be updated.
10939 * TextBoxBase.cs: When the border style is changed, update the
10942 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
10944 * Control.cs: Respect DefaultPadding.
10945 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
10946 padding into account.
10947 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
10949 2007-04-19 Jackson Harper <jackson@ximian.com>
10951 * TextControl.cs: Oops, we need to use the ClientRect not the
10954 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10956 * ListView.cs: In ItemControl.ItemsMouseDown, take into
10957 account the double clicks when CheckBoxes are used and
10958 the pointer is inside the checkbox. Fixes part of #81191.
10960 2007-04-18 Jackson Harper <jackson@ximian.com>
10962 * TextControl.cs: Pressing the end key shouldn't move the caret
10963 past the line ending.
10964 * TextBoxBase.cs: We can still delete if we are in the line
10965 ending and the combine will just kill the existing line ending.
10967 2007-04-18 Jackson Harper <jackson@ximian.com>
10969 * TextControl.cs: We can't move lines, then invalidate their
10970 bounds, we need to get the old bounds and combine that with the
10972 * TextBoxBase.cs: Before combining two lines for a delete, we need
10973 to invalidate the area of the old line, since that will be moved
10974 in the combine operation.
10976 2007-04-18 Everaldo Canuto <everaldo@simios.org>
10978 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10979 with transparent background. Fixes #80482.
10981 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
10983 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10984 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10987 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10989 * CreateParams.cs: Add a couple of helper methods and do a less string
10990 concatenation in ToString.
10991 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10992 overload that takes a Control parameter, since this method may be
10993 called before a control is assigned to the hwnd (from
10994 CreateWindow), and update CreateWindow to use the new overload. In
10995 GetMenuOrigin subtract the title bar from the y position if the
10996 form has a window manager (since we're painting it and not X).
10997 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10998 CreateParams to calculate the origin (since border sizes may vary).
10999 In ScreenToMenu only subtract the title height if we actually have
11001 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11002 mdi children never have menus of themselves.
11003 * InternalWindowManager.cs: Implement menu handling like form does.
11004 Added GetMenuOrigin to calculate the menu origin, can't use the
11005 CreateParams from the form like normally since it's lying.
11006 * Hwnd.cs: Implement GetBorderSize better (in the sense more
11007 windows-like) and add Inflate and comparison operators to the
11008 Borders type. When calculating MenuOrigin and it's a form with a
11009 window manager, use the window manager to calculate it.
11011 2007-04-17 Chris Toshok <toshok@ximian.com>
11013 * Control.cs (CreateControl): turns out in 2.0 we don't need this
11014 OnBindingContextChanged thing here. It's only generated from
11015 ContainerControl.OnCreateControl. Fixes a newly written unit test
11016 - BindingTest.BindingContextChangedTest4.
11018 2007-04-17 Jackson Harper <jackson@ximian.com>
11020 * ScrollBar.cs: When setting values, make sure the current
11021 position stays within the new values range.
11023 2007-04-17 Chris Toshok <toshok@ximian.com>
11025 * Control.cs (CreateControl): talk about a bizarre corner case.
11026 Don't emit OnBindingContextChanged here if we're a parentless
11027 control (i.e. if we're a form.). Fixes
11028 BindingTest.BindingContextChangedTest2.
11030 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11032 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
11033 from win32. Fixes #81255.
11035 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11037 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11038 already present in CalculateButtonTextAndImageLayout.
11040 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11042 * XplatUIX11.cs: When setting min/max size for a window we need to
11043 translate the coordinates to x coordinates. Create an overload of
11044 SetWindowMinMax that takes a CreateParams handling this, and change
11045 SetWMStyles to call this function (can't use Control.FromHandle in
11046 the SetWindowMinMax to get the control/CreateParams from the handle
11047 because the handle might not have been assigned to the control
11048 yet). Fixes #81371.
11050 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11052 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11053 if StateImageList is non-null and it has less than two items (match MS
11054 behaviour). Also, in HandleNavKeys handle the Space key, calling
11055 the new ToggleItemsCheckState method, which tries to change the
11056 checked state of the selected items. Fixes part of #81191.
11058 2007-04-16 Jackson Harper <jackson@ximian.com>
11060 * RichTextBox.cs: namespace cleanup.
11062 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11064 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11066 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11069 * Control.cs: Call invalidate in set_Region.
11071 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11072 it dont works here.
11074 2007-04-16 Jackson Harper <jackson@ximian.com>
11076 * TextBoxBase.cs: When enter is pressed, we need to update all
11077 lines below the current.
11079 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
11081 * MdiClient.cs: Implement implicit menu merging for MDI
11082 children. When a child form is active, if it has a menustrip
11083 and the parent form has a MainMenuStrip, automatically merge
11086 2007-04-15 Andreia Gaita <avidigal@novell.com>
11088 * TabControl.cs: Refactored sizing methods to not repeat
11089 code all over the place. Tab bounds are now calculated
11090 as if alignment is top and single line, and only when
11091 setting the bounds are the positions adjusted according
11092 to alignment. Replaced hardcoded positions, spacings and
11093 paddings by getting the values the ThemeEngine.
11096 * Theme.cs: Change TabControl properties and methods so
11097 that all start with TabControl*. Added more properties
11098 to help remove hardcoded values on tabcontrol.
11099 Add CPDrawBorder3D declaration so the Theming classes
11102 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11104 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11105 on the Theming namespace, and call the appropriate methods here.
11106 Change CPDrawBorder3D to public.
11108 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11110 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11111 the control after firing the OnMouseUp event, instead of sending
11112 the message before the mentioned event. This is so we can match the
11113 MS behaviour. Fixes part of #80385.
11115 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11117 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11118 RightToLeft property.
11120 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11122 * ToolStrip.cs: Add properties and internal methods to support merging.
11123 * ToolStripItem.cs: Add MergeAction and MergeIndex.
11124 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11125 not trigger reparenting or layouts.
11126 * ToolStripManager.cs: Add Merge and RevertMerge methods.
11127 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11128 is hosting the overflow menu.
11130 2007-04-13 Jackson Harper <jackson@ximian.com>
11132 * TextControl.cs: Set the line ending correctly for the first
11135 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
11137 * Theme.cs: Update GetMethod to get the new definition for
11138 KnownColors.Update (and fix theme color updates).
11140 2007-04-12 Everaldo Canuto <everaldo@simios.org>
11142 * MessageBox.cs: Fix some test and button position.
11144 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11146 * Form.cs: Consider the implicit controls in
11147 GetRealChildAtPoint. We need it since this method
11148 is called on Form when handling the some messages in
11149 WndProc, and need to consider those implicit ones too.
11152 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
11154 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11155 if there are no ShortcutKeys set.
11156 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11157 set, use it when painting.
11159 2007-04-12 Jackson Harper <jackson@ximian.com>
11161 * TextControl.cs: Fix some off-by-one issues in line duplication
11162 and insertion in the undo manager. Also, overwrite the first tag
11163 of a line on insert, if it is just a zero lengthed tag. This
11164 prevents us from getting an extra stranded tag at the beginning of
11167 2007-04-11 Everaldo Canuto <everaldo@simios.org>
11169 * Label.cs: Remove check for handle created in CalcAutoSize, we need
11170 to calculated proper size including when handle was not created yet.
11172 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11174 * MdiWindowManager.cs: When moving a form, allow the form to be moved
11175 when the mouse is outside of it's parent's client rectangle. Fixes
11176 #79982 (take 3, part 2).
11178 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11180 * X11Structs.cs: Add a few ToString() overrides.
11181 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11182 the window location in a window-manager independent way. Reworked
11183 FrameExtents, it now actually works. Reworked AddConfigureNotify
11184 and ReparentNotify handling to use GetTopLevelWindowLocation
11185 instead of the earlier, more hacky solution. Reworked SetWMStyles,
11186 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11187 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11188 for all other windows (fixes #81281 part 1), a toolwindow is hidden
11189 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11190 and generally refactored to do as few calculations as possible
11193 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
11195 * Theme.cs: Change "reflective-contract" between MWF and SD to
11196 minimize # of calls, avoid Color serialization and avoid updating
11197 every "known colors" each time a single one is updated.
11199 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11201 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11202 when not readonly and the text is explicitly set. Code style updates.
11203 * DataGridTableStyle.cs: Removed extra line.
11204 * DataGrid.cs: Code style updates. Removed extra whitespace.
11205 * DataGridColumnStyle.cs: Code style updates. Removed extra
11208 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11210 * XplatUIX11.cs: Added comment that "fixes" #80021.
11212 2007-04-09 Jackson Harper <jackson@ximian.com>
11214 * TextControl.cs: We don't need this -1 on the line count anymore.
11216 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11218 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11219 entered value to underlying type, and convert it back to a string to
11220 apply formatting. Modified GetFormattedValue to use TypeConverter
11223 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
11225 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11226 Use SubItems property when we want to ensure there's at least one
11227 subitem. Modified SubItems property to ensure there's always at least
11228 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11229 the NRE's reported by MS.
11231 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
11233 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11234 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11235 Spaces to tabs. Removed extra tabs.
11237 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
11239 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11240 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
11242 2007-04-06 Jackson Harper <jackson@ximian.com>
11244 * TextBoxBase.cs: When a delete removes a line, recalculate all
11245 lines below that line (they need to get offsets setup correctly)
11248 2007-04-05 Jackson Harper <jackson@ximian.com>
11250 * TextControl.cs: We need to invalidate across the width of the
11251 document when we are invalidating multiple lines.
11252 * TextBoxBase.cs: Don't delete into the line ending.
11254 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11256 * ListView.cs: Restore the check for the MouseHover event
11257 in ListView. It looks like the ListView fires more than one MouseHover
11258 event when HoverSelection is true _only_ in weird-corner scenarios, but
11259 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11262 2007-04-05 Mike Kestner <mkestner@novell.com>
11264 * ListView.cs : raise MouseDown before updating selection.
11265 [Fixes #80373 tab 1&3]
11267 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11269 * ToolStripRenderer.cs: Add static method to mirror image.
11270 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11271 and RightToLeftAutoMirrorImage.
11272 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11274 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11276 * ToolStripSplitStackLayout.cs: Support Alignment property.
11277 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11279 2007-04-05 Jackson Harper <jackson@ximian.com>
11281 * TextControl.cs: Move around the line endings when crossing line
11283 - When combining lines, strip the ending text off the first line.
11285 2007-04-05 Jackson Harper <jackson@ximian.com>
11288 * TextBoxBase.cs: Try to never move the cursor into the line
11291 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11293 * ToolStripItem.cs: Make sure we aren't firing mouse events when
11294 the item is disabled. Also add a few missing methods.
11296 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11298 * ListView.cs: We don't need the MouseEnter/MouseLeave check
11299 to fire just one MouseHover event when HoverSelection is true, since
11300 .Net does fire more than one MouseHover event in that scenario. Also,
11301 fix the selection in HoverSelection, by invoking UpdateMultiSelect
11302 if MultiSelect is true, instead of only setting ListViewItem.Selected.
11303 Finally, we need to reset the Hover logic in MouseMove, even when we
11304 don't have a selected item.
11306 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11308 * ToolStrip.cs: Add several missing methods, properties, and events.
11310 2007-04-04 Chris Toshok <toshok@ximian.com>
11312 * DataGridTextBoxColumn.cs: set the bounds of the text box to
11313 (0,0,0,0) in Commit, as MS does.
11315 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11316 make sure we set CurrentRow on a row header click *before* calling
11317 Select. This moves the current cell (and the textbox) to the new
11318 row. The call to Select then hides the textbox, giving us the
11319 correct behavior. Fixes #80362.
11321 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11322 (ListChangedHandler): reorder the position/current changed events,
11323 and call UpdateIsBinding in the ItemAdded case.
11325 * GridColumnStylesCollection.cs: add some columns events, one of
11326 which raises the CollectionChanged event.
11328 2007-04-04 Jackson Harper <jackson@ximian.com>
11330 * TextControl.cs: When we delete multiple selection lines
11331 invalidate the selection area, don't need to do that for single
11332 lines because the final update view will handle it.
11334 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11336 * Control.cs: When we CreateControl, we need to also create all of the
11337 control's children. The child's OnLoad must also fire before the parent's
11338 OnLoad. Fixes the toolbox size in PDN.
11340 2007-04-04 Jackson Harper <jackson@ximian.com>
11342 * TextBoxBase.cs: When the user presses enter, insert a line
11343 ending into the text. (Maybe this would be a good spot for
11344 Environment.NewLine).
11345 * TextControl.cs: Remove undo manager hack, line endings get
11346 inserted properly now.
11348 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11351 - Remove unneeded parameters in UpdateCursor.
11352 - Fix UpdateCursor to check if menu is active.
11353 - Call UpdateCursor when menu deactivate my click.
11354 [Fixes remaining issues from #80410]
11356 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11358 * Control.cs: GetRealChildAtPoint method added, it make an
11359 recursive child control search for the point.
11361 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11364 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11366 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11368 * Form.cs: Fix mouse position when send back mouse event after closes
11371 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11373 * Form.cs: Simplify the BUTTONDOWN for active tracker.
11375 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11377 * Control.cs: Fix an issue where if a user resized a control inside
11378 a sizing method like OnResize, we would overwrite their explicit
11379 value. Also, only call DefaultSize once in the constructor instead
11380 of 4 times. Also, do not call SetBoundsCore from SetBounds if
11381 nothing actually changed.
11383 2007-04-03 Jackson Harper <jackson@ximian.com>
11385 * TextControl.cs: Don't attempt to copy text for lines with no
11386 text in them (technically this shouldn't happen, but we aren't
11387 always inserting line endings when we should be).
11389 2007-04-03 Jackson Harper <jackson@ximian.com>
11391 * TextBoxBase.cs: Calculate the scrollbars before calculating the
11392 document, because this sets some of the document size properties
11395 2007-04-03 Jackson Harper <jackson@ximian.com>
11397 * TextBoxBase.cs: We need to calculate maximums even if this is
11398 not a multiline control, because the maxs are used for scrolling.
11399 - Display the caret after doing a page up/down, we need to
11400 manually display it because a proper CaretMoved event isn't
11401 triggered (this is because of the way the math is done to
11402 determine how far to scroll).
11404 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11406 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11407 (ToolBar was relying on SetBoundsCore to default the values sent
11408 base off of BoundsSpecified.)
11410 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11412 * DateTimePicker.cs: Change Text so that when a null value or empty
11413 string is assigned to the test we always raise ValueChanged and
11414 TextChanged (earlier implementation would only raise ValueChanged
11415 if the current date value was different from DateTime.Now).
11417 2007-04-03 Andreia Gaita <avidigal@novell.com>
11419 * ButtonBase: Call update after invalidation, fixes #80194
11421 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11423 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11426 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11428 * XplatUIX11.cs: SetWMStyles: If the control is a form with
11429 FormBorderStyle = None, don't give the window any decorations.
11432 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11434 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11435 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11436 to check for is a mix of several styles (such as WS_CAPTION for
11438 * Control.cs: Don't paint an area bigger than the client area when
11439 painting the background colour. Add an internal GetCreateParams.
11440 Update calls to XplatUI.CalculateWindowRect due to API change.
11441 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11442 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11443 the size if it hasn't been handled by any windows. When creating
11444 and moving windows, X wants the location of the entire window, but
11445 the size of the client window, so add
11446 TranslateClientRectangleToXClientRectangle,
11447 TranslateWindowSizeToXWindowSIze and
11448 TranslatedXWindowSizeToWindowSize to cope with this, and call them
11449 before every window creation and move. Update CalculateWIndowRect
11450 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11451 In AddConfigureNotify don't do anything if the hwnd is a zombie
11452 (fixes the BadWindow we were getting while running the tests),
11453 always calculate the offsets when it's a parentless window, not
11454 only when reparented, and translate the window size, since we're
11455 getting the client size of the whole window, excluding entire
11457 * Theme.cs: Added BorderSizableSize.
11458 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11459 anymore. Update calls to XplatUI.CalculateWindowRect due to API
11461 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11462 change. Fake the window styles here instead of in XplatUIWin32 so
11463 that all back-ends get the same window styles (and it's Form that's
11464 deciding when to use wm, not the Win32 backend anyways)
11465 * Hwnd.cs: Completely reworked GetWindowRectangle and
11466 GetClientRectangle - they are now passed a CreateParams and they
11467 only use Style and ExStyle to determine the rectangles (they should
11468 now work just like Win32AdjustWindowRectEx - though quite a few
11469 special cases are probably missing). They should also be 100%
11470 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11471 == rect), and all numbers (borders, menu sizes) are taken from the
11472 current theme. Added a GetBorders helper function that will return
11473 the borders for any given CreateParams (including captions and
11474 menus), and GetBorderSize that returns the given border size only.
11475 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11476 Hwnd.GetClientRectangle.
11478 2007-04-02 Chris Toshok <toshok@ximian.com>
11480 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11481 logic between the values we present to the user and the values
11482 which are stored in the column's property. Also, don't call
11483 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11485 2007-04-02 Jackson Harper <jackson@ximian.com>
11487 * TextBoxBase.cs: Scroll faster!
11489 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11491 * StatusStrip.cs: Layout fixes for PDN.
11492 * ToolStrip.cs: Set item's available to true, and placement to main when
11494 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11495 changing in setter before doing any work, add InternalVisible.
11496 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11497 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11500 2007-04-02 Jackson Harper <jackson@ximian.com>
11502 * TextBox.cs: LBUTTON does not make the textbox select all of it's
11505 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11507 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11508 Makes ToolStripComboBoxes show up again.
11510 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11512 * ListView.cs: Add a hover_pending field in ListView
11513 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11514 cycle (we are resetting the MouseHover logic in XplatUI
11515 to handle HoverSelection). Fixes #80429.
11517 2007-04-02 Jackson Harper <jackson@ximian.com>
11519 * TextControl.cs: Make sure the attributes get set on the last
11521 - Still have to do the end tag if we have stepped all the ways to
11524 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
11526 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11527 on an internal libgdiplus call when the information is already
11528 available via the public API.
11530 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11532 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11533 control is removed from a control collecftion.
11534 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11535 Fixes FormPropertyTest (failed on rare occasions).
11536 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11537 of Win32SetParent (when changing from no parent to a parent it
11538 might add the new parent's location in screen coordinates to this
11539 window's location).
11540 * Form.cs: Rework ChangingParent once again, now the handle is
11541 recreated whenever a FormWindowManager is added or removed (that is
11542 whenever a normal form is parented or abandoned). Also change
11543 CreateParams so that all non-toplevel windows always get the
11544 specified sice (StartupPosition is never considered for
11545 non-TopLevel forms).
11546 * ContainerControl.cs: Add ChildControlRemoved, the container control
11547 needs to be notified when a control is removed from it's
11548 collection, in the case the removed control is the active control.
11550 2007-04-02 Jackson Harper <jackson@ximian.com>
11552 * RichTextBox.cs: Use the new methods for setting the font and
11553 color, these methods set the specified attribute without
11554 overriding the other attributes.
11556 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11558 * ToolStripPanel.cs: Fixes for better layouts in PDN.
11560 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
11562 * TextBox.cs: Added internal ChangeBackColor method to special-case
11563 Color.Empty. Added check for invalid ScrollBars value.
11564 * TextBoxBase.cs: Added internal ChangeBackColor method.
11565 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
11566 internal ChangeBackColor method to special-case Color.Empty. Added
11567 check for invalid ScrollBars value.
11569 2007-03-30 Everaldo Canuto <everaldo@simios.org>
11571 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
11573 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11575 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
11576 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
11577 [Based on submitted patch from Olivier Duff.]
11579 2007-03-30 Jackson Harper <jackson@ximian.com>
11581 * TextBox.cs: Only select all on initial focus if the user has not
11582 specified a selection area.
11584 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
11586 * UserControl.cs: Override CreateParams.
11588 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11592 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11593 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
11594 check for is a mix of several styles (such as WS_CAPTION for instance).
11595 * Control.cs: Don't paint an area bigger than the client area when painting
11596 the background colour. Add an internal GetCreateParams. Update calls to
11597 XplatUI.CalculateWindowRect due to API change.
11598 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
11599 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
11600 hasn't been handled by any windows. When creating and moving windows, X
11601 wants the location of the entire window, but the size of the client
11602 window, so add TranslateClientRectangleToXClientRectangle,
11603 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
11604 to cope with this, and call them before every window creation and move.
11605 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
11606 removing DeriveStyles). In AddConfigureNotify don't do anything if the
11607 hwnd is a zombie (fixes the BadWindow we were getting while running the
11608 tests), always calculate the offsets when it's a parentless window, not
11609 only when reparented, and translate the window size, since we're getting
11610 the client size of the whole window, excluding entire window.
11611 * Theme.cs: Added BorderSizableSize.
11612 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11613 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
11614 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
11615 Fake the window styles here instead of in XplatUIWin32 so that all
11616 back-ends get the same window styles (and it's Form that's deciding when
11617 to use wm, not the Win32 backend anyways)
11618 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
11619 they are now passed a CreateParams and they only use Style and ExStyle
11620 to determine the rectangles (they should now work just like
11621 Win32AdjustWindowRectEx - though quite a few special cases are probably
11622 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
11623 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
11624 sizes) are taken from the current theme. Added a GetBorders helper
11625 function that will return the borders for any given CreateParams
11626 (including captions and menus), and GetBorderSize that returns the given
11628 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11629 Hwnd.GetClientRectangle.
11631 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
11633 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11634 layout of the mdi children is handled by CreateParams. Fixes
11637 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11639 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11642 * Form.cs: When active tracker mouse down is not processed, send event
11643 back to control inside mouse position. [Fixes #81227]
11645 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11647 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11648 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11649 stealing focus from the active form on Windows. (Control will be made
11650 visible in ShowWindow.)
11652 2007-03-29 Mike Kestner <mkestner@novell.com>
11654 * ImageList.cs : add internal Changed event.
11655 * ListView.cs : hook up to StateImageList.Changed to perform
11656 invalidations when the the state icon list changes. [Fixes #81191]
11658 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
11660 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11661 to prevent tooltips from stealing focus from the active form on Windows.
11663 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11665 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
11667 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11669 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11671 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11674 2007-03-29 Jackson Harper <jackson@ximian.com>
11676 * TextControl.cs: When deleting text from non multiline textboxes,
11677 we need to update the entire document, because line offsets will
11680 2007-03-29 Everaldo Canuto <everaldo@simios.org>
11682 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11683 added to theme, now we can create themes that uses diferent notify engines
11684 like notification-daemon from galago project or growl for Mac OS.
11686 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11688 * NotifyIcon.cs: Prevent Balloon to show in task bar.
11690 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11692 * XplatUIX11.cs: Prevent system to open more than one balloon.
11694 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11695 some compiler warning messages.
11697 2007-03-28 Everaldo Canuto <everaldo@simios.org>
11701 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11703 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
11704 implemented, this methods is used by NotifyIcon.BalloonWindow class.
11706 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
11709 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11711 * ListViewItem.cs: Forgot to make Invalidate internal.
11713 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11715 * ListView.cs: Add a InvalidateSelection method to
11716 invalidate methods which are currently selected, and call
11717 it when setting FullRowSelect and HideSelection, instead of
11720 2007-03-28 Chris Toshok <toshok@ximian.com>
11722 * XplatUIX11.cs (UnmapWindow): reindent this block.
11724 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
11725 the selection_start if we're moving the selection (that is, not
11726 extending it). Fixes bug #80461.
11728 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11730 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
11731 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
11732 create private ControlCollection.
11734 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11736 * Control.cs: We need to call OnVisibleChanged for our implicit
11737 children as well as our normal children. Fixes scrollbars in
11738 comboboxes not showing up.
11740 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11742 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
11743 the check for IsHandleCreated first. The check in CreateHandle is not
11744 good enough because CreateHandle can be overriden, and the override
11745 should not be called if the handle is already created.
11747 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
11749 * ToolStrip.cs: Remove MonoTODO for tooltips.
11750 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
11751 * ToolStripContainer.cs: Add custom ControlCollection class.
11752 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
11753 * ToolStripDropDown.cs: Add some missing properties/methods.
11754 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
11755 * ToolStripItem.cs: Remove MonoTODO for tooltips.
11756 * ToolStripManager.cs: Add IsShortcutDefined.
11757 * ToolStripOverflow.cs: Override LayoutEngine.
11758 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
11759 * ToolStripSeparator.cs: Add ImageKey.
11761 2007-03-28 Jackson Harper <jackson@ximian.com>
11763 * TextControl.cs: If a char delete removes a line ending, we need
11764 to update the ending style.
11765 - Make sure the line ending calcs get called.
11767 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
11769 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
11770 it was making the new code not work. Fixed a typo in the new code
11771 as well. Fixes #79826.
11773 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11776 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
11777 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
11778 - SystrayBalloon method implemented.
11779 [Add support for notifyicon balloon on win32, #79149]
11781 2007-03-27 Mike Kestner <mkestner@novell.com>
11783 * ThemeWin32Classic.cs : update StateImageList selection to mirror
11784 the ms behavior when only one image is added to the list.
11787 2007-03-27 Jackson Harper <jackson@ximian.com>
11789 * TextControl.cs: Improvements to non multiline line ending
11792 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11794 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
11796 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11799 - Balloon message handling added.
11800 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
11802 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11803 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
11804 to SystrayBalloon to me like other Systray method, also a
11805 handle parameter added.
11807 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11809 * ListView.cs: Show scrollbars even when items.Count == 0
11810 but the columns Width is bigger than the ListView.Width.
11811 Also, when columns.Count == 0 set layout_wd and layout_ht
11812 to the ClientRectangle values, so we don't show any scrollbar
11815 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11817 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
11819 2007-03-27 Jackson Harper <jackson@ximian.com>
11821 * RichTextBox.cs: The RTF library decodes the text properly for us
11824 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11826 * ListView.cs: Display HeaderControl even when columns.Count == 0.
11827 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
11828 ListView header (HeaderControl), instead of Control.BackColor.
11830 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
11832 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
11833 Fixes tab control issues where controls would not show up because they
11834 never received their OnVisibleChanged call.
11836 2007-03-27 Everaldo Canuto <everaldo@simios.org>
11838 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
11841 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
11843 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
11844 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
11845 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
11846 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
11847 the handle. Fix WindowState by using the internal variable until we are
11848 sure that we've been shown.
11849 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
11853 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
11855 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
11856 (at least borders). Fixes #79386 on Linux (with a small difference
11857 in behaviour: when trying to resize a caption-less window metacity
11858 shows the sysmenu. Resizing is still possible though).
11859 * XplatUIWin32.cs: When setting window styles send request an extra
11860 WM_NCCALCSIZE when it's a form without title (due to no text and no
11861 caption), since Win32 seems to calculate it wrong the first time we
11862 get the message, though the second time things work as they should.
11863 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
11864 newly reparented window might show up unparented. Update
11865 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
11866 there's no title text. Fixes #79386.
11868 2007-03-27 Mike Kestner <mkestner@novell.com>
11870 * ListBox.cs : don't perform invalidations if the handle hasn't been
11871 created. [Fixes #80753]
11873 2007-03-27 Mike Kestner <mkestner@novell.com>
11875 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
11878 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11880 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
11881 needed to implement Balloon.
11883 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11885 * ListViewItem.cs: In the constructors that take
11886 an array of strings, don't use ListViewSubItemCollection.AddRange
11887 method to add items, since we need to have a different behaviour (in
11888 the constructors we add an item for each null string, opposed to
11889 the behaviour of AddRange, which adds nothing).
11891 2007-03-26 Andreia Gaita <avidigal@novell.com>
11893 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
11895 2007-03-26 Jackson Harper <jackson@ximian.com>
11897 * TextControl.cs: Draw and measure line endings when in non
11899 - When searching the text, count the end of the last line as a
11902 2007-03-26 Jackson Harper <jackson@ximian.com>
11904 * RichTextBox.cs: The selection_start and selection_end don't
11905 really track the correct tags for the selection. So we'll manually
11906 compute the correct tag here.
11908 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11910 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
11911 and Continuous styles. Fixes #79469.
11913 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11915 * ToolStrip.cs: Implement Tooltips.
11916 * ToolStripItem.cs: Create internal method for determining tooltip.
11918 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
11920 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
11922 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11924 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
11925 it prevents a problem thak keeps icon visible after application
11928 2007-03-26 Everaldo Canuto <everaldo@simios.org>
11930 * NotifyIcon.cs: Balloon properties and methods created.
11932 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11933 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
11935 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
11937 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
11939 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11941 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
11942 parameter indicates which aspects were explicit/user-set.
11943 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
11945 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
11947 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
11948 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
11949 SmallChange, and Value (2.0).
11950 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
11952 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11954 * ListView.cs: Always set item_control.Width in LayoutDetails
11955 if View is Details. Setting it later in CalculateScrollBars
11956 in a not-so-corner scenario (the sum of columns width is
11957 not bigger than the ListView width when handle is created, and then
11958 that sum gets bigger by increasing the width of the columns)
11959 causes a very weird recursion path (which shouldn't be happening,
11960 since header_control sets it in CalculateScrollBars too). This bug
11961 appeared after Chris' fixes for handle created issues, so probably
11962 it's related to some handle-creation time.
11964 2007-03-23 Chris Toshok <toshok@ximian.com>
11966 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
11967 case where there's an add row, just so we don't end up in a case
11968 where it's not displayed (this happens when the row is partially
11969 obscured). Fixes bug #79574.
11971 2007-03-23 Jackson Harper <jackson@ximian.com>
11975 * RichTextBox.cs: Preserve line endings in the lines text buffer,
11976 also added an enum that represents the line ending type.
11978 2007-03-23 Andreia Gaita <avidigal@novell.com>
11980 * NumericUpDown.cs: Fix logic so Text and Value properties are not
11981 messed with in every method call, but only from DownButton,
11982 UpButton, UpdateEditText() and ValidateText. Fixes #80346
11984 2007-03-23 Chris Toshok <toshok@ximian.com>
11986 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11987 format objects if the format spec is "". Fixes bug #80889.
11989 2007-03-22 Miguel de Icaza <miguel@novell.com>
11991 * ToolStripPanel.cs (Join): added stubs to build PDN3
11993 * Control.cs (AutoScrollOffset): Add.
11995 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11996 property, its only implemented for Win32, on X11 it defaults to
11997 some hardcoded value.
11999 * ToolStripItem.cs (AllowDrop): Add property
12001 2007-03-22 Mike Kestner <mkestner@novell.com>
12003 * ListView.cs : in FullRowSelect Details mode, only enable box
12004 selection if the user clicks over the "item" column outside of the
12005 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
12007 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12009 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12010 handle is not created yet.
12011 * Form.cs: Select: Don't call CreateHandle if the handle is already
12012 created, avoids a stack overflow on Windows when we are recreating
12014 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12015 they are made visible, and override AfterTopMostControl to keep
12016 them on top when other controls are brought to front.
12017 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12018 or force_*scroll_visible is true (old implementation always shows
12019 scrollbars when needed, no matter what auto_scroll was set to).
12020 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12021 IsHandleCreated check.
12023 2007-03-22 Andreia Gaita <avidigal@novell.com>
12025 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12026 row or col separator.
12027 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12029 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12031 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12033 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12035 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12036 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
12037 every time. Fixes #80410.
12039 2007-03-22 Chris Toshok <toshok@ximian.com>
12041 * BindingSource.cs (AddNew): partially implement.
12043 remove a couple of NotImplementedException's
12044 to get bug #81148 closed.
12046 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12051 - UpdateCursor method added to update the screen cursor.
12052 - GetAvailableCursor method added to return cursor for enabled tree,
12053 it searches for cursor on control and it's parent's for enabled control.
12054 - Call UpdateCursor method on setter of Cursor property.
12055 - On setter of Enabled call UpdateCursor when it is false, we need to
12056 change cursor to normal (or to this parent cursor) because cursor
12057 setting theres no effect to disabled controls.
12058 - Some minor source changes to follow the coding style guidelines.
12060 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
12063 2007-03-22 Chris Toshok <toshok@ximian.com>
12065 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12068 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12070 * XplatUIX11.cs: Implement default locations for forms.
12071 * Form.cs: Completely rework startup location for forms. Fixes #79964.
12072 * Hwnd.cs: Add previous_child_startup_location (to track the current
12073 startup location for any child forms of the current form) and
12074 previous_main_startup_location (to track the startup location for
12075 the current toplevel form).
12077 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12079 * Control.cs: Don't trigger a layout if an implicit control is added
12080 that isn't visible. Also, don't notify the owner when an implicit control
12081 is added. (Owners shouldn't even know about their implicit controls.)
12083 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12085 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12086 to save some re-layouts.
12088 2007-03-21 Everaldo Canuto <everaldo@simios.org>
12090 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12093 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12095 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12096 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12098 2007-03-21 Mike Kestner <mkestner@novell.com>
12100 * ListView.cs : disable selection update for non-left button clicks
12101 with mods and over selected items. [Fixes #80524]
12103 2007-03-20 Jackson Harper <jackson@ximian.com>
12106 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12109 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12111 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12112 very probably a more complicated calculation there. Update the
12113 textbox' ForeColor and BackColor when the ComboBox' colors are
12114 changed. Change the border change in LayoutComboBox to only affect
12115 the textbox, not all the calculations there. Seems to fix most of
12118 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12120 * ComboBox.cs: Handle Home and End keys as well as all combinations of
12121 modifiers + navigation keys as input keys, enables advanced text
12122 selection in the combobox (like Shift+Left Arrow for instance).
12123 ComboTextBox now overrides Focused and returns whatever
12124 ComboBox.Focused returns, since it really should be focused
12125 whenever the ComboBox is. Fixes #80795. Also make the border around
12126 the text box one pixel bigger, as mentioned in #79436.
12128 2007-03-20 Jackson Harper <jackson@ximian.com>
12130 * TreeView.cs: Don't offset the images, this was causing some
12131 artifacts when expanding/collapsing with images that were the
12132 exact height of the treenode.
12134 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12136 * TrackBar.cs: Query the theme for the correct value when the mouse
12137 moves and the thumb is pressed.
12138 * Theme.cs: Added TrackBarValueFromMousePosition
12139 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12140 implementation was updating the trackbar value when drawing, now
12141 the drawing methods only draw. Fixes #80900. Refactored the
12142 calculations out to TrackBarValueFromMousePosition and
12143 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12144 according to the mouse position whenever it wants to. Changed the
12145 light coloured pen when drawing the thumb from ControlLight to
12146 ControlLightLight, because the ControlLight is the same colour as
12147 the background so the 3D effect is lost.
12149 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12151 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12152 defined. Fixes #80784.
12154 2007-03-20 Marek Habersack <mhabersack@novell.com>
12156 * ContextMenuStrip.cs: align with the change introduced in
12159 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12161 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
12162 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
12165 2007-03-19 Chris Toshok <toshok@ximian.com>
12167 * Control.cs (WmPaint): don't make use of the Handle property
12168 after an event is emitted, as the user could have closed the
12169 form/destroyed the control. Store the Handle in a local variable
12170 and make use of that. Fixes bug #80768.
12172 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12174 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12175 behavior in X11 environments.
12177 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12179 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12180 because on setter of topmost we dont call SetTopmost when handle is not
12183 2007-03-20 Jackson Harper <jackson@ximian.com>
12185 * TextControl.cs: Need to use SelectionLength () not
12186 selection_length, since that var is reset to -1.
12187 - Draw the caret when we don't have focus.
12188 * TextBox.cs: The selectall actually doesn't occur until the first
12190 * TextBoxBase.cs: Need to update the caret position after a
12193 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12195 * ListView.cs: Enable scrolling when using Tile view.
12197 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12201 * XplatUIDriver.cs: Abstract SetOwner method created.
12203 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
12204 must be implemented and was masked as todo.
12206 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
12209 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
12210 cheking for null owner to remove transient. The SetTopmost will be change
12213 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12214 SetTopmost. Now owned forms will work properly in win32 and X11.
12216 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12218 * MdiWindowManager.cs: Update function name.
12219 * Form.cs: After closing a form MdiParent is always null.
12220 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12221 better what it should do: necessary book-keeping when the form is
12222 closed, it should not close the form itself.
12224 2007-03-19 Andreia Gaita <avidigal@novell.com>
12226 * ListViewItem.cs: Fix back and fore color. The subitems only
12227 use their own colors if they are set, otherwise use the listview's
12228 colors. Don't set default colors on constructor for subitem.
12231 2007-03-19 Mike Kestner <mkestner@novell.com>
12233 * ListView.cs : make box selection for Details views with
12234 FullRowSelect conform to MS behavior when clicking in the "item"
12235 column and clicking outside the defined columns.
12236 [Fixes case 5-6 of #80374]
12238 2007-03-19 Chris Toshok <toshok@ximian.com>
12240 * ScrollableControl.cs: create the controls from within the ctor,
12241 but don't actually add them until our handle is created. this
12242 fixes a NRE possibility jpobst found (if you override OnLayout in
12243 a subclass, it's called before your ctor). Also, add a
12244 IsHandleCreated guard to UpdateSizeGripVisibility as well.
12246 2007-03-19 Jackson Harper <jackson@ximian.com>
12248 * TextBox.cs: Reduce the amount of invalidation we do.
12249 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12250 some of them are true by default on MS.
12251 - Add some functions to reduce the amount of invalidates we do.
12252 * TextControl.cs: Less invalidation.
12254 2007-03-19 Chris Toshok <toshok@ximian.com>
12256 [ Fixes #81773, and *seems* to fix #81553 as well ]
12258 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12259 AccumulateDestroyedHandles. We need to do it *after* we send
12260 WM_DESTROY, as the user's code can access Control.Handle in
12261 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
12262 move the WM_DESTROY/zombie handling to before the call to
12263 XDestroyWindow. For some reason without this ordering
12264 FormTest.RecreateHandle hangs. This ordering is semantically
12265 equivalent, however, as XDestroyWindow is async anyway.
12267 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
12269 * RichTextBox.cs: Reset backcolor_set after setting default.
12271 2007-03-19 Chris Toshok <toshok@ximian.com>
12273 * ScrollableControl.cs: the scroll position should not effect the
12274 canvas size. commit patch from georgegiolfan@yahoo.com, which
12275 fixes some really bizarre behavior on resizing. Fixes bug #80778.
12277 2007-03-19 Chris Toshok <toshok@ximian.com>
12279 * ScrollableControl.cs: clean this up a bit. create the
12280 scrollbars in the ctor and just show/hide them as needed. Also,
12281 make hscroll_visible/vscroll_visible internal to Recalculate, and
12282 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12283 everywhere else. This seems to fix the scrollbars appearing
12284 beneath the content for me (i have *no* idea why that is,
12287 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12289 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
12290 some redundacy for stuff in Anchor and Dock that base will take care of.
12293 2007-03-19 Mike Kestner <mkestner@novell.com>
12295 * ListView.cs : make box selection for Details views without
12296 FullRowSelect dependent on the text bounds, not item bounds.
12297 * ListViewItem.cs : add an internal property to obtain the TextBounds
12298 in Details view. [Fixes case 1-4 of #80374]
12300 2007-03-19 Andreia Gaita <avidigal@novell.com>
12302 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12303 we're < 2.0. #78448 && #80316
12305 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12307 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12308 have the same style available as the previously selected one. Also,
12309 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
12311 2007-03-19 Jackson Harper <jackson@ximian.com>
12313 * TextControl.cs: Add an alignment property that all new lines
12315 - Make sure to use the align shift when calculating the line's X
12317 * TextBox.cs: Set the alignment on the document as well as on all
12318 the document lines.
12320 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12322 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12323 throw if setting the parent of an mdichild that already has an
12324 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12325 AssemblyProductAttribute in the assembly, use the type's namespace (as
12326 MS seems to do). CreateControl: don't create the handle if the control
12327 is not visible (according to MS behaviour and spec). SetTopLevel: Only
12328 create handle if the control is not a form. Change FocusInternal to
12329 virtual so that it can be overriden by Form.
12330 * TextBox.cs: Update call to FocusInternal.
12331 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12332 form is not a toplevel form when it's a mdi child, so update is_toplevel
12333 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12334 hasn't been created. Show (IWin32Window): Don't allow this overload for
12335 toplevel windows. CenterToParent/CenterToScreen/Select: create the
12336 handle as MS does. SetVisibleCore: if called on a MdiChild and the
12337 parent isn't visible yet, save the visibility and restore it when the
12338 parent is made visible.
12339 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12340 methods, since the visibility of the scrollbars can be changed from
12341 several places, not only from AutoScroll.
12344 2007-03-19 Jackson Harper <jackson@ximian.com>
12346 * RichTextBox.cs: Enable shortcuts by default.
12347 * TextBoxBase.cs: Add conditional shortcuts.
12349 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12351 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
12353 2007-03-19 Chris Toshok <toshok@ximian.com>
12355 [ Fixes bug #80604]
12357 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12358 swallow the message we're waiting on, instead of delivering it, as
12359 this is only used for the WM_SHOWWINDOW raised from
12360 MapWindow/UnmapWindow, and the message needs to be generated
12361 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12362 before doing the Map/Unmap. Also make sure that the Hwnd is still
12363 alive after the message has been handled.
12365 *before* the window is shown.
12367 * Control.cs (CreateControl): guard a few more things inside the
12368 if (!is_created) block, as we might end up being called again -
12370 (WmShowWindow): call CreateControl if we're showing the control.
12372 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12374 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12375 controls without a handle if they have any parent with a handle. In
12376 Dispose add a check whether the handle is created or not before
12377 calling BeginInvoke, this removes the need of the extra disposing
12378 parameter (which was bogus anyway since it didn't prevent the
12379 invoke from happening, it only skipped the check for an existing
12380 handle, meaning that the invoke would call on an inexistent
12383 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12385 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12386 appears in taskbar.
12388 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12391 - Fixed a problem that dont show help button for messages with 3 buttons.
12392 - Refactory button size and position calculations, now dont use fixed
12393 values, also fixed button sizes (#80043) and form's border space.
12394 - AddButton method created, now all other AddButton methods call this one.
12395 - Some other source code cosmetic changes.
12397 2007-03-18 Jackson Harper <jackson@ximian.com>
12399 * RichTextBox.cs: Don't do this all fonts must match check if
12400 there is only one char selected.
12402 2007-03-18 Jackson Harper <jackson@ximian.com>
12404 * TreeView.cs: ScrollWindow works properly now, so we don't need
12405 to screw around with the scroll area. This fixes some artifacts
12406 when expanding and collapsing.
12408 2007-03-18 Jackson Harper <jackson@ximian.com>
12410 * TextBoxBase.cs: Allow updating the selection position when the
12411 cursor is outside the textarea, but we have a capture.
12412 * TextControl.cs: A special case for when the cursor is outside
12413 the bounds of the TB.
12415 2007-03-18 Jackson Harper <jackson@ximian.com>
12417 * TextBoxBase.cs: Remove image pasting code for now. There is no
12418 way to get an image on the clipboard right now anyways.
12420 * RichTextBox.cs: Use the new RTF Picture class for pictures.
12422 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12425 - Set window properties in constructor intead of on CreateParams.
12426 - Remove topmost from Window ExStyle.
12427 - Set ShowInTaskbar to false.
12428 - Set form border to FixedDialog.
12429 - Some cosmetic changes and remove unneeded comments.
12430 - It fixes itens 2,3 and 4 of bug #80043.
12432 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
12434 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12435 none was explicitly set. Fixes part of bug #79949.
12437 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12439 * ToolStripComboBox.cs: Add AutoComplete*.
12441 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12443 * ToolStripComboBox.cs: Add FlatStyle.
12445 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12447 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12448 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12450 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12452 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12453 CheckBox.cs, RadioButton.cs, BindingSource.cs,
12454 DataGridColumnStyle.cs: Remove warnings.
12456 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12458 * Menu.cs: MergeMenu: Check menu argument for null before looping over
12460 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12461 visibility of mdi child forms. FormSizeChangedHandler: update the
12462 maximized size if size has changed while maximized.
12463 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12464 creating the handle.
12465 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12466 avoid creating the handle if not created.
12467 * XplatUI.cs: Update debug output.
12468 * XplatUIStructs.cs: Added ToString's for a couple of structs.
12470 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12472 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12474 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
12475 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12476 Implement keyboard shortcuts.
12478 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12480 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12481 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
12482 ColorDialog and all derived classes.
12484 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12486 [ Fixes bug #79828 ]
12489 - Rename ToolBarButtonInfor to ToolBarItem.
12490 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12491 - Maintain an array of ToolBarItem, used instead of ToolBarButton
12492 collection to be able add same button more than one time on a toolbar.
12493 - Refactory all properties and methods to use ToolBarItem.
12495 * ToolBarButton.cs:
12496 - Remove all propeties and methods that is now in ToolBarItem.
12497 - Rectangle propery now gets the rectangle from first ToolBarItem to
12498 mimic win32 behavior.
12499 - Size calculation and layout methods also removed.
12501 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12502 ToolBarItem instead of ToolBarButton to right drawing buttons when
12503 same button/separator was added more than one time to ToolBar.
12505 * ThemeNice.cs: Same as above.
12507 2007-03-15 Andreia Gaita <avidigal@novell.com>
12509 * XplatUIX11.cs: Fire extra MouseMove events right after
12510 MouseDown and MouseUp, emulating win32's <censored> behaviour
12511 for apps that rely on it.
12513 2007-03-15 Jackson Harper <jackson@ximian.com>
12516 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12517 it is drawn on the controls client window and there is no NC
12519 - Set the background color to gray on 2.0 when we are readonly.
12521 2007-03-15 Chris Toshok <toshok@ximian.com>
12523 [ Fixes bug #81144 ]
12525 * XplatUIX11.cs: implement VirtualScreen independently of
12526 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12529 2007-03-15 Chris Toshok <toshok@ximian.com>
12531 * Hwnd.cs: add an internal field for the cached_window_state.
12533 * XplatUIX11.cs: cache the window state, invalidating the cache
12534 (and thus re-querying the X server) only when we see an update to
12535 the _NET_WM_STATE property.
12537 2007-03-15 Chris Toshok <toshok@ximian.com>
12539 * BindingSource.cs: get a lot of the unit tests working.
12541 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12543 * Control.cs: Modify UpdateStyles to store distances when bounds >=
12544 0 instead of just bounds > 0. [Fixes bug #80912]
12546 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
12548 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
12551 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
12553 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
12554 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
12555 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
12556 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
12558 2007-03-15 Chris Toshok <toshok@ximian.com>
12562 * Control.cs: add Ivan's fix for 81101, with a slight modification
12563 - you can set control.Target to null.
12565 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
12567 * ToolStripItem.cs: If our OwnerItem is null, we can't use
12568 HideDropDown, use Hide instead to prevent an NRE.
12571 2007-03-14 Jackson Harper <jackson@ximian.com>
12573 * TextBoxBase.cs: Mess with the creation stuff a little. We need
12574 to calculate the document before the handle is created, in some
12575 cases. (Actually just one case).
12577 2007-03-14 Jackson Harper <jackson@ximian.com>
12579 * TextBoxBase.cs: Need to display the caret after letting the base
12580 wndproc handle the focus methods, because the caret display
12581 methods check the focus state.
12582 - Try to display the caret after updating it's position with SelectWord.
12583 - Don't need to do an immediate update on this recalc, since there
12584 will be an invalidate anyways.
12586 2007-03-14 Jackson Harper <jackson@ximian.com>
12588 * TreeView.cs: Some workarounds so that we can match event order a
12591 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
12593 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
12594 #80803. Avoid NullReferenceException when Control does not have
12595 parent. Fixed different blinkstyle issues. Only subscribe to Tick
12596 event a single time. Only draw error icon when control is created and
12597 visible. Fixes failing unit tests.
12599 2007-03-14 Andreia Gaita <avidigal@novell.com>
12601 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
12602 Selecting events. Fire Leave and Enter events when changing tabs.
12604 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
12606 * TreeView.cs: Add TreeViewNodeSorter.
12607 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
12609 2007-03-14 Chris Toshok <toshok@ximian.com>
12611 * Form.cs: go ahead and remove the RecreateHandles that jpobst
12612 removed earlier and I had him add back it. It turns out metacity
12613 *does* in fact handle the MOTIF_WM_HINTS property changing, it
12614 just doesn't redraw the window titlebar until you resize the
12615 window. This also means we aren't recreating the entire window
12616 hierarchy on X when you change this property. And it looks better
12619 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12622 * ListView.cs: Collecting selection information
12623 is now done in SelectedIndexCollection rather than in
12624 SelectedListViewItemCollection. This is done so we can
12625 have the selection information code in one single place
12626 (virtual mode selection information entirely depends on
12627 SelectedIndexCollection).
12629 2007-03-13 Miguel de Icaza <miguel@novell.com>
12631 * ErrorProvider.cs: Add stubs for ISupportInitialize
12633 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12635 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12636 in the right order with the right values, from the Checked property,
12637 just as MS does (instead of triggering them from ListView).
12639 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12641 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12643 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
12644 the correct handler in OnItemCheck method (ItemCheckEventHandler
12645 instead of EventHandler). This used to throw an InvalidCastException.
12647 2007-03-13 Jackson Harper <jackson@ximian.com>
12649 * TextBoxBase.cs: Calculate the document before the handle is
12650 created, so there isn't an extra invalidate called.
12652 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
12654 * Form.cs: Don't set owner in ShowDialog until we are sure
12655 that we aren't going to throw an exception. [Fixes bug #80773]
12657 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
12659 * TreeView.cs: Make it compile.
12661 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12663 * Control.cs: Another place we don't call SizeFromClientSize.
12664 * Form.cs: Another place we don't call SizeFromClientSize.
12667 2007-03-12 Jackson Harper <jackson@ximian.com>
12669 * TreeView.cs: Basically emulating some strangness here with
12670 exanding nodes and setting node positions when windows aren't
12672 - Also attempting to walk the node tree less than previously, and
12673 just use visible order calculations for determining offsets.
12674 - oops made scrolling backwards.
12675 * TreeNode.cs: We need to start nodes with a zero visible order,
12676 because the order calcs are based on the first nodes order.
12678 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12680 * Form.cs: Don't exit the program if RecreateHandle is called on
12683 2007-03-12 Chris Toshok <toshok@ximian.com>
12685 * XEventQueue.cs: remove the use of PostQuitState.
12687 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
12688 WM_QUIT message in GetMessage, return false (and if we're in the
12689 nested WaitForHwndMessage, repost the WM_QUIT message).
12691 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12693 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12694 or the MaximizeBox properties. [Part of bug #80640]
12696 2007-03-12 Everaldo Canuto <everaldo@simios.org>
12698 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12701 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12703 * ToolStripItem.cs: Fix some tests I broke by checking Visible
12704 instead of visible.
12706 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
12708 * FileDialog.cs: Use text of File name combobox to determine what
12709 files the user selected. Added tokenizer to parse the file names.
12712 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
12714 * Control.cs: We can't call SizeFromClientSize in the constructor,
12715 but we still need to do the same work, so make an internal version.
12718 2007-03-12 Jackson Harper <jackson@ximian.com>
12722 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
12725 2007-03-12 Jackson Harper <jackson@ximian.com>
12727 * TextBoxBase.cs: Now that the handles are being created a little
12728 later, we need to make sure that the document is recalculated when
12729 the handle is created.
12731 2007-03-11 Everaldo Canuto <everaldo@simios.org>
12733 * Theme.cs: GetLinkFont abstract method added.
12736 - Remove CalcTrimRectangle, no longer needed.
12737 - Factor also remove, position issues must be fixed in libgdiplus.
12738 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
12739 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
12740 care about font used to draw links.
12741 - Set TabStop to true when control is "Selectable", control is selectable
12742 when have one or more links. Fixes #80501 (test case is also added).
12743 - Set the LinkArea values after links change, LinkArea values must be
12744 based in first link position and size, a test case was created.
12745 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
12746 the attribute must be true LinkArea.Length > 0. The same was applied to
12749 * ThemeWin32Classic.cs:
12750 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
12752 - Use CPDrawStringDisabled to draw disabled text instead of hard code
12754 - Draw focus rectangle for every parts focused, including parts that
12755 is on another line, its because regions returns various rectangles
12756 and not only one. Needed to mimic W32 look.
12757 - Uses Graphics.Clip to delimite region painted, it mean that now
12758 complete text is passed to DrawString, with this we solve layout
12759 issues without create another text renderer.
12760 - Uses Region.Intersect to fix some flickers problems, now only needed
12761 parts will redrawed.
12762 - This changes fixes #79614 and some other unreported issues, on Linux
12763 some layout problems still remain, the problem is under
12764 MeasureCharacterRanges but it is an libgdiplus bug.
12766 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
12768 * TextBox.cs: Set for foreground color.
12769 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
12770 this is already done in Control.
12772 2007-03-10 Jackson Harper <jackson@ximian.com>
12774 * TextBox.cs: Set the background color, but reset the
12775 backcolor_set flag which is just for the user setting the
12778 2007-03-09 Chris Toshok <toshok@ximian.com>
12780 * Control.cs: really remove the call to XplatUI.SetVisible from
12781 CreateHandle(), like I said I did when I merged the branch.
12783 * BindingSource.cs: implement some more of this stuff.
12785 2007-03-09 Jackson Harper <jackson@ximian.com>
12787 * TextBox.cs: Don't explicitly set our background colors.
12789 * TextBoxBase.cs: Draw readonly text.
12790 - Need to invalidate when backcolor or readonly are changed.
12792 2007-03-09 Jackson Harper <jackson@ximian.com>
12794 * TextBoxBase.cs: Don't set the forecolor until the handle is
12796 - Do not raise OnPaint, and removed some old debug code.
12798 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
12800 * ScrollableControl.cs: Fix mouse wheel scrolling.
12802 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12804 * Control.cs: Wire up MouseDoubleClick event.
12806 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
12808 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
12810 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
12811 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
12812 item is added. This logic was moved to ToolStrip.OnItemAdded.
12815 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12817 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
12819 2007-03-08 Jackson Harper <jackson@ximian.com>
12821 * TreeView.cs: Show the correct image for selected node (this used
12822 to work, not sure how the code got deleted). Also implemented 2.0 feature
12825 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12828 * ListViewItem.cs: Cache index in items when retrieving them
12831 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12833 * ToolStripItem.cs: Don't return the explicit_size if we are using
12834 AutoSize. Fixes invalidation issue when user has explicitly set a
12835 size and has AutoSize = true.
12837 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12839 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
12841 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12843 * DataGridView.cs: Remove event handler from DataView when a
12844 DataTable is used as DataSource.
12846 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
12848 * Control.cs: Create internal setter for client_size to allow it to be
12849 set without triggering resizing code.
12850 * Form.cs: Calculate client_size in constructor, only change client_size
12851 in FormBorderStyle property if Handle has been created.
12852 [Fixes #80574, #80791]
12854 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
12856 * SystemInformation.cs: Add TerminalServerSession.
12858 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12860 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
12863 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12865 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
12866 Handle before we were supposed to. Now checks ActivateOnShow property
12868 * Control.cs: Add internal ActivateOnShow property.
12869 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
12870 for ActivateOnShow.
12871 * Hwnd.cs Remove no longer needed no_activate field.
12873 2007-03-07 Jackson Harper <jackson@ximian.com>
12875 * TreeView.cs: Implement owner draw tree nodes. And a couple more
12877 * DrawTreeNodeEventHandler.cs: Add
12878 * DrawTreeNodeEventArgs.cs: Correct default value.
12880 2007-03-07 Chris Toshok <toshok@ximian.com>
12882 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
12883 to be called before NativeWindow.WndProc. Put the HwndCreating
12884 magic there to hook up our Hwnd's to handles.
12886 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
12888 * DataGridView.cs: Comment out debug code.
12890 2007-03-07 Chris Toshok <toshok@ximian.com>
12892 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
12893 to make the rest of the world happy]
12895 * Control.cs (CreateHandle): there's no need to call
12896 XplatUI.SetVisible here, it's effectively done by
12897 XplatUI.CreateWindow on X now, and always was on windows.
12899 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
12900 shortcircuit out of the loop if we have a message loop running on
12903 [Changelog from merge]
12905 2007-03-05 Chris Toshok <toshok@ximian.com>
12907 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
12908 causes handle creation.
12910 2007-02-28 Chris Toshok <toshok@ximian.com>
12912 * ApplicationContext.cs: Add a flag to make sure we only raise the
12913 ThreadExit event once (ExitThreadCore can be indirectly called
12914 from a few places.) I don't like the additional flag, but it
12915 makes the event ordering/count correct.
12917 * Application.cs (MWFThread.LoopCount): don't use an enumerator
12918 without locking the collection. An enumerator doesn't give us any
12919 protection from modification anyway. Lock the thread hash and
12920 replace the complicated enumerator loop with a foreach.
12921 (Application.CloseForms): make internal so it can be called from
12922 ApplicationContext. This should probably be moved to MWFThread.
12923 (Application.ExitThread): don't call MWFThread.Current.Exit()
12924 here. just call XplatUI.PostQuitMessage. We'll exit the thread
12925 when the runloop exits (in response to WM_QUIT.)
12926 (Application.RunLoop): add a comment (and check) for
12927 context.MainForm being null after setting context.MainForm.Visible
12928 = true. This is because you're perfectly free to dispose of a
12929 form in VisibilityChanged. Chalk this up to another case where we
12930 need to synchronously generate WM_ACTIVATE from Control.Show.
12931 Also, add handling for WM_QUIT here so we'll exit the loop.
12933 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
12934 fact that we don't wait if we're only unmapping the whole_window
12935 makes me a bit nervous, but it doesn't seem to cause any problems
12938 also, add a comment about the stupid, broken and wrong resetting
12939 of PostQuitState to false in GetMessage().
12941 In PostQuitMessage, we need to add a WM_QUIT message to the
12942 thread's queue. We use the FosterParent to get the right
12945 Lastly, in SetVisible, we need to unmap both windows, since the
12946 waiting only happens when we're unmapping the client window. So
12947 now, the *only* time we unmap just the whole_window is in the hack
12948 for resizing a control to 0,0.
12950 2007-02-21 Chris Toshok <toshok@ximian.com>
12952 * Application.cs (CloseForms): rewrite this so that we don't
12953 modify the list while we're traversing it.
12955 2007-02-20 Chris Toshok <toshok@ximian.com>
12957 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
12958 of OnHandleCreated.
12959 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
12960 handle is created. otherwise we'll create it here.
12961 (VerticalScrollEvent): same here.
12963 * Application.cs (CloseForms): call Form.Dispose, don't post
12966 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
12967 here. Application should Dispose() of the Form's.
12969 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
12970 WM_DESTROY as well.
12971 (MapWindow,UnmapWindow): only actually do the waiting for
12972 SHOWWINDOW if the control we're dealing with is a Form.
12973 (CreateWindow): if the control isn't a form, SendMessage
12974 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12976 * Control.cs (SetVisibleCore): always use is_visible here, not
12977 value. If we use value, we can end up re-setting something
12978 visible if, for instance, you do Control.Hide() in a delegate
12979 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12981 2007-02-20 Chris Toshok <toshok@ximian.com>
12983 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12984 the message we need. PeekMessage returning false should not be a
12985 condition under which we exit the loop.
12987 2007-02-15 Chris Toshok <toshok@ximian.com>
12989 * Control.cs (Refresh): only refresh if we've got a handle and are
12991 (CreateAccessibilityInstance): CreateControl() here.
12992 (UpdateChildrenZOrder): complicate the code loop even more by
12993 taking into account controls that haven't had their handle
12994 created, and those that aren't visible. But on the flip side,
12995 simplify the code by splitting it into two loops. one which
12996 builds up the list of child controls we're interested in, and the
12997 other that sets the z order of those children.
12999 2007-02-14 Chris Toshok <toshok@ximian.com>
13001 * Control.cs: Control.AccessibilityObject causes the control to be
13002 created, not just the handle.
13004 2007-02-14 Chris Toshok <toshok@ximian.com>
13006 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13007 problem on X where a window might have its handle created (and be
13008 visible) while the window is unmapped. calling XConfigureWindow
13009 on an unmapped window is bad, and generates X errors.
13011 2007-02-13 Chris Toshok <toshok@ximian.com>
13013 * Control.cs (CreateHandle): don't loop over our children setting
13014 their parent here. do it when in WndProc when we're shown.
13015 (UpdateChildrenZOrder): make this internal so we can call it from
13017 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13018 creating its handle. Also, remove the calls to PerformLayout from
13019 here. they're done in ScrollableControl.OnVisibleChanged. Also,
13020 OnVisibleChanged only seems to be called directly here for the
13021 toplevel control. It's propagated down the window hierarchy by
13022 calls to child.OnParentVisibleChanged.
13023 (OnVisibleChanged): don't do layout here - it's done (oddly
13024 enough, according to a glance at stack traces on ms.net..) in
13027 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13028 z order of our children before calling PerformLayout.
13030 2007-02-12 Chris Toshok <toshok@ximian.com>
13032 [big change, fixes #80020]
13034 * AccessibleObject.cs: we need to make owner internal again to fix
13035 some of ControlAccessibleObject.
13037 * Control.cs: lots of changes here. add support for WM_CREATE,
13038 for which we generate OnHandleCreated. Remove the OnHandleCreated
13039 call from CreateHandle. Also add support for WM_SHOWWINDOW where
13040 we create child controls. leave the MonoTODO's for the
13041 accessibility calls, but fix the exceptions so the tests pass.
13043 Add the InvalidOperationExceptions to Invoke methods, and remove a
13044 couple of InvokeInternal methods we aren't using.
13046 Also, add a couple of CreateHandle calls in places where we know
13047 the handles are being created but our code doesn't reference
13050 Make SetVisibleCore call OnVisibleChange if the handle isn't
13051 created. If the handle is created, we rely on XplatUI.SetVisible
13052 generating the event synchronously.
13054 Lastly, make sure we don't use this.Handle inside CreateHandle,
13055 because we can call back into client (and that code can dispose of
13058 * XplatUIStructs.cs: misc/cleanup.
13060 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13061 although we don't populate the wParam properly.
13062 (CreateWindow): generate WM_CREATE.
13063 (MapWindow,UnmapWindow): make these calls synchronous, at great
13064 performance expense (particularly in the unmap case), to match
13067 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13069 (set_MdiParent): don't recreate the handle unless it's been
13072 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13075 * NativeWindow.cs: this is probably the weirdest part of the
13076 patch. We need a way to link up the window being created to the
13077 WM_CREATE message. Since we can only be creating one window at a
13078 time on a given thread, we keep track of a per-thread reference so
13079 we can dispatch it properly. We also need to keep track of the
13080 Hwnd currently being created so that the win32 backend doesn't
13083 * XplatUIWin32.cs: a similar change to the one we made in
13086 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13088 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13089 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13090 to draw the menu shortcut string.
13092 2007-03-07 Jackson Harper <jackson@ximian.com>
13094 * TreeNode.cs: Add the 2.0 collapse method.
13096 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13098 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13100 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13102 * DataGridView.cs: Change DataSource will clear column and row
13103 lists. Call Invalidate() to reflect DataSource change.
13105 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13107 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13108 and a new row is added to it.
13110 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13112 * DataGridView.cs: Add columns when DataSource is en empty list but
13113 is a System.Data.DataView (from a System.Data.DataTable).
13115 2007-03-06 Andreia Gaita <avidigal@novell.com>
13117 * Label.cs: Implement AutoEllipsis (2.0)
13119 2007-03-06 Jackson Harper <jackson@ximian.com>
13121 * TreeView.cs: Implement 2.0 TopNode setter property.
13122 - Use a local var instead of the skipped_nodes field for computing
13123 how many nodes to skip. Otherwise we won't scroll because the
13124 valuechanged handler checks if skipped_nodes is equal to the new
13126 - Implement 2.0 Sort method.
13127 - Add useless 2.0 DoubleBuffer property
13128 - Implement 2.0 LineColors property. Lets you change the color of
13129 the lines in the tree. Terribly useful for creating non cohesive
13131 - Implement 2.0 image key feature.
13133 2007-03-06 Jackson Harper <jackson@ximian.com>
13135 * TreeView.cs: We can't get the bounds of the nodes before raising
13136 the AfterSelect event, because that event could change the node's
13137 bounds (scrolling, font change, etc).
13139 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13141 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13142 * Form.cs: Don't recreate handle when creating FormWindowManager, just
13143 update window styles. In CreateParams us VisibleInternal instead of
13144 VIsible to get the actual visible flag set for this form.
13145 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13146 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13147 handle the case when the form is already maximized, in which case
13148 it should be restored. Fixes #81043.
13150 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13152 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13154 2007-03-05 Jackson Harper <jackson@ximian.com>
13156 * TreeViewHitTestInfo.cs: implement.
13158 2007-03-05 Jackson Harper <jackson@ximian.com>
13160 * InternalWindowManager.cs: class status fix.
13162 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13164 * InternalWindowManager.cs: All windows that have a parent
13165 are confined to their parent when they're being moved.
13168 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
13170 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13171 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13173 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13175 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13176 buttons invisible before deciding which ones should be visible
13177 (fixes minimize/maximize buttons showing up in toolwindows). Remove
13178 an unused variable.
13179 * InternalWindowManager.cs: Remove warning.
13181 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13183 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13184 to throw an InvalidOperationException is virtual mode is being used.
13186 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13188 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13189 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13190 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13191 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13192 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13193 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13195 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13197 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13198 driver.KeyboardDelay from XplatUI.KeyboardDelay
13199 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13200 (patch by Sergey Volk)
13202 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13204 * ToolWindowManager.cs: Added, contains logic for
13206 * CreateParams.cs: Add a few helper methods and an
13207 internal variable to know which control the CreateParams belongs
13209 * Control.cs: Call Form.ChangingParent when the
13210 parent is about to be changed.
13211 * XplatUIX11.cs: DeriveStyles (): Set
13212 caption_height for all windows that have captions and are children.
13213 Update to use ToolWindowManager instead of InternalWindowManager
13215 * XplatUIWin32.cs: Set fake window styles for all
13216 windows that have window managers.
13217 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13218 now duplicated for mdi windows when they are
13219 maximized, first for the buttons the window itself has, then for
13220 the buttons that appear in the menu bar. Makes things a little
13221 easier). Updated UpdateWindowDecorations, SetWindowState and the
13222 mouse eventhandlers accordingly.
13223 * Form.cs: Add ChangingParent (), contains the
13224 logic of what should happen when the parent changes. In MdiParent
13225 don't set things that ChangingParent () is doing. When handling
13226 WM_CLOSE, we can close the form if there are any other modal forms
13227 and the current form is a descendent of the modal form.
13228 * InternalWindowManager.cs: A lot of refactoring,
13229 the title buttons are now extracted to a separate container class
13230 that takes care of all button code (clicks, tooltips, etc). Moved
13231 Iconic|Maximized|Normal Bounds properties to this class from
13232 MdiWindowManager, so that the window state logic can succeed for
13233 other than mdi wm's. Implemented general window state change logic.
13234 Moved CreateButtons to ThemeWin32Classic, since the theme might
13235 override which buttons are available when as well as the exact
13237 * FormWindowManager.cs: Added, contains logic for
13239 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13240 which buttons go where (and if they are at all visible).
13241 Removed special handling of maximized windows, since they aren't special.
13242 In DrawManagedWindowDecorations don't try to draw the text if it is
13244 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
13245 use whatever the wm gives us.
13247 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13249 * ButtonBase.cs: Add 2.0 properties.
13250 * Button.cs: Override Draw for 2.0.
13251 * Control.cs: Add Entered and Selected properties.
13252 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13253 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13254 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13256 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13258 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13260 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
13262 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13264 * XplatUIWin32.cs: Register a new class with Windows each time we get
13265 a new ClassStyle. [Fixes bugs #79432, #80817]
13266 * Controls.cs: Set the correct ClassStyle in CreateParams.
13267 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13269 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
13271 * ListView.cs: Add fireEvent argument to ReorderColumn since the
13272 ColumnReordered event must not be signaled when modifying DisplayIndex
13273 of a ColumnHeader. Added internal ReorderColumns method which takes
13274 care of drawing, and updating the internal DisplayIndex of the
13275 ColumnHeader. Added AddColumn method which is invoked from
13276 ColumnHeaderCollection when adding or inserting columns, and which
13277 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13278 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13279 Recalculated dispay indices after removing a ColumnHeader.
13280 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13281 match MS. Allows last display index to be returned after ListView
13282 is disposed. Update actual location of ColumnHeader when DisplayIndex
13285 2007-03-01 Everaldo Canuto <everaldo@simios.org>
13287 * LinkLabel.cs: Improve CalcTrimRectangle.
13289 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13291 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13293 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13294 get rectangle as a result value.
13296 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13298 * LinkLabel.cs: Theres some diferences between rectangle return from
13299 MeasureCharacterRanges and the area used for DrawString to fix this
13300 CalcMeasurementFactor method was created, it calcules the diferences
13301 to be use later to adjust rectangle in draw operations. Fixes #80473.
13303 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13304 to adjust draw rectangle.
13306 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13308 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13309 text and some other changes to reduce and optimize source code.
13311 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13313 * RadioButton.cs: Implement 2.0 event.
13314 * RelatedImageListAttribute.cs: Implement new class.
13316 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13318 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13320 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13322 * CheckBox.cs: Implement 2.0 functionality.
13324 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13326 * ListView.cs: Refactor Add and AddRange methods of
13327 ListViewItemCollection, to not update the ListView
13328 everytime an item is added in AddRange. Also move the update
13329 code to a new CollectionChanged method, and call it
13330 from other methods that need it as well (this should also fix some
13331 bugs when Sorting is used).
13333 2007-02-27 Jackson Harper <jackson@ximian.com>
13335 * TextControl.cs: Try to never let the caret stay in a non-text
13337 * TextBoxBase.cs: Update the caret.
13339 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
13341 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13342 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13343 delete POINT structure, duplicate of one in XplatUIStructs.
13344 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13346 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
13348 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13349 edit box since otherwise the Label would immediately be set (even if
13350 the user did not modify the label). In OnKeyDown set Handled to true
13351 if Return or Escape was pressed. In ColumnHeaderCollection unlink
13352 columns that are to be removed. In ListViewItemCollection unlink items
13353 that are to be removed.
13355 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
13357 * TextRenderer.cs: If we set a GDI clip region, we need to clear
13358 it when we are done. [Fixes bug #80949]
13360 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13362 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13364 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13366 * ListView.cs: I forgot to commit the changes for ListView
13367 in my previous patch.
13369 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13371 * Clipboard.cs: Partially implement an overload of SetDataObject.
13372 * Form.cs: Implement ShowWithoutActivation.
13373 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13375 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13377 This is a first set of changes to make the Virtual mode works,
13378 by avoiding the retrieval of ListViewItem instances until
13381 * ListView.cs: Store item position in the ListView instead of the
13382 ListViewItem, this way we don't request the Bounds property of
13383 ListViewItem inside the ListView calculations, as well as cache the item
13384 size in item_size field. Store indexes instead of ListViewItem
13385 instances in the matrix used by icon view. Add a ItemMatrixLocation
13386 struct to hold the row and col info of the matrix info.
13388 * ListViewItem.cs: Don't store the location anymore, and only cache
13389 the rectangles for GetBounds. Use the ListView.GetItemLocation
13390 method to retrieve the actual location.
13392 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13394 * TextRenderer.cs: Add clipping support, thanks to George.
13397 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13399 * ListViewItem.cs: Cancel label edit when item is removed from
13401 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13402 event before the edit textbox is displayed. Added CancelEdit method
13403 which is used end to editing while ignoring the value set by the
13404 user. In EndEdit, set focus to ListView to avoid losing focus to
13405 other controls. In ListViewItemCollection.Clear, cancel editing of
13406 any of the items. In Remove, cancel editing of item being removed.
13407 Avoid udplicate code by modifing RemoveAt to invoke Remove.
13409 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13411 * FileDialog.cs: Update FSEntry when move is successful. Fixes
13414 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13416 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
13417 compatible with non X11 systems. Fixes #80901.
13419 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13421 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13422 whether the item should be unselected and reselect. We do no want this
13423 when we're starting to edit the label. Do not fire the
13424 SelectedIndexChanged event from ListView when its already been fired
13425 by modifying ListViewItem.Selected. Fixes bug #80943.
13427 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13429 * TextRenderer.cs: Previos commit logic was backwards.
13431 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13433 * TextRenderer.cs: Don't add padding on MeasureText if we were
13434 sent the NoPadding flag.
13436 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13438 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13439 after DrawButton. To prevent image overlaps button borders SetClip and
13440 ResetClip added before and after draw image. Fixes #79129.
13442 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13444 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
13445 window size, it fix problem when you run under win32 that theres
13446 Size diferent than ClientSize. Also fix controls size and positions
13447 to mimic Win32. Fixes #80837.
13449 2007-02-22 Everaldo Canuto <everaldo@simios.org>
13451 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
13452 menu area to fix some problems for non X11 systems. Fixes #80613.
13454 2007-02-22 Jackson Harper <jackson@ximian.com>
13456 * TreeNode.cs: When a node is expanded, set its is_expanded flag
13457 even if it doesn't have any children.
13459 2007-02-22 Jackson Harper <jackson@ximian.com>
13461 * TreeView.cs: Calculate the top node 'on the fly', this
13462 eliminates issues where you need to click on the tree before
13463 scrolling it to get the top node computed correctly.
13464 * TreeNodeCollection.cs: We don't need to mess with the top node
13467 2007-02-22 Jackson Harper <jackson@ximian.com>
13469 * DataGridViewRow.cs: Fix typo so height can actually be set.
13470 Patch by Peter Grimm.
13472 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13474 * FileDialog.cs: Fixed support for renaming files and directories.
13475 * ListView.cs: Do not lose focus when edit is canceled. Process
13476 Escape as regular key (to prevent closing of dialogs).
13478 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13480 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13481 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13483 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13485 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13486 did not modify label.
13487 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13488 modified the text. Reset Label when user presses Escape in edit mode.
13489 Move focus to ListView after having cancelled or finished editing the
13492 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
13494 * ComboBox.cs: Removed unnecessary initializations. Marked items field
13495 private. Clear textbox when Text is set to null and SelectedIndex is
13497 * FileDialog.cs: Removed unnecessary initializations. Removed
13498 workarounds for ComboBox bugs that are now fixed. Modified
13499 DefaultExt, InitialDirectory and Title property to change null to
13500 zero-length string in getters. Avoid directly accessing fields.
13502 2007-02-20 Jackson Harper <jackson@ximian.com>
13504 * TextControl.cs: Remove RecalAlignments call, that was some
13505 debugging leftovers.
13506 - Don't use the line indent when we shouldn't.
13507 * RichTextBox.cs: Add support for paragraph left indents.
13509 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13511 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13512 Seems like the class status pages doesn't catch params differences.
13514 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13516 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13518 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13520 * ComboBox.cs: Setting Text should have no effect if item text of
13521 selected item exactly matches value. First lookup text using
13522 case-sensitive comparison, and fallback to case-insensitive comparison.
13523 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
13524 allow startIndex to be last index. Changed ArgumentOutOfRangeException
13525 paramname to match MS. Restart from first item if string is not found
13526 after startIndex. Fixed paramname of ArgumentNullException that is
13527 thrown for null value in ObjectCollection.Contains.
13529 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13531 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13533 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13535 * ListControl.cs: In SelectedValue use value.Equals to compare for
13536 equality instead of ==, otherwise it will fail for strings.
13539 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13541 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
13542 since the caret won't show up unless ShowSelection is true.
13545 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13547 * Application.cs: When disabling all forms but the main form, do not
13548 disable any descendants of the main form (such as mdi children or
13549 other parented forms). Fixes #80822 on Windows.
13550 * Form.cs: If we have a parent, set the WS_CHILD style.
13551 * Control.cs: Update the window styles if the control whose parent has
13552 changed is a form (the WS_CHILD style has to be switched).
13554 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13556 * XplatUIStructs.cs: MsgUIState structure added.
13558 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13560 * FileDialog.cs: Removed need for separate fileName field. On 2.0
13561 profile, do not check filename(s) for illegal character if filename(s)
13562 were set non-interactively but always check on 1.0 profile. Fixed NRE
13563 in DefaultExt and only strip off first leading dot. Improve exception
13564 message when invalid Filter is set. Do not ignore InitialDirectory if
13565 it does no exist. Store specified Title, and if empty use default
13566 title (depending on type of dialog). Added an internal DialogTitle
13567 property for retrieving dialog title. Fixed logic of displayed dir to
13568 more closely match MS. Avoid setting ComboBox.Text to a zero-length
13569 string as its buggy.
13570 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
13571 FileName is a zero-length string (it can never be null). Override
13572 DialogTitle property to set default title of dialog box.
13573 * SaveFileDialog.cs: Override DialogTitle property to set default
13574 title of dialog box.
13576 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
13578 * FileDialog.cs: Modify default text of filename and filetype labels
13579 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
13580 after we've updated the SelectedIndex. Fixes part of bug #80887.
13581 * SaveFileDialog.cs: Set text of filetype label.
13583 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13585 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
13586 label field. Needed by latest Jackson's fixes for ListView.
13588 2007-02-16 Andreia Gaita <avidigal@novell.com>
13590 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
13591 print preview images.
13593 2007-02-16 Jackson Harper <jackson@ximian.com>
13595 * ListView.cs: Make AfterLabelEdit work correctly.
13596 * FileDialog.cs: After changing the name of the folder, we have to
13597 make sure that it is created, or that we pop up an error because
13600 2007-02-16 Jackson Harper <jackson@ximian.com>
13602 * X11Dnd.cs: Implement aliases on mime handlers, so things like
13603 System.String are mapped to text.
13604 - Handle dataobjects, getting all the possible formats out of them
13605 - We dont need the drag event args before we give feedback. This
13606 allows feedback cursors to be immediate before selections have
13609 2007-02-16 Jackson Harper <jackson@ximian.com>
13611 * TextBoxBase.cs: Modified the method for inserting images to
13612 taking a line and position instead of tag and position.
13613 * RichTextBox.cs: Handle PngBlip data by inserting the png image
13615 * TextControl.cs: Allow images to be inserted as the first tag of
13617 - Fix some off by one issues when we assume the first tag is a
13618 text tag, not an image tag.
13620 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13622 * ListView.cs: Set focus to ListView when ItemControl gets a
13623 WM_RBUTTONDOWN message, to mimic .Net behaviour.
13624 Fixes part of #80467.
13626 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
13628 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
13629 validate Text input (if null or empty string reset Value to default
13630 value). Fixes #80830.
13632 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13634 * ListView.cs: Set owner as null for columns and items when
13635 Dispose is invoked. Fixes #80607.
13637 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
13639 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13640 showing DropDowns, don't show a Grip when doing Flow layout.
13641 [This fixes the toolbox in PDN 2.72.]
13642 * ToolStripItem.cs: Add Anchor property and some internal properties to
13643 reduces needed changes to FlowLayout.
13644 * ToolStripOverflow.cs: Remove unused variable.
13645 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13646 use it in the layout calculations.
13648 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13650 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13651 reported in #79640.
13653 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13656 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13658 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
13659 MeasureString format, it can make button very large in some cases, it is
13660 strange but is what win32 do.
13662 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13664 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
13667 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13668 rendering, the value is based on MenuAccessKeysUnderlined.
13670 2007-02-13 Everaldo Canuto <everaldo@simios.org>
13672 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13675 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13677 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13678 and use MenuAccessKeysUnderlined instead.
13680 2007-02-13 Andreia Gaita <avidigal@novell.com>
13682 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13683 A selected control would not get a Focus call if:
13684 - the default active control of the container is the same as
13685 the one that was selected
13686 - we are switching from one container to another
13687 Under these conditions, the container being selected already has
13688 an active_control, which is the same as the one being activated,
13689 so set_ActiveControl would always return and not send the Focus
13690 call. Fix to check if the currently active control of the container
13691 is actually focused.
13693 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
13695 * StatusStrip.cs: Implement the spring layout.
13696 * ToolStripControlHost.cs: Make sure the hosted control's visibility
13697 always matches the host.
13698 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13699 and TextAfterImage.
13701 2007-02-13 Andreia Gaita <avidigal@novell.com>
13703 * Control.cs: Code reorganization only.
13704 - Reorganize the WndProc cases so that each case has it's own handling method,
13705 to help with the no-line-numbering stack traces.
13706 - Formatting changes (it's vstudio's fault, really :p)
13708 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
13710 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
13711 Thread.CurrentUICulture to match DateTimePicker's (and MS)
13714 2007-02-12 Jackson Harper <jackson@ximian.com>
13717 * TextBox.cs: By default we have a non multiline document
13718 - use the multiline property instead of the internal variable
13719 * TextBoxBase.cs: Treat multiline and non multiline the same in
13721 - Use the documents multiline flag instead of tracking it ourself
13722 * TextControl.cs: Attempt at getting multiline to match MS
13723 behavior. Lines now track an offset, which is either their X or Y
13724 offset depending on whether or not we are in multiline mode.
13725 - Update all the methods to understand that lines have an X value.
13726 - Fix crash in Undo::Duplicate when empty lines are deleted.
13728 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13730 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
13731 code moved to properties PreferredHeight and PreferredWidth. It solve the
13732 all problems when preferred sizes must be recalculated. Fixes #80801.
13734 2007-02-12 Everaldo Canuto <everaldo@simios.org>
13736 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
13737 font height when compatible_text_rendering is false. Partially fix #80801.
13739 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13741 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
13743 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13745 * Form.cs: Improved exception messages in ShowDialog.
13747 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
13749 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
13750 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
13751 if not set. Fixes bug #80764. Avoid accessing current_settings field
13754 2007-02-08 Everaldo Canuto <everaldo@simios.org>
13756 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
13759 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
13760 public in 2.0 and for easy maintenance and dont break compatibility it is
13763 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13765 * ToolStripItem.cs: Implement using images from ImageList.
13767 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13769 * DateTimePicker.cs: Change default date-formatting culture from
13770 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
13771 seems to be the way MS does it.
13773 2007-02-08 Andreia Gaita <avidigal@novell.com>
13775 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
13776 (the 6 was cut off on the right side)
13778 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13780 * Form.cs: Tell MenuStrips to close when the form is clicked.
13781 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
13782 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
13783 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
13784 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
13785 support for Overflow, where items that do not fit are automatically
13786 reparented to a drop down menu.
13787 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
13788 Also: fixes bug #80747.
13790 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13792 * ComboBox.cs: Remove warning (unused code).
13793 * ScrollableControl.cs: Remove warning for 1.1 profile.
13795 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13797 * Form.cs: Remove a warning.
13799 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
13801 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
13802 'g' specifier, not documented anywhere, but seems to always show up
13803 as a single space (might have something to do with the DateTime 'g'
13804 specifier, which is the era format, but since DateTimePicker can't
13805 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
13806 won't crash if the format has an unmatched quote. Now shows
13807 single-character formats correctly. Fixes #80744.
13809 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
13811 * StatusStrip.cs: Stretch property needs to call base.Stretch,
13812 not this.Stretch to fix stack overflow. [Fixes bug #80760]
13814 2007-02-07 Chris Toshok <toshok@ximian.com>
13816 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
13817 background color. it overwrites the background image we've
13818 already painted. Fixes #80599.
13820 2007-02-07 Chris Toshok <toshok@ximian.com>
13822 * DataGrid.cs: return immediately from Edit() when there are no
13823 columns. Fixes #80662.
13825 2007-02-07 Chris Toshok <toshok@ximian.com>
13827 * MessageBox.cs: fix #80625. don't always show the Help button in
13828 2.0. use the displayHelpButton parameter to determine if we
13829 should show it. Also, make the internal show_help field private.
13831 2007-02-07 Chris Toshok <toshok@ximian.com>
13833 * Control.cs (SetVisibleCore): check in the proposed patch for
13834 80604, and set is_visible before calling CreateControl.
13836 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
13838 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
13839 MonoInternalNote. This is added automagically by VS2005, so let's not crash
13842 2007-02-06 Everaldo Canuto <everaldo@simios.org>
13844 * MenuAPI.cs: hotkey_active internal field added, it is required because
13845 we need to know when hotkeys must be draw, before this change a keystate
13846 Navigating was used but we can have menu in navigating state without
13847 hotkeys. Fixes #80694.
13849 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
13851 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13853 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
13854 corresponding events and methods to be internal for 1.1 profile and
13855 public for 2.0 profile (required by SizeGrip).
13856 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
13857 implicit control list). Don't set the size nor the location of the
13858 SizeGrip anymore as it's not needed.
13859 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
13860 draw directly on the captured control (fixes #80656). Removed
13861 ShowGrip (it wasn't used anywhere), redraw (always true), added
13862 GetDefaultSize and GetDefaultRectangle to calculate defaults.
13863 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
13864 be called from SizeGrip.
13866 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13868 * Timer.cs: Throw ArgumentException if Interval <= 0.
13870 2007-02-05 Jackson Harper <jackson@ximian.com>
13872 * TreeView.cs: We need to check scrollbar visibility when window
13873 visibility is updated, because non visible trees don't ever add
13875 * Cursor.cs: We want the override cursor to be reset to NULL when
13876 we set current cursor to the default cursor.
13878 2007-02-05 Jackson Harper <jackson@ximian.com>
13880 * TextControl.cs: Don't have crlfs when we are non multiline.
13881 - Consolidate the line position.
13883 2007-02-05 Jackson Harper <jackson@ximian.com>
13885 * X11Keyboard.cs: BACK+CTRL gets a special char code.
13887 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13889 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
13890 handling LeaveNotify->NotifyUngrab in order to send
13891 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
13892 after calling XUngrabPointer, so we call WindowUngrabbed directly
13893 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
13894 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
13895 MouseCaptureChanged correctly. Also create handles if changing
13896 Capture (matches MS behaviour).
13898 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13900 * SizeGrip.cs: Make the last change 2.0 only.
13902 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13904 * SizeGrip.cs: If resizing and the capture is lost, revert any size
13905 changes to initial size (fixes #80597).
13907 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13909 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
13911 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13913 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
13914 background) and only allow dragging if enabled. This way the
13915 sizegrip can be used to fill the open square that otherwise would
13916 have been shown in the bottom right corner of ScrollableControl
13917 when ScrollableControl is not suppose to support sizing.
13918 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
13919 sizegrip is shown and enabled, and hook up with necessary events.
13921 2007-02-01 Chris Toshok <toshok@ximian.com>
13923 * DataGridTextBoxColumn.cs: clean up the
13924 GetFormattedString/GetColumnValueAtRow combination of functions.
13925 Also fix UpdateUI, and the initial state of
13926 IsInEditOrNavigateMode.
13928 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
13929 aren't supposed to scroll the textbox here, we're supposed to
13930 scroll the datagrid.
13932 2007-02-01 Chris Toshok <toshok@ximian.com>
13934 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
13935 setting the position.
13937 2007-02-01 Chris Toshok <toshok@ximian.com>
13939 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
13940 here, since the most recent focus fixes keep us from generating
13941 the Leave event when our textbox gets focus.
13942 (Edit): we should be passing null for the column style's
13943 instantText parameter.
13945 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
13947 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
13948 raised. Fixes menu text/icons not showing up in PDN.
13950 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
13952 * Control.cs: Remove code in constructor that makes every
13953 control with WS_CHILD set have initial location -1, -1.
13955 2007-01-31 Jackson Harper <jackson@ximian.com>
13957 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
13959 * XplatUIX11.cs: Give teh keyboard to teh dnd.
13961 2007-01-31 Jackson Harper <jackson@ximian.com>
13963 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
13964 - Remove some debug code.
13966 2007-01-31 Jackson Harper <jackson@ximian.com>
13968 * XplatUIX11.cs: If you set the override cursor during a grab, it
13969 should actually override the grab cursor. This comes into play
13970 when you are setting custom cursors in a DND feedback method.
13972 2007-01-31 Jackson Harper <jackson@ximian.com>
13974 * X11Dnd.cs: Add support for handling the QueryContinue and
13975 GiveFeedback events.
13976 - Cancel drag and drop actions when the escape key is clicked.
13977 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13978 can handle the ESCAPE key.
13979 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
13980 done when dnd events are continued after the button is released.
13981 - Add a new helper method so that dnd can translate key events.
13983 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
13985 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13986 make it more obvious what is happening.
13988 2007-01-30 Jackson Harper <jackson@ximian.com>
13990 * XplatUIX11.cs: Don't break when handling button release in drag
13991 and drop operations. We need that BUTTONUP message to get through
13992 so capture is released.
13993 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13994 this is handled automatically when the mouse is down.
13996 2007-01-30 Jackson Harper <jackson@ximian.com>
13998 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13999 is closed, so we need to make sure that we aren't changing the
14000 dialog result when the OK (Open or Save) button has been clicked
14001 and we are closing the window ourselves. Note we don't need to
14002 worry about the cache being written in this case, because it was
14003 already done in the previous FilOk call.
14005 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14007 * DateTimePicker.cs: Remove a warning.
14008 * ComboBox.cs: Remove a couple of warnings.
14010 2007-01-29 Chris Toshok <toshok@ximian.com>
14012 * XplatUIX11.cs: don't crash, and remove the icon if the user has
14013 set one, if SetIcon is passed a null icon.
14015 2007-01-29 Andreia Gaita <avidigal@novell.com>
14017 * TextBox.cs: Redraw when the password characters changes
14018 * TextControl.cs: Check if textbox has a password char and draw
14019 a line of password chars instead of the text in the line. LineTag gets
14020 an extra Draw() method which allows document.Draw to override the text
14021 that will be drawn. Removes 1024 char limitation on length of passworded
14024 2007-01-29 Jackson Harper <jackson@ximian.com>
14026 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
14027 single chars is not.
14029 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
14031 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14032 one pixel. Fix a StackOverflowException caused by an overload wrongly
14035 2007-01-26 Everaldo Canuto <everaldo@simios.org>
14037 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14038 also remove ProcessArrowKey and put the code inside ProcessKeys.
14040 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
14042 * PaddingConverter.cs: Added.
14044 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14046 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14047 ShowPanels is false (fixes #80600). Only draw up to 127 characters
14048 of text (fixes #80601). For panels clip the text to draw to the
14049 panel (fixes #80603).
14051 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14053 * ComboBox.cs: Fixed implementation of ResetText.
14055 2007-01-25 Jackson Harper <jackson@ximian.com>
14057 * TextControl.cs: For the last char of a line we need to use the
14058 line size, not that chars width, since it won't actually be
14059 computed since the right side of a char is based on the start of
14060 the left side of the next char, and the next char does not exist.
14062 2007-01-25 Chris Toshok <toshok@ximian.com>
14064 * Splitter.cs: fix the new unit tests, and reindent some switch
14067 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14069 * ComboBox.cs: Implemented 2.0 methods and events.
14070 * TextBoxBase.cs: Added OnTextUpdate, so that
14071 ComboBox.ComboTextBox can inform ComboBox of it.
14073 2007-01-25 Jackson Harper <jackson@ximian.com>
14075 * TextControl.cs: Respect ShowSelection when deciding whether or
14076 not to display the caret, this allows comboboxes to have carets
14077 when the combotextbox does not have focus.
14079 2007-01-25 Jackson Harper <jackson@ximian.com>
14081 * TextControl.cs: Add a Suspend/Resume for updating, basically the
14082 same as the Suspend/Resume for recalc, except this will do actual
14084 - New Undo manager, works much like the MS version.
14086 * TextBoxBase.cs: The Cut operation is undoable.
14088 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14090 * TextBoxBase.cs: Don't antialias text. Makes it look way better
14091 on Windows (no difference on Linux).
14093 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14095 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14096 we don't want to activate any windows. Fixes #79433.
14098 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
14100 - ButtonBase.cs: Fix capitalization of parameter: disposing.
14103 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
14106 - Move to using System.ComponentModel.EventHandlerList
14107 - Replace Refresh with Invalidate
14108 - Clear the mime filecache on closing
14109 - Some other memory reducing work. After beeing closed FD now uses
14110 only about 300 KB for the fdo mime stuff plus the memory of the
14112 * Mime.cs: Changed coding style and removed unnecessary commented
14113 code. Some more memory memory reducing work.
14115 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14117 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14118 a few other missing 2.0 properties.
14119 * Theme.cs: Added DrawFlatStyleComboBox.
14120 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14122 2007-01-24 Chris Toshok <toshok@ximian.com>
14124 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14125 wake_waiting flag, not just when there's data to be read. if we
14126 don't, then future wakeup's won't reach us and we'll be doomed to
14127 wait for the entire 1 second timeout forever (unless there are X
14130 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14132 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14133 until you pass Items.Count, not Items.Count - 1 like 1.1.
14135 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
14137 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14139 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14141 * ToolStripContainer.cs: The recent Dock fix exposed that I was
14142 adding the panels in the wrong order.
14144 2007-01-24 Jackson Harper <jackson@ximian.com>
14146 * TextBoxBase.cs: When we move the caret we also need to move the
14147 selection, this fixes some random crashing after doing select
14148 text, unselect, delete a char, paste.
14150 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14152 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14154 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14156 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14157 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
14158 * ToolBar.cs: Force redraw in BackgroundImageChanged.
14160 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14163 - Implement support for vertical toolbars. Fixes #80539;
14164 - Call LayoutToolBar when resize, it fix some other problems in layout.
14165 - Rename requested_height to requested_size, as we can have width on it
14166 when toolbar is vertical.
14167 - Create a private property "Vertical" that uses Dock to verify when
14168 toolbar is vertical or not.
14169 - Set ControlStyles when change Dock property.
14170 - Refactory in LayoutToolBar to have better variables names and to support
14172 - Fixes default value for ButtonSize when button count is equal zero, size
14173 must be (39, 36) test case writed.
14175 2007-01-23 Chris Toshok <toshok@ximian.com>
14177 * Control.cs: fix the checks so that they work correctly for mdi
14180 2007-01-23 Chris Toshok <toshok@ximian.com>
14182 * Control.cs: ControlCollection seems to have super-secret
14183 abstraction breaking knowledge of Mdi containers. allow MdiClient
14184 to add toplevel controls.
14186 2007-01-23 Chris Toshok <toshok@ximian.com>
14188 * Control.cs: throw an ArgumentException if a toplevel control is
14189 added to our control collection from ControlCollection.Add, as
14190 well as from ControlCollection.IList.Add. This fixes the
14191 ControlSetTopLevelTest.TestTopLevelAdd unit test.
14193 Also, in ControlCollection.IList.Add, don't through an
14194 ArgumentNullException, throw an ArgumentException, when value ==
14195 null. This matches MS.
14197 2007-01-23 Chris Toshok <toshok@ximian.com>
14199 * BindingSource.cs: initial, incomplete, implementation of
14202 2007-01-23 Jackson Harper <jackson@ximian.com>
14205 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14206 that I can fix a broken unit test (TextBoxTest::ClearUndo)
14208 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14210 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14212 2007-01-23 Andreia Gaita <avidigal@novell.com>
14214 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14215 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14216 IndexOfKey() for 2.0
14218 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14220 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14221 to prevent it from changing z-order.
14222 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14223 leave UI updates in MdiWindowManager.
14224 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14225 1 sized (NC handling goes weird on Linux otherwise).
14226 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14227 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14228 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14229 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14230 and SetWindowState(s) to allow for changing the size of an activated child
14231 before activating it (reduces a lot of flicker).
14233 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14235 * Form.cs: Changing FormBorderStyle has different semantics based
14236 on whether the Form is visible or not. If not visible, don't change
14237 the Size. But InvalidateNC needs to be called to force the window
14238 to pick up the changes and redraw itself. [Fixes bug #80574]
14240 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14243 * ContainerControl.cs: ProcessCmdKey.
14244 * ErrorProvider.cs: new constructor.
14245 * Form.cs: fix AutoValidateEvent compiler warning.
14246 * Label.cs: fix OnAutoSizeChanged compiler warning.
14247 * MenuStrip.cs: fix CanOverflow compiler warning.
14248 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14249 * TextBox.cs: Dispose.
14250 * ToolStrip.cs: CanOverflow, re-enable double buffering.
14251 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14252 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14253 * ToolStripItem.cs: Overflow, RightToLeft properties.
14255 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14257 * Form.cs: Move the layout of the main form to MdiWindowManager.
14258 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14259 do a layout of the main window to update MdiClient's client area to
14260 the right area. Fixes #80533. Remove the calculation of nc size,
14261 it was just wrong and the correct one is the same as for
14262 InternalWindowManager.
14264 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
14266 * Control.cs: Setting Anchor or Dock needs to reset the other
14267 to its default. [Fixes bug #80556]
14269 2007-01-20 Chris Toshok <toshok@ximian.com>
14271 * CheckedListBox.cs: class status changes.
14273 * ScrollableControl.cs: same.
14275 * RichTextBox.cs: same.
14277 * ContainerControl.cs: same.
14279 * ListView.cs: same.
14281 * NotifyIcon.cs: same.
14283 * MenuStrip.cs: same.
14285 * RadioButton.cs: same.
14287 * CheckBox.cs: same.
14289 * PrintPreviewDialog.cs: same.
14293 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
14295 * TreeNode.cs: Apply Alan's patch for Name property.
14297 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14299 * Form.cs: Implemented SizeGripStyle.
14300 * SizeGrip.cs: Check for minimum and maximum size for the
14301 control being resized and only resize if size has actually
14304 2007-01-19 Chris Toshok <toshok@ximian.com>
14306 * DataGridColumnStyle.cs: stop setting _readonly in the
14307 PropertyDescriptor setter. fixes a unit test failure.
14309 also, rename ParentReadOnly to TableStyleReadOnly, and have it
14310 just consult our table style (if we have one). We don't need to
14311 consult the datagrid readonly attribute because that's passed in
14312 as the _ro arg to Edit. this simplifies things a little.
14314 * DataGrid.cs: use CurrentColumn instead of
14315 current_cell.ColumnNumber just to simplify some of the code.
14317 switch the order of some things in the CurrentCell setter to keep
14318 the previous cell from getting a textbox again -
14319 EnsureCellVisibility causes scrolling to happen, which calls Edit.
14320 So we need to set the new cell before calling it.
14322 call Edit in OnEnter, as does Microsoft.
14324 also, make sure the current table style isn't the one we create
14325 initially when checking to see if it's different than the one
14326 we're setting it to in BindColumns (this fixes #80421).
14328 * GridTableStylesCollection.cs: table styles can have "" for a
14329 mapping name. part of the fix for #80421.
14331 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14332 Edit significantly.
14334 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14336 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14337 and less GDI object leaky-er.
14339 2007-01-18 Andreia Gaita <avidigal@novell.com>
14341 * LinkLabel.cs: Add opaque control style
14343 2007-01-18 Jackson Harper <jackson@ximian.com>
14345 * TextControl.cs: Calculate width properly.
14346 - Don't store the tag's X offset, this can be figured out very
14348 - When getting the caret tag make sure to get the last empty tag.
14350 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14352 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14355 * Control.cs: Color.Empty shouldn't count for previous transparent
14358 2007-01-18 Jackson Harper <jackson@ximian.com>
14362 * TextControl.cs: Starting to merge in some pieces of my older
14363 undo work. Basically just some slight cleanup of the undo API.
14365 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14367 * TrackBar.cs: Fix signature of RightToLeftLayout.
14368 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14369 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14370 * Application.cs: Implemented UseWaitCursor.
14372 2007-01-18 Jackson Harper <jackson@ximian.com>
14374 * TextControl.cs: We can't skip tags if any part of the tag is
14377 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14379 * ContainerControl.cs: Override OnLayout.
14381 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14383 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14385 * ContextMenuStrip.cs: Make sure context menu is shown on top of
14388 2007-01-18 Chris Toshok <toshok@ximian.com>
14390 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14391 (leftover from the container_selected days, I'd wager). fixes bug
14394 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14396 * Control.cs: Apply patch from George to fix the new testcase on
14397 bug #80451. We can't just check for Color.Transparent, we need
14398 to check if the back color's alpha channel is < 255.
14400 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14402 * Form.cs: Move setting show_icon = true to before the constructor
14403 so that the base constructor has that information when it calculates
14404 the form's size. Was causing forms to be (6, 6) bigger than they
14405 were supposed to be. Thanks for catching this Rolf!
14407 2007-01-18 Jackson Harper <jackson@ximian.com>
14409 * TextControl.cs: When replacing a selection we need to invalidate
14410 from the initial selection start, because selection start is moved
14411 to the end of the replacement.
14413 2007-01-18 Andreia Gaita <avidigal@novell.com>
14415 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14417 2007-01-18 Chris Toshok <toshok@ximian.com>
14419 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14422 2007-01-17 Everaldo Canuto <everaldo@simios.org>
14424 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
14425 layout methods and properties from ToolBarButton must be available
14426 into ToolBarButtonInfo.
14428 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14430 * Control.cs: If the control has a transparent background, we
14431 need to refresh it when it moves and when it's parent's background
14432 image changes. [Fixes bug #80451]
14434 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14436 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
14438 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14440 * XplatUIWin32.cs: Implement proper double buffering for Windows.
14441 [Fixes bug #80447, and probably speeds up things as well]
14443 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14445 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14446 * XplatUIWin32.cs: We need to recalculate NC size after changing
14447 window style to toolwindow (otherwise the client rectangle will be
14448 3 pixels to small for some reason).
14449 * MdiWindowManager.cs: Revert NC size calculations to match how
14450 they are calculated only based on window styles (to match
14451 Win32AdjustWindowRectEx, since otherwise when setting size or
14452 location, Control will call Win32AdjustWindowRectEx to update client
14453 size, which would provoke a paint, then we'd get a NCCALCSIZE and
14454 calculate a different value of client size causing another paint
14456 * InternalWindowManager.cs: When moving or resizing a window only
14457 update size or location if they actually changed.
14458 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14459 (seems to match Windows behaviour better). Cleaned up
14460 ManagedWindowDecorations to draw what's needed and nothing else
14461 (was drawing borders and lines where they shouldn't be)
14462 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14463 (style = 0xFFFF) and takes into account caption height when
14464 calculating window rectangle.
14466 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14468 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
14469 can be added to toolbar multiple times, we need to maintain a list of
14470 button information for each positions.
14472 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14474 * ToolBar.cs: Some small stetic changes.
14476 2007-01-16 Jackson Harper <jackson@ximian.com>
14478 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14479 that allow us to have nested recalc = false blocks.
14480 - Add paste support for images in the RichTextBox
14481 * RichTextBox.cs: flush the text after the color is changed, so
14482 the change takes effect.
14483 - Use SuspendRecalc
14484 - Some extra debugging info
14485 * TextControl.cs: Tags no longer track their length, it is just
14486 computed from the next tags length, this makes things a little
14487 simpler and reduces places that we have to track length changes.
14488 - Refactored the linetag class a little so we could make it
14489 a base class for different kinds of tags
14490 - Created a image tag, a tag that can have a single image inserted
14492 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14493 that we can call suspend multiple times.
14494 - Add some debugging methods
14496 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14498 * MdiClient.cs: Add ActivatePreviousChild for
14499 mdi child window navigation.
14500 * Form.cs: Use MdiClient.ActivateNextChild/
14501 ActivatePreviousChild instead of Form.SelectNextControl
14502 to select the next/previous child since
14503 SelectNextControl doesn't do it in the same order
14504 as mdi children should do it.
14506 2007-01-16 Chris Toshok <toshok@ximian.com>
14508 * Control.cs: remove container_selected field.
14510 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14512 * MdiClient.cs: Update main form's ActiveChild when
14513 updating keyboard focus for the mdi child.
14515 2007-01-16 Jonathan Pobst <jpobst@novell.com>
14517 * Control.cs: PreferredSize fix.
14519 * Form.cs: Add several 2.0 events, properties, and methods.
14521 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
14523 * Form.cs: Provide meaningful message when MdiParent is assigned a
14524 Form that is not an MdiContainer.
14526 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14528 * MdiClient.cs: Update main form's ActiveChild when
14529 activating a mdi child.
14531 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14533 * MdiWindowManager.cs: Fix NRE when merging menus and main form
14534 doesn't have a menu.
14536 * Form.cs: Request NCRecalc after creating a mdi child window.
14537 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
14538 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
14540 * MdiClient.cs: Add new method SendFocusToActiveChild that either
14541 sends keyboard focus to the active child, or to the MdiClient
14542 if there are no child forms.
14544 2007-01-15 Chris Toshok <toshok@ximian.com>
14546 * ListView.cs: drop the *Internal overrides, just do our work in
14547 ItemControl's WndProc instead.
14549 * UpDownBase.cs: a few large changes. Fix up the Selectable state
14550 of the various controls, and forward the events properly (in the
14551 same manner as MS) from the textbox to the UpDown. Also the
14552 ActiveControl of the UpDownBase gets set properly now. Finally,
14553 we don't call UpdateEditText from the ctor. Fixes bug #79957.
14555 * NumericUpDown.cs: set Text in the ctor.
14557 * DomainUpDown.cs: call UpdateEditText in the ctor.
14559 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
14560 so even a Selectable = false textbox can be focused if you click
14563 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
14564 just add their handling in their respective WndProc's. Also add
14565 an explicit FocusInternal method that doesn't consult CanFocus
14566 before calling Select(this).
14568 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
14569 do our work in WndProc instead.
14571 * TabControl.cs: same.
14573 * ComboBox.cs: same.
14575 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14577 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
14580 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14583 * ThemeWin32Classic.cs: Don't draw the item text outside
14584 item bounds in Details view, as well as use trimming.
14587 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14589 * Form.cs: Implement Form.ShowIcon.
14591 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
14592 null, which when combined with the DlgModalFrame window style removes
14593 the icon from the title bar.
14595 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14597 * Control.cs: Call OnMouseClick after OnClick. (2.0)
14599 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14601 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
14602 menu when mdi child windows theres a menu, uses insert to get icon
14603 at first position. Partially fix #80006.
14605 2007-01-15 Jonathan Pobst <jpobst@novell.com>
14607 * Clipboard.cs: Implement 2.0 methods.
14609 2007-01-15 Everaldo Canuto <everaldo@simios.org>
14611 * Menu.cs: Implement Insert method of MenuItemCollection class
14614 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14616 * ListView.cs: Implement 2.0 FindItemWithText method.
14618 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14620 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
14621 to calculate menu bar size. Fixes #80290.
14623 2007-01-11 Everaldo Canuto <everaldo@simios.org>
14625 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
14627 2007-01-11 Chris Toshok <toshok@ximian.com>
14629 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14632 2007-01-11 Chris Toshok <toshok@ximian.com>
14634 * LinkLabel.cs: make sure to call base.Select in our Select method
14635 if it turns out we're going to be selected (i.e. if we have a link
14636 that is going to receive focus). That way our container's
14637 ActiveControl is updated properly.
14639 2007-01-11 Chris Toshok <toshok@ximian.com>
14641 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14642 they have 1 or more links. this fixes the crash gert reported.
14644 2007-01-11 Andreia Gaita <avidigal@novell.com>
14646 * ContainerControl.cs: Remove ContainerSelected flag, not needed
14649 * Control.cs (Controls.Add): Check if control to be added to the collection
14650 is a top level control, and throw an ArgumentException if it is.
14651 Remove ContainerSelectedFlag, not needed anymore.
14653 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14654 top most control doesn't activate the form. This fixes a problem in the
14655 MessageBox, where the default button wouldn't get focus because the form
14656 was activated before being Loaded - when the Owner is set, SetTopMost is
14657 called, and it would activate it.
14659 2007-01-11 Jonathan Pobst <jpobst@novell.com>
14661 * Button.cs: When clicked and setting the parent form's DialogResult,
14662 use FindForm instead of Parent, since parent could be a container
14663 control and not the Form. Fixes bug #80495.
14665 2007-01-10 Chris Toshok <toshok@ximian.com>
14667 * Form.cs: move the call to SendControlFocus into the same
14670 2007-01-10 Chris Toshok <toshok@ximian.com>
14672 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14673 It breaks in the face of the new ActiveControl stuff, and should
14676 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14677 activecontrol's focus if it's not already set, after we set
14678 ActiveControl, but before we call OnActivated. Re-fixes #79667
14679 after the previous focus/active control fixes regressed it.
14681 * Control.cs: reindent some code.
14683 2007-01-10 Chris Toshok <toshok@ximian.com>
14685 * Splitter.cs: clearing some outstanding changes from my tree.
14686 Replace all accesses (not writes) to the internal dock_style field
14687 with the Dock property.
14689 2007-01-10 Chris Toshok <toshok@ximian.com>
14691 * Control.cs: make FireEnter, FireLeave, FireValidating, and
14692 FireValidated virtual.
14694 * Form.cs: override and don't chain up calls to FireEnter and
14697 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14699 * ListView.cs: Add more text padding space when using
14700 auto resize for columns (the previous value didn't work fine).
14702 * ThemeWin32Classic.cs: Update text position inside columns,
14703 to match the appeareance of .Net.
14705 * ColumnHeader.cs: When using auto resize, only the Width should
14706 depend on the sub items, not the Height. Also, set width after
14707 auto resizing (the value of Width should never remain as -1 or -2).
14709 2007-01-10 Chris Toshok <toshok@ximian.com>
14711 * Application.cs: fix compilation errors when debug is enabled.
14713 2007-01-10 Chris Toshok <toshok@ximian.com>
14715 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
14716 add some nice ascii art pictures and explanation of the process).
14717 (GetMostDeeplyNestedActiveControl): new utility function we need
14718 because our ActiveControl can refer to a child container with its
14721 * Form.cs (OnActivated): remove the call to SelectActiveControl
14722 from here, since you can override this method and not chain up,
14723 and winforms still sets the active control.
14724 (OnCreateControl): also remove the unnecessary SelectActiveControl
14726 (WndProc): it's actually called from the WM_ACTIVATE block, just
14727 before calling OnActivated.
14729 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
14730 inside the else. the ActiveControl setter will end up setting
14731 focus on @control. This keeps us from setting it again (and
14732 generating an extra LostFocus/GotFocus pair).
14733 (Select (bool, bool)): reindent.
14735 2007-01-10 Jonathan Pobst <jpobst@novell.com>
14737 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
14738 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
14739 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
14740 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14741 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
14742 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
14743 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
14744 ToolStripTextBox.cs: Another wave of corcompare work.
14746 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14748 * ColumnHeader.cs: Implement 2.0 AutoResize method using
14749 the Width property.
14751 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
14752 methods by callling Column.AutoResize method on columns.
14754 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14756 * Control.cs: Provide proper implementations of PreferredSize
14757 and GetPreferredSize (2.0).
14759 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
14761 * Form.cs: Remove one character (!) to make my previous OnClosing
14762 stuff work for modal windows like MessageBox.
14764 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14767 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
14768 ListView.Columns to get the last displayed column. Fixes #80452.
14770 2007-01-09 Everaldo Canuto <everaldo@simios.org>
14772 * Label.cs, LinkLabel.cs: Source code identation fixes.
14774 2007-01-08 Everaldo Canuto <everaldo@simios.org>
14776 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
14777 we dont need to invalidate only borders because when we invalidate four
14778 border lines the invalidate's generates a complete redraw of button,
14779 because it now invalidate a complete rect some other redraws operations
14780 are fixed. Fixes #80196.
14782 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
14783 Remove ToolBarInvalidateEntireButton as it is not used.
14785 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14787 * Form.cs: Make sure that both OnClosing and OnFormClosing are
14788 called for 2.0 profile.
14789 * CloseReason.cs: Make class internal for 1.1.
14791 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
14793 * ToolStripManager.cs: Implement FindToolStrip functionality.
14794 * ToolStrip.cs: Register and unregister with ToolStripManager.
14796 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14798 * Control.cs: This was messy. 2.0 moves much of ControlCollection
14799 to ArrangedElementCollection. Implemented this with as few #if's as
14800 possible (which is still too many).
14802 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
14804 * Control.cs: Implement SizeFromClientSize() [2.0].
14806 2007-01-07 Everaldo Canuto <everaldo@simios.org>
14808 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
14809 use Theme.BorderSize to calculate area instead of static value 1,
14810 by the way use new BorderStaticSize instead Border3DSize when
14811 border_static is true. Fixes #79537.
14813 * XplatUIOSX.cs: Fix call to GetClientRectangle.
14815 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
14818 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14820 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
14822 2007-01-06 Everaldo Canuto <everaldo@simios.org>
14824 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
14825 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
14828 - border_static field added, it will used to define when a control
14829 theres 3D border but it must be static (thin).
14830 - In GetWindowRectangle use Theme.BorderSize to calculate area
14831 instead of static value 1, by the way use new BorderStaticSize instead
14832 Border3DSize when border_static is true.
14834 * XplatUIX11.cs, XplatUIOSX.cs:
14835 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
14837 * Theme.cs: BorderStaticSize field added.
14839 2007-01-05 Everaldo Canuto <everaldo@simios.org>
14841 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
14843 2007-01-05 Everaldo Canuto <everaldo@simios.org>
14845 * Control.cs: Under InternalBorderStyle call RecreateHangle to
14846 mimic same behavior than win32 that set border only in CreateParams,
14847 it fix problems under CreateParams overrides. Fix #79442 and partial
14850 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
14851 of thi control you must call recreate handle.
14853 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
14854 need to do anything as RecreateHangle will take care about borders.
14856 2007-01-05 Mike Kestner <mkestner@novell.com>
14858 * ListView.cs: hack to eliminate Lost/Got focus notifications on
14859 cycles between the ItemControl and parent. Fixes #80388.
14861 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
14863 * Control.cs: Lazy init layout engine. Do not directly use
14864 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
14866 2007-01-05 Chris Toshok <toshok@ximian.com>
14868 * DataGrid.cs: don't forceably rebind columns in SetDataSource
14869 unless our list manager has changed (i.e. unless we have reason to
14870 believe our columns have changed). Fixes #80422.
14872 also, disable the call do BindColumns in
14873 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
14874 1.1 the event isn't raised in response to a column addition on a
14877 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14879 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
14880 that inheritors can not call it if they choose. Fixes bug #80456.
14882 2007-01-05 Andreia Gaita <avidigal@novell.com>
14884 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
14885 doesn't blow up with a null exception on marshalling.
14887 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
14889 * Control.cs: Implement several 2.0 protected properties and methods.
14890 Ensure that all necessary events are being called when properties
14893 2007-01-05 Mike Kestner <mkestner@novell.com>
14895 * ListView.cs: implement PgUp/PgDn for Details view. Also
14896 fixes First/LastVisibleIndex to use the item_control.ClientRect
14897 instead of the parent control. Fixes #80378.
14899 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
14901 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
14902 determine whether to use yard-pound or not (bug #78399).
14904 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
14906 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
14907 problems. So it is time to bring back the old popupbutton colors.
14909 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14912 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
14913 property by using the internal information of the
14914 columns order in ListView.
14916 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
14918 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
14919 Add 2.0 Tag properties.
14921 * LinkArea.cs: Add 2.0 ToString method.
14923 2007-01-03 Chris Toshok <toshok@ximian.com>
14925 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
14926 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
14927 when we're editing, which fixes #80047.
14929 2007-01-03 Chris Toshok <toshok@ximian.com>
14931 * Form.cs: apply patch contributed by Dominik Seichter. fixes
14934 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
14936 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
14937 property and implementation.
14939 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
14940 for MdiWindowListItem property.
14942 * ToolStripDropDown.cs: Don't consider hidden menu items while
14943 laying out the menu.
14945 2007-01-03 Andreia Gaita <avidigal@novell.com>
14947 * SendKeys.cs: window handle is not needed in win32, so just
14948 get the active window for X after parsing keys and don't use
14949 it when building the message; it is passed by parameter to the
14950 Xplat method and used there to build the message instead. Also,
14951 wait for events to be processed on SendWait, as opposed to Send,
14952 which doesn't wait :) Playing with threads and Send() completely
14953 hangs on ms.net, only SendWait() works.
14956 X11Display.cs: Check for valid window handle.
14958 2007-01-03 Jackson Harper <jackson@ximian.com>
14960 * TextControl.cs: Need to prevent wrap calculations when replacing
14961 text (this was there before i removed it accidently).
14962 - Don't update the cursor during the positioning, just set it to
14963 selection_start at the end of the operaion.
14965 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14968 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
14970 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14972 * MonthCalendar.cs: Added Click and DoubleClick events again,
14973 but this time they only hide Control's Click and DoubleClick.
14975 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
14977 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14978 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14980 2007-01-02 Jackson Harper <jackson@ximian.com>
14982 * TextBoxBase.cs: We move the caret with the split now, so we
14983 don't need to explicitly move the caret after splitting. This
14984 fixes the caret bumping down an extra line on Enter.
14986 2007-01-02 Miguel de Icaza <miguel@novell.com>
14988 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14991 * ScrollableControl.cs: Add Scroll event.
14993 2007-01-02 Mike Kestner <mkestner@novell.com>
14995 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
14996 to fix all hdr height padding codepaths. Fixes #80207.
14998 2007-01-02 Chris Toshok <toshok@ximian.com>
15000 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15001 setting it to the Control defaults anyway, and it being after the
15002 Dock set was screwing up layout.
15003 (set_Dock): don't short circuit out of setting base.Dock. Also,
15004 no need to call UpdateStatusBar here, as it'll be re-layed out if
15007 2007-01-02 Mike Kestner <mkestner@novell.com>
15009 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15010 to header height for width == -1. Fixes the rest of #80207.
15012 2007-01-02 Mike Kestner <mkestner@novell.com>
15014 * ListView.cs: rework the mouse event forwarding everaldo added
15015 to translate the coordinates to the parent control not
15016 raise the parent events until after we've done our work. Hover
15017 needs more work, in the case where HoverSelection is on, because
15018 the item control receives more than one MouseHover per Enter
15019 event, so we need to ensure only the "first" hover gets forwarded.
15020 Opening a minor bug for that.
15022 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
15024 * CheckedListBox.cs: Fixed SelectionMode to match MS.
15025 * ListControl.cs: Implemented AllowSelection property. Removed extra
15027 * ListBox.cs: Implemented AllowSelection property.
15029 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15031 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15032 SelectedItem, it prevent for errors when you must disable item
15033 before perform click. Fixes #80409.
15035 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15037 * MenuAPI.cs: Prevent second level and beyond submenus to close
15038 until first level when move out side of popup.
15040 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15043 - Down submenu positin in three pixels.
15044 - Closes sub menu when mouse leaves from menu. Fixes #80402.
15046 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15048 * ThemeWin32Classic.cs:
15049 - Fix popup menu size adding one pixel on the top.
15050 - Down menu item border from two to one to mimic Win32.
15051 - Some source identation fixes.
15053 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15055 * ThemeWin32Classic.cs: Use float numbers to calculate size and
15056 position of menu arrows, it fix wrong arrow size.
15058 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15060 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15061 instead of line, it simplify draw operation and fix it using 3D
15062 borders to mimic Win32.
15064 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
15066 * StatusStrip.cs: Add implementation of the sizing grip.
15068 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15069 StatusStrip rendering.
15071 2006-12-31 Chris Toshok <toshok@ximian.com>
15073 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
15074 override the layout style (anchor/dock) of the control. assign to
15075 Dock instead. Fixes bug #80416.
15077 * ToolStrip.cs: same.
15079 2006-12-31 Andreia Gaita <avidigal@novell.com>
15081 * ContainerControl.cs: Use ContainerSelected flag to check if
15082 a Container is directly selected, or if Select is called on a
15083 non-container. If a container is directly selected, focus events
15084 should not be raised.
15085 Apply #80411 patch to throw exception on set_ActiveControl if
15086 control is the same as the current one.
15088 * Control.cs: Use ContainerSelected flag (see above).
15089 Add invalidation check to raise event but not invalidate if
15091 Apply #80411 patch.
15094 2006-12-31 Everaldo Canuto <everaldo@simios.org>
15096 * MenuAPI.cs: After click, dont close popup menu when menu is
15097 ContextMenu. Fixes #80399.
15099 2006-12-30 Chris Toshok <toshok@ximian.com>
15101 * ContainerControl.cs: make sure we throw the exception if the
15102 container control doesn't contain the control we're setting
15105 2006-12-30 Chris Toshok <toshok@ximian.com>
15107 * Control.cs (SetTopLevel): fix the exception raised by
15108 SetTopLevel for child controls.
15109 (set_Anchor): call UpdateDistances when setting the anchor type.
15110 This fixes bug #80336.
15112 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15114 * Theme.cs: For now, revert back to 8pt font.
15116 2006-12-29 Everaldo Canuto <everaldo@simios.org>
15118 * MenuAPI.cs: Set popup as active when open a ContextMenu.
15121 2006-12-29 Chris Toshok <toshok@ximian.com>
15123 * Control.cs: reorder the code in OnResize to give the same event
15126 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
15128 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15129 TileHorizontally and TileVertically.
15131 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
15133 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15134 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15135 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15136 Corrected copyright and email adress.
15138 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15140 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15141 of Exception in FullPath property if no TreeView is associated with
15144 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15146 * Theme.cs: Marked default_font as private, and initialize it in ctor
15147 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15149 * ThemeGtk.cs: Removed default_font intialization.
15150 * ThemeWin32Classic.cs: Removed default_font initialization.
15152 2006-12-28 Chris Toshok <toshok@ximian.com>
15154 * Control.cs: fix a couple of place where we were creating handles
15155 more aggressively than we should be. Fixes ControlRefresh unit
15158 2006-12-28 Chris Toshok <toshok@ximian.com>
15160 * Control.cs: contrary to what the comment said, Control.Dock does
15161 not supercede Control.Anchor - the last one you assign to decides
15162 the layout behavior. so we need to keep track of which was the
15163 last set. Also, fix some of the affected property arguments in
15164 PerformLayout calls, and remove an redundant parent.PerformLayout
15167 Add a VisibleInternal property, which returns is_visible. We
15168 can/should get rid of all the usage of this field elsewhere.
15170 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15172 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15173 control style, not DoubleBuffer. Added UseDoubleBuffering property
15174 that indicates whether doublebuffering is enabled and supported.
15175 (comment from and code based on Gert Driesen's patch in #80324).
15178 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15180 * Control.cs: Fixed a NRE.
15182 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15184 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15187 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15189 * Control.cs: Rewrote double buffering, now a seperate
15190 class handles all the buffering, no Graphics is disposed of
15191 until the painting is finished (earlier implementation
15192 would crash if the control was resized in the OnPaint,
15193 since it would cause the double buffer to be recreated
15194 and the old one disposed), a separate Graphics is
15195 created for every paint (MS behaviour and anyways the state
15196 of the Graphics would have to be saved and restored otherwise)
15198 * XplatUIDriver.cs:
15200 * XplatUI.cs: Added and implemented GetOffscreenGraphics
15201 so that we can get the graphics for the back buffer without
15202 having to create a new one and remove the offscreen_dc parameter
15203 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15205 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15207 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15208 Also make virtual all the key-related methods.
15210 * ListViewItem.cs: Make virtual the key related methods for
15211 ListViewSubItemCollection.
15213 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15217 * ThemeWin32Classic.cs:
15218 * Theme.cs: Initial support for Tile view in ListView,
15219 as well as the implementation of the required bits for it (Item
15222 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15224 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15225 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15226 Provide useful exception messages.
15228 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15230 * TrackBar.cs: Remove a warning.
15231 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15232 when used by DateTimePicker, fixes #80287. This also requires that
15233 MonthCalendar implements it's own drawing for the yearly updown control,
15234 otherwise the Capture tracking would be too complicated. Removed the Click
15235 and DoubleClick events (according to comments they were hiding the base class
15236 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15237 raise these events, not that they cannot be raised. It is possible to raise
15238 them by calling OnClick and OnDoubleClick). Added two internal fields in
15239 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15240 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15241 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15242 event, no longer needed.
15244 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15246 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15247 true if new value differs from current value.
15249 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15251 * Control.cs: ControlCollection.Count must be public. Fixed build of
15254 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15256 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15258 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15260 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15262 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15264 * Control.cs: Invalidates control including when Width and Height is
15265 equal zero or is not visible, only Paint event must be care about
15266 this. Fixes #79913.
15268 2006-12-26 Chris Toshok <toshok@ximian.com>
15270 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15271 more corcompare work.
15273 * DataGridView.cs: fix compiler warning.
15275 * ColumnHeader.cs: some corcompare work, and also take the
15276 opportunity to make the internal fields private.
15278 * ListView.cs: fix the fallout from the above field change.
15280 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15282 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15283 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15284 ToolStripTextBox.cs: Fixes to events and corcompare.
15286 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15288 * ListView.cs: Call owner.OnMousexx event to propagate events from
15289 item to ListView. Fixes #80367.
15291 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15293 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15294 if value is less than one. ItemHeight should not be set to a value
15295 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
15296 Removed extra tabs.
15298 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15300 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15301 * ToolStripStatusLabel.cs: Add Spring for Moma.
15303 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15305 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15306 Fixed code formatting. Removed debug code.
15307 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15309 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15311 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15312 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15313 ArgumentOutOfRangeException if ColumnCount is negative. In
15314 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15315 less than 4 or higher than 32768.
15316 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15317 Fixed FormatProvider to return CurrentCulture unless explicitly set.
15318 Fixed IsFormatProviderDefault to return true if FormatProvider has
15319 not been explicitly set.
15321 2006-12-25 Chris Toshok <toshok@ximian.com>
15323 * Application.cs: add a couple of 2.0 events.
15325 2006-12-25 Chris Toshok <toshok@ximian.com>
15327 * Control.cs: fix compiler warning.
15329 * AxHost.cs: corcompare fixes.
15331 * ApplicationContext.cs: corcompare fixes.
15333 2006-12-25 Chris Toshok <toshok@ximian.com>
15335 * Control.cs: only update dist_right/dist_bottom if the
15336 width/height is > 0. this fixes anchored controls being resized
15337 smaller until they disappear and then resized larger again.
15339 2006-12-25 Chris Toshok <toshok@ximian.com>
15341 * Control.cs: a couple of changes. Remove dist_left and dist_top,
15342 since they're nothing more than X/Left and Y/Top, respectively.
15344 Also, move back to a per-control Bitmap/Graphics for
15345 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15346 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
15349 2006-12-25 Miguel de Icaza <miguel@novell.com>
15351 * MessageBox.cs: Implemented overload that takes a new "bool
15352 displayHelpButton" by adding a new internal field "show_help".
15353 When clicked this will raise the HelpRequested on the owner or the
15356 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15357 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15359 * ListView.cs: Add support ColumnWidthChanged and
15360 ColumnWidthChanging.
15362 Add support for ColumnReordered event.
15363 (ReorderColumn): Add NET_2_0 specific support for cancelling the
15366 Very nice codebase!
15368 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15370 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15372 2006-12-24 Chris Toshok <toshok@ximian.com>
15374 * GridTablesFactory.cs: 2.0 corcompare work.
15376 * ToolStripContainer.cs: add "override" to
15377 ContextMenuStripChanged, and remove the local event object.
15379 * ToolStripDropDown.cs: same with a couple properties.
15381 * ToolStripPanel.cs: same with AutoSizeChanged event.
15383 * TextBoxBase.cs: add "override" to AutoSizeChanged.
15385 * Form.cs: add the remaining 2.0 events, and do some corcompare
15388 * DateTimePicker.cs: add "new" to padding.
15390 * ButtonBase.cs: use Control's use_compatible_text_rendering.
15392 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15394 * DataGridView.cs: PaddingChanged is overridden.
15396 2006-12-24 Chris Toshok <toshok@ximian.com>
15398 * Control.cs: corecompare work here too.
15400 * DataGridViewElement.cs, DataGridView.cs,
15401 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15402 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15403 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15404 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15407 2006-12-24 Miguel de Icaza <miguel@novell.com>
15409 * Control.cs: Switched the error message on the console for a
15410 todo. A review of the code will have to cope with this anyways
15411 (since its a large feature, it is in our radar) and it was
15412 producing too much output when running PDN.
15414 * ToolStripComboBox.cs: Set the text when the SelectedIndex
15415 changes. Applications depend on this (PDN 2.72)
15417 2006-12-23 Chris Toshok <toshok@ximian.com>
15419 * TableLayoutSettings.cs: finish up the corcompare work for this
15422 2006-12-23 Chris Toshok <toshok@ximian.com>
15424 * Control.cs: make SetImplicitBounds internal, do some futzing
15425 with LayoutEngine so that it's available in 1.1, and remove the
15426 entire duplicated code mess from PerformLayout. Use
15427 System.Windows.Forms.Layout.DefaultLayout instead.
15429 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15431 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15433 * Form.cs: Add MainMenuStrip property.
15435 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15437 * Control.cs: Add ContextMenuStrip property and implementation.
15438 Fix ContextMenu implementation to show menu centered on control when
15439 activated using the keyboard instead of showing at screen (0,0).
15441 * ToolStripDropDown.cs: Fix needed overload of Show ().
15443 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15445 * Menu.cs: Name property added for 2.0 profile.
15447 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15449 * Menu.cs: Update information about FindMenuItem, method to be
15452 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15454 * MenuAPI.cs: When deselect items deselect also selected subitems.
15456 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15458 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15459 FindSubItemByCoord to found itens that is not active, also an
15460 cheking added to FindSubItemByCoord to search for items only
15461 in visible popup windows. Fixes #80274.
15463 2006-12-22 Everaldo Canuto <everaldo@simios.org>
15465 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15466 internal property, it be care about change ExStyle.
15468 2006-12-22 Andreia Gaita <avidigal@novell.com>
15470 * ContainerControl.cs: set activeControl for parent forms up the
15471 tree when the new activecontrol is a container.
15472 When validating the active control, if it is a container, also
15473 raise up the validation for it's active control. Fixes #80280
15475 * Control.cs: Add internal property flag and check to prevent
15476 Focus events from getting raised when Select() is called for
15477 a ContainerControl. There are still too many focus events being
15478 raised at the moment though.
15479 Cleaned up the code a bit.
15481 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15483 * Control.cs: Added all missing 2.0 events.and
15484 fixed a couple of corcompare issues.
15485 * TrackBar.cs: Implemented missing 2.0 bits.
15486 * MonthCalendar.cs,
15487 * DateTimePicker.cs,
15488 * MdiClient.cs: Fixed some corcompare issues.
15490 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15492 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15493 SplitterPanel.cs: corecompare work.
15495 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15497 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15498 Clean up warnings for BackgroundImageChanged and PaddingChanged
15499 events now that they are implemented in Control.cs.
15501 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15503 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15505 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15506 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15507 of TableLayoutPanel and supporting cast.
15509 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15512 - GrabWindow now confines the mouse pointer to the confine window.
15513 - Added Win32ClipCursor and Win32GetClipCursor.
15516 - Added CaptureWithConfine to be able to capture and confine
15519 * InternalWindowManager.cs:
15520 - Call CaptureWithConfine instead of Capture if we're an
15521 MdiChild (fixes #79982).
15523 2006-12-21 Chris Toshok <toshok@ximian.com>
15525 * DataGrid.cs: guard against the initial state of selection, where
15526 selection_start == -1. make sure we only select from index >= 0.
15529 2006-12-21 Chris Toshok <toshok@ximian.com>
15531 * Control.cs: we don't need to be so draconian with
15532 UpdateDistances, and we thusly don't need to call it before
15533 calling PerformLayout in ResumeLayout. Fixes bug #80289.
15535 2006-12-21 Daniel Nauck <dna@mono-project.de>
15538 TextBox.cs: Implemented AutoComplete properties.
15540 2006-12-20 Chris Toshok <toshok@ximian.com>
15542 * DataGridView*.cs: some corecompare work.
15544 2006-12-20 Jackson Harper <jackson@ximian.com>
15546 * XplatUIX11.cs: We need to hide the caret when deleting it,
15547 otherwise you get carets left lying around everywhere.
15548 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
15549 prevents getting some weird half drawn caret tracers when
15551 * TextControl.cs: Attempt to reduce the number of times we need to
15552 recreate the caret.
15554 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
15556 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
15558 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15560 * DateTimePicker.cs:
15561 - Implemented missing 2.0 bits.
15562 - Changed some default values to match MS.
15564 2006-12-20 Jackson Harper <jackson@ximian.com>
15566 * TextBoxBase.cs: When changing the font across the document we
15567 can't recalculate after changing each line, since that will cahnge
15569 - PreferredHeight is a little different than i thought.
15570 - When backspacing, move the caret before we do the actual char
15571 delete, because when that delete crosses a wrap boundary the
15572 positional information will change.
15574 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
15576 * Control.cs: Added some missing 2.0 bits:
15577 BackgroundImageLayout, BackgroundImageLayoutChanged,
15578 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
15579 add IBindableComponent and IDropTarget implementation.
15581 * MonthCalendar.cs:
15582 - Added all missing 2.0 features:
15583 BackgroundImageLayout, RightToLeftLayout,
15584 OnHandleDestroyed, RightToLeftLayoutChanged,
15585 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
15587 - Rewrote all the BoldDate code, it was completely broken.
15588 - Fixed all the tests (the tests can now be re-enabled, the
15589 problems were not with the tests, but with the control, it was
15592 * DateTimePicker.cs: Changed the location where the
15593 MonthCalendar is shown.
15595 2006-12-19 Chris Toshok <toshok@ximian.com>
15597 * DataGridView.cs: add IDropTarget implementation.
15599 * ToolStripPanel.cs: add IDropTarget implementation.
15601 2006-12-19 Jackson Harper <jackson@ximian.com>
15603 * TextControl.cs: soft now means something different than what it
15604 used to mean, we want to move the caret regardless of whether or
15605 not this break was soft (would we really have wanted the caret
15606 to not move with the break in the old context?)
15607 * TreeView.cs: Make sure we factor in the vert scrollbar when
15608 calculating the horizontal scrollbar's maximum.
15610 2006-12-19 Andreia Gaita <avidigal@novell.org>
15612 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
15613 check for keywords in alternate casing, close bug #80049.
15615 2006-12-19 Chris Toshok <toshok@ximian.com>
15617 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
15618 methods (which all do nothing).
15620 * IDropTarget.cs: add the 4 missing methods.
15622 2006-12-19 Chris Toshok <toshok@ximian.com>
15624 * TableLayoutRowStyleCollection.cs: corcompare work.
15626 * TableLayoutSettings.cs: same.
15628 * TableLayoutStyle.cs: same.
15630 * TableLayoutColumnStyleCollection.cs: same.
15632 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
15634 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15635 TableLayoutPanel I've had in my local tree for way too long.
15637 2006-12-19 Miguel de Icaza <miguel@novell.com>
15639 * TableLayoutSettings.cs: Finish the public API (still needs all
15640 the logic to update on changes).
15642 * TableLayoutPanelCellPosition.cs: new file.
15644 * TableLayoutRowStyleCollection.cs,
15645 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15646 TableLayoutSettings.cs: Track the final 2.0 table api.
15648 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15650 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15651 and Image List 2.0 members for ColummnHeader.
15652 * ListView.cs: Add key-related 2.0 methods for
15653 ColumnHeaderCollection.
15655 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15657 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15658 ArgumentNullException if items argument is null. Ignore null item in
15659 arrays. Removed extra tabs.
15661 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
15663 * MonthCalendar.cs: Fixed InvalidCastException.
15665 2006-12-19 Jackson Harper <jackson@ximian.com>
15667 * TextControl.cs: Don't increment the position here.
15668 - When calculating char positions only add in the line break size
15669 for hard line breaks.
15671 2006-12-19 Andreia Gaita <avidigal@novell.org>
15673 * SendKeys.cs: Changed some things to match ms.net behaviour
15674 when parsing shifted capital letters.
15676 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
15677 Add window handle as parameter to SendInput. X11 needs the
15678 window handle, and the handle being passed to it in the keys
15679 queue is the active control handle (which windows needs), not
15682 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
15683 to support SendKeys on X.
15685 * X11Keyboard: Implement helper method to lookup a linux keycode
15686 given the virtual keycode. Added table of keycode-2-virtualkey
15687 values to support this.
15689 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15691 * ListView.cs: Add support for SelectedIndexCollection
15692 and SelectedItemCollection 2.0 methods. Implement support
15694 * ListViewItem.cs: Add support for ListViewSubItemCollection
15695 2.0 methods. Also, fix an incorrect behavior of AddRange method
15696 (it shouldn't call Clear).
15697 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15699 2006-12-19 Jackson Harper <jackson@ximian.com>
15702 * TextBoxBase.cs: New args for FormatText
15703 * TextControl.cs: Rewrote the main drawing method, this version
15704 feels a little easier to understand and debug to me. Hopefully it
15705 does to others also
15706 - Fix FormatText to OR in the new formating values. Added
15707 FormatSpecified param, basically this works in the same way as
15708 BoundsSpecified in Control.
15709 - Set the caret properties when the caret is positioned.
15710 - When wrapping text make sure that we calculate the width of the
15712 - when calculating alignments we might have wrapped down to the
15713 next line, so don't search for an individual tag, search for the
15715 - We need to invalidate the selection area when we replace the
15718 2006-12-19 Daniel Nauck <dna@mono-project.de>
15720 * Application.cs: add Restart () 2.0 support
15722 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15724 * MenuItem.cs: Invalidate menu item rectangle after change Enable
15725 property. Fixes #80268.
15727 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15729 * MenuAPI.cs: Dont trigger select event when closes top menu
15730 item. Fixes #80270.
15732 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15734 * MenuAPI.cs: When you click on menuitem only trigger onselect
15735 event for top menu itens. Fixes #80271.
15737 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15739 * MdiWindowManager.cs: Make IconicBounds depend on
15740 the bottom of MdiClient, not the top (fixes #80267)
15742 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
15744 * MdiClient.cs: Added missing 2.0 attribute
15746 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15748 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
15749 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
15751 2006-12-18 Everaldo Canuto <everaldo@simios.org>
15753 * MenuAPI.cs: Fix click when menuitem is not popup,
15754 this regression was caused by last commit (#80272).
15756 2006-12-17 Everaldo Canuto <everaldo@simios.org>
15758 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
15759 fire click event or close menu. Fixes #80272.
15761 2006-12-17 Daniel Nauck <dna@mono-project.de>
15763 * ListViewHitTestInfo.cs: add
15765 2006-12-17 Daniel Nauck <dna@mono-project.de>
15767 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
15768 * FlatButtonAppearance.cs: add
15769 * DockingAttribute.cs: add
15771 2006-12-17 Chris Toshok <toshok@ximian.com>
15773 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
15774 and rebind our columns when it does - this way, if you make
15775 changes to the DataTable (or set the Table attribute on a DataView
15776 after setting it as the DataGrid's DataSource, the changes are
15777 made visible.) Fixes bug #80107.
15779 2006-12-17 Daniel Nauck <dna@mono-project.de>
15781 * ListViewGroup.cs: add internal Location property for layouting.
15782 * Theme.cs: add abstract ListViewGroupHeight function.
15783 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
15785 2006-12-16 Andreia Gaita <avidigal@novell.com>
15787 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
15788 Added reset of selected index to 0 when adding first tab page.
15791 * NumericUpDown.cs: Fix NET_2_0 check
15793 2006-12-16 Daniel Nauck <dna@mono-project.de>
15795 * ListViewGroup.cs: fixed DefaultValueAttribute value
15797 2006-12-16 Daniel Nauck <dna@mono-project.de>
15799 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
15801 2006-12-15 Miguel de Icaza <miguel@novell.com>
15803 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
15804 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
15805 ScrollableControl.cs: Add a handful of methods that are
15808 2006-12-15 Chris Toshok <toshok@ximian.com>
15810 * XplatUIWin32.cs: initial implementation of the Reversible
15811 drawing functions. there are some problems. DrawReversibleFrame
15812 doesn't seem to work at all for Dashed FrameStyle, and in the
15813 Thick case there are drawing errors at the corners (we probably
15814 need to bind Rectangle instead of doing moveto/lineto's.)
15816 2006-12-16 Andreia Gaita <avidigal@novell.com>
15818 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
15819 to send blocks of key messages. Send accumulates keys to send with Flush,
15820 while SendWait sends all keys immediately.
15822 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15823 XplatUIX11.cs, XplatUIX11-new.cs:
15824 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
15825 to Win32 SendInput.
15826 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
15828 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
15829 testing for ms.net on this class is very tricky, as the tests run too fast
15830 to allow the hook to release, essentially freezing the keyboard and the
15831 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
15834 2006-12-16 Daniel Nauck <dna@mono-project.de>
15836 * Padding.cs: fixed serialization compability to MS ("_var" field names),
15837 added missing attributes.
15839 2006-12-15 Daniel Nauck <dna@mono-project.de>
15841 * ListViewGroup.cs: Added missing attributes.
15842 * ListViewGroupCollection.cs: Added missing attributes.
15844 2006-12-15 Daniel Nauck <dna@mono-project.de>
15846 * ListViewItem.cs: fixed ListViewSubItem text property.
15848 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15850 * Control.cs: Added missing 2.0 attributes
15852 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15854 * MdiClient.cs: Added missing 2.0 attribute.
15855 * MonthCalendar.cs: Added some missing 2.0 attributes
15858 2006-12-15 Daniel Nauck <dna@mono-project.de>
15860 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
15862 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
15864 * MainMenu.cs: Add the new 2.0 constructor to help out people
15865 using the MainMenu in VS2005.
15867 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15869 * MdiChildContext.cs: Removed it, no longer used.
15870 * MdiClient.cs: Added missing 2.0 attributes.
15872 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15874 * InternalWindowManager.cs: Fix a NullRef with previous
15875 changes for toolwindows.
15877 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
15880 - Added AfterTopMostControl to allow for certain controls
15881 to always stay on top when normal controls are brought to
15885 - (DrawInversibleRectangle): Get window rectangle from Win32
15886 in stead of from control, since Win32 doesn't calculate
15887 screen coords correctly from control's Location if it
15888 have docked siblings.
15890 * MdiWindowManager.cs:
15891 - Correct the control menu popup location when clicked on
15892 the maximized form icon. (fixes #80223.1)
15893 - Don't show moving rectangle if mouse hasn't moved from
15894 the original clicked point.
15895 - Removed FormGotFocus handler (not used).
15896 - Calculate the control buttons location from the main
15897 window's size and not client size (fixes #79770).
15898 - Form is now closed when the form icon is double-clicked
15900 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
15902 * InternalWindowManager.cs:
15903 - Moved some MDI-only methods to MdiWindowManager.
15904 - Removed unused properties and methods.
15905 - Unified method naming for methods handling wm messages.
15906 - Moved all message handling to seperate methods for
15909 * ThemeWin32Classic.cs:
15910 - DrawManagedWindowDecorations now draws the title bar
15911 with a gradient brush.
15912 - Add a CPDrawButtonInternal that allows us to specify
15913 light, normal and dark colors for the buttons (control
15914 buttons for MDI children were drawn with the same light
15915 color as the background, therefore loosing the 3D effect).
15918 - Add a CapturedControl property that is used to
15919 determine the control to resize (defaults to parent).
15920 Needed for MdiClient, since its SizeGrip's parent is
15921 MdiClient, but the control to resize is the main form.
15924 - Set SizeGrip's CapturedControl to the main form in order
15925 to resize the main form and not the MdiClient.
15926 - Override AfterTopMostControl to leave the scrollbars
15929 2006-12-15 Daniel Nauck <dna@mono-project.de>
15931 * ListView.cs: fixed ListViewItemCollection AddRange and
15932 implemented ListViewItemCollection AddRange 2.0 support.
15934 2006-12-15 Daniel Nauck <dna@mono-project.de>
15936 * ListViewGroup.cs: Add.
15937 * ListViewGroupCollection.cs: Add
15938 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
15939 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
15940 stub for ImageKey 2.0 support.
15942 2006-12-14 Mike Kestner <mkestner@novell.com>
15944 * ListView.cs: add text padding to the autocalculation for columns
15945 of width -2. Fixes #80207.
15947 2006-12-14 Mike Kestner <mkestner@novell.com>
15949 * ListView.cs: add some index guarding for partial row navigation
15950 logic. Fixes #80250.
15952 2006-12-14 Mike Kestner <mkestner@novell.com>
15954 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
15955 are added or inserted to the collection. Fixes #81099.
15957 2006-12-13 Everaldo Canuto <everaldo@simios.org>
15959 * MenuAPI.cs: Closes menu when right click out side of popup
15960 it fix problem in ContextMenu and MainMenu. Fixes #80252.
15962 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15964 * ListViewItem.cs: Fix dumb error.
15966 * ListView.cs: Add Find and ContainsKey methods in
15967 ListViewItemCollection, and also return true for IsReadOnly
15968 and IsFixedSize (changes for 2.0).
15970 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
15972 * Control.cs: Allow Region to be set to null.
15974 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15976 * MdiWindowManager.cs: Remove unused (commented out) code.
15977 * Form.cs: When the MdiChild is maximized, the form needs
15978 WM_NCMOUSELEAVE, so request it.
15979 * InternalWindowManager.cs:
15980 - Added tooltips to control buttons.
15981 - Removed duplicated control button handling code.
15982 - Removed unused (commented out) code.
15984 2006-12-12 Everaldo Canuto <everaldo@simios.org>
15986 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
15987 was used because we must set cursor without trigger ChangeCursor event
15988 and without change Cursor control property. Fixes #79963.
15990 2006-12-12 Andreia Gaita <avidigal@novell.com>
15992 * Control.cs: Check if Region setter value is null, and ignore
15994 2006-12-12 Jackson Harper <jackson@ximian.com>
15996 * TextControl.cs: We were almost always drawing one more line then
15997 needed, since the GetLineByPixel will return the last line found
15998 at that pixel. In most cases though, we were invalidating up to
15999 the junction between two lines.
16000 - Improve debug code.
16002 2006-12-12 Chris Toshok <toshok@ximian.com>
16004 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16005 and FillReversibleRectangle.
16007 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16008 and FillReversibleRectangle.
16010 * XplatUIWin32.cs: add stubs which do nothing for
16011 DrawReversibleFrame, DrawReversibleLine, and
16012 FillReversibleRectangle.
16014 * XplatUIOSX.cs: add stubs which raise NIE for
16015 DrawReversibleFrame, DrawReversibleLine, and
16016 FillReversibleRectangle.
16018 * XplatUIX11.cs: add working implementation for
16019 DrawReversibleFrame, DrawReversibleLine, and
16020 FillReversibleRectangle.
16022 * ControlPaint.cs: implement DrawReversibleFrame,
16023 DrawReversibleLine, and FillReversibleRectangle, by calling into
16024 the appropriate XplatUI method.
16026 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16028 * Form.cs: Make MdiClient have the focus even if it's
16029 not selectable, since it should receive WM_KEY* and WM_MOUSE
16030 messages. Fixes #79907.
16032 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16034 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16035 queried after the window is created.
16037 * XplatUIX11.cs: Added SendParentNotify to implement
16038 WM_PARENTNOTIFY logic. Fixes #79965.
16040 * Control.cs: Added MakeParam.
16042 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16044 * MdiClient.cs: Resume Layout before setting window
16045 states (fixes #80201).
16047 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16049 * MenuAPI.cs: Deselect a menu item after performing
16050 the click (fixes #80197).
16052 2006-12-11 Jackson Harper <jackson@ximian.com>
16054 * TextBoxBase.cs: We need to cap this value, since Maximum -
16055 ViewPortHeight can be less than zero.
16056 - Only do selection with the left mouse button.
16057 * TextBox.cs: Don't tell the world that we have a context menu.
16058 * Control.cs: New method so that we can control whether or not the
16059 context menu is visible outside MWF.
16061 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16063 * ToolBarButton.cs: Fix text positon.
16065 2006-12-11 Miguel de Icaza <miguel@novell.com>
16067 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16069 * Control.cs (DoubleBuffered): Add implementation.
16071 * Application.cs (OpenForms): Add.
16073 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16075 * Form.cs: Use opacity instead of Opactiy to determine if we need
16076 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
16078 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16080 * Control.cs: Fix NRE if Control.Site was set to null.
16082 2006-12-11 Chris Toshok <toshok@ximian.com>
16084 * Control.cs: ControlCollection.Remove should return if the arg is
16085 null, and ControlCollection.SetChildIndex should raise a ANE.
16087 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
16089 * Control.cs: Verify value set for Dock property. Code formatting
16092 2006-12-11 Jackson Harper <jackson@ximian.com>
16094 * TextControl.cs: Draw the caret and the selection when a flag is
16096 * TextBoxBase.cs: We want to draw the caret and the selection for
16097 TextBox but not for TextBoxBase.
16098 - If the window is resized and scrolling is no longer needed (the
16099 whole doc is visible) set the scroll position to zero.
16100 - The default SelectWord (the one TextBox uses) should move the
16101 caret to the end of the word.
16102 - SelectAll moves the caret to the end of the selection.
16103 * TextBox.cs: We don't selectall on focus, we just do it when the
16104 control is created.
16106 2006-12-11 Mike Kestner <mkestner@novell.com>
16108 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16110 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16112 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
16114 * ListViewItem.cs: Add Name 2.0 property.
16116 2006-12-11 Andreia Gaita <avidigal@novell.com>
16118 * TabControl.cs: Set visibility on selected or default tab
16119 when tabcontrol handle is created, so that it's contents
16120 actually show up (duh). Fixes #80193
16121 Don't redraw the control if there is no handle created, as
16122 the selected index might be completely invalid. Added some tests
16125 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16127 * ToolBar.cs: Uses maximun width and height of all buttons as
16128 button rectangle when ButtonSize specified, it looks strange but
16129 is what happens in Win32. Fixes #80189.
16131 2006-12-11 Jackson Harper <jackson@ximian.com>
16133 * TextControl.cs: Need to track undo levels ourself, since
16134 compound actions will mess them up.
16136 2006-12-10 Andreia Gaita <avidigal@novell.com>
16138 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16139 SelectedIndex value is changed (even if it's not valid).
16140 Reset SelectedIndex to 0 when the handle is created and if
16141 the current index is invalid.
16142 Fixes SelectdeIndex unit tests and #80128
16144 2006-12-08 Chris Toshok <toshok@ximian.com>
16146 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16147 calls EndEdit, it needs to be called before we set current_cell to
16148 its new value. Otherwise, we end up committing the value in the
16149 textbox to the new cell as well. Fixes bug #80160.
16151 2006-12-08 Chris Toshok <toshok@ximian.com>
16153 * Form.cs (set_CancelButton): if the button's DialogResult is
16154 None, set it to Cancel. Fixes bug 80180.
16156 2006-12-08 Jackson Harper <jackson@ximian.com>
16158 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16159 to watch ourselves when setting the canvas size and setting the
16162 2006-12-08 Chris Toshok <toshok@ximian.com>
16164 * DataGrid.cs: comment out the two MakeTransparent calls for the
16165 time being so people using trunk (and not 1.2.2) on windows can
16166 actually use the datagrid. This deals with bug #80151.
16168 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16170 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16171 Graphics.DrawImage (image, int, int, int, int) overload instead
16172 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
16173 the dpi difference and was blurring images it drew.
16176 2006-12-08 Chris Toshok <toshok@ximian.com>
16178 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16179 rowcnt is 0 (such as with an empty datasource), and make sure we
16180 initialize not_usedarea.Y to cells.Y, so we don't draw over the
16181 other areas (caption, parent row, etc, etc). Fixes bug #80095.
16183 2006-12-08 Chris Toshok <toshok@ximian.com>
16185 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16188 2006-12-08 Chris Toshok <toshok@ximian.com>
16190 [ Fixes bug #80167 ]
16192 * ThemeWin32Classic.cs: don't draw the image if the button's flat
16193 style is FlatStyle.System.
16195 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16196 ButtonBase.flat_style private, and switch uses of it to the public
16199 2006-12-08 Chris Toshok <toshok@ximian.com>
16201 [ Fixes bug #80121 ]
16203 * ThemeWin32Classic.cs: center the caption text in the datagrid
16206 * DataGrid.cs: lessen the amount we add to the caption height from
16207 6 to 2. 6 was making it huge.
16209 2006-12-08 Andreia Gaita <avidigal@novell.com>
16211 * UpDownBase: Handle MouseWheel call directly instead of capturing
16212 the inner textbox's OnMouseWheel. Fixes #80166
16214 2006-12-08 Jackson Harper <jackson@ximian.com>
16216 * TextControl.cs: We need to invalidate the textbox when we empty
16217 it (how had this not been discovered before?)
16219 2006-12-08 Jackson Harper <jackson@ximian.com>
16221 * TextBoxBase.cs: Reworked the mouse down code so I could get it
16222 to behave like MS, we now ignore the eventargs.Click and just
16223 track state ourself, which we were already doing anyways.
16224 - Constrain the double click handler to the double click size.
16226 2006-12-08 Chris Toshok <toshok@ximian.com>
16228 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16229 direction if that scrollbar isn't shown. fixes bug #80158.
16231 2006-12-08 Andreia Gaita <avidigal@novell.com>
16233 * NumericUpDown.cs: Update value on getter. Fixes #79950
16235 2006-12-08 Chris Toshok <toshok@ximian.com>
16237 * MenuItem.cs: add back in the event cloning code. I didn't know
16238 how to do it in the face of the EventHandlerList work i'd done
16239 last week. Fixes bug #80183.
16241 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16243 * Control.cs: Add an invalidate to the BackgroundImage setter.
16246 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16248 * ToolStrip*: Add some small properties reported by MoMA, fix event
16249 firing and default properties based off of unit tests, and add some
16250 attributes based off of the class status page.
16252 2006-12-07 Jackson Harper <jackson@ximian.com>
16254 * TextBoxBase.cs: Take HideSelection into account when determining
16255 whether or not to show the selection.
16256 * RichTextBox.cs: After inserting the RTF into the document move
16257 the cursor to the beginning of the document.
16259 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16261 * Control.cs: Remove static ArrayList "controls" which maintained
16262 a reference to every control created.
16263 * Application.cs: Create a static FormCollection to maintain a reference
16264 to every form created. Use it in places that formerly enumerated through
16265 the controls one looking for forms.
16266 * Form.cs: Add and remove self from above FormCollection.
16268 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
16270 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16271 not libgdk (though it makes me wonder why I didn't have any
16274 2006-12-07 Chris Toshok <toshok@ximian.com>
16276 [ you had to know this was coming after that last commit...]
16278 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16279 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16280 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16283 2006-12-07 Chris Toshok <toshok@ximian.com>
16285 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16286 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16287 all the behavior we need for double buffering.
16289 * XplatUIDriver.cs: implement the 3 double buffer methods using a
16290 client side Bitmap, just like the old Control-based double buffer
16291 code did. The methods are virtual, so each XplatUI driver
16292 subclass can replace the implementation to use a faster, platform
16295 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16296 double buffer code, and clean things up a bit in the process.
16298 2006-12-06 Chris Toshok <toshok@ximian.com>
16300 * Control.cs: reindent WndProc.
16302 2006-12-06 Chris Toshok <toshok@ximian.com>
16304 [ I wanna be like BenM when I grow up ]
16306 * Hwnd.cs: create a single static Graphics object on the static
16307 Bitmap we create. use this for our text measurements.
16309 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16310 This was causing us to allocate a backbuffer for every control,
16311 even when it wasn't flagged as double buffered. Instead use the
16312 single graphics instance. This might have implications for
16313 multithreaded applications. If we run into problems we can switch
16314 to creating 1 Graphics per control, on the static Hwnd bitmap.
16316 this change nets us a 7M savings in private dirty mappings when
16317 running FormsTest.exe.
16319 2006-12-06 Chris Toshok <toshok@ximian.com>
16321 * ListView.cs: the BackgroundImage override is just to set
16322 attributes. chain up to base.BackgroundImage.
16324 * RichTextBox.cs: same.
16326 * ToolBar.cs: same, but we need to also redraw the toolbar when it
16327 changes, so instead a handler for BackgroundImageChanged.
16329 * Control.cs: make background_image private.
16331 2006-12-06 Chris Toshok <toshok@ximian.com>
16333 * ScrollBar.cs: change the assignment of cursor to Cursor. not
16334 sure we even need this assignment, but roll with it for now.
16336 * Control.cs: make the cursor field private.
16338 2006-12-06 Chris Toshok <toshok@ximian.com>
16340 * Form.cs: we don't need to explicitly set ImeMode to
16341 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16342 behavior in the face of ImeMode.Inherit.
16344 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16345 change the ctor's assignment to use ImeMode instead of ime_mode.
16347 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16348 ImeModeInherit. Only check for the parent's imemode (and return
16349 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16350 This fixes the button unit test, which sets both ImeMode and
16351 DefaultImeMode to ImeMode.Disable.
16353 also make the ime_mode field private.
16355 2006-12-06 Chris Toshok <toshok@ximian.com>
16357 * Control.cs: make control_style private.
16359 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
16360 setting the styles to true, then setting them to false instead of
16361 reverting to their previous values.
16363 also, call SetStyle on the scrollbars instead of using
16364 control_style directly.
16366 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
16368 * FormCollection.cs: Implement. [2.0]
16370 2006-12-06 Chris Toshok <toshok@ximian.com>
16372 * Control.cs: make tab_stop private.
16374 * Label.cs: set TabStop, not tab_stop. reformat some event
16375 add/remove methods to make them more compact.
16377 2006-12-06 Chris Toshok <toshok@ximian.com>
16379 * RadioButton.cs: fix TabStop handling.
16381 2006-12-06 Chris Toshok <toshok@ximian.com>
16383 * TextBox.cs: remove the explicit assignments to has_focus.
16386 * ButtonBase.cs: remove the assignment to has_focus. Control will
16389 2006-12-06 Chris Toshok <toshok@ximian.com>
16391 * ButtonBase.cs: remove all uses of is_enabled from this code.
16392 it's always true when any of the code containing the checks is
16395 2006-12-06 Chris Toshok <toshok@ximian.com>
16397 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16398 with different semantics (some are present in both 1.1 and 2.0
16399 profiles) so that we match MS's behavior in our unit tests.
16401 2006-12-06 Jackson Harper <jackson@ximian.com>
16403 * TextControl.cs: Make this operation undoable.
16404 * TextBoxBase.cs: Factor the border width into the preferred
16406 - implement Modified as per the spec.
16408 2006-12-06 Chris Toshok <toshok@ximian.com>
16410 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16412 2006-12-06 Chris Toshok <toshok@ximian.com>
16414 * Control.cs: make right_to_left and context_menu fields private.
16416 2006-12-06 Chris Toshok <toshok@ximian.com>
16418 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16419 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16420 Control.child_controls private. switch all uses over to
16423 2006-12-06 Chris Toshok <toshok@ximian.com>
16425 * System.Windows.Forms/GroupBox.cs,
16426 System.Windows.Forms/AccessibleObject.cs,
16427 System.Windows.Forms/ErrorProvider.cs,
16428 System.Windows.Forms/Control.cs,
16429 System.Windows.Forms/UpDownBase.cs,
16430 System.Windows.Forms/ScrollBar.cs,
16431 System.Windows.Forms/DateTimePicker.cs,
16432 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16433 System.Windows.Forms/ToolTip.cs,
16434 System.Windows.Forms/RadioButton.cs,
16435 System.Windows.Forms/LinkLabel.cs,
16436 System.Windows.Forms/Splitter.cs,
16437 System.Windows.Forms/TextBoxBase.cs,
16438 System.Windows.Forms/ToolStripTextBox.cs,
16439 System.Windows.Forms/ContainerControl.cs,
16440 System.Windows.Forms/ThemeWin32Classic.cs,
16441 System.Windows.Forms/SizeGrip.cs,
16442 System.Windows.Forms/ToolStripDropDown.cs,
16443 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16444 private. switch all uses over to Control.Parent.
16446 2006-12-06 Chris Toshok <toshok@ximian.com>
16448 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16449 Control does this before calling emitting these events.
16451 * TabControl.cs: same.
16453 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16454 Control.client_rect.
16456 * ButtonBase.cs: use the ClientSize property instead of the
16459 * ScrollableControl.cs: same.
16461 * Control.cs: another pass at making properties private. also,
16462 move the initialization of tab_stop to the ctor.
16464 2006-12-05 Andreia Gaita <avidigal@novell.com>
16466 * TabControl.cs: Let the selected index be set freely if the
16467 control handle is not yet created.
16469 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16471 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
16472 internal until I can rewrite DefaultLayout.
16473 * ToolStrip.cs: Fix build error and some general cleaning.
16474 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16475 Fix build errors caused by making some of Control's fields private.
16477 2006-12-05 Jackson Harper <jackson@ximian.com>
16479 * TextControl.cs: Redo Insert a little so that it use IndexOf
16480 instead of Split, this prevents it from messing up on things like
16481 \n\n\n. Also more effecient since the split array doesn't need to
16483 * TextBoxBase.cs: AppendText doesnt handle multiline and non
16484 multiline text differently, this is the first of many fixes that
16485 will make multiline/non-multiline the same thing as far as the
16486 TextBoxBase is concerned.
16487 - Don't split the text and insert lines, this can lose some line
16488 endings (like is the last line a soft or hard break). Instead use
16490 - Fix an off by one when combining all the lines in the Text
16492 - Remove separate multiline handling from the Text getter/setter.
16494 2006-12-05 Chris Toshok <toshok@ximian.com>
16496 * ButtonBase.cs: a few changes:
16498 - don't reinitialize internal Control fields in the ctor when they
16499 have the same values as Control sets them.
16501 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
16502 this before calling those methods.
16504 - we don't need to call Refresh for anything. use Invalidate
16507 - OnEnabledChanged doesn't need to redraw at all - Control.cs
16508 calls Refresh in its OnEnabledChanged.
16510 - several of the events we were registered for in the ctor to
16511 redraw ourselves already include calls to Invalidate in the
16512 property setters that raise the events. remove the extra
16515 - reformat a switch statement that was 83274658 columns wide.
16517 2006-12-05 Mike Kestner <mkestner@novell.com>
16519 * ComboBox.cs: fix a unit test regression from a TextBox
16520 SelectionLength return of -1 when there's no selection.
16522 2006-12-05 Chris Toshok <toshok@ximian.com>
16524 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16525 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16526 cleaning up some of the internal Control fields being used by
16529 2006-12-05 Mike Kestner <mkestner@novell.com>
16531 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
16532 listbox after AddImplicit calls since it defaults to hidden. Add a
16533 hack to preserve requested heights across DropDownStyle changes.
16535 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16537 * PropertyGrid.cs: Hide FindFirstItem method from public API.
16539 2006-12-05 Chris Toshok <toshok@ximian.com>
16541 * DataGridView.cs: fix compiler warnings.
16543 * PrintControllerWithStatusDialog.cs: same.
16545 * ToolBar.cs: same.
16547 * FolderBrowserDialog.cs: same.
16549 * Splitter.cs: same.
16551 * DataGridViewComboBoxCell.cs: same.
16553 * XplatUIWin32.cs: same.
16555 * PictureBox.cs: same.
16557 * Win32DnD.cs: same.
16559 * PageSetupDialog.cs: same.
16561 * FileDialog.cs: same.
16563 * PrintDialog.cs: same.
16565 * DataGridTextBoxColumn.cs: same.
16567 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
16569 2006-12-05 Chris Toshok <toshok@ximian.com>
16571 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
16572 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
16573 System.ComponentModel.EventHandlerList work.
16575 2006-12-05 Jonathan Chambers <joncham@gmail.com>
16577 * DrawTreeNodeEventArgs.cs: Added.
16579 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16581 * InternalWindowManager.cs: Remove an unused field.
16583 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16585 * InternalWindowManager.cs:
16586 - Save the point where the title bar is clicked.
16588 * MdiWindowManager.cs:
16589 - Only allow moving of the window as long as the
16590 clicked point on the title bar does not get out of
16591 MdiClient's rectangle. Fixes #79982.
16594 - Added Horizontal/VerticalScrollbarVisible.
16595 - Simplified the scrollbar sizing algorithm.
16596 - Cache the difference in scrolled value in
16597 H/VBarValueChanged and move the calculation out
16600 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
16602 * Control.cs: Make the Console.WriteLine in WndProc
16605 2006-12-05 Chris Toshok <toshok@ximian.com>
16607 * ToolStripManager.cs, ToolStripButton.cs,
16608 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
16609 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
16610 ToolStripSplitButton.cs, ToolStripSeparator.cs,
16611 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
16612 ToolStripProgressBar.cs, ToolStripContainer.cs,
16613 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
16614 to using System.ComponentModel.EventHandlerList.
16616 2006-12-04 Chris Toshok <toshok@ximian.com>
16618 * LinkLabel.cs: fix up compiler warnings.
16620 * TableLayoutSettings.cs: same.
16622 * TreeView.cs: same.
16624 * ToolBar.cs: same.
16626 * TabControl.cs: same.
16628 * RichTextBox.cs: same.
16630 * ListViewItem.cs: same.
16632 * PropertyGrid.cs: same.
16634 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16638 * TextRenderer.cs: fix up compiler warnings.
16642 * Form.cs: corcompare fixes.
16644 * PictureBox.cs: fix up compiler warnings.
16646 * ImageListStreamer.cs: same.
16648 * TrackBar.cs: corcompare fix.
16650 * Control.cs: fix up compiler warnings.
16652 * SplitterPanel.cs: same.
16654 * NumericTextBox.cs: same.
16656 * ImageList.cs: same.
16658 * StatusStrip.cs: same.
16660 * ProgressBar.cs: corcompare fix.
16662 * ToolStripButton.cs: fix up compiler warnings.
16664 * ToolStripStatusLabel.cs: same.
16666 * ToolStripSplitButton.cs: same.
16668 * ToolStripSeparator.cs: same.
16670 * ToolStripProgressBar.cs: same.
16672 * ToolStripDropDownMenu.cs: same
16674 * ToolStripDropDown.cs: same.
16676 * ToolStripDropDownButton.cs: same.
16678 * ToolStrip.cs: same.
16680 * ToolStripControlHost.cs: same.
16682 * ToolStripContentPanel.cs: same.
16684 * ToolStripDropDown.cs: same.
16686 * ToolStripContainer.cs: same.
16688 * ToolStripPanel.cs: same, and add "new" where we need it to work
16689 with the new ArrangedElementCollection.
16691 * ToolStripItemCollection.cs: add "new" where we need it to work
16692 with the new ArrangedElementCollection.
16694 2006-12-04 Andreia Gaita <avidigal@novell.com>
16696 * TabControl.cs: Fix default tab selection to after TabControl
16697 gets focus and not before. Fixes #80128
16699 2006-12-04 Chris Toshok <toshok@ximian.com>
16701 * DataGridTableStyle.cs: remove the gross calling of
16702 datagrid.Refresh from here. It's a broken idea and it doesn't
16705 * DataGrid.cs: instead, just register/unregister from the
16706 DataGridTableStyle events in CurrentTableStyle. we play it
16707 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
16708 even though some would most likely not require it. Fixes bug
16709 #80115 (and one portion of #80117 as a side effect).
16711 2006-12-04 Chris Toshok <toshok@ximian.com>
16713 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
16714 so the textbox (if any) goes away. Fixes bug #80117.
16716 2006-12-04 Chris Toshok <toshok@ximian.com>
16718 * DataGridColumnStyle.cs: set the column's readonly property
16719 initially based on the property descriptor's IsReadOnly. Fixes
16722 2006-12-04 Chris Toshok <toshok@ximian.com>
16724 * ComboBox.cs: wrap the dropdown style changing work in
16725 SuspendLayout/ResumeLayout. Fixes bug #79968.
16727 2006-12-04 Jackson Harper <jackson@ximian.com>
16729 * TextBoxBase.cs: Fix off by one, since these are one-based.
16730 * TextBox.cs: Select all the text when we get focus. The TextBox
16731 does this but the RTB does not.
16733 2006-12-04 Chris Toshok <toshok@ximian.com>
16735 * DataGridTextBoxColumn.cs: remove some spew.
16737 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
16738 but some part of me is saying "it shouldn't be here.." At any
16739 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
16742 2006-12-04 Chris Toshok <toshok@ximian.com>
16744 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
16745 to reassign the propertydescriptor.
16747 2006-12-04 Jackson Harper <jackson@ximian.com>
16750 * TextControl.cs: Remove some unused variables. Maybe this will
16751 patch things up between mike and I.
16752 - don't split lines less then one char wide, if the viewport is
16753 that small text won't be visible anyways.
16755 2006-12-04 Jackson Harper <jackson@ximian.com>
16757 * TextBoxBase.cs: Default selection length is -1, need to do some
16758 more testing on windows to see when this is used for the property.
16759 - Redid the Lines [] property to that we properly remove soft line
16761 - added support for preserving carriage returns
16762 - CanUndo is not a variable like 'is undo enabled' it just returns
16763 true if there is undo operations available.
16764 - AppendText doesn't need to grab the last tag itself anymore,
16765 this happens automatically when we move the cursor.
16766 * TextControl.cs: Add CompoundActions to the undo class. This
16767 allows combining the other operations into one big option. ie a
16768 paste will combine { delete old, insert new, move cursor }
16769 - Add InsertString undo operation
16770 - New method for deleting multiline text
16771 - Add carriage returns to lines. So we can preserve carriage
16772 returns when text is 'roundtripped'
16774 2006-12-04 Chris Toshok <toshok@ximian.com>
16776 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
16777 minimum 0. Fixes the scrollbar exception in bug #80136.
16779 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16782 * MdiWindowManager: Removed unused fields and methods.
16784 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16786 * StatusBar.cs: Update all panels when a AutoSize=Contents
16787 panel needs updating.
16789 * StatusBarPanel.cs: Remove twidth and only use initialize.
16792 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
16794 * Form.cs: When a form's MdiParent is set add it directly
16795 on top of the z-order in stead of relying on MdiClient's
16796 ActivateChild to do it. Fixes #80135.
16799 - Remove original_order, mdi_child_list is already doing
16801 - Create mdi_child_list on construction in
16802 stead of first use (avoids a few null checks).
16804 * MenuItem.cs: Use an already existing list of mdi children
16805 to get the correct order of children and remove the other
16808 2006-12-04 Chris Toshok <toshok@ximian.com>
16810 * PropertyGridView.cs: cached_splitter_location is only used in
16811 !DOUBLEBUFFER code.
16813 * PropertyGrid.cs: implement the ComComponentNameChanged event
16814 using Events, hoping that would fix the warning. Looks like a
16815 compiler bug instead (#80144).
16817 * PropertyManager.cs: remove unused method.
16819 2006-11-04 Everaldo Canuto <everaldo@simios.org>
16821 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
16822 include parentesis to fix expression evaluation. Fixes #79634.
16824 2006-11-02 Everaldo Canuto <everaldo@simios.org>
16827 - Changes to fix behavior in Menu control, some reported in #80097
16828 and other detected during behavior refactory like a select event
16830 - Remove unneded "if's" conditions.
16831 - Created an internal to flag when popup is active in control, we need
16832 it because in .NET you can have menu active but without popup active
16833 when you active menu using popup without visible items.
16834 - Mimic win32 behavior for Select and Popup events.
16835 - Dont open popup menu when you dont have visible subitems.
16836 - Do nothing when click on disabled menu item.
16837 - Some small changes to follow the coding style guidelines.
16838 - Unselect menu only when another control gives focus. Fixes #80097.
16839 - Remove unused code.
16841 * MenuItem.cs: internal VisibleItems method to check if menu
16842 theres visible subitems, it will be usefull to fix some
16843 behavior in Menu control.
16845 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16847 * Timer.cs: Tag property for 2.0 profile.
16849 2006-12-01 Chris Toshok <toshok@ximian.com>
16851 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
16853 * Win32DnD.cs: comment out some unused fields.
16855 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
16856 some unused properties/methods.
16858 * XplatUIX11.cs: fix MousePosition so we override the base class's
16859 property instead of conflicting with it.
16861 * PictureBox.cs: comment out some unused fields
16863 * OSXStructs.cs: make some struct fields public.
16865 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
16866 MousePosition so we override the base class's property instead of
16867 conflicting with it.
16869 * X11Dnd.cs: comment out some unused fields
16871 * X11DesktopColors.cs: fix some struct field visibility to quiet
16874 * X11Dnd.cs: remove some debug code.
16876 * ThemeClearlooks.cs: comment out unused field.
16878 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
16880 * ThemeGtk.cs: comment out some unused pinvokes.
16882 * Timer.cs: remove some unused fields.
16884 * ThemeClearlooks.cs: comment out unused field.
16886 * UpDownBase.cs: comment out unused field.
16888 * DataObject.cs: comment out unused field.
16890 * DataGridBoolColumn.cs: reomve unused field.
16892 * DataGrid.cs: remove unused field.
16894 * Cursor.cs: remove old ToBitmap code.
16896 * ControlPaint.cs: remove unused method.
16898 * ScrollBar.cs: remove unused fields.
16900 * ComboBox.cs: remove unused field, and chain up to
16901 AccessibleObject ctor.
16903 * ListBox.cs: remove unused field.
16905 * ButtonBase.cs: wrap a couple fields in NET_2_0.
16907 * GridEntry.cs: remove unused fields.
16909 * Binding.cs: remove unused fields.
16911 * AxHost.cs: remove unused method.
16913 * ContainerControl.cs: remove unused field.
16915 * ScrollableControl.cs: remove unused fields.
16917 2006-12-01 Chris Toshok <toshok@ximian.com>
16919 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
16920 the Where/WhereString stuff. it's easy enough to CWL
16921 Environment.StackTrace.
16923 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
16924 unused private fields.
16926 2006-12-01 Jackson Harper <jackson@ximian.com>
16928 * TextControl.cs: Do not update the view while inserting multiline
16929 text. If we update the view we might wrap lines, before entering
16930 the new lines, which causes the new line insertion calculations to
16931 be totally fubared.
16932 - Remove an old TODO
16933 - Make debug output a little nicer
16935 2006-12-01 Chris Toshok <toshok@ximian.com>
16937 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
16939 2006-12-01 Chris Toshok <toshok@ximian.com>
16941 [ fix the majority of the CS0108 warnings we've been suppressing ]
16943 * TreeView.cs: mark BackgroundImageChanged as 'new'.
16945 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
16946 to "LayoutToolBar" to quiet mcs.
16948 * TabControl.cs: mark our ControlCollection class as 'new'.
16950 * TextBoxBase.cs: mark some events as 'new'.
16952 * Splitter.cs: TabStop is 'new'.
16954 * ControlBindingsCollection.cs: mark a few methods as new since
16955 they change the visibility from protected to public.
16957 * RadioButton.cs: DoubleClick -> base class, and remove unused
16960 * MonthCalendar.cs: ImeMode property -> base class, and mark many
16963 * NumericUpDown.cs: TextChanged -> base class.
16965 * CheckedListBox.cs: mark our ObjectCollection class as new to
16968 * FolderBrowserDialog.cs: make HelpRequest event new and have it
16969 muck with the base class.
16971 * StatusBar.cs: fix some mcs warnings about Update being the same
16972 name as a base class method.
16974 * RichTextBox.cs: mark some events as new, and make them do things
16975 to the base class impl.
16977 * UserControl.cs: mark TextChanged as new, and have it manipulate
16980 * UpDownBase.cs: mark some things new.
16982 * CheckBox.cs: mark DoubleClick "new", and add some text about
16983 what we need to look at.
16985 * Panel.cs: make the events "new", and manipulate the base
16986 version. these are just here for attributes.
16988 * AccessibleObject.cs: make owner private.
16990 * Control.cs: deal with AccessibleObject.owner being private.
16991 cache our own copy if we need it.
16993 * Button.cs: add "new" to the DoubleClickEvent.
16995 * ListBox.cs: no need to track our own has_focus here. let
16996 Control.has_focus do it for us. Also some other work to clear up
16997 warnings about not overriding base class methods of the same name.
16999 * ComboBox.cs: clear up some warnings about not override base
17000 class methods of the same name.
17002 2006-12-01 Chris Toshok <toshok@ximian.com>
17004 * Form.cs: flag a few things as "new" to quiet some of the mcs
17009 * PrintPreviewDialog.cs: same.
17011 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
17012 now DGV isn't so horrible on the class status page. also, move
17013 all events to using System.ComponentModel.EventHandlerList. my
17016 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17018 * MdiWindowManager.cs:
17019 - Set form to active mdi child if shown,
17020 and update the active mdi child to the next
17021 remaining child in the z-order if the form is hidden.
17024 - Track if the form has been visible and if its
17025 visibility is beeing changed, so that the MdiClient
17026 can properly decide the ActiveMdiChild. The MdiClient
17027 cannot track this since the form can change visibility
17028 before MdiClient is created.
17031 - Don't activate anything of the parent form is changing
17033 - Rework ActiveMdiChild to only return visible mdi
17034 children and take into account several other corner
17037 2006-12-01 Chris Toshok <toshok@ximian.com>
17039 * IBindableComponent.cs: new 2.0 interface.
17041 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
17043 * DataGrid.cs: Font for caption area is bold by default.
17045 2006-12-01 Everaldo Canuto <everaldo@simios.org>
17047 * Menu.cs: Tag property for 2.0.
17049 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17051 * ThemeWin32Classic.cs: Adjust menu separator drawing.
17053 2006-12-01 Chris Toshok <toshok@ximian.com>
17055 * TreeView.cs: doh, the Begin* events should be
17056 TreeViewCancelEventHandler.
17058 2006-12-01 Chris Toshok <toshok@ximian.com>
17060 * Form.cs: Form.ControlCollection already stores off the
17061 form_owner field. don't access the base class's internal "owner"
17064 * Control.cs: make all the fields in Control.ControlCollection
17065 private. there's no need for any internal fields here.
17067 2006-12-01 Chris Toshok <toshok@ximian.com>
17069 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17070 OnHandleCreated. Fixes bug #80109.
17072 2006-12-01 Chris Toshok <toshok@ximian.com>
17074 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17075 SplitContainer.cs, Control.cs, StatusStrip.cs,
17076 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17077 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17078 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17079 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17080 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17081 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17082 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17083 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17084 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17085 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17087 do most of the work to convert our code over to use
17088 System.ComponentModel.Component.Events for
17089 adding/removing/dispatching events.
17092 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17094 * DataGridView.cs: Fix an ArgumentNullException reported
17095 twice today in IRC.
17097 2006-11-30 Mike Kestner <mkestner@novell.com>
17099 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
17100 grabbed listbox. Fixes #80036 and #80101.
17102 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17104 * Message.cs: Changed ToString() to match MS.
17106 2006-11-30 Jackson Harper <jackson@ximian.com>
17108 * TextBoxBase.cs: You can still change the selected text on a read
17110 * TextControl.cs: Lower magic number for wrap calculations. This
17111 lets text get closer to the right (far) edge.
17113 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17115 * Control.cs: Tweak 2.0 layout properties.
17116 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17117 * TextRenderer.cs: Add a new overload.
17118 * ToolStrip*: Huge amount of changes and new features.
17120 2006-11-30 Mike Kestner <mkestner@novell.com>
17122 * ComboBox.cs: fixes for LargeChange and Maximum to get the
17123 scroll range correct. Fixes #79994.
17125 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17127 * MdiWindowManager.cs: Update main form's text when
17128 a form is closed. (fixes #80038)
17130 2006-11-30 Everaldo Canuto <everaldo@simios.org>
17133 - Fix an regression in ButtonSize.
17134 - Get ImeMode default value change to "Disable".
17135 - Get ShowTooltips default value change to true, default value is
17136 "false" but after make a test in .NET we get "true" result as default.
17138 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
17140 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17142 2006-11-29 Chris Toshok <toshok@ximian.com>
17144 * XplatUIWin32.cs (GetWindowTransparency): check return value of
17145 GetLayeredWindowAttributes. if it's 0, return 1.0, as
17146 SetWindowTransparency hasn't been called.
17148 2006-11-29 Chris Toshok <toshok@ximian.com>
17150 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17152 (set_AllowTransparency): reorder things a little so that the
17153 WS_EX_LAYERED style is removed properly.
17155 2006-11-29 Chris Toshok <toshok@ximian.com>
17157 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17159 * Form.cs: only call the XplatUI transparency method (get/set) if
17160 SupportsTransparency says it's supported. Otherwise fallback to
17161 doing nothing (in the set case) or returning the instance field we
17162 cache (in the get case).
17164 * XplatUIStructs.cs: add TransparencySupport flag enum.
17166 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17167 change to SupportsTransparency.
17169 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17170 TransparencySupport.None from SupportsTransparency.
17172 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17173 TransparencySupport.Set from SupportsTransparency.
17175 * XplatUIWin32.cs: implement GetWindowTransparency calling
17176 GetLayeredWindowAttributes, and implement SupportsTransparency by
17177 checking whether or not both
17178 GetWindowTransparency/SetWindowTransparency are available
17179 entrypoints. We need to do this since SetWindowTransparency is
17180 available as of win2k, but GetWindowTransparency requires winxp.
17183 * XplatUI.cs: Add GetWindowTransparency, and change
17184 SupportsTransparency to allow for either/both Get/Set.
17186 2006-11-29 Chris Toshok <toshok@ximian.com>
17188 * DataGrid.cs: keep from going into an infinite loop redrawing a
17189 datagrid that has no datasource. Fixes bug #80033.
17191 2006-11-29 Chris Toshok <toshok@ximian.com>
17193 * MenuItem.cs: fix the NRE when we assign text (and therefore call
17194 Invalidate) before the mainmenu has been assigned to a control.
17196 2006-11-29 Chris Toshok <toshok@ximian.com>
17198 * DataGrid.cs: detect when we should be double the double click
17199 row/column autosize stuff, although that codepath has yet to be
17200 written. part of the work for bug #79891.
17202 2006-11-29 Chris Toshok <toshok@ximian.com>
17204 * Binding.cs (SetControl): fix unit test.
17206 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17208 * PageSetupDialog.cs: Validate the margins and set them in
17210 * NumericTextBox.cs: New class to mimic the behavior of the
17211 textboxes used in the printing dialogs.
17213 2006-11-29 Andreia Gaita <avidigal@novell.com>
17215 * Form.cs: Revert previous change (remove call UpdateBounds
17216 from form constructor), because it messes with the handle creation
17217 order, and that one needs lots and lots of love.
17218 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17219 for valid printer and throw InvalidPrinterException if document
17220 is set but printer not valid), adding a MonoTODO. Once
17221 handle creation is done properly, we can put this back in.
17223 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17225 * MenuItem.cs: Create a invalidate method for menu item, to be
17226 calling from set text, it make text changes to imadiate update
17227 on screen. Fixes #80013.
17229 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17231 * ToolBar.cs: Fixes and simplify toolbar button layout, it
17232 fixes bug #80070 and some other problem on toolbar buttons
17235 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17237 * ThemeWin32Classic.cs: Paint toolbar toggle button background
17238 with dotted brush. Fixes #79564
17240 2006-11-28 Andreia Gaita <avidigal@novell.com>
17242 * Form.cs: Removed call to UpdateBounds on Form
17243 constructor, it was causing a call to CreateHandle
17244 before it was supposed to.
17245 * PrintControllerWithStatusDialog: Applied patch
17246 by Chris Toshok to hide controller when there are
17247 no printers available.
17248 PrintDialog.cs: initialize printer settings to
17249 null - correct DefaultValues test #5
17250 * PrintPreviewControl.cs: Move PrintController
17251 initialization to GeneratePreview
17252 * PrintPreviewDialog.cs:
17253 - Remove Preview generation from Document_set(). It is
17255 - Throw InvalidPrinterException on CreateHandle if
17256 a Document is set but there are no printers or
17257 printer is not valid.
17258 * ThemeWin32Classic: don't paint PrintPreviewControl
17259 if there is nothing to paint
17261 2006-11-28 Miguel de Icaza <miguel@novell.com>
17263 * Form.cs: Add another popular method.
17265 * TabPage.cs: ditto.
17267 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17269 * MenuItem.cs: Fixed a warning.
17270 * InternalWindowManager: Fixed a warning.
17272 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17275 - When cloning a menu also clone MdiList and clone the
17276 window menu items properly (as the forms and menuitems
17277 are kept in an internal hashtable, these need updating
17279 - Rewrote the window menu code, menu items are added in the
17280 order the forms were added to their parent, and they are
17281 updated every time the window menu is shown (before the
17282 list was only generated once, in the current order of the
17283 forms, and would never be updated). A checkmark is shown
17284 next to the item corresponding to the active mdi child.
17286 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17288 * XplatUIStructs.cs:
17289 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17292 - Added TME_NONCLIENT to TMEFlags.
17293 - Handles WM_NCMOUSEMOVE in GetMessage to
17294 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17296 * MdiWindowManager:
17297 - Now merges mdi child menu to parent menu when maximized.
17298 - Recalculate NC areas of both mdi child and mdi parent.
17300 on window state and size changes.Fixes #79844 (3).
17301 - Handle WM_NCCALCSIZE to properly calculate borders.
17304 - Add/remove to the mdi containers list of mdi children
17305 in the order they are added.
17306 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
17307 to the maximized mdi child.
17309 * InternalWindowManager.cs:
17310 - Only execute a click on the control buttons on the mouse up,
17311 not on the mouse down. Show the state of the button
17312 (was only showing Normal state, never Pressed state). The
17313 pressed button now follows the mouse (if you click the Close
17314 button and move the mouse over the Maximize button, the
17315 Maximize button will be shown as pressed). Since Win32 does
17316 not generate WM_NCLBUTTONUP if you release the button outside
17317 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17320 * ThemeWin32Classic.cs:
17321 - Draw a missing border around mdi child forms. Fixes #79844 (2).
17324 - Added a list of forms which contains the order the forms are
17325 added to the mdi parent.
17326 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17327 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17328 - If the active form changes set the scrollbars to the top
17329 of the Z order, otherwise the form could hide them.
17330 - Scrollbars are now sized according to ClientSize, not
17331 to Size, and they take into account the other scrollbar
17332 to determine maximum.
17334 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17337 * XplatUIDriver.cs:
17341 - Added RequestAdditionalWM_NCMessages for windows to
17342 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17343 Currently only implemented in XplatUIWin32.
17345 2006-11-27 Chris Toshok <toshok@ximian.com>
17347 * Hwnd.cs: only add the hwnd to the windows hash in
17348 set_WholeWindow and set_ClientWindow if whole_window/client_window
17349 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
17351 2006-11-27 Mike Kestner <mkestner@novell.com>
17353 * ComboBox.cs: remove redundant OnDropDown call. It is called
17354 from the ComboListBox.ShowWindow code. Fixes #79969.
17356 2006-11-27 Chris Toshok <toshok@ximian.com>
17358 * Hwnd.cs: remove the setters for ExposePending and
17359 NCExposePending - noone uses them.
17361 2006-11-27 Jackson Harper <jackson@ximian.com>
17363 * TextControl.cs: new param for ReplaceSelection which determines
17364 whether we select the new selection, or set the cursor to the end
17365 of the new selection.
17366 * TextBoxBase.cs: Use new param for ReplaceSelection. When
17367 pasting, select the new text.
17368 * RichTextBox.cs: Use new param for ReplaceSelection.
17370 2006-11-27 Jackson Harper <jackson@ximian.com>
17372 * TextBoxBase.cs: Set the selection to the caret after the caret
17373 is moved, otherwise they get out of sync.
17375 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17377 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17380 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17382 * ThemeWin32Classic.cs:
17383 - Fix toolbar drop down arrow position.
17384 - Fix drop down appearance when ToolBar.Appearance is normal,
17387 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
17389 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17390 * Control.cs: Same.
17391 * UpDownBase.cs: Same.
17392 * ButtonBase.cs: Same.
17393 * ScrollBar.cs: Same.
17394 * TrackBar.cs: Same.
17395 * PictureBox.cs: Same.
17396 * UserControl.cs: Same.
17398 * ListControl.cs: Same.
17399 * TextBoxBase.cs: Same.
17400 * ListView.cs: Same.
17401 * RichTextBox.cs: Same.
17402 * TreeView.cs: Same.
17404 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
17407 - Text label for where
17408 - Text label comment was not shown
17410 2006-11-23 Everaldo Canuto <everaldo@simios.org>
17412 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17414 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17416 * InternalWindowManager.cs:
17417 - Handle WM_PARENTNOTIFY to activate the form
17418 if any child control is clicked.
17419 - The form is only sizable if not minimized.
17421 * MdiWindowManager.cs:
17422 - Save the IconicBounds if the form is moved.
17423 - Rework SetWindowState, now the window bounds
17424 are stored only if the old window state is Normal.
17427 - In SetWindowStates store the old window state if
17428 the window is maximized and restore window state if
17429 the window looses focus.
17430 - Don't handle any scrollbar value changes if
17431 initializing the scroll bars. Fixes #79771.
17432 - Reworked ArrangeIconicWindows. Current algorithm
17433 tests bounds agains all other minimized windows, if
17434 any intersections create new bounds (going left to
17435 right, bottom to top) and then test again. When
17436 successful the bounds are saved and never computed
17437 again. Fixes #79774.
17439 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17441 * InternalWindowManager.cs: Added HandleTitleBarUp.
17443 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17445 * NumericUpDown.cs: In .NET 1.1, user entered text is still
17446 hexadecimal in ParseUserEdit.
17449 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17451 * MdiWindowManager.cs:
17452 - Handle a click on the form's icon to show the
17453 system menu (when maximized). Fixes #79775.
17454 - Change the existing click handler for the form's
17455 icon when not maximized to show on MouseUp.
17458 * Form.cs: In OnResize only layout the mdi child's
17459 parent if it actually has a parent. Might not if
17460 the window is closing.
17463 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17465 * MdiClient.cs: Ignore active MDI client for text of parent, if
17466 child has no text set.
17468 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17470 * ToolBar.cs: Fixed ToString to match MS.
17472 2006-11-22 Andreia Gaita <avidigal@novell.com>
17475 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
17476 update inner values on set. Fixes #79966.
17477 - Override OnLostFocus to update value on NET 2. Fixes #79950.
17478 - Fix hexadecimal parsing.
17480 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
17481 parent. Fixes #79957
17483 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17485 * Control.cs: After calling SetWindowsPos in SetBoundsCore
17486 the actual size has to be queried, since if height /
17487 width is negative Win32 changes it to 0.
17488 Fixes #79999 on Windows.
17490 * XplatUIX11.cs: Set height / width to 0 if negative
17491 in SetWindowPos. Fixes #79999 on Linux.
17493 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17495 * ThemeWin32Classic.cs: Fix text redenring when button is
17498 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17500 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17501 and later navigate by mouse. Fixes #79528.
17503 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17505 * ToolBar.cs: Set default value for TabStop to false in
17506 constructor, it fixes remaining behavior of bug #79863.
17508 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17510 * MdiWindowManager.cs:
17511 * InternalWindowManager.cs:
17512 - Moved a few methods specific to Mdi from
17513 InternalWindowManager to MdiWindowManager.
17516 2006-11-21 Chris Toshok <toshok@ximian.com>
17518 * XplatUIOSX.cs: stub out InvalidateNC.
17520 * XplatUIWin32.cs: implement InvalidateNC using the call I found
17521 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17523 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17525 * XplatUIDriver.cs: add InvalidateNC abstract method.
17527 * XplatUI.cs: add InvalidateNC.
17529 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17531 * ToolBar.cs: Invalidate complete button area when pressed status
17533 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17534 * ThemeWin32Classic.cs: Increase vertical and horizontal position
17535 by 1 when button is pressed.
17537 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17539 * ToolButton.cs: Invalidate middle of DropDown button when
17540 ToolBar theres DropDownArrows.
17541 * ThemeWin32Classic.cs: Change position of DropDown arrow and
17542 fix DropDown drawing operations.
17544 2006-11-20 Chris Toshok <toshok@ximian.com>
17546 * NativeWindow.cs: fix the formatting of functions ('{' on the
17547 following line), and enable the thread exception dialog.
17549 * Application.cs: remove the duplicate exception catching from
17552 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17554 * Toolbar.cs: Triggers button click event when click on icon
17555 of dropdown ToolBarButton. Fixes #79912.
17557 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17560 * ThemeWin32Classic.cs:
17561 - Added a property WindowBorderFont to enable themeing
17562 of mdi child windows' Text.
17564 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
17566 * InternalWindowManager.cs:
17569 * MdiWindowManager.cs:
17570 - If mdi child is maximized, set mdi parent's
17571 text to "Parent - [Child]". Fixes #79770.
17572 - If there is any maximized mdi child windows, only the active
17573 window (and any new windows) is maximized, the rest are normal.
17574 - On a WindowState change only save mdi child's window bounds
17575 if the old window state was normal. Fixes #79774.
17576 - The scroll bars are now calculated on hopefully all
17577 necessary events. Fixed #79771 / #79844->6 / #79906.
17578 - MdiClient.SizeScrollBars() now takes into account docked
17579 controls in the parent when calculating available space.
17580 - InternalWindowManager now always repaints the entire title
17581 area. Fixes #79844->1/4/5.
17582 - Added RequestNCRecalc on mdi child windowstate changes.
17585 2006-11-20 Mike Kestner <mkestner@novell.com>
17587 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
17588 in the MouseUp handler of the listbox and move the return handling
17589 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
17591 2006-11-20 Everaldo Canuto <everaldo@simios.org>
17593 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
17595 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17597 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
17598 working in 1.2.x anymore. So, updated.
17600 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
17602 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
17603 NumberGroupSeparator of current culture instead of assuming en-US.
17606 2006-11-17 Mike Kestner <mkestner@novell.com>
17608 * Control.cs: Add the concept of implicit bounds setting so that
17609 dock/undock round trips preserve explicitly set size/locations.
17612 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
17614 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
17615 can't handle those filters. (Fixes bug #79961)
17617 2006-11-17 Chris Toshok <toshok@ximian.com>
17619 [ fixes the exit/crashes associated with #79835. it's clearly
17620 suboptimal though, we need to figure out a better way to solve
17623 * PrintPreviewControl.cs: deal with the new invalid printer
17626 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
17627 and return false (so CommonDialog.ShowDialog doesn't actually show
17630 * PrintDialog.cs: enable/disable the Ok button depending on
17631 whether or not the printer is valid.
17633 * CommonDialog.cs (ShowDialog): only actually show the form if
17634 RunDialog returns true.
17636 2006-11-17 Jackson Harper <jackson@ximian.com>
17638 * TextControl.cs: When soft splitting a line, mark it as a soft
17639 split line. Also carry over the current line break to the next
17642 2006-11-17 Chris Toshok <toshok@ximian.com>
17644 * XplatUIX11.cs: when scrolling a window with an invalid area, we
17645 only want to shift the part of the invalid area that overlaps the
17646 area we're scrolling. we also don't want to clear the invalid
17647 area unless the invalid area was entirely contained within the
17650 2006-11-16 Chris Toshok <toshok@ximian.com>
17652 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17653 also make sure to free the memory returned by XGetWindowProperty
17656 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17658 2006-11-16 Chris Toshok <toshok@ximian.com>
17660 * XplatUI.cs: add a new super secret way to get at the totally
17661 unsupported X11 backend.
17663 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
17665 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17667 2006-11-16 Jackson Harper <jackson@ximian.com>
17669 * TreeView.cs: Allow more explicit setting of top node position
17670 for scrollbars. Slower algo, but more accurate.
17671 - CollapseAll should maintain the current top node.
17672 * TextBoxBase.cs: When positioning the caret, use the line, pos
17673 method, since the x, y method does not grab the correct tag, and
17674 the caret height never gets set correctly. (Maybe I should just do
17675 away with the caret having its own height, and always use the
17676 carets current tag for height).
17678 2006-11-16 Jonathan Pobst <monkey@jpobst.com
17680 [Fixes 79778, 79923]
17682 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17683 Parent to the FosterParent instead.
17685 2006-11-16 Jackson Harper <jackson@ximian.com>
17687 * TreeView.cs: Need to recalc the topnode when we expand or
17688 collapse. The scrolling methods can't handle this on their own,
17689 since they use differences between the last scroll position, and
17690 those difference get completely messed up since we are expanding
17691 nodes. This problem should probably be fixed in the scrolling
17692 methods, so they can figure out exactly where they are, but this
17693 will slow things down a little.
17694 * ThemeWin32Classic.cs: Special case for groupboxes with empty
17695 strings, makes nunit-gui look a lot nicer.
17697 2006-11-16 Chris Toshok <toshok@ximian.com>
17699 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17700 the broken multithreaded event handling we have in here. File
17701 this entry under "Why we should move to the new X11 backend".
17703 Any thread can make it into UpdateMessageQueue, which gets events
17704 from the X socket - some of which could belong to hwnds being
17705 managed by a different thread. We can also have multiple threads
17706 in UpdateMessageQueue at the same time, with each one reading from
17707 the X socket. This leads to many problems, with the following
17710 We can't use hwnd.Queue.Enqueue anywhere in here and must use
17713 The MotionNotify compression we do can't work across threads
17714 (without locking the entire queue, perhaps) since we call
17715 hwnd.Queue.Peek, so we just punt and don't compress motion events
17716 unless the owning thread is the one which got the X event.
17718 ConfigureNotify is another fun one, since it modifies the hwnd's
17719 bounds and then enqueues the event. We add a lock to Hwnd which
17720 is held when setting configure_pending to true (and enqueuing the
17723 There is a race wrt the wake socket. we need to make sure that
17724 only 1 thread is waiting on that socket, or else a thread could
17725 sleep waiting for data that never comes. It's difficult (but not
17726 impossible) to make happen, because it seems to require something
17727 like the following:
17729 1. Thread 1 polls on wake_receive
17731 2. poll returns saying there's data to be read on
17734 3. Thread 2 polls on wake_receive and immediately returns
17735 saying there's data to be read.
17737 4. Thread 2 reads the wakeup byte from wake_receive
17739 5. Thread 1 attempts to read the wakeup byte from
17742 6. Thread 2 exits (due to a form closing, perhaps).
17744 7. Thread 1 blocks forever.
17748 Fixing the Expose handling isn't done yet, and the races inherent
17749 in that piece of code are responsible for the drawing mistakes you
17750 see when generating expose events in a MT app (like NPlot). This
17751 one is the likely to be the hardest to bandaid, and it doesn't
17752 appear to cause anything but drawing problems. The other issues
17753 caused apps to exit or hang.
17755 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
17756 called from a different thread than the one that should be calling
17759 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
17761 2006-11-15 Chris Toshok <toshok@ximian.com>
17763 * Application.cs: null out the context's MainForm when we exit
17764 RunLoop. Fixes a newly checked in unit test as well as the last
17765 ODE from bug #79933.
17767 2006-11-15 Chris Toshok <toshok@ximian.com>
17769 * Form.cs (set_Owner): allow a null value so we can clear the
17771 (Dispose): set all our owned_form's Owner properties to null, and
17772 clear the owned_forms collection.
17773 (WM_CLOSE): clean up this a little bit.. still not right though.
17775 * ApplicationContext.cs: OnMainFormClosed should only call
17776 ExitThreadCore if the main form isn't recreating. Fixes unit
17779 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17783 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
17785 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17789 * Hwnd.cs: Add a flag to show a window, but not activate it, to
17790 keep popup window types from stealing focus from the main form
17793 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
17795 * MenuAPI.cs: Set above flag to true.
17797 2006-11-15 Chris Toshok <toshok@ximian.com>
17799 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
17800 the button being released is not in wParam.
17802 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
17804 * Form.cs: Add the released button to MouseEventArgs.Button
17805 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
17808 2006-11-15 Chris Toshok <toshok@ximian.com>
17810 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
17811 GetText(). untested because it's unused in our implementation.
17812 Control.Text always caches the text, even if
17813 ControlStyles.CacheText is not set.
17817 2006-11-15 Chris Toshok <toshok@ximian.com>
17821 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
17822 message. no hiding, no disposing.
17824 in the WM_CLOSE handler, hide the form if it's modal.
17826 2006-11-15 Chris Toshok <toshok@ximian.com>
17828 * XplatUIX11.cs: use AddExpose instead of sending a message.
17829 fixes textbox border drawing.
17831 2006-11-15 Chris Toshok <toshok@ximian.com>
17833 * PropertyGridView.cs: keep from crashing on mouse move/down when
17834 the property grid is empty.
17836 2006-11-14 Jackson Harper <jackson@ximian.com>
17838 * TextControl.cs: Make PageUp and PageDown more like the MS
17840 * TextBoxBase.cs: When we set the text property position the
17841 cursor at the beginning of the document.
17843 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17845 * Form.cs: if a mdi child's WindowState has changed
17846 before it's creation, it would display wrong control
17849 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
17851 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
17854 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
17856 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
17857 the window gets to paint its borders even if the window is
17860 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
17861 otherwise the old control buttons would still be painted
17862 if the window gets bigger.
17864 * PaintEventArgs.cs: add an internal method so that the clip
17865 rectangle can be changed.
17867 2006-11-13 Chris Toshok <toshok@ximian.com>
17869 [ fixes bug #79745 ]
17871 * NotifyIcon.cs: lots of cleanup.
17873 * X11Structs.cs: add an enum for XEMBED messages.
17875 * XplatUIX11.cs: reindent one of the giant switch statements, it
17876 was taking up an additional tab stop, and this file is already way
17877 too wide for my laptop's screen.
17879 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
17880 we get it, resize the hwnd to the WMNormalHints max_width/height.
17882 2006-11-13 Jackson Harper <jackson@ximian.com>
17884 * TextBoxBase.cs: Compute the value changes for the mouse wheel
17887 2006-11-13 Chris Toshok <toshok@ximian.com>
17889 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
17890 #79898. force a reference to the Region to stick around so the
17891 unmanaged object isn't collected (rendering our handle in the MSG
17894 2006-11-13 Chris Toshok <toshok@ximian.com>
17896 * XplatUIX11.cs: fix #79917 for window managers which support
17898 using XStoreName on the raw utf8, and we need to convert to
17899 COMPOUND_TEXT if it's non-latin1.
17901 2006-11-13 Chris Toshok <toshok@ximian.com>
17903 * Form.cs (set_DialogResult): we need to set closing to false if
17904 we're setting our result to None. fixes bug #79908.
17906 2006-11-13 Jackson Harper <jackson@ximian.com>
17908 * TextControl.cs: When formatting text, compute the adjusted tag
17909 lengths correctly, using FindTag for the end tag instead of trying
17910 to figure it out outselves.
17911 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
17912 the item, ItemHeight doesn't work, because trees with large
17913 imagelists use those for their height
17914 * TreeView.cs: ActualItemHeight factors in the image height
17915 - compute left edge of checkboxes correctly
17916 - when expanding/collapsing move the bottom down one pixel, so we
17917 aren't moving part of the node
17919 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
17921 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
17922 stack in PaintEventStart so that it won't get disposed by the gc
17923 before reaching PaintEventEnd.
17925 2006-11-13 Jackson Harper <jackson@ximian.com>
17927 * TextBoxBase.cs: Don't select the word if we are on a line with
17929 - We don't need to position the caret on mouse up, since the mouse
17930 move handler should be doing this
17931 - When double clicking a blank line, the caret is advanced to the
17934 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
17936 * TreeNodeCollection.cs: Avoid duplicating indexer code.
17938 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
17940 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
17941 Fixes part of bug #79910.
17943 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
17945 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
17946 (bug #79903). Some minor string updates to match ms.
17948 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17950 * FileDialog.cs: Don't add an extension if the filename
17951 already ends with that extension.
17953 2006-11-10 Jackson Harper <jackson@ximian.com>
17955 * TreeView.cs: Use the currently highlighted node for the
17956 BeforeSelect event.
17957 * TextBoxBase.cs: There is no need to expand selection on
17959 - CanUndo means 'is there any undo operations', not 'is undo
17960 allowed on this textcontrol. Fixed ClearUndo unit test.
17962 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
17964 * Button.cs: only perform click when button is Selectable (so as
17965 not to activate default buttons when they're disabled)
17967 * Control.cs: Rewrite of the SelectNextControl and related
17968 methods. HandleClick now selects next control if the current one
17971 * Form.cs: OnActivated selects next active control only if Load
17972 has already occurred. If Load hasn't run, there's no point in
17973 selecting here, Load might change the state of controls.
17975 * FocusTest.cs: Tests marked as working again for these fixes
17977 2006-11-10 Chris Toshok <toshok@ximian.com>
17979 * XplatUIX11.cs: a couple of fixes.
17981 - use XInternAtoms with almost all the atoms we need to register,
17982 instead of many, many calls to XInternAtom. should help a bit on
17983 startup time, at the expense of making the code look a little
17986 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17987 isn't reparented (which seems to be a clue that we're running fon
17988 compiz) and they have an Owner form. This fixes the tool windows
17989 in paint.net when running under compiz.
17991 - when setting the opacity of a window, support both the case
17992 where the window has been reparented and also when it hasn't been.
17993 Since compiz/beryl doesn't seem to reparent windows, and these are
17994 the only window managers which support translucency, I'm not sure
17995 why we need the hwnd.reparented case at all.. but leave it in.
17996 now we get translucent windows in paint.net under compiz/beryl.
17998 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18000 * FileDialog.cs: Always return the value for FilterIndex that
18001 was set. Internally convert it to values that make sense.
18003 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18005 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18007 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18009 * Toolbar.cs: Change default value of DropDownArrows to true, the
18010 signature still using false to make it compatible with MS but the
18011 initial value is true. Fixes #79855.
18013 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18015 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18016 only available on Linux.
18018 2006-11-09 Everaldo Canuto <everaldo@simios.org>
18020 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18021 reduce number of calls to redraw method during toolbar creation.
18023 2006-11-09 Mike Kestner <mkestner@novell.com>
18025 * ListView.cs : raise SelectedIndexChanged when an item is selected
18026 programmatically via the Item.Selected property. Gert's nice
18027 ListViewSelectedIndexChanged test fixture now runs clean.
18029 2006-11-09 Mike Kestner <mkestner@novell.com>
18031 * ListView.cs : raise SelectedIndexChanged when a selected item is
18032 removed from the item collection using Remove or RemoveAt.
18034 2006-11-09 Mike Kestner <mkestner@novell.com>
18036 * ListView.cs : raise SelectedIndexChanged once per selected item
18037 for compat with MS. Fixes #79849+.
18039 2006-11-09 Chris Toshok <toshok@ximian.com>
18041 * TabControl.cs: initialize row_count to 0, and set it to 1 when
18042 we need to (if we have any tab pages). Fixes unit test.
18044 2006-11-09 Chris Toshok <toshok@ximian.com>
18046 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18047 width is 0, not 3. Fixes a unit test.
18049 2006-11-09 Mike Kestner <mkestner@novell.com>
18051 * ListView.cs : use Implicit scrollbars so that focus isn't
18052 stolen from the listview when they are clicked. Fixes #79850.
18054 2006-11-09 Chris Toshok <toshok@ximian.com>
18056 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18057 have a root item. Fixes #79879.
18059 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
18063 - An ArgumentException is now thrown if a wrong filter
18064 is applied (matches ms). The previous filter doesn't change
18065 anymore if an exception is thrown.
18066 - Changing the FileName property also affects FileNames
18067 * ColorDialog.cs: The length of the CustomColors array is always
18068 16. It doesn't matter if we use a smaller array or null to update
18069 or change the custom colors property.
18070 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18071 for RootFolder if we get a undefined value.
18073 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18075 * StatusBarPanel.cs:
18076 - Width is set to MinWidth if Width is smaller than
18077 MinWidth. Fixes #79842.
18078 - MinWidth now always overrides Width (MSDN says MinWidth
18079 is set to Width when AutoSize = None, but they do not
18081 - Style has now the the correct default value.
18083 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18086 - The control is completely invalidated on
18087 Got/LostFocus to draw the focus rectangle correctly.
18088 - When AutoSize then height is always 45 (width for
18089 vertical controls).
18091 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18092 on the mouse when moved and it doesn't move when grabbed
18093 until the mouse moves as well. Also fixed some wrong
18094 calculations when clicking on the thumb (control thought
18095 click was outside of thumb and didn't grab it).
18096 Fixes some of the issues in #79718.
18098 2006-11-08 Everaldo Canuto <everaldo@simios.org>
18100 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18102 2006-11-08 Chris Toshok <toshok@ximian.com>
18104 * PropertyGridView.cs: only call ToggleValue if the item is not
18107 2006-11-08 Jackson Harper <jackson@ximian.com>
18109 * TextBoxBase.cs: The RichTextBox and textbox have very different
18110 word selection methods. Implement the textbox's simple word
18111 selection here, and let the RichTextBox override and provide it's
18113 - Don't do extra selection on mouseup
18114 * RichTextBox.cs: Use the documents word selection algorithm, I
18115 think ideally, this function will be pulled into the
18116 RichTextBox.cs code someday.
18118 2006-11-08 Chris Toshok <toshok@ximian.com>
18120 * RootGridEntry.cs: new class to represent GridItemType.Root.
18122 * CategoryGridEntry.cs: reformat, and add boilerplate.
18124 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18125 returns the UI parent anyway, and we need special handling to
18126 implement the GetTarget method in the face of it. Also, implement
18129 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
18130 a root grid item, and use that instead of PropertyGrid.grid_items.
18131 Also, make use of TypeConverters (and add limitted support for
18132 ICustomTypeDescriptors) when initially populating the grid.
18133 Arrays now show up more or less properly.
18135 2006-11-08 Chris Toshok <toshok@ximian.com>
18137 * Application.cs: set the modal dialog to non modal after we close
18138 it. Fixes bug #79866.
18140 2006-11-08 Jackson Harper <jackson@ximian.com>
18142 * TextControl.cs: When combining lines carry over the line end
18143 style from the end line.
18144 - Invalidate the selected area when setting it, if it is visible.
18145 * TextBoxBase.cs: Only rich text box can do full line selects.
18146 - Make sure to set the cursor position when there is a click,
18147 otherwise two clicks in separate areas could cause a large chunk
18150 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18152 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
18155 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18157 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18158 time. Remove tooltips when ToolButton click events. Fixes #79856.
18160 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18162 * MenuAPI.cs: Ignore right click for menu actions and fixes
18163 menu border when clicked. Fixes #79846.
18165 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18167 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18168 MouseState after create wParam for message, this fixes mouse button
18169 equal none in mouse up events.
18171 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
18173 * Control.cs : Focus() now calls Select to set the Container's
18174 Active Control and to give it focus. To avoid infinite recursion
18175 (because ActiveControl also calls Focus at one point), a check
18176 is made in Focus with the help of a new internal variable
18179 2006-11-07 Mike Kestner <mkestner@novell.com>
18181 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18182 if there's a selection. Fixes #79849.
18184 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
18186 * PropertyGrid.cs: Avoid fixed height of help description label.
18187 Fixes part of bug #79829.
18189 2006-11-07 Chris Toshok <toshok@ximian.com>
18191 * XplatUIX11.cs: fix #79790 again, by using the
18192 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18194 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18196 * ToolBar.cs: Fix left click checking.
18198 2006-11-07 Chris Toshok <toshok@ximian.com>
18200 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
18202 2006-11-07 Chris Toshok <toshok@ximian.com>
18204 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
18205 PropertyManager unit tests.
18207 * PropertyManager.cs: make property_name internal.
18209 2006-11-07 Chris Toshok <toshok@ximian.com>
18211 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18212 pass a unit test. Also, don't set image_index to anything in
18213 response to setting the ImageList property.
18215 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18217 * ToolBar.cs: Ignore click events when mouse button is not a
18218 left button, only accepts other button for dropdown menus.
18221 2006-11-07 Chris Toshok <toshok@ximian.com>
18223 * DataGrid.cs: make the back and parent row buttons a little less
18226 2006-11-07 Jackson Harper <jackson@ximian.com>
18228 * TextBoxBase.cs: When converting to Text don't put line breaks in
18229 for soft line breaks.
18230 * TextControl.cs: There is an initial "fake" line in the document,
18231 this is now a soft break line, so that an extra line feed doesn't
18232 get added to the end of documents.
18234 2006-11-07 Chris Toshok <toshok@ximian.com>
18238 * CurrencyManager.cs: if the list is readonly, don't bother
18239 checking if IBindingList.AllowNew is true.
18241 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18242 for non-DataRowView datasources.. or rather, make it not crash.
18243 (DataGridPaintRelationRow): make sure we limit the row painting to
18244 the area not covered by the row header, and make our cell width at
18245 least large enough to cover the relation area. This allows grids
18246 that have relations but no rows to render correctly.
18247 (DataGridPaintRowContents): same type of changes here.
18248 (SetDataSource): move back to always calling
18249 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
18250 navigating back through relations.
18251 (HitTest): handle the case where we have no cells but have
18252 relations. Right now we generate a hit in cell 0 of whatever the
18253 row is, not sure if this is strictly correct, but it works for our
18256 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18257 bother doing anything.
18259 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
18261 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18262 early version of StatusStrip. Not responsible for eaten
18263 application or firstborn children.
18265 2006-11-06 Chris Toshok <toshok@ximian.com>
18267 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18268 call GetTabRect with a -1 index. Fixes #79847.
18270 2006-11-06 Jackson Harper <jackson@ximian.com>
18272 * TreeNodeCollection.cs: Update scrollbars after clearing.
18274 2006-11-06 Chris Toshok <toshok@ximian.com>
18276 * NumericUpDown.cs: fix the ToString method for some unit test
18279 2006-11-06 Chris Toshok <toshok@ximian.com>
18282 - set the initial SelectedGridItem if we can.
18284 - Exclude non-mergable properties only if we're merging > 1
18285 object. Merging 1 object isn't really merging, obviously.
18287 - Handle PropertySort.NoSort just like Alphabetical, which is
18288 wrong of course, but at least gets things on the screen.
18290 * PropertyGridView.cs:
18291 - Add method "FindFirstItem" which finds the first property grid
18292 item, so we can select it by default.
18294 - make use of GridEntry.CanResetValue.
18296 - Don't call RedrawBelowItemOnExpansion here anymore, the
18297 individual GridEntry's will do that.
18299 - Remove the ITypeDescriptorContextImpl internal class.
18302 - this class needs to implement ITypeDescriptorContext, as it's
18303 what MS's PropertyDescriptorGridEntry does, which means we can
18304 remove the ITypeDescriptorContextImpl internal class from
18305 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
18307 - keep a reference to our PropertyGridView, and move the call to
18308 RedrawBelowItemOnExpansion here from PGV. This means
18309 programmaticly setting Expanded actually does something visible.
18311 - add a CanResetValue() function which takes into account our
18312 possibly multiple "selected_objects" in the merged case. Shifting
18313 PropertyGridView to use this method fixes another unreported
18314 crasher found running the test for #79829.
18316 - when Top or Bounds is updated, make sure the PropertyGridTextBox
18317 is updated to reflect this.
18319 * CategoryGridEntry.cs: the ctor takes the PGV now.
18321 2006-11-06 Jackson Harper <jackson@ximian.com>
18323 * TextControl.cs: These are 1 based.
18324 * TextBoxBase.cs: When setting the selected text, don't change the
18325 selected text tags, this is done by ReplaceText, just position the
18326 cursor at the end of the new text.
18328 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18330 * ListView.cs: Allow label edit only when, when LabelEdit is
18333 2006-11-06 Jackson Harper <jackson@ximian.com>
18335 * TextControl.cs: If a suitable wrapping position isn't found,
18336 just wrap right in the middle of a word.
18338 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18340 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18343 2006-11-06 Jackson Harper <jackson@ximian.com>
18345 * TreeView.cs: Can't use the VisibleCount property when setting
18346 scrollbar heights, because this doesn't take into account whether
18347 or not the horz scrollbar just came visible.
18349 2006-11-05 Everaldo Canuto <everaldo@simios.org>
18351 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18352 activated. Fixes #79369, #79832.
18354 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
18356 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18357 had to remove support for links that point to a directory. FileInfo
18358 returns no usefull information (means, the directory they point to)
18359 for such links. Replaced some empty string ("") with String.Empty.
18361 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18363 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
18364 NullReferenceException when attempting to remove node that is not in
18365 collection. Throw NullReferenceException when null is passed to
18366 Remove. Allow first element of the collection to be removed. Fixes
18367 bug #79831. In GetEnumerator ().Current return null if positioned
18368 before the first element of the collection. In GetEnumerator ().Reset,
18369 position before first element of the collection.
18371 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18373 * PropertyGrid.cs: To match MS, remove default title and description
18374 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18377 2006-11-04 Chris Toshok <toshok@ximian.com>
18379 * Theme.cs: add a Clamp method, just for kicks.
18381 * ThemeWin32Classic.cs: clamp all color components to [0..255].
18383 2006-11-04 Chris Toshok <toshok@ximian.com>
18385 * Form.cs: if the form isn't visible, Close() does nothing.
18387 2006-11-03 Chris Toshok <toshok@ximian.com>
18389 * Form.cs (Close): if the form is modal, don't Dispose of it, only
18391 (WndProc): don't Dispose after handling the WM_CLOSE message.
18393 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18394 them as such, instead of using casts from Control to Form. Also,
18395 don't Dispose of the modal dialog when we fall out of the loop -
18396 Close() it instead.
18400 2006-11-03 Chris Toshok <toshok@ximian.com>
18402 * Control.cs (Dispose): only go through the dispose thing if we're
18403 @disposing, and we haven't already been disposed. Fixes bug
18406 * Form.cs: no reason to call "base.Dispose()" here instead of
18409 2006-11-03 Mike Kestner <mkestner@novell.com>
18411 * ComboBox.cs : use ToString instead of casts in AddItem for
18412 sorting functionality. Fixes #79812.
18414 2006-11-03 Chris Toshok <toshok@ximian.com>
18416 * Application.cs: pave the way for actually using the thread
18417 exception dialog. it's ifdefed out at the moment.
18419 2006-11-03 Chris Toshok <toshok@ximian.com>
18421 * ThreadExceptionDialog.cs: until we get a better layout, actually
18422 hide the details textbox and label when we shouldn't see them.
18424 2006-11-03 Jackson Harper <jackson@ximian.com>
18426 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18427 multiline textboxes anymore. This method also determines the
18428 width/height of a textboxes canvas area.
18429 - Sorta a revert of the last patch. For multiline just position
18430 the controls, then bail. This way the scrollbar width won't be
18433 2006-11-03 Everaldo Canuto <everaldo@simios.org>
18435 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18436 it dont need. Fixes #79537.
18438 2006-11-02 Jackson Harper <jackson@ximian.com>
18440 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
18441 send the status after firing the DndOver event.
18443 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18445 * TrackBar.cs: Now orientation only switches height / width if
18446 the control's handle is created (Win32 does it like this). Also
18447 fixed a typo in ToString() for a test to pass, changed the
18448 exception thrown in set_LargeChange and set_SmallChange to
18449 match Win32 behaviour, and added TrackBar tests to the unit
18452 2006-11-02 Chris Toshok <toshok@ximian.com>
18454 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18455 not _NET_WM_STATE_NO_TASKBAR.
18457 2006-11-02 Jackson Harper <jackson@ximian.com>
18459 * TextControl.cs: Increment count by one, since in the update view
18462 2006-11-02 Jackson Harper <jackson@ximian.com>
18464 * TextBoxBase.cs: Use client rectangle not bounds for checking if
18465 the mouse is in the client rectangle (duh).
18467 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18469 * TrackBar.cs: Fixed trackbar jumping around when clicking
18470 on it - the trackbar was not detecting correctly at which
18471 side of the thumb the click was done. (fixes #79718)
18473 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18475 * ListBox.cs: scroll visible area when change SelectedIndex to
18476 a non visible area. Fixes #79481.
18478 2006-11-01 Jackson Harper <jackson@ximian.com>
18480 * TextControl.cs: When replacing the selection move the selection
18481 start/end/anchor to the end of the new text.
18483 2006-11-01 Jackson Harper <jackson@ximian.com>
18485 * XplatUIWin32.cs: When setting the parent change the controls
18486 visibility to it's visibility flag, not to it's old parents
18487 visibility (.Visible walks the parent chain).
18489 2006-11-01 Chris Toshok <toshok@ximian.com>
18491 * XplatUIX11.cs: revert the #79790 fix, as the simple.
18492 XSetTransientForHint fix breaks paint .net's tool windows. more
18493 work needed for that one.
18495 2006-11-01 Chris Toshok <toshok@ximian.com>
18497 * ScrollBar.cs: throw ArgumentException instead of Exception in
18498 LargeChange/SmallChange setters. fixes unit tests.
18500 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18502 * ContainerControl.cs: reverted rev.67183 (which was itself
18503 a reversion of rev.66853... eh).
18505 * Control.cs: Fixes Reflector hang by changing Focus() call
18506 to what it was before rev.66643 (calling Select() here sets
18507 ActiveControl, which in some situations calls back Focus and
18508 eventually does a stack overflow). Temp fix.
18509 Changes to GetNextControl() to not look for children to select when
18510 parent cannot be selectable (so it looks for siblings instead)
18512 2006-10-31 Mike Kestner <mkestner@novell.com>
18514 * CheckedListBox.cs : off by one error in returned index from
18515 ObjectCollection.Add. Fixes #79758.
18517 2006-10-31 Chris Toshok <toshok@ximian.com>
18519 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18520 calls for the textbox/spinner, to keep from recursing to the point
18521 where we crash. Fixes #79760.
18523 2006-10-31 Chris Toshok <toshok@ximian.com>
18525 * ListControl.cs (set_SelectedValue): don't throw exceptions on
18526 null/"" value, just return. matches ms's behavior and fixes some
18529 2006-10-31 Chris Toshok <toshok@ximian.com>
18531 * Control.cs (set_Capture): make a logic a little easier to
18534 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18535 if it's being destroyed. A necessary fix surely, but a bandaid
18536 also, to fix the stuck capture problem in bug #78413.
18538 2006-10-31 Chris Toshok <toshok@ximian.com>
18540 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
18541 convention of clearing hwnd.ClientRect when we set the
18542 width/height (so it'll be recalculated by Hwnd).
18544 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18546 * ContainerControl.cs: reversed Contains check from
18547 ActiveControl due to hanging problems. This fix
18548 partly regresses #79667 (button does not have
18549 initial focus), so this might be a symptom for
18550 a larger parenting problem (set_ActiveControl
18551 is being called but the child control does
18552 not have the parent set yet?)
18554 2006-10-31 Mike Kestner <mkestner@novell.com>
18556 * MenuAPI.cs : fix keynav when menu is click activated.
18558 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
18560 * ToolStrip*: Version 0.2.
18562 * MenuStrip.cs: Version 0.1.
18564 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
18566 2006-10-30 Chris Toshok <toshok@ximian.com>
18568 [ fixes the oversized notify icon issue in bug #79745 ]
18570 * NotifyIcon.cs: scale the icon down to the size we're given by
18571 the XplatUI layer (this would be faster if we did it once instead
18572 of whenever we paint..) Also, remove the WM_NCPAINT handling,
18573 since it's never invoked.
18575 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
18576 pixels high by default, so let's hardcode our systray icon to that
18577 size. The SYSTEM_TRAY protocol should really have a way for
18578 client apps to query for the correct icon size.. but oh well. A
18579 couple of patches to deal with the screwy client_window ==
18580 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
18581 instance, and also make sure we don't XSelectInput twice).
18583 2006-10-30 Chris Toshok <toshok@ximian.com>
18585 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
18586 recreating forms. Control recreation is the bane of my existence.
18587 Fix it in a way that keeps everyone happy.
18589 2006-10-30 Chris Toshok <toshok@ximian.com>
18591 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
18592 just non-CHILD ones. otherwise sometimes scrollbars end up with
18593 client_windows not being resized to the proper size (ReportBuilder
18594 shows this extremely well).
18596 2006-10-30 Chris Toshok <toshok@ximian.com>
18598 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
18599 for non-WS_EX_APPWINDOW windows. This is what keeps them from
18600 showing up in the gnome taskbar. Fixes bug #79790.
18602 2006-10-30 Chris Toshok <toshok@ximian.com>
18604 * ApplicationContext.cs: guard against a NRE.
18606 * Application.cs: null out the old MainForm for the context, so we
18607 don't try to use it again once it's disposed. Fixes bug #79783.
18609 2006-10-30 Chris Toshok <toshok@ximian.com>
18611 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
18612 BindingContext, set the data source directly, otherwise do the
18613 lazy approach - the actual ListManager will be created when we get
18614 a BindingContext. Fixes bug #79700.
18616 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18618 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18619 XplatUIX11.cs: Remove old 2 parameter SetVisible.
18621 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
18623 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
18625 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
18626 of SetVisible that allows a window to be shown, but not activated.
18627 This is needed on Windows for MenuStrip, and can probably be used
18628 with MainMenu and ComboBox to fix the focus stealing issues on
18631 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18633 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
18635 * PictureBox.cs: Fix the output of the ToString method.
18637 2006-10-29 Chris Toshok <toshok@ximian.com>
18639 * Control.cs (get_TopLevelControl): fix bug #79781.
18641 2006-10-29 Chris Toshok <toshok@ximian.com>
18643 * ListControl.cs (set_DataSource): throw Exception here, not
18644 ArgumentException, to match MS behavior.
18646 2006-10-29 Chris Toshok <toshok@ximian.com>
18648 * Form.cs: remove the try-catch's around calls to GetWindowState.
18649 We can just check the return value.
18651 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18654 * XplatUI.cs: Add note about additional return value for
18657 2006-10-29 Chris Toshok <toshok@ximian.com>
18659 * Control.cs (CreateHandle): when we create our handle, we also
18660 create the handles of our child controls. Fixes one of the
18661 Control unit tests (CH11).
18663 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18665 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18667 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
18669 * ThemeClearlooks.cs: A little speedup.
18671 2006-10-27 Chris Toshok <toshok@ximian.com>
18673 * Control.cs: implement Control.FromChildHandle in a way that
18674 matches the docs (and fixes the failed test.)
18676 2006-10-27 Chris Toshok <toshok@ximian.com>
18678 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18681 * DataGrid.cs: implement ResetForeColor such that the tests
18684 2006-10-27 Chris Toshok <toshok@ximian.com>
18686 * ToolBarButton.cs: setting text/tooltiptext to null results in it
18687 being set to "". Fixes bug #79759.
18689 2006-10-27 Jackson Harper <jackson@ximian.com>
18691 * TextControl.cs: We need to clear the entire selection area when
18692 setting the start, otherwise multiline selections are still
18695 2006-10-26 Chris Toshok <toshok@ximian.com>
18697 * PropertyGridView.cs:
18699 - ifdef all the code specific to the double
18700 buffer case, and provide some alternatives in the non-doublebuffer
18701 code, which makes heavy use of XplatUI.ScrollWindow to move things
18702 around without having to invalidate (and cause flicker). There
18703 are still some drawing problems in the non-doublebuffered case, so
18704 DOUBLEBUFFER is defined by default.
18706 - Fix the way dropdowns are handled. now we explicitly watch for
18707 the events which might cause the dropdown to close, and break out
18708 of the nested event loop there. This gets rid of all Capture
18709 code, at the expense of the Msg special casing. Seems to work,
18710 though, and fixes bug #79743.
18712 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
18713 * Control.cs: SetIsRecreating now recreates implicitly added
18714 child controls as well. Finally fixes #79629. The flag passed to
18715 SetIsRecreating has also been removed since it wasn't used.
18717 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18719 * PageSetupDialog.cs: Clean some code, fix some bits,
18720 add some checks, and add a printer sub-dialog.
18722 2006-10-26 Chris Toshok <toshok@ximian.com>
18724 * PropertyGrid.cs: make set_SelectedObject call
18725 set_SelectedObjects, and move the duplicate logic to the
18726 SelectedObjects setter. Also, raise SelectedObjectsChanged.
18728 * PropertyGridView.cs: hide the textbox when we get a
18729 SelectedObjectsChanged event.
18733 2006-10-26 Chris Toshok <toshok@ximian.com>
18735 * PropertyGridView.cs: deal with the type converter not supporting
18736 GetStandardValues() or GetStandardValues() returning null, which
18737 is does in the default case. Fixes #79742.
18739 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18741 * CheckedListBox.cs: nunit no longer crashes when selecting
18742 Project/Edit menu option
18744 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
18746 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
18747 is no menu selected. fixes #79739
18749 2006-10-25 Chris Toshok <toshok@ximian.com>
18751 * PropertyGridView.cs: factor out the splitter invalidation code
18752 into the SplitterPercent setter, and for kicks implement the
18753 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
18754 amount in either direction.
18756 2006-10-25 Chris Toshok <toshok@ximian.com>
18758 * PropertyGridView.cs: do some cleanup of the brush used to draw
18759 text - read only fields should be grayed out. not sure how to do
18760 this with the textbox, though. but the textbox's should also be
18761 readonly now at least. Also, hide/show the textbox when resizing
18764 * CursorConverter.cs: use System.Reflection when getting the
18765 properties of Cursors, as TypeDescriptor.GetProperties isn't
18766 returning static properties.
18768 2006-10-25 Chris Toshok <toshok@ximian.com>
18770 * PropertyGridView.cs: factor out the up/down handling, and reuse
18771 it for page up/down. also add End/Home support.
18773 2006-10-25 Chris Toshok <toshok@ximian.com>
18775 * PropertyGridView.cs:
18777 - ensure the selected grid item is visible in the scrolled area,
18780 - fix Keys.Down handling when you're on the last item in the
18783 2006-10-25 Mike Kestner <mkestner@novell.com>
18785 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
18786 clicks too. Fixes #79725.
18788 2006-10-24 Chris Toshok <toshok@ximian.com>
18790 * PropertyGrid.cs: use property.Converter instead of
18791 TypeDescriptor.GetConverter(property.PropertyType), so we catch
18792 TypeConverters declared on the property as well as on the
18793 PropertyType. Fixes bug #79678.
18795 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
18797 * MimeIcon.cs, Mime.cs:
18798 Fallback to the default platform handler if no shared mime info
18799 stuff exists (fixes #79693).
18801 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18802 * ContainerControl.cs: Incorrect contains check in ActiveControl
18803 from previous fix (duh).
18805 2006-10-20 Chris Toshok <toshok@ximian.com>
18807 * PropertyGridView.cs: the dropdown should be MIN(number of items
18808 in list, 15). Fixes #79551.
18810 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18811 Fixes #79384, #79394, #79652, #79667
18814 - Modal windows are now destroyed in the proper order for windows
18816 * ContainerControl.cs:
18818 - ActiveControl setter has more conditions on when to return:
18819 - if we're reselecting the active control, but it actually
18820 didn't have focus (window hidden or some such), it runs
18821 - if the active control being selected doesn't actually
18822 exist in the container, it returns
18826 - The ShowDialog now gets the current form as the owner when
18827 invoking without parameters, and correctly activates the owner
18832 - MessageBox now catches the Escape key to exit
18834 2006-10-20 Chris Toshok <toshok@ximian.com>
18836 * PropertyGridView.cs: fix a number of issues (bug #78565, and
18837 most of bug #79676):
18839 - you can navigate around the property grid with the arrow keys.
18841 - the dropdown is sized properly when the pg has a vertical
18844 - fix the indentation for subentries, and properly select the
18847 - fix the gray bar's drawing (only draw it to the last element,
18848 not for the height of the control. Also make sure we draw that
18849 last horizontal grid line.
18851 - use the same mechanism the datagrid uses wrt the editing textbox
18852 when scrolling/resizing/etc. Namely, we hide it first, do the
18853 operation, then show it again (if it's still visible).
18855 - aggressively remove a lot of unnecessary refreshes (and also
18856 calls to Invalidate(). call more limited variants, and only redraw
18861 - when we're populating the merged collection, fill in the UI
18862 parent with either the passed in item, or the category item we
18865 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
18867 * GridItem.cs: drop some fully qualified names.
18869 * GridEntry.cs: add a "UIParent", which is basically the parent
18872 * GridItemCollection.cs: add an IndexOf method.
18874 2006-10-20 Mike Kestner <mkestner@novell.com>
18876 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
18877 a working win32 NC invalidation mechanism, we can't invalidate
18878 menus. [Fixes #79705]
18880 2006-10-20 Mike Kestner <mkestner@novell.com>
18882 * ListBox.cs : don't update the VScrollbar if the list is empty,
18883 just hide it. [Fixes #79692]
18885 2006-10-20 Jackson Harper <jackson@ximian.com>
18887 * RichTextBox.cs: Handle some special chars better, and don't skip
18888 the entire group when we encounter a special char that we don't
18891 2006-10-18 Chris Toshok <toshok@ximian.com>
18893 * PropertyGridView.cs: address a number of issues from bug #79676,
18894 mostly of the cosmetic variety.
18896 - The highlight rectangle for indented items not extends all the
18899 - Indented items aren't indented so much.
18901 - the dropdown is properly sized width-wise if the pg has a
18902 vertical scrollbar.
18904 2006-10-18 Chris Toshok <toshok@ximian.com>
18906 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
18907 systray stuff is rather convoluted to begin with.
18909 systray icons are a single window for some reason (that I haven't
18910 figured out yet), and for them, client_window == whole_window.
18911 Given the way the tests are structured elsewhere to determine
18912 which paints are pending (client vs. nc), that situation will
18913 always yield PAINT, not NCPAINT. So, if we have a pending
18914 nc_expose and no pending expose, remove the hwnd from the paint
18915 queue, and also set nc_expose_pending to false, to keep us from
18916 blocking further expose's adding the hwnd to the paint queue.
18918 phew. like i said, a rather convoluted change. Fixes the
18919 notifyicon repaint issues in bug #79645.
18921 2006-10-18 Chris Toshok <toshok@ximian.com>
18923 * Form.cs: when getting the backcolor of the form, don't get
18924 base.BackColor, as this allows parents to influence the background
18925 color. This breaks mdi forms. Instead, if the background_color
18926 is empty, return the default.
18928 2006-10-18 Chris Toshok <toshok@ximian.com>
18930 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
18931 to being private instead of internal static.
18933 * Control.cs: remove all the stupid ParentWaitingOnRecreation
18934 crap, it wasn't working for more deeply nested controls anyway,
18935 and we already have the is_recreating flag - use that instead.
18936 Before calling DestroyHandle in RecreateHandle, recurse through
18937 the control tree setting it to true. this returns the recreate
18938 code to much of its original simplicity, while now guaranteeing we
18939 actually recreate everything we're supposed to. This change gets
18940 fyireporting actually showing mdi children.
18942 2006-10-17 Chris Toshok <toshok@ximian.com>
18944 * Form.cs: remove some debug spew, and collapse some duplicate
18945 code at the end of SetClientSizeCore.
18948 - add some more debug spew here too wrt Destroy handling.
18949 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
18950 in Control's handling of WM_DESTROY.
18951 - Remove the handling of zombie window DestroyNotifies from the
18952 event loop - we don't need it. Now the only DestroyNotifies we
18953 actually handle are ones generated by X.
18954 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
18955 match gtk's (functioning) handling of this. This keep metacity
18956 from leaving droppings in the form of wm borders with no window
18957 contents all over the place.
18960 - add a bunch of debug spew wrt control recreation.
18961 - fix a bug where we weren't tracking Visible properly on
18963 - fixed the WM_PAINT double buffer handling to support re-entrant
18964 calls (yes, i know it's gross, but it's happening to us).
18966 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18967 * ThemeWin32Classic.cs: changed drawing of selected days
18968 to make them look better.
18970 2006-10-16 Chris Toshok <toshok@ximian.com>
18972 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18973 drawing_stack. Nuke the ClientDC/NonClientDC properties.
18975 * XplatUIX11.cs: move away from using hwnd.client_dc and
18976 hwnd.non_client_dc and on to a stack of dc's (and in window's
18977 case, PAINTSTRUCT's), so we can deal with nested Paint calls
18978 without puking or not disposing of Graphics objects.
18980 * XplatUIOSX.cs: same.
18982 * XplatUIWin32.cs: same.
18984 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18986 * FileDialog.cs: Don't call on_directory_changed inside
18987 OnSelectedIndexChanged (it changes the SelectedIndex too).
18988 Instead move it to OnSelectionChangeCommitted.
18990 2006-10-13 Chris Toshok <toshok@ximian.com>
18992 * XplatUIX11.cs: more Destroy work. the current code does the
18993 following things, in order:
18995 1. Enumerates all handles of all controls at or below the one
18996 being destroyed, in pre-order. As it is doing this, it marks the
18997 handles as zombie and clears all references to them.
18999 2. calls XDestroyWindow on the window passed in.
19001 3. SendMessage's WM_DESTROY to all he handles in the accumulated
19004 2006-10-13 Chris Toshok <toshok@ximian.com>
19006 * XplatUIX11.cs: set hwnd.zombie to true before calling
19007 SendMessage (WM_DESTROY). this keeps us from marking the new
19008 window a zombie, and also keeps us from calling sendmessage at
19011 2006-10-13 Jackson Harper <jackson@ximian.com>
19013 * TextControl.cs: Do not show the caret and selection at the same
19014 time. Reduces ugliness by 35%.
19016 2006-10-13 Chris Toshok <toshok@ximian.com>
19018 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19019 zombie after we do the recursive call, so we actually do call
19020 SendMessage on the children controls.
19021 (GetMessage): if we find a pending paint event for a zombie hwnd,
19022 remove the hwnd from the paint queue, or else it will always be
19023 there (and we'll effectively loop infinitely)
19025 2006-10-13 Mike Kestner <mkestner@novell.com>
19027 * MenuItem.cs : add Selected format under keynav too.
19030 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
19032 * PropertyGrid.cs: Fixed some NRE's and small difference between our
19033 implementation and that of MS.
19035 2006-10-13 Chris Toshok <toshok@ximian.com>
19037 * Control.cs (OnInvalidated) only futz with the invalid_region if
19038 the control is double buffered. this fixes the apparent hang in
19039 the ListView unit tests. Someone needs to make the
19040 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19042 2006-10-13 Chris Toshok <toshok@ximian.com>
19044 * PropertyGridView.cs:
19046 - do a little refactoring so that only one place calls
19047 dropdown_form.Hide, and that is CloseDropDown. make everywhere
19048 else call that. Also make it Refresh, since there are redraw bugs
19049 otherwise (we should take a look at that...)
19051 - do a little more refactoring work to share the body of code
19052 involved with the drop down. it was duplicated in the code
19053 dealing with the listbox handling and in the code dealing with the
19056 - add a Capture to the dropdown form's control once it's
19057 displayed, and add a MouseDown handler that checks to make sure
19058 the position is inside the control. If it's not, close the
19059 dropdown. This fixes #78190.
19061 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19062 if the value is different than the initial value.
19064 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
19066 * Control.cs: see #78650
19067 - Fixed GetNextControl for several cases:
19068 - Changed FindFlatForward to return
19069 correct sibling control when more than one
19070 control has same TabIndex as the currently
19072 - Changed FindFlatBackward to loop children
19073 from last to first and apply same logic as in
19075 - Changed FindControlForward to search for
19076 children when control is not a container
19077 but has children, or search for siblings if
19078 control is a container...
19079 - Changed FindControlBackward to continue
19080 searching for child controls when hitting
19083 - Fixed Focus method to update ActiveControl
19084 (FocusTest.FocusSetsActive failure)
19087 - Focus rectangle now refreshes when gaining
19089 - Removed grab for Tab key on IsInputKey that
19090 was keeping tab navigation from working (#78650)
19092 2006-10-13 Chris Toshok <toshok@ximian.com>
19094 * PropertyGridView.cs:
19095 - Rewrite SetPropertyValue to loop over SelectedGridItem's
19098 - Deal with GridItem.Value == null a few places.
19101 - replace the PopulateGridItemCollection with a pair of methods
19102 which compute the intersection of all the properties in the
19103 SelectedObjects array. Fixes #79615.
19105 - Throw ArgumentException from set_SelectedObjects if there's a
19108 - Add GetTarget method which can be used to traverse up the
19109 GridItem.Parent chain. It depends on the assumption that
19110 selected_objects for different GridEntries are always in the same
19111 order (a safe assumption). Use this method and loop over all the
19112 selected objects in the entry when calling RemoveValueChanged and
19115 * GridEntry.cs: Make this handle multiple selected objects.
19116 .Value returns null if not all the selected objects share the same
19119 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
19120 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19121 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19122 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19123 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19124 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19125 add additional functionality.
19127 2006-10-12 Mike Kestner <mkestner@novell.com>
19129 * ErrorProvider.cs : new ToolTipWindow ctor sig.
19130 * HelpProvider.cs : new ToolTipWindow ctor sig.
19131 * ToolTip.cs : remove ToolTip param from Window sig since it is
19133 * ToolBar.cs : add tooltip support. Fixes #79565.
19135 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19137 * ComboBox.cs: move the events in set_SelectedIndex to
19138 after the call to HighlightIndex in order to avoid
19139 possible recursion and subsequent problems with the call
19140 to HighlightIndex and include a range check in
19141 set_HighlightIndex. Fixes #79588
19143 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19145 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
19146 to ui thread's settings instead of sunday.
19147 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19149 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19151 * DateTimePicker.cs
19153 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19154 and implement missing functionality (selecting different parts
19155 of the date and edit them individually with the keyboard).
19157 2006-10-11 Chris Toshok <toshok@ximian.com>
19159 * Control.cs (OnInvalidated): fix NRE relating to last change.
19161 2006-10-11 Chris Toshok <toshok@ximian.com>
19163 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19164 atoms in _NET_WM_STATE here if the window is maximized. We need
19165 to do this because we're *replacing* the existing _NET_WM_STATE
19166 property, so those atoms will be lost otherwise, and any further
19167 call to GetWindowState will return Normal for a window which is
19168 actually maximized. Fixes #79338.
19170 2006-10-11 Jackson Harper <jackson@ximian.com>
19172 * TextControl.cs: Special case for setting selection end to
19173 selection start, we basically kill the anchor.
19174 - some todo comments.
19176 2006-10-11 Chris Toshok <toshok@ximian.com>
19178 * Control.cs: switch to using an "invalid_region" to track which
19179 parts of the image buffer need updating. This is more code than
19180 the simple fix from r66532. That version just attempted to always
19181 fill the entire buffer on redraw, which turns out to be
19182 inefficient when invalidating small rectangles. This version
19183 simply adds the invalid rectangle to the invalid region. When we
19184 get any WM_PAINT message we see if it can be filled using the
19185 image buffer, and if it can't (if the paint event's clip rectangle
19186 is visible in the invalid region) we first fill the image buffer.
19187 So, the image buffer is still a cache, we just fill it lazily.
19189 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19190 need it any longer.
19192 2006-10-11 Chris Toshok <toshok@ximian.com>
19194 * XplatUIX11.cs (SetWindowPos): we need to update both position as
19195 well as size after calling XMoveResizeWindow. This keeps us from
19196 ignoring future SetWindowPos calls. Fixes the disappearing
19197 DateTimePicker in the ToolBarDockExample from bug #72499.
19199 2006-10-11 Chris Toshok <toshok@ximian.com>
19201 * TextBoxBase.cs: reorder things a bit when it comes to
19202 resizing-causing-recalculation. we were recalculating the
19203 document when our position was changed, which shouldn't happen.
19204 We only care about size changes. Clear up some more redundant
19205 recalculation calls while I'm at it. This makes the toolbar dock
19206 example snappy when you're just dragging toolbars around (since it
19207 causes a relayout whenever you move one.)
19209 2006-10-11 Chris Toshok <toshok@ximian.com>
19211 * ToolBarButton.cs (get_Rectangle): this only returns
19212 Rectangle.Empty if Visible == false, or Parent == null.
19213 Parent.Visible doesn't matter.
19215 2006-10-10 Chris Toshok <toshok@ximian.com>
19217 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19218 by .net 1.1, so switch to an internal method instead.
19220 2006-10-10 Chris Toshok <toshok@ximian.com>
19222 * Control.cs (WM_PAINT): when a control is double buffered we draw
19223 initially to the ImageBuffer and then copy from there. But when a
19224 parent control which has child controls is double buffered, the
19225 initial drawing doesn't encompass the entire ClientRectangle of
19226 the parent control, so we end up with uninitialized bits (this is
19227 easily seen by dragging the top toolbar in
19228 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
19229 manually set the ClipRectangle of the paint_event (only the one we
19230 use to populate the ImageBuffer) to ClientRectangle. Fixes more
19231 of the nastiness in bug #72499.
19233 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19234 which we use in Control.cs's WM_PAINT handling.
19236 2006-10-10 Jackson Harper <jackson@ximian.com>
19238 * TextBoxBase.cs: Finish off the autoscrolling stuff.
19240 2006-10-10 Chris Toshok <toshok@ximian.com>
19242 * Cursor.cs: Apply a slightly different patch to the one suggested
19245 2006-10-10 Jackson Harper <jackson@ximian.com>
19247 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19248 not the parent form.
19249 * TextControl.cs: use difference in old line count vs new count to
19250 calculate how many lines were added, this takes into account soft
19251 line breaks properly.
19253 2006-10-10 Chris Toshok <toshok@ximian.com>
19255 * LinkLabel.cs: don't call MeasureCharacterRanges against a
19256 rectangle located at 0,0 and the size of the text. Use
19257 ClientRectangle instead. This fixes rendering of non-left aligned
19260 2006-10-10 Jackson Harper <jackson@ximian.com>
19262 * TextBoxBase.cs: When we set the selection start position the
19264 * TextControl.cs: Need to update the caret when we decrement it to
19266 - Make sure that the selection_visible flag gets reset to false if
19267 the selection isn't visible. Before this you could get it set to
19268 visible by changing the selection start, then changing the end to
19271 2006-10-09 Jackson Harper <jackson@ximian.com>
19273 * TreeView.cs: Don't update scrollbars when we aren't visible.
19274 * TreeNodeCollection.cs: Only need to update scrollbars if being
19275 added to an expanded visible node or the root node.
19277 2006-10-09 Chris Toshok <toshok@ximian.com>
19279 * XplatUIX11.cs (SendMessage): fix NRE.
19281 2006-10-09 Jackson Harper <jackson@ximian.com>
19283 * TextBoxBase.cs: Implement horizontal autoscrolling.
19284 * TextControl.cs: Add a movement types that allows moving forward
19285 and backwards without wrapping.
19287 2006-10-09 Mike Kestner <mkestner@novell.com>
19289 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19290 with focus "expansion" of labels. Fixes #79532 and then some.
19291 * ThemeWin32Classic.cs : add LineLimit to ListView label format
19294 2006-10-09 Jackson Harper <jackson@ximian.com>
19296 * TextBoxBase.cs: Set the default max values to MaxValue since
19297 we use the scrollbar for autoscrolling and the default value is
19298 100. If we don't do this the caret won't keep up with typing
19299 after about 18 characters.
19300 * TextControl.cs: Make sure the selection is offset by the
19301 viewport x. This fixes selection when using auto scrolling.
19303 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
19305 * Form.cs: The active control should be selected after the
19306 OnLoad so that any child control initialization that affects
19307 the selection is done. Fixes #79406
19309 2006-10-06 Chris Toshok <toshok@ximian.com>
19311 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19312 to have no evil effects.
19314 - Stop selecting StructureNotifyMask on non-toplevel windows.
19316 The only way children should be resized is by using the SWF api,
19317 and we already send WM_WINDOWPOSCHANGED messages in those cases.
19318 Toplevel windows can be interacted with via the window manager,
19319 and so we keep the input mask there.
19321 The other event StructureNotifyMask gives us (that we care
19322 about) is DestroyNotify. The code is already structured such
19323 that it assumes we won't be getting a DestroyNotify event for
19324 the window we pass to XDestroyWindow (which is what
19325 StructureNotifyMask is supposed to guarantee.) So, that code
19326 shouldn't be affected by this either.
19328 - Stop selecting VisibilityChangeMask altogether.
19330 We weren't doing anything with the resulting events anyway.
19332 This vastly reduces the number of X requests and events we see
19333 when resizing/laying out a large ui.
19335 2006-10-06 Chris Toshok <toshok@ximian.com>
19337 * ScrollableControl.cs (DisplayRectangle): we need to take into
19338 account the DockPadding regardless of whether or not auto_scroll
19339 == true. rework this slightly to this effect, and fix bug #79606,
19340 and part of #72499 (you can now see the drag handles and drag
19343 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
19345 * ListViewItem.cs: Collections of selected and checked items are now
19346 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19347 we mark the collection "dirty".
19348 * ListView.cs: Marked collections readonly. Modified UpdateSelection
19349 to only clear SelectedItems when a new item is selected and MultiSelect
19350 is enabled. CheckedItems and SelectedItems now subscribe to Changed
19351 event of ListViewItemCollection, and mark its list dirty whenever
19352 that event is fire. This allows us to return selected/checked items
19353 in the same order as they are in the Items collection. This matches
19356 2006-10-06 Chris Toshok <toshok@ximian.com>
19358 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19359 right mouse clicks. Fixes bug #79593.
19361 2006-10-06 Chris Toshok <toshok@ximian.com>
19363 * Splitter.cs: doh, fix splitters that don't want to cancel the
19364 movement when you drag them. Also, impose the limits on the
19365 values we send to the SplitterMovingEvent. Fixes #79598.
19367 2006-10-06 Jackson Harper <jackson@ximian.com>
19369 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19370 since we use this for auto scrolling also.
19372 2006-10-05 Chris Toshok <toshok@ximian.com>
19374 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
19375 beginning to think that most datagrid column types don't need this
19376 method. Fixes bug #79392.
19378 2006-10-05 Chris Toshok <toshok@ximian.com>
19380 * DataGrid.cs: move back to a more lazy scheme for creating the
19381 CurrencyManager, so we aren't updating it every time you set
19382 either DataSource or DataMember. Also, don't call
19383 RecreateDataGridRows if the currency manager hasn't changed.
19385 2006-10-05 Chris Toshok <toshok@ximian.com>
19387 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19388 emitted, SelectedIndex should already be updated. Fixes bug
19391 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
19393 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19394 ToolStripTextBox.cs: Initial commit.
19395 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19397 2006-10-05 Jackson Harper <jackson@ximian.com>
19399 * TabControl.cs: We need to invalidate the tab control area when
19400 new ones are added (duh).
19402 2006-10-03 Chris Toshok <toshok@ximian.com>
19404 * Form.cs (ProcessDialogKey): if the focused control is in this
19405 form and is a button, call its PerformClick method here. Fixes
19408 2006-10-04 Jackson Harper <jackson@ximian.com>
19410 * TabPage.cs: Ignore setting of Visible, and add an internal
19411 method for setting the controls visibility. TabPage's Visible
19412 property is a little strange on MS, this seems to make us
19413 compatible, and fixes cases where people set all the tab pages to
19415 * TabControl.cs: Use the new internal setting on tab pages
19418 2006-10-03 Mike Kestner <mkestner@novell.com>
19420 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19422 2006-10-03 Mike Kestner <mkestner@novell.com>
19424 * ListView.cs : use is_visible instead of Visible to check if
19425 scrollbars should be placed/sized. Also some max_wrap_width
19426 love for LargeIcon view. [Fixes #79533]
19428 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
19431 Make set_TextAlign() do actually update the align. Fixed #78403.
19433 2006-10-03 Chris Toshok <toshok@ximian.com>
19435 * DataGrid.cs: fix a crash when switching datasources if the
19436 vertical scrollbar is at someplace other than Value = 0. Also,
19437 reduce the number of recalculation passes we do in SetDataSource
19440 2006-10-03 Jackson Harper <jackson@ximian.com>
19442 * TextBoxBase.cs: Move the if value the same bail check up, we
19443 don't want to empty the document if it is already empty, this
19444 seems to severly mess up the caret. TODO: I should probably fix
19445 the empty statement to update teh caret somehow.
19447 2006-10-03 Chris Toshok <toshok@ximian.com>
19449 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19450 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19451 reflection, an internal row type, properties on said type, etc.)
19452 will work with our datagrid. Fixes #79531.
19454 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19456 * FileDialog.cs: Don't crash if a path is not accessible
19457 (System.UnauthorizedAccessException). Fixes #79569.
19458 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19459 a ':' too. Return unknown icon for those paths/files.
19461 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
19463 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
19464 GetContainerControl returns null.
19466 2006-10-02 Chris Toshok <toshok@ximian.com>
19468 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19469 call to XGetWindowAttributes instead of "handle". fixes an X
19470 error using notifyicon after the NotifyIconWindow to Form base
19473 2006-10-02 Chris Toshok <toshok@ximian.com>
19475 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19476 server grab and looping we need to do to get down to the most
19477 deeply nested child window.
19478 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19479 QueryPointer again after the WarpPointer so we can generate a
19480 proper (fake) MotionNotify event to be enqueued in the destination
19482 (GetCursorPos): call QueryPointer.
19486 2006-10-02 Jackson Harper <jackson@ximian.com>
19488 * NotifyIcon.cs: Derive the notify icon from a form, so things
19489 like FindForm work on it.
19490 - Swallow the WM_CONTEXTMENU message, since that is generated on
19491 mouse down, and context menu is a mouse up kinda guy. I believe
19492 the correct fix here is probably to make the notify icon entirely
19493 NC area, but this seems to work fine for anyone not manipulating
19496 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
19498 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19499 ToolStripItemCollection.cs, ToolStripLabel.cs,
19500 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19501 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19502 Initial implementation.
19503 * TextRenderer.cs: Provide padding to MeasureText.
19505 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
19507 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19508 of ButtonBaseAccessibleObject. Fix bug #79552.
19510 2006-10-02 Jackson Harper <jackson@ximian.com>
19512 * MdiWindowManager.cs: When maximizing use the containers client
19513 rect, not it's bounds, so nc area is accounted correctly.
19514 - Use the parent form's size for the menu position, since the
19515 client isn't always the full form size.
19517 2006-10-01 Chris Toshok <toshok@ximian.com>
19519 * ScrollableControl.cs: make sure neither right_edge or
19520 bottom_edge are < 0, since they're used as LargeChange for the
19521 horiz/vert scrollbars respectively. Fixes #79539.
19523 2006-10-01 Chris Toshok <toshok@ximian.com>
19525 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19526 the xplatuix11 code can cause us to destroy/recreate our handle.
19530 - this code can be invoked many times for the same Hwnd. Make
19531 sure we only destroy the client window once (the first time this
19532 method is called). This fixes bug #79544.
19533 - Remove the call to the improperly bound XSync. why we had two
19534 bindings to this, I will never know, but this call resulted in
19535 events being discarded from the queue(!).
19536 - correct a misunderstanding of _XEMBED_INFO - the second atom is
19537 not our current state but the state we wish to be in. So, 0 if
19538 we don't want to be mapped. Change it to 1.
19539 (SystrayRemove): The XEMBED spec makes mention of the fact that
19540 gtk doesn't support the reparent of client windows away from the
19541 embedder. Looking at gtksocket-x11.c seems to agree with this.
19542 The only avenue we have for removing systray icons is to destroy
19543 them. We don't want the handle to go away for good, though, so
19544 call InternalRecreateHandle on the NotifyIconWindow. Fixes
19547 2006-10-01 Chris Toshok <toshok@ximian.com>
19549 * Form.cs (WndProc): inline the native_enabled variable usage into
19550 the cases in which it's used. Fixes #79536.
19552 2006-09-29 Mike Kestner <mkestner@novell.com>
19554 * ListView.cs : toggle the selection state for ctrl clicks in
19555 multiselect mode. [Fixes #79417]
19557 2006-09-29 Mike Kestner <mkestner@novell.com>
19559 * ListView.cs : kill CanMultiSelect and refactor the selection
19560 code to support multiselection in the absence of mod keys. Steal
19561 arrow/home/end keys by overriding InternalPreProcessMessage to
19562 restore regressed keynav behavior.
19565 2006-09-29 Jackson Harper <jackson@ximian.com>
19567 * MdiClient.cs: Repaint the titlebars when the active window is
19570 2006-09-29 Chris Toshok <toshok@ximian.com>
19572 * Application.cs: when entering a runloop with a modal, make sure
19573 the hwnd is enabled. Fixes #79480.
19575 2006-09-29 Chris Toshok <toshok@ximian.com>
19577 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
19578 when ListManager.CanAddRows == false, bump us back one.
19580 * DataGridColumnStyle.cs (ParentReadOnly): remove the
19581 listmanager.CanAddRows check. This makes ArrayLists uneditable
19582 using a datagrid, which is not right.
19583 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
19584 is an IEditable, but call property_descriptor.SetValue regardless.
19587 2006-09-29 Chris Toshok <toshok@ximian.com>
19589 * DataGridBoolColumn.cs: we need to test equality in the face of
19590 possible null values (as is the case with the default NullValue).
19591 This patch keeps us from crashing in that case.
19593 2006-09-29 Jackson Harper <jackson@ximian.com>
19595 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
19596 here, since it will get called for every node collection in the
19597 tree. This is now done in the treeview once the sorting is
19599 * TreeView.cs: Recalculate the visible order, and update the
19600 scrollbars after sorting, set the top nope to the root so that the
19601 recalc actually works.
19603 2006-09-29 Chris Toshok <toshok@ximian.com>
19605 * LinkLabel.cs: more handling of the default link collection in
19606 the face of LinkArea manipulation. The default link collection
19607 contains 1 element (start=0,length=-1). If the user sets LinkArea
19608 to anything and the links collection is the default, clear it.
19609 Then only add the link if its nonempty. Fixes #79518.
19611 2006-09-29 Chris Toshok <toshok@ximian.com>
19613 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
19614 piece correctly when we hit a '\n'. Fixes #79517.
19616 2006-09-29 Chris Toshok <toshok@ximian.com>
19618 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
19619 change the binding of gdk_init_check to take two IntPtr's, and
19620 pass IntPtr.Zero for both of them. Fixes #79520.
19622 2006-09-29 Mike Kestner <mkestner@novell.com>
19624 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
19627 2006-09-28 Jackson Harper <jackson@ximian.com>
19629 * XplatUIX11.cs: When translating NC messages make sure we go from
19630 whole window to screen, not client window to screen.
19631 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19632 method doesn't exist
19633 - Skip over controls that aren't forms when arranging.
19635 2006-09-28 Jackson Harper <jackson@ximian.com>
19637 * XplatUIWin32.cs: Clip the rect to the parent window.
19638 * XplatUIStructs.cs: Add clipping modes struct.
19639 * InternalWindowManager.cs: New private method that factors title
19640 bar heights in when calculating the pos of an NC mouse message.
19641 - Use SendMessage to force a paint when the form's size is changed
19642 instead of painting the decorations immediately.
19643 - Don't let the NC button click messages get to DefWndProc,
19644 because they will attempt to handle windowing themself, and this
19645 messes up z-order (it will put them in front of the scrollbars).
19646 * XplatUIX11.cs: Make sure that we don't reset window managers if
19647 we already have one (ie the window is an MDI window).
19649 2006-09-28 Chris Toshok <toshok@ximian.com>
19651 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
19652 menu code really needs going over.
19654 2006-09-27 Chris Toshok <toshok@ximian.com>
19656 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
19657 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19658 window is maximizable. So, we need to make sure that even if we
19659 clear the border/wm frame of those functions, they're still
19660 available (basically, we remove the decoration without removing
19661 the function). Half the fix for #79338.
19663 2006-09-27 Chris Toshok <toshok@ximian.com>
19665 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19668 2006-09-27 Chris Toshok <toshok@ximian.com>
19670 * Splitter.cs: reorder things a bit so that we don't actually
19671 draw/move the splitter until after calling OnSplitterMoving. This
19672 lets users cancel/disallow the movement by explicitly setting
19673 event.SplitX/SplitY. Fixes #79372.
19675 2006-09-27 Jackson Harper <jackson@ximian.com>
19677 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19678 because it is most likely on a window being destroyed, and that
19679 will give us an X11 error.
19681 2006-09-27 Chris Toshok <toshok@ximian.com>
19683 * PropertyGridView.cs: half of the fix for #78190. Clicking on
19684 the dropdown button now toggles between showing and hiding the
19685 dropdown. Also, get rid of dropdown_form_showing and just use
19686 dropdown_form.Visible. We still don't do a grab, but I'll leave
19687 that part to someone who has handled Capture-fu before.
19689 2006-09-27 Chris Toshok <toshok@ximian.com>
19691 * DataGrid.cs: return false if alt isn't pressed when '0' is
19692 pressed. this keeps the '0' key from being swallowed, and fixes
19695 2006-09-27 Chris Toshok <toshok@ximian.com>
19697 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19698 Calling Refresh (in response to a scrollbar event) screws up the
19699 scrollbar painting. Fixes bug #78923.
19701 2006-09-27 Chris Toshok <toshok@ximian.com>
19703 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19704 then insert into hashtable" blocks threadsafe.
19706 2006-09-27 Chris Toshok <toshok@ximian.com>
19708 * MessageBox.cs (CreateParams): the styles should be |'ed with our
19709 baseclass's, since otherwise the
19710 ControlBox/MinimizeBox/MaximizeBox assignments above have no
19711 effect. This gets the close button back in messageboxes.
19713 2006-09-27 Chris Toshok <toshok@ximian.com>
19715 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
19716 flag, not just != 0. this makes flags that are actually multiple
19717 bits (like WS_CAPTION) work. fixes bug #79508.
19719 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
19721 * PageSetupDialog.cs: add support for getting and settings the
19722 paper size, source and orientation.
19724 2006-09-26 Chris Toshok <toshok@ximian.com>
19726 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
19727 and caption == "", we need to remove the resize handles as well as
19730 * Control.cs (set_Text): turns out that setting Text on a form
19731 should change the WM styles on the window, since if ControlBox ==
19732 false, the only way to get a window border is to have a non-""
19733 Text property. check winforms/forms/text.cs for an example. so,
19734 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
19735 update both window styles and title. This fixes a lot of dialogs
19736 (including the preferences dialog in MonoCalendar.)
19738 2006-09-26 Chris Toshok <toshok@ximian.com>
19740 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
19741 control isn't a Form), call Win32ShowWindow to hide the window,
19742 but don't update the control Visible property. When we reparent
19743 back to a parent control, call SetVisible in order for the
19744 window's visibility to be reinstated.
19746 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
19749 * Control.cs (ControlCollection.Remove): remove that value.Hide()
19750 call for good, since it breaks MonoCalendar (and other things I'm
19751 sure.) Also, set all_controls to null *after* the owner calls,
19752 which end up regenerating it.
19753 (ChangeParent): allow new_parent to be == null, passing
19754 IntPtr.Zero down to XplatUI.
19756 this fixes #79294 the right way.
19758 2006-09-26 Mike Kestner <mkestner@novell.com>
19760 * GridEntry.cs : internal SetParent method.
19761 * PropertyGrid.cs : attach to property changed on the proper
19762 target if we have a hierarchical grid with subobjects. Setup
19763 GridItem.Parent for hierarchical items.
19764 * PropertyGridView.cs : Set value on the correct target for
19765 hierarchical grids. [Fixes #78903]
19767 2006-09-26 Chris Toshok <toshok@ximian.com>
19769 * Control.cs (ChildNeedsRecreating): this should return true if
19770 either we're being recreated and the child is in our list, or our
19771 parent is waiting for our recreation.
19773 2006-09-26 Chris Toshok <toshok@ximian.com>
19775 * Control.cs (ControlCollection.Remove): reinstate the
19776 value.Hide() call as suggested in bug #79294.
19778 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
19780 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
19781 coordinates (versus a relative move).
19783 2006-09-26 Chris Toshok <toshok@ximian.com>
19785 * Control.cs: rework child recreation a little bit. It turns out
19786 that we race between the DestroyNotify the WM_DESTROY message. If
19787 the parent gets its DestroyNotify before the child gets the
19788 WM_DESTROY message, the child ends up not recreating (since the
19789 parent finishes its recreation on DestroyNotify, and the child
19790 checks ParentIsRecreating.)
19792 So, instead we store off a list of all the child controls which
19793 need to be recreated when the parent control starts to recreate
19794 itself. Then, when child controls get their WM_DESTROY message we
19795 check to see if they're in the parent's pending recreation list,
19796 and if so, we recreate. This removes all dependency on ordering
19797 from the code and fixes the initial MonoCalendar upgrade dialog.
19799 2006-09-26 Jackson Harper <jackson@ximian.com>
19801 * TextControl.cs: Use the Line to get the length of the line,
19802 since soft line breaks can change the end line.
19804 2006-09-26 Chris Toshok <toshok@ximian.com>
19806 * Control.cs (ControlCollection.AddImplicit): don't add the
19807 control again if it's already in one of our lists. This keeps us
19808 from adding controls over and over again for comboboxes when their
19809 handle gets recreated (as the combobox adds implicit controls in
19810 OnHandleCreated). Fixes the X11 errors in bug #79480.
19812 2006-09-26 Jackson Harper <jackson@ximian.com>
19814 * TextControl.cs: When deleting characters make sure that any
19815 orphaned zero lengthed tags get deleted.
19816 - Fix ToString for zero lengthed tags.
19818 2006-09-25 Jackson Harper <jackson@ximian.com>
19820 * TextControl.cs: When getting a tag at the location there can be
19821 multiple tags at the same spot, these are 0-lengthed tags that
19822 appear when extra formatting has been stuck in a location. We
19823 need to pull out the last of these 0 lengthed tags.
19825 2006-09-25 Jackson Harper <jackson@ximian.com>
19827 * TextControl.cs: Fix print out in debug method.
19828 * TextBoxBase.cs: When text is set bail if we are setting to the
19831 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
19833 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
19834 It is now possible to change the selected index in a FontXXXListBox
19835 with the up and down arrow keys from the FontXXXTextBoxes.
19836 Also, send the FontXXXTextBox mouse wheel event to the corresponding
19837 FontXXXListBoxes to match ms.
19839 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
19841 * SystemInformation.cs: Return a clone of the theme's MenuFont because
19842 anyone can dispose it, anytime. All other properties returns enums,
19843 structs or basic types so they don't need such tricks.
19845 2006-09-22 Jackson Harper <jackson@ximian.com>
19852 * XplatUIDriver.cs: Update interface to add a primary selection
19853 flag, so the driver can use the primary selection buffer if
19855 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
19857 * RichTextBox.cs: We need to supply the data object to paste now
19858 (so we can choose to supply CLIPBOARD or PRIMARY).
19859 * TextBoxBase.cs: Supply data object to paste (see above).
19860 - Middle click uses the primary selection data object.
19862 2006-09-21 Chris Toshok <toshok@ximian.com>
19864 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
19865 of SetWMStyles. It's still a rat's nest and is largely
19866 order-dependent which I dislike immensely. This also fixes the X
19867 button disappearing from toplevel forms.
19869 2006-09-21 Mike Kestner <mkestner@novell.com>
19871 * ListBox.cs: move Jordi's click/dblclick raising code to the
19874 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
19876 * ListBox.cs: Fixes 79450
19878 2006-09-21 Mike Kestner <mkestner@novell.com>
19880 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
19881 to deal with people updating the TreeNodeCollection after the tree
19882 is disposed. "Fixes" 79330.
19884 2006-09-20 Jackson Harper <jackson@ximian.com>
19886 * TextControl.cs: Push the cursor record onto the undo stack
19887 before the delete action. This fixes 78651.
19889 2006-09-20 Jonathan Chambers <joncham@gmail.com>
19891 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
19892 CreateParams. Fixes 79329.
19894 2006-09-19 Chris Toshok <toshok@ximian.com>
19896 * XplatUIX11.cs: a couple of blanket code massage passes to clean
19897 things up a bit. First, get rid of the NetAtoms array (and the NA
19898 enum), and just embed the atoms as static fields. Also, add a
19899 couple of functions (StyleSet and ExStyleSet) to clean up all the
19900 bitmask testing of styles.
19902 * X11Structs.cs: remove the NA enum, not needed anymore.
19904 2006-09-19 Chris Toshok <toshok@ximian.com>
19906 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
19907 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
19908 added cleanup to get MessageBox titles appearing again, which were
19909 broken by my earlier fix for caption-less/ControlBox-less windows.
19911 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
19913 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
19914 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
19915 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
19916 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
19917 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
19918 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
19919 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
19920 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
19921 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
19922 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
19923 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
19925 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
19926 ToolStripButton.cs: Stubs needed for above.
19927 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
19929 2006-09-15 Chris Toshok <toshok@ximian.com>
19932 - make the MessageQueues hashtable Synchronized.
19934 - SendMessage: if the Hwnd is owned by a different thread, use the
19935 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
19936 thread. Fixes bug #79201.
19938 2006-09-15 Chris Toshok <toshok@ximian.com>
19940 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
19941 ControlBox == false, we disallow maximize/minimize/close. If the
19942 form Caption is "" we also disallow move (and get rid of the Title
19943 decoration). Unfortunately, regardless of how things are set,
19944 we're stuck with the Title and WM menu.
19946 2006-09-15 Chris Toshok <toshok@ximian.com>
19948 * Application.cs: add locking around the static message_filters
19949 ArrayList, part of #79196.
19951 2006-09-15 Chris Toshok <toshok@ximian.com>
19953 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
19954 Form.ControlBox == false, the window has no titlebar nor resize
19955 handles. fixes bug #79368.
19957 2006-09-15 Chris Toshok <toshok@ximian.com>
19959 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
19960 >= 0. Fixes bug #79370.
19962 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
19963 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
19965 Add properties: LayoutEngine, Margin, DefaultMargin.
19966 Add method: GetPreferredSize.
19967 Move layout logic from PerformLayout to layout engines.
19969 2006-09-13 Chris Toshok <toshok@ximian.com>
19971 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
19972 fix for #79326 broke #78718, so this change addresses that.
19974 - in SendWMDestroyMessages remove the call to
19975 CleanupCachedWindows, since we might be recreating the control and
19976 need to maintain the references to right Hwnd handles. Also, set
19977 the zombie flag to true for each of the children in the hierarchy
19978 instead of calling hwnd.Dispose. This will cause GetMessage to
19979 ignore all events for the window except for DestroyNotify.
19981 - In GetMessage, ignore messages except for DestroyNotify for
19984 * Control.cs: revert the is_recreating fix from the last
19985 ChangeLog. It's definitely "right", but it breaks switching from
19986 an MDI form to a non-MDI form. Will need to revisit that.
19988 * Hwnd.cs: add a zombie flag, which means "the
19989 client_window/whole_window handles are invalid, but we're waiting
19990 for the DestroyNotify event to come in for them". Set the flag to
19991 false explicitly if setting WholeWindow/ClientWindow, and also
19994 2006-09-13 Chris Toshok <toshok@ximian.com>
19996 * XplatUIX11.cs: rework window destruction slightly.
19998 - when destroying the windows associated with a control, we don't
19999 need 2 separate XDestroyWindow calls. Just the one for the
20000 whole_window (or for client_window if whole_window is somehow
20001 IntPtr.Zero -- can this happen?) is enough.
20003 - reworked SendWMDestroyMessages slightly, so we always dispose
20004 the child control hwnd's after sending the messages.
20006 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20007 the two places it was used (one was even using hwnd.Handle and the
20008 other hwnd.client_window. ugh), adding another call in
20009 SendWMDestroyMessages. We need this new call because now the
20010 DestroyNotify events in the queue will be ignored for the child
20011 controls (as their hwnd's were disposed, and the window id's
20012 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20014 - this fixes bug #79326.
20016 2006-09-13 Chris Toshok <toshok@ximian.com>
20018 * Control.cs: don't always set is_recreating to false at the end
20019 of RecreateHandle, since sometimes we're not done (and won't be
20020 until WndProc handles the WM_DESTROY message). Also, set
20021 is_recreating to false in the WM_DESTROY handling code. Part of
20022 the fix for bug #79326.
20024 2006-09-13 Miguel de Icaza <miguel@novell.com>
20026 * X11DesktopColors.cs: Start the droppage of debugging messages.
20028 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20030 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
20032 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20034 2006-09-12 Chris Toshok <toshok@ximian.com>
20036 * DataGrid.cs (get_ListManager): if the list_manager is null, try
20037 to create it using SetDataSource. Fixes bug #79151.
20039 2006-09-11 Chris Toshok <toshok@ximian.com>
20041 * XEventQueue.cs: add a DispatchIdle property.
20043 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20044 either the queue is null, or the queue has DispatchIdle set to
20046 (DoEvents): set queue.DispatchIdle to false around the
20047 peek/translate/dispatch message loop in this method. This keeps
20048 Application.Doevents from emitting idle events. Part of the fix
20051 2006-09-11 Chris Toshok <toshok@ximian.com>
20053 * DataGrid.cs (set_DataSource): make this work for both the
20054 winforms/datagrid test and ReportBuilder. It seems as though when
20055 we've created a ListManager (or maybe it's if we have a
20056 BindingContext?), when we set the DataSource it clears the
20057 DataMember to "". otherwise we reuse the datamember. Fixes bug
20060 2006-09-11 Chris Toshok <toshok@ximian.com>
20062 * XplatUIX11.cs: deal with queue being null, which happens in all
20063 the Clipboard functions. Fixes one of the two problems mentioned
20066 2006-09-11 Chris Toshok <toshok@ximian.com>
20068 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20069 button on various spots (including outside the menu) works closer
20070 to MS, and doesn't crash. Fixes #79343.
20072 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
20074 * ListView.cs: Do not initialize item_sorter in init. To match MS,
20075 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20076 and the internal comparer is set. When a new ListViewItemSorter is set,
20077 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20078 was specified. No further processing is necessary if SortOrder is set
20079 to it's current value. If Sorting is modified to None, and View is
20080 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20081 (either custom or our internal ItemComparer) to null, on 1.0 profile
20082 only set item_sorter to null if its our internal IComparer. If Sorting
20083 is modified to Ascending or Descending, then use our internal IComparer
20084 if none is set, and if the current IComparer is our internal one then:
20085 on 2.0 profile always replace it with one for new Sorting, and on 1.0
20086 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20087 Enum.IsDefined to verify whether a valid View value is specified in
20088 its setter. Automatically sort listview items when listview is
20089 created. In Sort, do nothing if ListView is not yet created, or if
20090 no item_sorter is set (no Sorting was set, Sorting was explicitly set
20091 to None or ListViewItemSorter was set to null). Added Sort overload
20092 taking a bool to indicate whether the ListView should be redrawn when
20093 items are sorted (we use this in ListViewItemCollection to avoid double
20094 redraws). Modified our internal IComparer to take the sort order into
20095 account. In Add and AddRange methods of ListViewItemCollection, also
20096 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20097 view), but use overload with noredraw option to avoid double redraw.
20098 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20099 true when View is Tile, and do the same when attempting to set View to
20100 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20101 for selected/checked indices, as it involves overhead when sorting is
20102 done while these collections are not used all that often. Instead
20103 we'll build the indices on demand. Modified IList implementation of
20104 CheckedIndexCollection to use public methods if object is int.
20105 Modified CheckedListViewItemCollection to hide checked items if
20106 ListView.CheckBoxes is false. Removed LAMESPEC remark in
20107 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20108 IList implementation in SelectedIndexCollection to use public methods
20109 if object is int. Modified SelectedListViewItemCollection to hide
20110 selected items if listview is not yet created.
20111 * ListViewItem.cs: CheckedIndices list no longer needs to be
20112 maintained separately (see ListView changes). Also clone font, fixes
20115 2006-09-11 Mike Kestner <mkestner@novell.com>
20117 * ComboBox.cs: if we are updating the contents of the currently
20118 selected index, refresh the control or the textbox selection.
20121 2006-09-11 Mike Kestner <mkestner@novell.com>
20123 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
20124 the 'specified' logic has been moved there. This seems like a bug
20125 in Control.cs, since our current SetBoundsCore completely ignores
20126 the specified parameter. Peter's commit seems to indicate that is
20127 the way the MS control implementation works. [Fixes #79325]
20129 2006-09-10 Jonathan Chambers <joncham@gmail.com>
20131 * XplatUI.cs: Set default_class_name to be composed
20132 of current domain id. This allows MWF to be loaded in multiple
20135 2006-09-09 Miguel de Icaza <miguel@novell.com>
20137 * X11Keyboard.cs: If we are unable to obtain the input method, do
20138 not call CreateXic to create the input context. Should fix
20141 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
20143 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20144 Simplified gnome support by adding more pinvokes to get the
20145 icon for a file or mime type.
20147 2006-09-08 Jackson Harper <jackson@ximian.com>
20149 * MenuAPI.cs: Deslect popup context menu items before closing the
20150 window, so that you don't see the previously selected item
20151 selected when you reopen the menu.
20152 * TextControl.cs: Update the cursor position even if we don't have
20153 focus. This fixes typing in things like the ComboBox. I'm not
20154 totally sure we should always set the visibility if we don't have
20155 focus, but couldn't find any corner cases where the cursor showed
20156 up when it shouldn't.
20158 2006-09-08 Chris Toshok <toshok@ximian.com>
20160 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20161 our arrays are length 256. & 0xff before indexing. Fixes the
20162 crash in bug #78077.
20164 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20166 * ThemeWin32Classic.cs:
20167 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20168 is true. Handle that check box too.
20170 2006-09-07 Chris Toshok <toshok@ximian.com>
20172 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
20175 2006-09-07 Chris Toshok <toshok@ximian.com>
20177 * Control.cs: in set_BackColor only do the work if
20178 background_color != value.
20180 * XplatUIX11.cs: move the clearing of invalid areas (both client
20181 and nc) to the same block of code where we set (nc_)expose_pending
20182 to false. That is, move it from PaintEventEnd to PaintEventStart,
20183 so things that cause invalidates from within OnPaint will trigger
20184 another call to OnPaint. Fixes bug #79262.
20186 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
20188 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20189 * FileDialog.cs: Fix typo
20191 2006-09-07 Jackson Harper <jackson@ximian.com>
20193 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
20194 for tab pages if they have any.
20196 2006-09-06 Mike Kestner <mkestner@novell.com>
20198 * Splitter.cs: use the "current" rect when finishing drag handle
20199 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
20201 2006-09-06 Mike Kestner <mkestner@novell.com>
20203 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20204 support offset splitters. [Fixes #79298]
20206 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
20208 * Mime.cs: Fixed a bug that could override the global mime type
20211 2006-09-05 Jackson Harper <jackson@ximian.com>
20213 * TabControl.cs: Better calculation method for setting the slider
20214 pos. Prevents crashes on really wide tabs.
20215 - Draw Image on tab pages if an image list is used.
20217 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20219 * MonthCalendar.cs: When Font changes, the Size should be
20220 updated to fit the new font's space requirements.
20222 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
20224 * ListBox.cs: If the items are cleared with Items.Clear set
20227 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20229 * MonthCalendar.cs: Handle arrow keys as input keys. Also
20230 fire DateChanged event instead of DateSelected event when
20231 the date was changed by keyboard interaction.
20233 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20235 * DateTimePicker.cs: Handle DateChanged for the associated
20236 month_calendar control, and set month_calendar.Font from
20237 OnFontChanged method, as well as resize the height of the
20238 control when needed. Make PreferredHeight proportional.
20240 2006-09-01 Chris Toshok <toshok@ximian.com>
20242 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20245 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20247 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
20249 * FileDialog.cs: Set ClientSize instead of window size, to allow space
20250 for decorations (Fixes #79219)
20252 2006-09-01 Mike Kestner <mkestner@novell.com>
20254 * ComboBox.cs: first stab at sorting plus some selection handling
20255 fixes to bring us more in line with MS behavior. Also switches back
20256 to index based selection. Alternative patches for index-based
20257 selection were provided by Jackson Harper, Carlos Alberto Cortez,
20258 and latency@gmx.de on bug 78848. I assume they were similar to this
20259 code I've had simmering in my tree forever.
20262 2006-09-01 Chris Toshok <toshok@ximian.com>
20264 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20265 when setting list position guard against ending up with a -1 index
20266 (the other part of the fix for #78812). Should probably make sure
20267 we don't need the analogous fix in the ItemDeleted case.
20270 - in SetDataSource, work around the fact that the way
20271 OnBindingContextChanged is invoked will cause us to re-enter this
20272 method. I'll remove the hack once I investigate
20273 OnBindingContextChanged.
20275 - fix the logic in set_DataSource and set_DataMember (basically
20276 what to do if the other of the two is null.)
20278 - in OnListManagerItemChanged, we need to take into account the
20279 edit row when deciding whether or not to call RecreateDataGridRows
20280 (part of the fix for #78812).
20282 2006-09-01 Jackson Harper <jackson@ximian.com>
20284 * Splitter.cs: Don't do anything if there is no control to affect
20285 (prevents us from crashing in weird tet cases).
20286 * TreeView.cs: Bounding box for the mouse movement reverting
20287 focus/selection back to previously selected node. This matches
20288 MS, and makes the tree a lot more useable.
20289 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20290 use clipping so they are not drawn. This fixes when the control
20291 is set to have a transparent background, or if it was over an
20294 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
20296 * MimeIcon.cs: Improved handling for reading default icons when
20297 using gnome (2.16 made it necessary). Check and read svg icons
20298 first, then 48x48 and then 32x32 icons.
20300 2006-08-31 Chris Toshok <toshok@ximian.com>
20302 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20305 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20306 ProcessKeyPreview. Fixes part of #77806.
20308 * DataGrid.cs: big patch.
20310 - revert the queueing up of DataSource/DataMember if inside
20311 BeginInit/EndInit calls. That's not the way the datagrid achieves
20312 its delayed databinding. Instead, call SetDataSource in
20313 OnBindingContextChanged. This mimic's MS's behavior, and fixes
20316 - Also, it wasn't mentioned in #78811, but the test case exhibits
20317 behavior that was lacking in our datagrid implementation - Columns
20318 that have mapping names that don't exist in the datasource's
20319 properties aren't shown. Yuck. To fix this I added the bound
20320 field to the column style, and basically any calculation to figure
20321 out anything about columns uses a loop to find the bound columns.
20322 still need to investigate if I can cache an array of the bound
20323 columns or if the indices must be the same.
20325 - When setting CurrentCell, we no longer abort if the cell being
20326 edited was in the add row. This fixes the other part of #77806.
20328 - The new code also fixes #78807.
20330 * ThemeWin32Classic.cs: perpetrate the same disgusting
20331 column.bound field hack, and only render bound fields.
20333 2006-08-31 Chris Toshok <toshok@ximian.com>
20335 * DataGridColumnStyle.cs: add bound field. this field is true if
20336 the datasource has a property corresponding to the mapping name.
20338 * DataGridTableStyle.cs: set the bound field on the column styles
20339 depending on whether or not we have a column for that property.
20341 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
20343 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
20344 splitter control (fixes #79228)
20346 2006-08-31 Chris Toshok <toshok@ximian.com>
20348 * DataGridColumnStyle.cs: we need to delay the assignment of
20349 property descriptor until the last possible moment due to the lazy
20350 databinding stuff in the datagrid. Also, fix the exceptions
20351 thrown by CheckValidDataSource to match MS.
20353 2006-08-31 Jackson Harper <jackson@ximian.com>
20355 * Form.cs: When activated select the active control, if there is
20356 no active control, we select the first control.
20357 * XplatUIX11.cs: If there is no focus control when we get a
20358 FocusIn event, find the toplevel form and activate it. This
20359 occurs when you popup a window, it becomes the focus window, then
20360 you close that window, giving focus back to the main window.
20362 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20364 * MonthCalendar.cs:
20365 * ThemeWin32Classic.cs: Cache Font in bold style, as well
20366 as StringFormat with Center alignments in MonthCalendar,
20367 instead of creating new ones when drawing the control.
20368 Also, draw the month name in bold style.
20370 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
20373 - PerformLayout(): It would seem MS performs the fill even if the
20374 control is not visible (part of #79218 fix)
20375 - ResetBackColor(): Use the setter to reset the color, to allow
20376 overriders to catch the change.
20378 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20379 - CreateHandle(): dito (part of $79218 fix)
20380 - Don't set an icon if we have a dialog
20381 * ScrollableControl.cs:
20382 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20383 - ScrollIntoView(): No need to scroll if control is already visible
20384 (resolves fixme and fixes #79218)
20386 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20388 * MonthCalendar.cs: Change proportions in SingleMonthSize
20389 to match the aspect of the original control.
20391 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
20393 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20394 get updated when they get maximized.
20396 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
20398 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20400 2006-08-29 Chris Toshok <toshok@ximian.com>
20402 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20404 2006-08-29 Jackson Harper <jackson@ximian.com>
20406 * TreeView.cs: Need to track selected node and highlighted node,
20407 they aren't always the same thing, when the mouse is down on a
20408 node it is hilighted, but not selected yet.
20409 - Do the HideSelection stuff right
20410 - Need to focus on rbutton mouse down. And redraw selection when
20411 right click is mouse upped.
20413 2006-08-29 Mike Kestner <mkestner@novell.com>
20415 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20416 when SubItems.Count < Columns.Count. [Fixes #79167]
20418 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20420 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20422 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20424 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20425 from X. Only send based on ConfigureNotify if we don't have the
20426 correct location in hwnd (if the window manager moved us)
20428 2006-08-28 Mike Kestner <mkestner@novell.com>
20430 * ListView.cs: remove a TODO.
20431 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20432 [Fixes ListView part of #79166]
20434 2006-08-28 Mike Kestner <mkestner@novell.com>
20436 * ListView.cs: move wheel handler to parent since it is focused
20437 instead of the item_control now. [Fixes #79177]
20439 2006-08-28 Mike Kestner <mkestner@novell.com>
20441 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20442 when the control is focused. [Fixes #79171]
20444 2006-08-28 Mike Kestner <mkestner@novell.com>
20446 * ListView.cs: size the item and header controls for empty and
20447 unscrollable views.
20448 * ThemeWin32Classic.cs: draw disabled backgrounds.
20451 2006-08-28 Chris Toshok <toshok@ximian.com>
20453 * Form.cs: remove unused "active_form" static field.
20455 * Hwnd.cs: lock around accesses to static windows collection.
20457 * Application.cs: lock threads in Exit ().
20459 2006-08-28 Chris Toshok <toshok@ximian.com>
20461 * NativeWindow.cs: lock around accesses to window_collection.
20463 2006-08-28 Chris Toshok <toshok@ximian.com>
20465 * Control.cs: err, fix this the right way, by locking on controls
20466 when using it. not by making it synchronized.
20468 2006-08-28 Chris Toshok <toshok@ximian.com>
20470 * Control.cs: make the static "controls" field synchronized, as it
20471 gets updated from multiple threads.
20473 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20475 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20476 Prevent other threads from exiting when calling thread sets quit state.
20477 * XEventQueue.cs: Added PostQuitState property
20479 2006-08-27 Chris Toshok <toshok@ximian.com>
20481 * AsyncMethodData.cs: add a slot for the window handle.
20483 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20484 window (the destination control's window, not the foster window).
20486 * Control.cs (BeginInvokeInternal): store the window's handle in
20487 the AsyncMethodData.
20490 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20493 - PostQuitMessage: Removed resetting S.D display handle, we might have
20494 another loop started after calling PostQuitMessage (Fixes #79119)
20495 - Created destructor to reset S.D handle
20497 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20499 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20501 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20503 * TextControl.cs (Insert): Update the caret position even if we don't
20504 have a handle yet, just don't call the driver in that case.
20505 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20506 to the end of the new selection text (Fixes #79184)
20508 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20510 * Form.cs (Activate): Only activate if the handle is created)
20512 - Mark window as invisible when it's disposed
20513 - Check if window handle is created when setting window visible,
20514 instead of relying just on the is_created variable
20515 - Check if object is disposed when creating the control (Fixes #79155)
20517 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20519 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20520 when allowing layout again. Otherwise we re-generate the anchoring
20521 distance to the border again and actually alter what the user wanted
20522 This is ugly, it'd be better if we used DisplayRectangle instead of
20523 ClientRectangle for Control.UpdateDistances, but that causes us to
20524 have other problems (initial anchoring positons would be wrong)
20527 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20530 - The size and location setters shouldn't go directly to
20531 SetBoundsCore, but to SetBounds, which triggers layout on the
20532 parent, then calls SetBoundsCore. (Related to fix for #78835)
20533 - SetBounds: Moved actual location update code into this function
20534 from SetBoundsCore, to match MS. Added call to PerformLayout if
20535 we have a parent (to trigger resizing of anchored parents if the
20536 child size has changed (see testcase for #78835)
20537 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
20539 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
20541 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20543 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
20544 System.Drawing when a toplevel window gets closed; there might
20545 be other toplevel windows belonging to the same app (Fixes #78052)
20547 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
20549 * FileDialog.cs: After reading FileDialog settings from mwf_config
20550 use Desktop prefix only if a real folder doesn't exist anymore.
20551 * FontDialog.cs: Added char sets.
20552 It is now possible to select the font, size or style with the
20555 2006-08-25 Kornél Pál <kornelpal@gmail.com>
20557 * PrintPreviewDialog.cs: Use assembly name constants.
20559 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20561 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
20562 scrollbar from whacking it's buttons)
20564 2006-08-24 Chris Toshok <toshok@ximian.com>
20566 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
20567 in this patch (aggregating setting Left/Top/Width/Height to
20568 setting Bounds on the scrollbars), but the crux of the fix is in
20569 Recalculate, where we scroll by the remaining scroll_position if
20570 we're hiding a scrollbar. The 2*$5 reward in the comment is
20573 2006-08-24 Jackson Harper <jackson@ximian.com>
20576 * MdiWindowManager.cs: If the form is made a non-mdi window we
20577 need to remove the form closed event so that closing forms works
20580 2006-08-24 Jackson Harper <jackson@ximian.com>
20582 * Control.cs: Make IsRecreating internal so that the driver can
20584 - Temporarily remove the Hide when controls are removed, its
20585 making a whole bunch of things not work because visibility isn't
20586 getting reset elsewhere correctly
20587 * Form.cs: Need to do a full handle recreation when the mdi parent
20589 * XplatUIX11.cs: If we are recreating handles don't dispose the
20590 HWNDs. What was happening is the handles were being recreated in
20591 SendWMDestroyMessages, but then flow continued on in that method
20592 and destroyed the new handles.
20594 2006-08-23 Jackson Harper <jackson@ximian.com>
20596 * Form.cs: MdiClient is always at the back of the bus
20597 * Control.cs: When the order of items in the collection is changed
20598 we need to reset the all_controls array
20599 - do the same sorta setup thats done when adding a control when a
20600 control is set on the collection.
20602 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20604 * TextBoxBase.cs (get_Text): Return an empty array if our document
20605 is empty (fixes #79052)
20607 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20609 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
20610 on WM_SYSCHAR messages (fixes #79053)
20612 2006-08-23 Chris Toshok <toshok@ximian.com>
20614 * DataGrid.cs: fix flickering when scrolling vertically.
20616 2006-08-23 Chris Toshok <toshok@ximian.com>
20618 * DataGrid.cs (EndEdit): only invalidate the row header when we
20621 2006-08-23 Chris Toshok <toshok@ximian.com>
20623 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
20624 methods. fixes the flicker when scrolling around.
20626 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20628 * FileDialog.cs: Making sure the control is created before we get a
20629 chance to use it with BeginInvoke (Fixes #79096)
20631 2006-08-23 Chris Toshok <toshok@ximian.com>
20633 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20634 width to use when painting the rows.
20636 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20639 - Throw ArgumentException if a negative value is passed to SelectionLength
20640 - Update the selection end if start is moved. end needs to be always
20641 after start. (Fixes #79095)
20642 - Track selection length; MS keeps the selection length even if start
20643 is changed; reset on all other operations affection selection
20645 2006-08-22 Jackson Harper <jackson@ximian.com>
20647 * TreeView.cs: Make sure both scrollbars get displayed and sized
20648 correctly when the other bar is visible.
20649 - Use the original clip rectangle for checking if the area between
20650 the two scrollbars is visible, not the viewport adjusted clipping
20653 2006-08-22 Jackson Harper <jackson@ximian.com>
20655 * Binding.cs: We don't use IsBinding because it requires the
20656 control to be created, which really shouldn't be necessary just to
20657 set a property on the control.
20659 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20661 * ComboBox.cs: Some CB.ObjectCollection methods must throw
20662 ArgumentNullReferenceException when the argument is null.
20664 2006-08-21 Jackson Harper <jackson@ximian.com>
20666 * Timer.cs: Track the thread that the timer is started in (NOT
20667 CREATED), this way messages for it will only be triggered on its
20669 * XEventQueue.cs: Track the timers here, this makes timers per
20671 * XplatUIX11.cs: The timers are moved to the XEventQueue.
20673 2006-08-19 Chris Toshok <toshok@ximian.com>
20675 * XplatUIX11.cs: after further communication with pdb, we get the
20676 best of both worlds. SetZOrder working for un-Mapped windows, and
20677 no X errors for un-mapped windows.
20679 2006-08-19 Chris Toshok <toshok@ximian.com>
20681 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20682 as it was causing pdn toolbars to not have the correct stacking.
20684 2006-08-18 Mike Kestner <mkestner@novell.com>
20686 * ListView.cs : guard against negative ClientArea.Width in scrollbar
20687 calculation. Not sure why control should ever be setting a negative
20688 width though. Fixes #78931.
20690 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20692 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20693 null items in ObjectCollection class.
20694 * ListBox.cs.: Likewise.
20696 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
20698 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20699 as the base method in ThemeWin32Classic should work fine.
20702 2006-08-18 Jackson Harper <jackson@ximian.com>
20704 * Binding.cs: When validating if the value entered doesn't convert
20705 properly reset to the old value.
20706 * RadioButton.cs: Don't fire click when we get focus.
20708 2006-08-18 Jackson Harper <jackson@ximian.com>
20710 * FileDialog.cs: Paint the selection on the directory combobox the
20713 2006-08-17 Jackson Harper <jackson@ximian.com>
20715 * ErrorProvider.cs: Don't allow the error control to be selected.
20716 * Control.cs: Don't send the SetFocus messages, the control
20717 activation will do this, and if we do it blindly here validation
20720 2006-08-17 Jackson Harper <jackson@ximian.com>
20723 * ContainerControl.cs: Make validation events fire in the correct
20724 order. TODO: For some reason the first validation event is not
20727 2006-08-17 Mike Kestner <mkestner@novell.com>
20729 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
20731 2006-08-17 Mike Kestner <mkestner@novell.com>
20733 * ComboBox.cs : implement scroll wheel support for popped-down
20734 state. Fixes #78945.
20736 2006-08-17 Jackson Harper <jackson@ximian.com>
20738 * TreeView.cs: Specify treeview actions (old patch that didn't get
20739 committed for some reason).
20740 - Don't let the mouse wheel scroll us too far. Just want to make
20741 the bottom node visible, not scroll it all the ways to the top.
20743 2006-08-17 Jackson Harper <jackson@ximian.com>
20745 * XplatUIX11.cs: Mouse wheel events go to the focused window.
20747 2006-08-17 Mike Kestner <mkestner@novell.com>
20749 * ComboBox.cs : don't do mouseover selection in simple mode.
20751 2006-08-16 Jackson Harper <jackson@ximian.com>
20753 * Form.cs: Fire the closing events for all the mdi child windows
20754 when a window is closed. If the cancel args are set to true, the
20755 main window still gets the event fired, but it doesn't not close.
20756 * MdiWindowManager.cs: Do this closing cleanup in a Closed
20757 handler, instead of when the button is clicked, so cancelling the
20758 close works correctly.
20759 * ComboBox.cs: Send the mouse down to the scrollbar.
20761 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20763 * ListBox.cs: When passing 'null' to SelectedItem,
20764 set SelectedIndex to -1, to unselect items. This is the
20765 observed behaviour in .Net.
20767 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
20769 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
20770 MS flags saying there won't be any. (fixes #78800)
20771 * Control.cs (HandleClick): Made virtual
20773 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
20775 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
20776 cultures. Fixed bug #78399.
20778 2006-08-16 Jackson Harper <jackson@ximian.com>
20780 * Form.cs: Use the MdiClients MdiChildren property to access
20781 MdiChildren instead of creating the array from the child controls.
20782 * MdiClient.cs: Maintain a separate array of the mdi children, so
20783 that insertion order is maintained when the Z-order is changed.
20785 2006-08-16 Mike Kestner <mkestner@novell.com>
20787 * ListView.cs : add an ItemComparer and default to it for sorting.
20788 Fixes #79076, but sorting needs a complete overhaul to be compat with
20791 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20793 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
20795 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20797 * Hwnd.cs (Mapped): Properly traverse the tree
20799 2006-08-15 Chris Toshok <toshok@ximian.com>
20801 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
20802 pass manager.Current.GetType() to ParseData. It has to be the
20803 property type. So, hold off doing the ParseData until we're in
20804 SetPropertyValue where we know the type. This fixes the crash in
20805 #78821 but the textbox is still empty.
20807 2006-08-15 Chris Toshok <toshok@ximian.com>
20810 - when we're scrolling, only call Edit() again if the
20811 current cell is still unobscured. Fixes bug #78927.
20812 - when handling mousedown on a cell, ensure the cell is visible
20813 before calling Edit.
20814 - remove the properties from DataGridRow, and remove the
20815 DataGridParentRow class altogether.
20818 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20820 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
20821 fire OnTextChanged by ourselves. There's no point calling base,
20822 we don't set the base value anywhere else. Fixes #78773.
20824 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20826 * ListBox.cs: Call CollectionChanged when modifying
20827 an item from Items indexer, to update the actual items
20830 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20832 * PrintDialog.cs: Small fixes for focus and a pair of checks,
20833 to match .Net behaviour.
20835 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20837 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
20839 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20841 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
20843 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
20845 * MessageBox.cs: Prevent potential NRE exception.
20846 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
20848 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
20850 * MessageBox.cs: Calculate the owner of a messagebox, also make
20851 it topmost. Fixes #78753
20853 2006-08-14 Chris Toshok <toshok@ximian.com>
20855 * XplatUIX11.cs: A couple of fixes so that metacity will let us
20856 programmatically move windows. first, set the PPosition hint as
20857 well as the USPosition hint. Second include some code from pdb
20858 that sets the window type to NORMAL when we set the transient for
20859 hint. This is because, in the absence of a window type, metacity
20860 thinks any window with TransientFor set is a dialog, and refuses
20861 to let us move it programmatically. fascists.
20863 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
20865 * XplatUIX11.cs: When setting normal hints, take into consideration
20866 an different hints previously set so we don't delete them (fixes #78866)
20868 2006-08-12 Chris Toshok <toshok@ximian.com>
20870 * ToolBarButton.cs: make Layout return a boolean, if something to
20871 do with the button's layout changed.
20874 - add another parameter to Redraw, @force, which all existing
20876 - make the Layout function return a boolean which is true if the
20877 layout has actually changed. Redraw now uses this (and @force)
20878 to determine when to invalidate. At present the only place
20879 where @force can be false is the call from OnResize, when
20880 background_image == null. So, resizing a toolbar when the
20881 layout doesn't change results in no drawing.
20883 2006-08-12 Chris Toshok <toshok@ximian.com>
20885 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
20886 the VScrollBar and HScrollbar reversed. oops.
20888 * DataGrid.cs: fix the logic that assigns sizes to the implicit
20889 scrollbars. we were assigning them twice (once in
20890 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
20891 therefore causing two scrollbar resizes (and redraws?) to happen
20894 2006-08-12 Chris Toshok <toshok@ximian.com>
20896 * ToolBarButton.cs: redraw the entire button if the theme tells us
20899 * Theme.cs: add ToolBarInvalidateEntireButton.
20901 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
20902 buttons, just the border.
20904 * ThemeNice.cs: redraw the entire toolbar button since we need to
20905 draw the highlight image.
20907 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
20908 we need to redraw the entire button (not just the border).
20910 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20912 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
20913 for vertical bars. Fixes the mismatches shown by #78513
20915 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
20917 * FileDialog.cs: If a saved/remembered path doesn't exist
20918 anymore, fall back to "Desktop".
20920 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
20922 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
20923 parent. It's apparently legal to not have one
20925 - SetZOrder: Don't try to set Z-Order on an unmapped window
20926 - CreateWindow: 0,0 are legal coordinates for a window. don't move
20927 it unless the coordinates are negative
20929 2006-08-10 Mike Kestner <mkestner@novell.com>
20931 * ListControl.cs: allow null for DataSource. Clear DisplayMember
20932 when setting to null per msdn docs. Fixes #78854.
20934 2006-08-10 Chris Toshok <toshok@ximian.com>
20936 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
20937 flickering by setting a clip rectangle on the Graphics when we
20938 need to redraw just a particular menuitem. Also, rename "OnClick"
20939 to "OnMouseDown" to reflect what it actually is.
20941 * Form.cs: track the OnMouseDown change.
20943 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
20945 * CommonDialog.cs: Properly inherit the CreateParams from the form
20946 and only change what we need. Fixes #78865
20948 2006-08-10 Chris Toshok <toshok@ximian.com>
20950 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
20951 flickering in flat mode (and most of the flickering in general) by
20952 only invalidating the button border (and not the entire rectangle)
20953 when the state changes. A couple of cases still flicker:
20954 ToggleButtons, and the dropdown arrow case when the user mouse
20957 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
20959 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
20960 for german keyboards. Numlock state shouldn't affect the behaviour
20961 of the Del key. Fixes bug #78291.
20963 2006-08-10 Chris Toshok <toshok@ximian.com>
20965 * ListControl.cs: remove the items.Clear line from BindDataItems,
20966 as this is the first thing done by both subclasses in their
20967 SetItemsCore overrides. Also, add a ItemChanged handler, and when
20968 passed -1, refresh the list. This gets databinding working when
20969 the datasource is set on the list before the datasource is
20970 populated (as in wf-apps/ReportBuilder.)
20972 * ComboBox.cs: remove the argument to BindDataItems. This call
20973 should really go away, and be initiated by the ListControl code.
20975 * ListBox.cs: same.
20977 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20979 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20980 if no data is in the document when the control is displayed
20982 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20984 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20987 - PositionCaret: Allow positioning of caret but don't call methods
20988 requiring a handle if the window isn't created yet
20989 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20990 - owner_HandleCreated: Don't position the caret, just update it's
20991 location. User might have already set a different position
20993 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20995 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20996 windows. Screws up the returned coordinates for child windows.
20997 Fixes #78825. I'm hoping this doesn't break something, since the
20998 code was explicitly put in 8 months ago, but no bug was attached.
20999 Menus still seem to work properly.
21001 2006-08-08 Chris Toshok <toshok@ximian.com>
21003 * DataGrid.cs: make BeginInit/EndInit actually do what they're
21004 supposed to do - delay data binding until the EndInit call. Also,
21005 make the table style collection's CollectionChangeAction.Refresh
21008 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21009 (with action = Refresh) when a consituent table's MappingName is
21012 2006-08-08 Chris Toshok <toshok@ximian.com>
21014 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21015 Invalidate, since changing the text can change the size of the all
21018 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21020 * Form.cs (AddOwnedForm): Still need to add the form to our listif
21021 we don't have it yet
21023 2006-08-08 Chris Toshok <toshok@ximian.com>
21025 * PrintControllerWithStatusDialog.cs: don't .Close() the status
21026 dialog, as this causes X errors later on, since we actually
21027 destroy the window. Instead, .Hide() it.
21029 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21031 * ComboBox.cs: Added focus reflection for popup window
21033 - Removed transient setting for non-app windows for now, not sure it
21035 - Fixed logic checking if we have captions when deciding
21036 override_redirect, WS_CAPTION is two bits and a 0 check was not
21038 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21041 - AddOwnedForm: Don't just add the form to the list, call the property
21042 to ensure the driver is informed about the ownership as well
21043 - CreateHandle: Set the TopMost status in the driver if we have an owner
21044 * XplatUI.cs: Fixed debug statement
21046 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
21047 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21048 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21049 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
21050 TrackBarRenderer.cs: Make constructor private.
21051 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21052 * ProfessionalColorTable.cs: Make properties virtual.
21054 2006-08-06 Duncan Mak <duncan@novell.com>
21056 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21059 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21060 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21061 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21062 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21063 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21064 Initial import of new 2.0 classes.
21066 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21067 * Application.cs: Add 2.0 VisualStyles properties.
21069 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21070 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21071 XplatUIX11.cs: Create property to allow access to existing private
21072 variable "themes_enabled"
21074 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21076 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21077 file size, as otherwise our class libraries fail using windows. Fixes
21080 2006-08-04 Jackson Harper <jackson@ximian.com>
21083 * XplatUIX11.cs: Move the toolwindow window manager creation into
21084 the X11 driver, this way on win32 we can let windows create/handle
21087 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21089 * PrintDialog.cs: Remove some redundant checks, add some others,
21090 clean some code, and move the focus to the text boxes when the
21091 values are incorrect.
21093 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
21095 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21097 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21099 * NumericUpDown.cs: Setting the Minimum and Maximum is now
21100 handled correctly. Fixes bug #79001.
21102 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21104 * PrintDialog.cs: The "Copies" numeric up down must have
21105 set the Minimum property to 1; only if the value is bigger
21106 than 1, activate "Collate" check box. This is the behaviour of .Net.
21107 Also modify the Document elements only if it is not null.
21109 2006-08-03 Jackson Harper <jackson@ximian.com>
21111 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21112 length. (We have a larger array then actual node count).
21114 2006-08-03 Jackson Harper <jackson@ximian.com>
21116 * ComboBox.cs: Don't show selection by default.
21117 - The SelectAll isn't needed here, since the focus code should do
21119 - DDL style lists to manual selection drawing, so when they
21120 get/lose focus they have to invalidate.
21122 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
21124 * TextBoxBase.cs: Don't always show all selections by default.
21126 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
21127 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21128 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21129 Fixed various typos.
21131 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21133 * Control.cs: Removing the controls in a ControlCollection with
21134 Clear now hides the controls as expected. Fixes bug #78804.
21136 2006-08-03 Jackson Harper <jackson@ximian.com>
21138 * Control.cs: Revert previous focus patch, it breaks reflector.
21140 2006-08-03 Jackson Harper <jackson@ximian.com>
21142 * ComboBox.cs: Cleanup selection and focus with the combobox.
21143 This also eliminates some duplicated keyboard code, since now
21144 everything is handled by the main class.
21145 - Make list selection work on mouse up instead of down, to match
21148 2006-08-02 Jackson Harper <jackson@ximian.com>
21150 * Control.cs: Setting focus needs to go through the whole
21151 selection mechanism.
21153 2006-08-02 Chris Toshok <toshok@ximian.com>
21155 * PrintPreviewDialog.cs: change MinimumSize to use
21156 base.MinimumSize so it works.
21158 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
21161 - UpdateCaret: Added sanity check in case caret isn't defined yet
21162 - Line.Delete: Now updating selection and caret markers if we're
21163 transfering a node (Properly fixes #78323)
21164 - SetSelectionEnd: Added sanity check
21165 * TextBoxBase.cs: Removed broken attempt to fix #78323
21167 2006-08-01 Chris Toshok <toshok@ximian.com>
21169 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21170 Close() call is handled in Form, not here.
21172 2006-08-01 Chris Toshok <toshok@ximian.com>
21174 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21177 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21178 for sizes < 100% zoom. The code now aggressively attempts to keep
21179 from calling document.Print (), and tries not to use the scaling
21180 g.DrawImage whenever possible (it still does if you scale to >
21181 100%, since usually that involves huge images).
21183 * PrintPreviewControl.cs: hook up the close button.
21185 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
21186 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21187 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21188 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21189 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21190 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21191 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21192 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21193 Removed [Serializable] for 2.0 Event Handlers.
21195 2006-07-31 Jackson Harper <jackson@ximian.com>
21197 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21198 * TextControl.cs: Uncomment out the body of this method.
21200 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
21202 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21205 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21207 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21208 that embed TextBox and need selections visible even if textbox is not
21209 focused to enforce that behaviour.
21210 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21213 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21216 - Added new SetSelectionStart/SetSelectionEnd overloads
21217 - Fixed viewport width assignment to be accurate
21218 - Adjusted alignment line shift calculations to allow cursor on right
21219 aligned lines to be always visible at the right border (like MS)
21221 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21222 - TextBoxBase_SizeChanged: recalculating canvas on size changes
21223 - CalculateScrollBars: Use ViewPort size instead of window size, to
21224 properly consider space occupied by the border and scrollbars
21226 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
21227 calculations; no longer leaves artifacts
21228 - CaretMoved: Adjusted window scrolling to match MS and fixed several
21229 calculation bugs (Still missing right/center align calculations)
21231 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21233 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21234 use of both scroll rect and clip rect, as they do the same.
21236 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21238 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
21239 in the event handler (fixes #78912)
21241 2006-07-31 Chris Toshok <toshok@ximian.com>
21243 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21244 grid.ListManager.Count, since grid.ListManager might be null.
21245 This of course begs the question "why are we drawing rows for a
21246 grid with no list manager (and therefor no rows)?" Fixes the
21247 crash in bug #78929.
21249 2006-07-31 Chris Toshok <toshok@ximian.com>
21251 * RelatedPropertyManager.cs: Don't always chain up to the parent
21252 ctor. instead, call SetDataSource if the parent's position is !=
21253 -1. Fixes the crash in #78822.
21255 2006-07-31 Chris Toshok <toshok@ximian.com>
21257 * DataGrid.cs (get_ListManager): use field instead of property
21258 accessors for datasource and datamember.
21259 (RowsCount): make internal again.
21260 (OnMouseDown): end edits before resizing columns/rows.
21261 (OnMouseUp): restart edits after resizing columns/rows.
21263 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
21265 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21266 This fixes the situation where the last set cursor is displayed
21267 whenever the mouse is over scrollbars.
21269 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21271 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21272 Document properties, as well as initial values.
21274 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
21276 * XplatUIWin32.cs (SetBorderStyle): Setting both border
21277 and ClientEdge results in a 3-pixel border, which is
21280 2006-07-28 Jackson Harper <jackson@ximian.com>
21282 * TreeNodeCollection.cs: Fix the clear method.
21283 - Fix the Shrink also
21285 2006-07-27 Jackson Harper <jackson@ximian.com>
21287 * TreeView.cs: Make sure the visible order is computed when we
21288 attempt to size the scrollbars (for trees that mess with the
21289 scrolling when they shouldn't.
21290 - Make sure to give the scrollbars valid values.
21292 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21294 * XplatUIX11.cs: Move motion compression code to where it
21295 has less performance impact
21297 2006-07-26 Jackson Harper <jackson@ximian.com>
21299 * UpDownBase.cs: When the control is selected make the child
21300 controls non selectable, so that a click on them won't do a
21301 focus/unfocus cycle.
21302 - Don't give focus to the text box when the spinner is selected.
21303 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21305 2006-07-26 Chris Toshok <toshok@ximian.com>
21307 * ThemeWin32Classic.cs: add print preview rendering. I'm not
21308 satisfied with this solution. If the bitmaps are small, we should
21309 just cache them in the PrintPreviewDialog and draw them here.
21310 Also, the layout is broken for the 2-up and 3-up cases.
21312 * Theme.cs: add PrintPReviewControlPaint.
21314 * PrintPreviewDialog.cs: first pass implementation.
21316 * PrintPreviewControl.cs: first pass implementation. No
21319 * PrintDialog.cs: only validate fields if that particular portion
21320 of the UI is enabled. Also, set the document's controller to a
21321 PrintControllerWithStatusDialog wrapping the document's print
21324 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21325 bring up a SaveFileDialog (i hope we don't want to match the
21326 behavior of the crappy windows file entry) and set the
21327 PrinterSettings.PrintFileName accordingly.
21329 2006-07-26 Jackson Harper <jackson@ximian.com>
21331 * ContainerControl.cs: Add a field that disables auto selecting
21332 the next control in a container when the container is activated.
21333 * UpDownBase.cs: Don't select the text box when the up down is
21336 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21338 * XEventQueue.cs: Added methods for peeking (used for compression
21339 of successive events)
21340 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21341 mouse move events (fixes #78732)
21343 2006-07-25 Jackson Harper <jackson@ximian.com>
21345 * UpDownBase.cs: Use an internal class for the textbox so that we
21346 can control focus. the updown control should always have focus,
21347 if either the text area or the buttons are clicked.
21348 - Send the key messages to the textbox, since it never actually
21350 - Activate and decativate the textbox caret.
21352 2006-07-24 Jackson Harper <jackson@ximian.com>
21354 * Control.cs: Use the directed select when selecting a control,
21355 this way the container controls override will get called and the
21356 whole ActiveControl chain will get triggered. TODO: probably need
21357 to make sure this gets done everywhere instead of the old
21359 * ContainerControl.cs: Implement the directed Select method to
21360 find and activate the correct child control.
21362 2006-07-22 Mike Kestner <mkestner@novell.com>
21364 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21365 menu handling code so that clicks without a grab work too.
21368 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
21370 * FileDialog.cs: Enable the BackButton when dirstack has one element.
21371 Added some small optimizations.
21373 2006-07-21 Matt Hargett <matt@use.net>
21375 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21377 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
21379 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
21380 tests pass and match MS in some strange border cases.
21382 2006-07-21 Chris Toshok <toshok@ximian.com>
21384 * ThemeWin32Classic.cs: handle drawing of the relation links and
21385 parent row buttons.
21387 * Theme.cs: change args to DataGridPaintParentRow.
21389 * DataGrid.cs: Don't use controls for the relation links and
21390 parent buttons, so we have to handle all their interactions in
21391 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
21392 when we're navigating through child tables, so we can reinstate
21393 selection, expanded state, current cell, etc.
21395 2006-07-20 Chris Toshok <toshok@ximian.com>
21397 * ToolBar.cs: When we redraw a button, for whatever reason,
21398 there's no reason to redraw the entire toolbar. Also, don't call
21399 Control.Refresh from within Redraw, as it's much heavier than
21400 Invalidate (which is really what we want).
21402 2006-07-20 Chris Toshok <toshok@ximian.com>
21404 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21405 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21406 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21407 traces from within a debug IBindingList datasource
21408 (in mono/winforms/datagrid) for *days*, I've finally gotten things
21409 to work in a similar fashion.
21411 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21413 * ListBox.cs: Don't call Sort () when setting
21414 the Sorted property to false (avoid an unnecessary sort).
21416 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21418 * ListControl.cs: DataSource should throw an ArgumentException
21419 instead of a normal exception when the argument is not of the
21422 2006-07-20 Mike Kestner <mkestner@novell.com>
21424 * Control.cs: add InternalPreProcessMessage to allow us to steal
21425 key events before MWF gets its paws on them. Adapted from a
21427 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
21428 up/down/left/right navigation. Override the new internal control
21429 method to steal the events since they never make it to WndProc.
21430 * ToolBarButton.cs: don't worry about pushed when setting hilight
21431 since the drawing code prefers pushed to hilight. Invalidate on
21432 Hilight changes. Fixes #78547 and #78525.
21434 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21436 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21437 the canvas size. Fixes #78868
21439 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21441 * Splitter.cs: Track requested split position until first layout
21442 is performed. Fixes #78871
21444 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21446 * Application.cs: Removed code that forces 1.x for the version
21447 number if the version started with 0. Not sure why that code was
21448 there and I couldn't find any bugs that indicated we needed it.
21451 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
21453 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21454 ResetDefaults(), just write some output to the console until it's
21455 implemented. Fixes bug #78907 for now. Eliminated two warnings.
21457 2006-07-19 Jonathan Chambers <joncham@gmail.com>
21459 * PropertyGridView.cs: set StartPosition of drop down forms
21460 so they appear in correct initial spot. Fixes #78190.
21462 2006-07-19 Mike Kestner <mkestner@novell.com>
21464 * ThemeWin32Classic.cs: use parent background color when drawing
21465 flat toolbars. Restructure the conditionals to make sure non-flat
21466 non-Divider toolbars are filled too. Fixes #78837.
21468 2006-07-19 Mike Kestner <mkestner@novell.com>
21470 * ListBox.cs: Sort on collection changes even if the handle
21471 isn't created yet. Fixes #78813.
21473 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21475 * ListControl.cs: DisplayMember should never be null,
21476 and now we assign String.Empty when null is passed to it (this
21479 2006-07-17 Mike Kestner <mkestner@novell.com>
21481 * ListViewItem.cs: restructure Font and subitem Font handling
21482 to hold a specific font and refer back to owner on null.
21485 2006-07-17 Mike Kestner <mkestner@novell.com>
21487 * ToolBar.cs: bandaid for side-effect of previous patch which was
21488 discarding explicit heights for non-AutoSize toolbars. Need to
21489 extend my format tester to deal with AutoSize=false. Fixes #78864.
21491 2006-07-15 Jackson Harper <jackson@ximian.com>
21493 * LabelEditTextBox.cs:
21494 * TreeView.cs: Use a new LabelEdit class for node editing, this
21495 class automatically 'closes' itself when it gets the enter key or
21497 - Use the client rectangle when setting the trees scrollbars, so
21498 border style is taken into account.
21500 2006-07-14 Jackson Harper <jackson@ximian.com>
21503 * TreeView.cs: Make the editing work similar to MSs, firing the
21504 events correctly and ending edits correctly.
21506 2006-07-14 Mike Kestner <mkestner@novell.com>
21508 * ToolBarButton.cs:
21509 * ToolBar.cs: layout restructuring and redraw enhancements to support
21510 formatting changes gracefully, like setting TextAlign, ImageList,
21511 ButtonSize, and Appearance. Handles explicit button sizing quirks
21512 of the MS controls. Things like flat toolbars ignoring button size
21513 but becoming constant sized at the largest button's size. Normal
21514 toolbars with an image set cannot be shrunk smaller than the image,
21515 but text can be clipped/ignored.
21516 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21517 is zero. Seems like DrawString should be smart enough to not put
21518 anything on screen though. Also trim labels and ellipsize at the char
21519 boundary, not word.
21520 Fixes #78711 and #78483.
21522 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21524 * FolderBrowserDialog.cs: Disable "New Folder" button and
21525 "New Folder" contextmenu menuitem if a folder like "My Computer"
21528 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21530 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21531 * FolderBrowserDialog.cs:
21532 - Use MWFConfig to store and read size and position settings
21533 - Added code to create a new folder (button or context menu).
21534 Use TreeView labeledit to change the name of the new folder.
21536 2006-07-14 Jackson Harper <jackson@ximian.com>
21538 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
21539 when the tree is scrolled we end editing.
21541 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21543 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
21546 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21548 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
21549 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
21550 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
21551 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
21552 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
21553 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
21554 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
21555 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
21556 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
21557 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
21558 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
21559 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
21560 ListViewItemSelectionChangedEventHandler.cs,
21561 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
21562 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
21563 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
21564 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
21565 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
21566 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
21567 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
21568 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
21569 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
21570 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
21571 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
21572 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
21573 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
21574 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
21575 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
21576 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
21577 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
21578 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
21579 WebBrowserNavigatingEventHandler.cs,
21580 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
21582 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
21584 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
21585 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
21586 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
21587 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
21588 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
21589 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
21590 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
21591 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
21592 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
21593 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
21594 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
21595 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
21596 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
21597 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
21598 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
21599 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
21600 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
21601 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
21602 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
21603 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
21604 ListViewItemStates.cs, MaskFormat.cs: Added
21606 2006-07-13 Jonathan Chambers <joncham@gmail.com>
21608 * PropertyGridView.cs: Fix keyboard navigation of drop down.
21609 Patch from eno for bug 78558.
21611 2006-07-13 Jackson Harper <jackson@ximian.com>
21613 * TreeView.cs: When an edit is finished make sure that the
21614 selected node is visible.
21615 - When setting the top/bottom use the scrollbars is_visible, so
21616 everything will be set correctly even if the tree isn't visible
21619 2006-07-13 Jackson Harper <jackson@ximian.com>
21621 * ComboBox.cs: Revert the item->index part of my previous patch.
21622 * TreeView.cs: Use LostFocus instead of Leave for detecting when
21623 the edit box has lost focus (duh).
21624 - Just make the edit box not visible when we get return, that will
21625 take the focus, which will call EndEdit
21626 * TreeNode.cs When we start editing, notify the treeview.
21628 2006-07-12 Jackson Harper <jackson@ximian.com>
21630 * ComboBox.cs: Clear out old items before setting the item list.
21631 This prevents databound controls from having their items added
21633 - Switch the combobox to use indices whereever possible instead of
21634 using Item's. This allows usto navigate through lists that have
21635 more then one item with the same string value (ie a, b, b, a).
21636 - Scroll the listboxes scrollbar when a non visible item is
21638 - Allow keypress to cycle through all the possible values. For
21639 example if you have b1, b2, b3 and hold down the B key all the
21640 values will be cycled through.
21642 2006-07-12 Jackson Harper <jackson@ximian.com>
21645 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21646 this using the internal methods.
21647 * Control.cs: Add OnGotFocusInternal. A new method that allows
21648 controls to "override" OnGotFocus and change focus behavior if
21650 - Same thing for LostFocus
21651 * ComboBox.cs: Pass off focus to the text control properly.
21653 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
21655 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21656 * FolderBrowserDialog.cs: Almost a complete rewrite.
21657 - Better support for Environment.Specialfolders
21658 - Added support for MWFVFS
21659 - Made setting SelectedPath work
21661 2006-07-12 Jackson Harper <jackson@ximian.com>
21663 * Control.cs: Optimze getting all the controls.
21665 2006-07-11 Jackson Harper <jackson@ximian.com>
21667 * ContainerControl.cs: Override SETFOCUS in the container control,
21668 so that it is not selected on mouse click.
21670 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21672 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
21673 Hopefully we will have a better way once all of focus is complete.
21675 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
21677 * ThemeWin32Classic.cs: Commented out some debug code and fixed
21678 a compile error with csc.
21680 2006-07-11 Jackson Harper <jackson@ximian.com>
21682 * Control.cs: When hiding a control only select the next control
21683 if the current control was focused.
21684 - Don't handle enter/leave when setting/killing focus, this is
21685 done by the container control.
21686 - Remove is_selected, it's not needed anymore.
21687 - Add utility methods for selecting a child control, and for
21688 firing the Enter/Leave events.
21689 * ContainerControl.cs: When a control is activated fire the
21690 enter/leave events.
21691 - Don't wrap when processing the tab key, so that focus can be
21692 moved outside of the container.
21693 - Use the correct active control
21695 2006-07-11 Jackson Harper <jackson@ximian.com>
21697 * ComboBox.cs: Remove some debug code that was blinding me.
21698 * UpDownBase.cs: These controls actually aren't implicit, they are
21699 visible to the user.
21701 2006-07-10 Chris Toshok <toshok@ximian.com>
21703 * DataGrid.cs: move back to the is_adding boolean field. god i
21704 hate this is_editing/is_adding/is_changing stuff.
21706 2006-07-10 Chris Toshok <toshok@ximian.com>
21708 * DataGridTableStyle.cs: just check if the property type is bool.
21709 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
21710 Don't use CanRenderType.
21712 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
21713 if our text == NullText. Remove CanRenderType.
21715 * DataGridBoolColumn.cs: nuke CanRenderType.
21717 * DataGrid.cs: reenable some code to end the current edit inside
21718 of set_CurrentCell. This fixes the other 1.1.16 regression.
21719 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
21720 Also, remove the visible_row_count arg from CalcRowHeaders, since
21721 we don't need to worry about the actual height of the area.
21723 2006-07-10 Chris Toshok <toshok@ximian.com>
21725 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
21728 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
21729 the real sense of the IsInEditOrNavigateMode property (true =
21730 navigate, false = edit). Also, update OnKeyPress to reflect this.
21732 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
21733 column style exists, we still need to set its property descriptor
21734 to match up with our list manager.
21736 2006-07-10 Chris Toshok <toshok@ximian.com>
21738 * ThemeWin32Classic.cs: implement the new row/header painting
21739 approach. The parent row painting will likely go away and
21740 replaced with label controls, but the rest seems to work ok (and
21743 * Theme.cs: change the way we draw datagrid rows. we don't draw
21744 the row headers as a block now. Instead we draw them in the
21745 normal draw-row loop. Add some calls for drawing parent rows and
21748 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
21749 a default table style. Set the defaults from ThemeEngine.Current,
21750 not SystemColors. Fix lots of misc issues with property setters.
21752 * DataGrid.cs: move loads of style information out of this class
21753 as it's being duplicated with DataGridTableStyle. keep track of a
21754 special DataGridTableStyle for the properties we used to mirror
21755 here. Switch all the style properties to access this table style
21756 instead of instance fields of this class. Also add a internal
21757 class to represent parent rows (more needs to be stored here, like
21758 the selection state from the parent table, as well as the
21759 expansion state.) Also, for datasources with relations, do the
21760 right thing for collapse/expand, and add support for the
21761 navigation/parent row buttons.
21763 Lastly, fix the crash in the 1.1.16 build.
21765 * GridTableStylesCollection.cs: make the explicit interface
21766 implementations call the class's methods as opposed to duplicating
21769 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
21770 0 so the text doesn't jump around when we move the cursor.
21772 2006-07-10 Jackson Harper <jackson@ximian.com>
21775 * ListBox.cs: Match MS's ToString (this makes debugging focus
21776 stuff infinitely easier).
21778 2006-07-10 Jackson Harper <jackson@ximian.com>
21780 * Control.cs (SelectNextControl): When checking the control's
21781 parent use this instead of ctrl.parent so that null can be passed
21782 to SelectNextControl. (I have unit tests for this).
21783 - Remove unused var.
21785 2006-07-10 Chris Toshok <toshok@ximian.com>
21787 * CurrencyManager.cs: correct one regression, the removal of the
21788 finalType field. Also, add a MonoTODO on CanAddRows, implement
21789 Refresh() correctly, and fix some event emission in
21790 ListChangedHandler.
21792 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21794 * FileDialog.cs: Don't use brackets for new folders if they exist
21795 under *nix. Instead use -(number of existing folders +1).
21797 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
21800 - Fixed really nasty bug #78771
21801 - Don't block the whole GUI when reading directories with a lot of
21802 entries. Use an other thread instead and call BeginInvoke to
21803 update the ListView in MWFFileView
21805 2006-07-07 Chris Toshok <toshok@ximian.com>
21807 * Control.cs (Dispose): release any Capture when disposing.
21809 2006-07-07 Chris Toshok <toshok@ximian.com>
21811 * LinkLabel.cs (Select): if we chain up to the parent, set
21812 focused_index to -1 so we'll search for the first available link
21813 the next time the user tabs into us. Also, if the direction is
21814 backward and focused_index == -1, start the search from the last
21817 2006-07-07 Chris Toshok <toshok@ximian.com>
21819 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
21820 is beyond the end of the text, don't do anything.
21821 (CreateLinkPieces): set our ControlStyles.Selectable based on
21822 whether or not we have any links.
21823 (Link.Invalidate): use a loop instead of foreach.
21824 (Link.set_Start): null out owner.sorted_links so it'll be
21825 recreated by CreateLinkPieces.
21827 2006-07-06 Chris Toshok <toshok@ximian.com>
21829 * LinkLabel.cs: revert the SetStyle change.
21831 2006-07-06 Chris Toshok <toshok@ximian.com>
21833 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
21834 (OnEnableChanged): s/Refresh/Invalidate
21835 (OnGotFocus): if we have a focused index already, refocus it (so
21836 if we mouse out/in to the window it'll focus the right link).
21837 (OnKeyDown): move the tab handling out of here.
21838 (OnLostFocus): don't set focused_index to -1, so we can refocus it
21839 when we lose focus.
21840 (OnMouseDown): don't Capture here - Control handles it. Also,
21841 focus the active link.
21842 (OnMouseUp): don't deal with Capture.
21843 (OnPaintBackgroundInternal): remove.
21844 (OnTextAlignChanged): CreateLinkPieces before calling the
21845 superclass's method.
21846 (OnTextChanged): call CreateLinkPieces before calling superclass's
21848 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
21850 (Select): implement this, moving the selection between different
21851 links, and call parent.SelectNextControl if we don't have another
21852 link to focus in the given direction.
21853 (CreateLinkPieces): call Invalidate instead of Refresh.
21855 2006-07-06 Chris Toshok <toshok@ximian.com>
21857 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
21858 new LinkLabel internals.
21860 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
21861 over pieces looking for active/focused/etc links. also, deal with
21862 runs of text (and links) with embedded \n's in them, and use
21863 MeasureCharacterRanges instead of MeasureString to figure out the
21864 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
21867 2006-07-04 Jackson Harper <jackson@ximian.com>
21869 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
21870 XKB or key auto repeat, do it manually. Without key auto repeat,
21871 when a key is held down we get key press, key release, key press,
21872 key release, ... with auto repeat we get key press, key press, key
21873 press ..., and then a release when the key is actually released.
21875 2006-07-03 Jackson Harper <jackson@ximian.com>
21878 * ThemeWin32Classic.cs: Tabs do not obey normal background color
21879 rules, they are always control color regardless of the background
21882 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
21884 * FileDialog.cs: Added internal class MWFConfig.
21885 Removed Registry support and replaced it with support for the new
21886 MWFConfig class. See MWFConfig comments for more information.
21888 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
21890 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
21891 rectangle. Added some patches from eno from bug #78490 and fixed
21892 the arrow position for small up and down CPDrawScrollButtons.
21894 2006-06-30 Jackson Harper <jackson@ximian.com>
21896 * InternalWindowManager.cs: Remove some debug code.
21897 * Form.cs: When an MdiParent is set to null, the window is
21898 "detatched" and becomes a normal window.
21899 * MdiClient.cs: Don't bring the new child form to the front until
21900 it is activated (setting it as active does this), this makes the
21901 previously active forms titlebar get redrawn as inactive.
21903 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
21905 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
21906 with later controls
21908 2006-06-29 Mike Kestner <mkestner@novell.com>
21910 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
21911 arrow in keynav state. Fixes #78682.
21913 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21915 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
21916 order (fixes #78393)
21918 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
21920 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
21921 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
21922 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
21923 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
21924 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
21925 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
21926 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
21927 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
21928 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
21929 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
21930 enumerations (FlagsAttribute, SerializableAttribute, added/removed
21933 2006-06-28 Mike Kestner <mkestner@novell.com>
21935 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
21937 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
21940 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
21941 item lines from other area (It also makes BackColor consistent and
21942 compatible with .NET). Fixed bug #78564.
21944 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
21946 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
21947 Patch from Eno for #78555.
21949 2006-06-27 Chris Toshok <toshok@ximian.com>
21951 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
21953 * DataGridColumnStyle.cs: same.
21955 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
21957 * DataGridDrawingLogic.cs: nuke.
21959 2006-06-27 Chris Toshok <toshok@ximian.com>
21961 * DataGridTableStyle.cs: clean up the constructors, and build the
21962 list of child relations for this table. I have no idea if this is
21963 where we should be doing it (it probably isn't), but since we're
21964 already iterating over the properties..
21966 * DataGrid.cs: add row resizing. for now we add a DataGridRow
21967 struct and array for keeping track of row information, similar to
21968 what's shown in a hack on
21969 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
21971 * Theme.cs: be consistent about the naming of DataGrid methods,
21972 prefering ColumnWidths and RowHeights over columnsWidths and
21975 * ThemeWin32Classic.cs: same, and also add support for variable
21976 sized rows (and the +/- expansion icons for related rows).
21978 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21980 * TextBoxBase.cs: Applied Eno's patch from #78660
21982 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21984 * Form.cs (ScaleCore): We don't want to scale our form if it's
21985 state is minimized or maximized, but we still need to scale our
21986 child windows. Also, added try/finally block to ensure layout
21987 gets reset (Fixes #78697)
21989 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21991 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21993 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21995 * Form.cs: Fixed c+p error and added check to resize form if minimum
21996 size is bigger than current size (Fixes #78709)
21998 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
22000 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22002 2006-06-26 Mike Kestner <mkestner@novell.com>
22004 * ComboBox.cs: only do Keypress handling in the combo when there
22005 are items in the collection. Fixes #78710.
22007 2006-06-26 Chris Toshok <toshok@ximian.com>
22009 * Binding.cs: make this work bi-directionally. also, clear up
22010 other mixups between Push/Pull Data (e.g. we're supposed to pull
22011 data when validating).
22013 * BindingManagerBase.cs: trim some fully qualified collection
22016 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22018 2006-06-23 Chris Toshok <toshok@ximian.com>
22020 * PropertyManager.cs: It appears (according to the unit tests)
22021 that PropertyManager doesn't use
22022 PropertyDescriptor.AddValueChanged to track propery value changes
22023 in its datasource, but uses the same scheme as Binding, where it
22024 looks for a <Property>Changed event and binds to it.
22026 Also, according to the docs, IsSuspended always returns false for
22027 a property manager with a non-null datasource.
22029 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22031 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22032 need to update the actual DialogResult. (Fixes #78613)
22034 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22036 * Form.cs (ShowDialog): Release any captures before running the
22037 new message pump (fixes #78680)
22039 2006-06-22 Mike Kestner <mkestner@novell.com>
22041 * ListView.cs: Layout column widths properly in details mode even
22042 if HeaderStyle.None is set. Fixes #78691.
22044 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22046 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22048 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22050 * Control.cs (ContainsFocus): Using new driver method to get focused
22051 window, instead of trying to use internal tracking var, which can
22052 recursion issues (Fixes #78685)
22053 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
22054 XplatUIWin32.cs: Added GetFocus method to return focused window
22056 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22058 * ColorDialog.cs: when the mouse button is pressed inside the color
22059 matrix, don't let the cursor move out of it until the button is
22060 released, which is the behavior on windows. Changed 'colours' by
22061 'colors' to use the same word consistently.
22063 2006-06-21 Chris Toshok <toshok@ximian.com>
22065 * DataGrid.cs: add in some basic navigation stuff (navigating to a
22066 child relation and back, using a stack). Also, remove
22067 GetDataSource and the code that calls it - it's not needed. Also,
22068 track CurrencyManager.ListName's removal.
22070 2006-06-21 Chris Toshok <toshok@ximian.com>
22072 * CurrencyManager.cs: push some of the original type checking from
22073 BindingContext.CreateBindingManager to here, and remove some of
22074 the finalType stuff. Need more tests to make sure I've got the
22075 ListName part right, and we might need more in SetDataSource.
22077 * PropertyManager.cs: add a ctor that takes just the datasource,
22078 and no property name. Make SetDataSource work with a null
22079 property_name, and make Current return the data_source if the
22080 property descriptor is null. this makes 'string foo = "hi";
22081 BindingContext[foo].Current' return "hi" as it should.
22083 * RelatedCurrencyManager.cs: make this code more generic - there's
22084 no reason the parent manager has to be CurrencyManager, and
22085 there's no reason to pass the DataRelation. It suffices to use a
22086 BindingManagerBase and PropetyDescriptor.
22088 * RelatedPropertyManager.cs: make a similar change here.
22090 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22091 flower I knew it could be.
22093 2006-06-20 Chris Toshok <toshok@ximian.com>
22095 * PropertyManager.cs: the PropertyChangedHandler is invoked when
22096 data in the source has changed and we need to update the control,
22097 so s/PullData/PushData.
22099 * CurrencyManager.cs: Refresh is meant to update the control from
22100 data in the datasource. So, s/PullData/PushData.
22102 * BindingContext.cs: add more ugliness (we weren't handling the
22103 case where data_source = DataTable and data_member = column_name).
22105 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
22106 from the perspective of the datasource. PullData pulls from the
22107 control, PushData pushes to the control.
22109 2006-06-20 Chris Toshok <toshok@ximian.com>
22111 * BindingContext.cs: rewrite the CreateBindingManager code to
22112 handle navigation paths more or less properly. This could
22113 definitely stand some more work, in particular to push the
22114 recursion up to the toplevel. But that relies on fixes in other
22115 places (System.Data comes to mind).
22117 Also, move to a flat hashtable (and encode the twolevel nature of
22118 the dictionary into the hash key). This lets us implement the
22119 IEnumerable.GetEnumerator method.
22121 * RelatedCurrencyManager.cs: new class. Update our view based on
22122 our relation and our parent CurrencyManager's position.
22124 * CurrencyManager.cs: split out some logic from the ctor into
22125 SetView, so it can be called from the new RelatedCurrencyManager
22128 * RelatedPropertyManager.cs: new class. Update our datasource
22129 based on the position of our parent CurrencyManager.
22131 * PropertyManager.cs: split out some logic from the ctor into
22132 SetDataSource, so it can be called from the new RelatedDataSource
22133 subclass. Also, make the Current getter return the value
22134 of the PropertyDescriptor, not the data_source.
22136 * Binding.cs: no need to duplicate the string splitting code here.
22138 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22141 - set_Enabled: OnEnabledChanged is not called if the inherited state
22142 of the control is not altered, even though we might be changing the
22143 internal state of the control (#78458)
22144 - set_Enabled: (Re)Moved the enabling/disabling of the window to
22145 OnEnabledChanged, to allow easy altering of any child window state
22146 - OnEnabledChanged: Added code to enable/disable driver window state
22147 - OnParentEnabledChanged: Instead of firing the event, call
22148 OnEnabledChanged, which will fire the event and also a) set driver
22149 window state and pass the enabled state to any grandchildren (#78458)
22151 2006-06-19 Jackson Harper <jackson@ximian.com>
22153 * InternalWindowManager.cs: We don't set the cursor explicitly
22154 thats done via the response to NCHITTESTs.
22155 - Don't need to adjust for titlebar heights anymore, the
22156 coordinates are coming in the correct coordinates now (see peters
22160 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22162 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22163 being translated relative to whole window, instead of client window.
22164 That caused broken offsets on mouseclick (and caused gas for our
22165 InternalWindowManager)
22167 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22170 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22171 - Undo(): Added replay of cursor move on DeleteChars action; added
22172 calling Undo() again if a recorded cursor move is invalid (to
22173 ensure that some action is performed on Undo)
22174 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22176 2006-06-16 Jackson Harper <jackson@ximian.com>
22178 * MdiClient.cs: Instead of just sizing maximized windows when
22179 there is a resize we also have to adjust the Y of minimized
22180 windows, so they stay pinned to the bottom of the mdi container.
22181 - Eliminate separate tracking of the active control, we can just
22182 get this from the controls collection.
22183 - Paint the decorations for the newly activated titlebar so we get
22185 * InternalWindowManager.cs:
22186 * ThemeWin32Classic.cs: Minimized windows get all three buttons
22187 even if they are a tool window.
22189 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22191 * TextControl.cs (Undo): Handle non-existent cursor locations in the
22192 undo buffer, these can happen when text was deleted and the cursor
22193 was recorded first. Since we will also have a recorded cursor
22194 after the delete this is not an issue. (Fixes #78651)
22196 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
22198 * AccessibleObject.cs: Remove dependence on Control.is_selected;
22199 instead properly track control states internally (allows us to
22200 remove is_selected from Control)
22202 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22204 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22205 whose width is not a multiple of 8.
22207 2006-06-13 Jackson Harper <jackson@ximian.com>
22209 * MdiClient.cs: Only maximize the next child if the current one
22212 2006-06-13 Chris Toshok <toshok@ximian.com>
22214 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22215 modified. Also, guard against grid or grid_drawing being null in
22218 * DataGrid.cs: Reformat tons of getters/setters. In the
22219 DataMember setter, just call SetNewDataSource instead of
22220 duplicating some of its functionality. In SetNewDataSource, don't
22221 check ListManager for null, since the property getter creates the
22224 * DataGridTableStyle.cs: don't set TableStyle or call
22225 SetDataGridInternal on the column here, it's done in
22226 GridColumnStylesCollection.Add.
22228 * GridColumnStylesCollection.cs: fix all the explicit interface
22229 implementations to just call our methods. Nuke AddInternal() and
22230 move the body of it to Add(). Also, add a call to
22231 column.SetDataGridInternal to Add().
22233 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22234 base()+duplicate code. Also, use the Format property instead of
22235 format to generate an Invalidate ala MS. Lastly, create the
22236 textbox here, unconditionally.
22237 (set_Format): call Invalidate.
22238 (get_TextBox): no need to call EnsureTextBox.
22239 (Commit): remove the message box.
22240 (Edit) remove the call to EnsureTextBox.
22241 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22242 (EnterNullValue): no need to check textbox for null.
22243 (HideEditBox): no need to check textbox for null.
22244 (SetDataGridInColumn): add the textbox to the grid's controls.
22245 (EnsureTextBox): nuke.
22247 2006-06-13 Jackson Harper <jackson@ximian.com>
22249 * MdiWindowManager.cs: Hook up to the maximized menus paint event
22250 and redraw the buttons when needed. Unhook when the window is
22252 * MainMenu.cs: Add an internal Paint event, the mdi window manager
22253 needs this so that it can redraw its buttons when the menu is
22255 * InternalWindowManager.cs:
22256 * Form.cs: The method order has changed for DrawMaximizedButtons,
22257 so that it can be a PaintEventHandler.
22259 2006-06-13 Jackson Harper <jackson@ximian.com>
22261 * MdiClient.cs: When we close a maximized mdi window, the next mdi
22262 window is activated and maximized, even if it wasn't before.
22263 - When a new window is activated repaint the decorations of the
22264 old one, so that it no longer has the Active "look" (the blue
22266 * InternalWindowManager.cs: Open up CreateButtons to base classes
22267 so they can recreate the buttons on state changes.
22268 - If a window is maximized give it all three buttons
22269 * MdiWindowManager.cs: Create the titlebar buttons when the state
22270 is changed, this is needed because a toolwindow will not have all
22271 three buttons until it is maximized.
22273 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
22275 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22278 2006-06-12 Jackson Harper <jackson@ximian.com>
22280 * KeysConverter.cs: Make sure we handle the Ctrl special case
22281 if its the only key.
22283 2006-06-12 Jackson Harper <jackson@ximian.com>
22285 * Theme.cs: Add a method to get the size of a managed window
22287 * InternalWindowManager.cs: Remove the ButtonSize property, this
22288 should be retrieved from the theme.
22289 * MdiWindowManager.cs: Get the button size from the theme
22290 * ThemeWin32Classic.cs: Make the method to get the managed window
22291 titlebar button size public.
22292 - Handle the different button sizes of maximized toolwindows
22293 (should match any maximized window).
22294 - Get the titlebar height from the theme, not the WM (which gets
22295 it from the theme).
22297 2006-06-12 Jackson Harper <jackson@ximian.com>
22299 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22300 event down to the mdi window manager.
22301 - Expose some extra stuff to base classes
22302 - Make sure to end the Capture on an NC Mouse up, so that we can
22303 get double clicks properly, and the sizing doens't stick.
22304 - When doing PointToClient contain it in the workable desktop
22305 area, this prevents windows from changing size when the cursor is
22306 pulled outside of the working area while sizing.
22307 * MdiWindowManager.cs: When we get a double click maximize the
22309 - Reset the cursor after handling mode changes.
22311 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
22313 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
22314 current desktop, instead of just assuming a 0, 0 origin. This
22315 is needed for our internal window manager, to know the top
22316 margin of the desktop
22318 2006-06-12 Chris Toshok <toshok@ximian.com>
22320 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22321 we need this to get rid of the selected background in the bool
22323 (CancelEditing): move the ConcedeFocus call to above the Abort
22324 call. Also, set is_changing to false and invalidate the row
22325 header if we were changing before.
22326 (ProcessKeyPreviewInternal): remove, since noone outside this
22327 class calls it anymore. Roll the code into ProcessKeyPreview.
22328 (EndEdit): remove the internal version.
22329 (InvalidateCurrentRowHeader): make private.
22331 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
22332 Keys.Escape handling (and with it the last call to
22333 DataGrid.EndEdit from outside the class.)
22336 2006-06-12 Chris Toshok <toshok@ximian.com>
22338 * DataGridTextBox.cs (.ctor): isedit defaults to false.
22339 (OnKeyPress): set isedit to true.
22340 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
22341 already handled by the grid.
22343 * DataGrid.cs (set_CurrentCell): more work here. it's still not
22345 (set_DataSource): SetDataSource always returns true, so stop
22346 putting it in an if statement.
22347 (EndEdit): get rid of some {}'s
22348 (ProcessGridKey): return true in case Keys.Escape.
22349 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22350 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22351 PositionChanged, stopped connecting to CurrentChanged.
22352 (GetDataSource): simplify this a bunch.
22353 (SetDataSource): change return type from bool to void.
22354 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22355 to this, and make sure we don't set ListManager.Position inside
22357 (OnListManagerItemChanged): if we're passed an actual index,
22360 * CurrencyManager.cs (set_Position): don't call PullData here.
22362 2006-06-09 Jackson Harper <jackson@ximian.com>
22364 * TreeNode.cs: Recalculate the visible order before doing the
22365 Expand/Collapse Below calls, because those calls generate an
22367 - Reduce calls to the TreeView property, which is mildly expensive
22368 by using a local var.
22369 * Form.cs: Layout the MDI child windows when creating the parent
22371 - Don't use the internal constructor anymore
22372 * MdiClient.cs: use the parent form width/height (if available)
22373 when laying out the child windows, we do this because the
22374 mdiclient isn't docked yet when the initial layout is done.
22375 - Don't need an internal constructor anymore.
22377 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22379 * FileDialog.cs: handle access errors when trying to create a folder
22380 or changing to a directory. No need to initialize out parameters.
22382 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22384 * FileDialog.cs: Append a number when creating a new folder if the
22385 folder already exists (use parenthesis instead of square brackets)
22387 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22390 - Disabled registry support for windows and added better registry
22391 error checking for other systems (need to investigate why it
22392 works perfectly on my system)
22393 - If a folder already exist show an error MessageBox instead of
22394 trying to create an indexed name.
22395 - Fixed a non intentional typo.
22397 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22399 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22401 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22403 * FileDialog.cs: When creating a new folder don't crash if the
22404 folder already exists.
22406 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22408 * FileDialog.cs: Allmost a complete rewrite.
22409 - added a "virtual" file system that handles the differences
22410 between unix and windows file systems (especially the directory
22411 structure). Moved most of the directory and file handling code
22413 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22414 UnixFileSystem and FSEntry.
22415 - Recently used folder/directory, size, location and used file names
22416 (file name ComboBox) are now stored in the registry and get read
22417 before the dialog shows up (fixes part 6 of bug #78446).
22418 - Creation of new folders/directories is now possible (context menu
22419 or ToolBar). Added TextEntryDialog for this that fills in the gap
22420 until ListView.LabelEdit works.
22421 - Fixed cursor handling (bug #78527) and focus handling for
22423 - Various "Search in" ComboBox enhancements. The content of the
22424 dropdown listbox now almost matches ms.
22425 - Changed the behaviour when the user switches to SpecialFolder
22426 Recent to show the ListView in View.Details.
22427 - Beside using the ToolBar to change the View property of the
22428 file ListView it is now possible to use the context menu too.
22430 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22432 * ComboBox.cs: Don't create a new ObjectCollection when an item
22433 gets inserted. Just insert the item in the existing object_items
22436 2006-06-08 Jackson Harper <jackson@ximian.com>
22438 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22439 that the treeview and root node checks are done also, this fixes a
22440 regression i caused in the unit tests.
22442 2006-06-07 Wade Berrier <wberrier@novell.com>
22444 * RichTextBox.cs: More ISO8859-1 -> unicode
22446 2006-06-07 Mike Kestner <mkestner@novell.com>
22448 * ComboBox.cs : use items to hold highlight/selection so that
22449 collection insertions don't require synchronization.
22451 2006-06-07 Jackson Harper <jackson@ximian.com>
22453 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22454 routine. We now always keep the sized edge at the cursor instead
22455 of computing movement and adjusting rects. There is one buglet
22456 with this method though when the cursor is moved over area that
22457 the window can not expand too (such as the toolbars on the desktop).
22459 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22461 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22462 here. Fixes crash on startup in AlbumSurfer.
22464 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
22466 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22469 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22471 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22472 statement to avoid calling XNextEvent which will block if another thread
22473 took the event that we were expecting. Fixes bug #78605.
22475 2006-06-07 Mike Kestner <mkestner@novell.com>
22477 * ListView.cs : isolated checkbox clicking from the selection logic.
22478 Toggle check state on item doubleclicks. Really fixes #78454 part2.
22480 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22482 * Form.cs: Check that the value passed to Form.DialogResult
22483 is a valid enum value.
22485 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22487 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22488 Computer'. Clicking it in the network view goes to 'My Computer'.
22489 Added CIFS filesystem type. Display the mount point of filesystems.
22490 Avoid duplicate mount points (happens for me with CIFS);
22492 2006-06-06 Jackson Harper <jackson@ximian.com>
22494 * InternalWindowManager.cs: Draw the maximized windows buttons
22497 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22499 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22500 all other dialogs. Fixes bug #78585.
22502 2006-06-06 Mike Kestner <mkestner@novell.com>
22504 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22505 Only invalidate checkbox on checkstate changes to avoid flicker.
22506 * ListBox.cs : avoid unselect/select when clicking selected item.
22507 avoid reselection flicker for already multiselected items.
22510 2006-06-06 Jackson Harper <jackson@ximian.com>
22512 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22513 the parent form so that the menu is removed if needed.
22515 2006-06-06 Mike Kestner <mkestner@novell.com>
22517 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
22518 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
22520 2006-06-06 Mike Kestner <mkestner@novell.com>
22522 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
22525 2006-06-06 Jackson Harper <jackson@ximian.com>
22527 * Control.cs: Use the property (instead of the field) to get the
22528 default cursor so it is instantiated correctly.
22529 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22530 resizes so we need to manually repaint the window decorations here.
22531 - Set the titlebar button locations as soon as they are created,
22532 otherwise they are not set correctly on win32.
22534 2006-06-06 Chris Toshok <toshok@ximian.com>
22536 * CurrencyManager.cs (set_Position): call PullData before
22538 (AddNew): after calling IBindingList.AddNew, update our
22539 listposition, and call OnCurrentChanged/OnPositionChanged (without
22541 (OnCurrentChanged): remove the call to PullData from here.
22542 (OnItemChanged): remove the call to PushData from here.
22543 (OnPositionChanged): change the test from == null to != null to
22544 match the other methods.
22545 (ListChangedHandler): the grossest part of the patch. Implement
22546 this such that it passes the unit tests in CurrencyManagerTest and
22547 the output more or less matches that of MS's implementation.
22549 2006-06-06 Mike Kestner <mkestner@novell.com>
22551 * ListView.cs : only update check state on single click.
22552 * ThemeWin32Classic.cs : fix focus drawing for details view without
22553 fullrowselect. Fixes #78454.
22554 * XplatUIX11.cs : fix for double click emission.
22556 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
22558 * PropertyGridView.cs : Applied Atsushi's patch to fix
22559 font dialog bug (#78197).
22561 2006-06-05 Jackson Harper <jackson@ximian.com>
22563 * TreeNode.cs: Compute the next node for expanding/collapsing
22564 correctly. We now factor in nodes without a NextNode
22565 correctly. (Fixes somes cases in nunit-gui).
22566 * InternalWindowManager.cs: Set the bounds when updating the
22567 virtual position of a tool window.
22569 2006-06-05 Chris Toshok <toshok@ximian.com>
22571 * DataGrid.cs: rename cached_currencymgr to list_manager.
22572 (set_CurrentCell): move SetCurrentCell code here, and clean it up
22574 (CurrentRow, CurrentColumn): single accessors so we can make the
22575 cursor movement code a lot easier to understand.
22576 (CurrentRowIndex): implement this in terms of CurrentRow.
22577 (BeginEdit): clean this up a bit.
22578 (CancelEditing): sort out the is_editing/is_changing/is_adding
22580 (EndEdit): minor changes.
22581 (OnKeyDown): add a comment about a (most likely) unnecessary
22583 (OnMouseDown): cancel editing when we click on a row header. And
22584 use the CurrentRow setter, not CurrentCell.
22585 (ProcessDialogKey): directly call ProcessGridKey.
22586 (UpdateSelectionAfterCursorMove): factor out this common block of
22587 code (it's used everywhere that we move the cursor by updating row
22589 (ProcessGridKey): pretty substantial overhaul. Use the
22590 CurrentRow/CurrentColumn properties to make the code a lot more
22591 readable. Only use the CurrentCell property when we have to
22592 modify both row and column at once. Tab behavior is still broken,
22593 and Delete is untested.
22594 (Select): if we have no selected rows, set selection_start to
22596 (EditCurrentCell): rename EditCell this. It was only ever invoked
22597 with CurrentCell as the arg, so drop the arg and rename it.
22599 * DataGridColumnStyle.cs: clean up the constructors a little, and
22600 drop CommonConstructor().
22602 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
22603 actually get notified when the user hits it.
22604 (ProcessKeyMessage): *substantially* simplify this method.
22605 There's no reason (that I can see) for the textbox to be making
22606 calls into the datagrid at all. Remove all of them but the ones
22607 for Enter handling. those will take some more work.
22609 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
22610 calling HideEditBox.
22611 (HideEditBox): if we have an active textbox, render it invisible
22612 without causing a re-layout of the datagrid.
22614 2006-06-05 Mike Kestner <mkestner@novell.com>
22616 * ListView.cs : fix NRE crasher when focuseditem is cleared by
22617 collection changes by resetting it to Items[0]. Fixes #78587.
22619 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22621 * MessageBox.cs: if the height of the text is larger than the icon_size,
22622 use that. Fixes bug #78575.
22624 2006-06-05 Jackson Harper <jackson@ximian.com>
22626 * TreeView.cs: Fix line drawing when scrolling. To do this each
22627 node is basically responsible for drawing its entire horizontal
22628 area. When drawing a node it draws its parent node lines if
22630 - Adjust the clip area to the viewport rectangle
22631 - Fix Left/Right key handling to match MS. (It expand/collapses
22632 and moves to parents/first child but does not move selection to
22634 - Fix SetTop to work with new bound calculation code
22635 - When scrollbars are no longer needed we need to reset scrolling
22636 vars and recalculate the visible order so the redraw is correct
22637 * TreeNode.cs: We can't expand/collapse nodes with no children.
22639 2006-06-03 John Luke <john.luke@gmail.com>
22641 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22642 so the colors work without dev packages
22644 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
22647 - Select: Implemented to just use activate. Seems to match MS
22648 behaviour closest. Documented to only do actual control walking
22649 based on it's parameters if in a container control so I moved
22651 - Removed selection check logic from our internal Select() method
22652 * ContainerControl.cs:
22653 - Select: Moved selection logic from Control here, since MS documents
22654 that containers obey the bool arguments. No longer calling base
22656 2006-06-02 Jackson Harper <jackson@ximian.com>
22658 * TreeView.cs: If the selected node isn't changed when we get
22659 focus update the previously selected node so that we see the
22662 2006-06-02 Mike Kestner <mkestner@novell.com>
22664 * ComboBox.cs: restructure grab and general mouse event handling.
22665 Make the composite control raise mouse events like it was a single
22666 control for leaves/enters/motion/up/down events. fix dropdown list
22667 coordinate mangling and refactor it into the scrollbar subclass to
22668 reduce code duplication. Fixes #78282 #78361 and #78457.
22670 2006-06-02 Mike Kestner <mkestner@novell.com>
22672 * ScrollBar.cs: remove Capture setting/clearing, as it happens
22673 automatically in the Control.WndProc.
22675 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22677 * FileDialog.cs: fix crash when running SharpChess, which sets the
22678 FilterIndex to 2 with only one Filter.
22680 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22682 * ToolBar.cs: add SizeSpecified property.
22683 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22684 try to figure out our real size, otherwise fallback to what the
22687 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22689 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22690 * Control.cs (WndProc): MS always calls the DefWndProc to pass
22693 2006-06-01 Mike Kestner <mkestner@novell.com>
22695 * ListView.cs: revamp the focus management in ListView. It still
22696 causes churn of LostFocus/GotFocus emissions on clicks, but it's
22697 better than not handling focus at all. Will revisit when pdb feels
22698 the general focus handling is solid. Fixes #78526.
22700 2006-06-01 Jackson Harper <jackson@ximian.com>
22702 * TreeView.cs: Set the default border style in the constructor.
22703 - Move painting to use OnPaintInternal instead of capturing
22704 WM_PAINT, this is the correct way of doing things
22705 - UpdateBelow shouldn't invalidate the scrollbar area
22706 - Cap the top on update below in case the node was above the top
22707 of the viewport rectangle.
22708 - ExpandBelow and Collapse below need to obey Begin/End Update.
22709 * TreeNode.cs: Make is_expanded internal so the treenode
22710 collection can change it without firing the whole event chain.
22711 * TreeNodeCollection.cs: When clearing all the child nodes make
22712 sure to recalc the visible order.
22713 - Improve algo for remove the top node
22715 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22717 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
22718 SendMessage directly calling window procedures, which in turn might
22721 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
22723 * Control.cs: Don't handle WM_SETFOCUS if the same window already
22724 has focus (works around X11 sending a FocusIn after our SetFocus)
22725 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
22727 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
22729 * Mime.cs: Fix for the NET_2_0 build.
22730 NameValueCollection needs StringComparer now.
22732 2006-05-31 Chris Toshok <toshok@ximian.com>
22734 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
22735 return (via an out parameter) the starting X of the column.
22736 (UpdateVisibleColumn): track change to FromPixelToColumn.
22737 (HitTest): add a ColumnResize case here.
22738 (DrawResizeLine): new function, probably poorly named.
22740 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
22741 only need to keep one reference.
22742 (set_ListManager): same.
22743 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
22744 Also, add support for HitTestType.ColumnResize.
22745 (OnMouseMove): add column resize behavior here, and change the
22746 cursor to the correct one as we move around the datagrid.
22747 (OnMouseUp): terminate the column resize if we're resizing.
22748 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
22749 for the current cell.
22750 (ConnectListManagerEvents): use cached_currencymgr.
22751 (DisconnectListManagerEvents): fill this in, using
22752 cached_currencymgr.
22753 (SetCurrentCell): remove cached_currencymgr_events handling.
22754 (SetDataMember): only call DisconnectListManagerEvents if
22755 cached_currencymgr is != null.
22756 (SetDataSource): same.
22757 (OnListManagerCurrentChanged): cached_currencymgr_events ->
22758 cached_currencymgr.
22760 2006-05-31 Jackson Harper <jackson@ximian.com>
22762 * BindingManagerBase.cs: Remove somedebug code that creeped into
22764 * TreeNode.cs: We get the indent level dynamically right now, so
22765 don't track it as a member.
22766 * TreeNodeCollection.cs: Make sure all nodes added to the list
22767 have parents, treeviews/topnodes setup properly.
22768 - Don't attempt to track indent level.
22770 2006-05-30 Jackson Harper <jackson@ximian.com>
22772 * BindingContext.cs: Create the currency manager tables here.
22773 This allows us to more easily create null tables (when bad data
22774 members are used), and more easily create related currency
22776 * CurrencyManager.cs: All the table creation stuff is done by the
22777 binding context now.
22778 - Current should throw an exception if listposition is -1.
22779 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
22782 2006-05-30 Mike Kestner <mkestner@novell.com>
22784 * ListView.cs: allow reexpansion of zero-width column headers.
22787 2006-05-28 Chris Toshok <toshok@ximian.com>
22789 * CurrencyManager.cs (get_Current): after the late binding
22790 listposition = -1 fix, we need to guard against it here and return
22791 null, otherwise we raise an exception (which is swallowed
22792 elsewhere, and breaks datagrid databinding.)
22794 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22796 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
22797 than WM_SYSKEY, don't throw if get something unexpected (#78507)
22799 2006-05-26 Jackson Harper <jackson@ximian.com>
22802 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
22803 values, it's faster and it's all we care about (we don't care if
22804 the names aren't equal).
22805 * KeyboardLayouts.cs: Eliminate some dead code.
22807 * X11Keyboard.cs: Lazy init keyboard detection.
22808 - Cleanup access modifiers a little.
22810 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22812 * XplatUIX11.cs: Once again, attempting to get layout just right.
22814 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
22816 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
22817 the sizes of each link section, that will result in sizes that
22818 match DrawString's layout (Fixes #78391)
22820 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
22822 * FileDialog.cs: If AddExtension property is true autocomplete the
22823 extensions in SaveFileDialog correctly. Fixes bug #78453.
22824 Set MyNetwork and MyComputer to "C:\" for windows. This should
22825 fix part 8 of bug #78446 for now.
22827 2006-05-26 Chris Toshok <toshok@ximian.com>
22829 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
22830 invalidate the current row header if we need to, but presumably
22831 we'll invalidate the row corrsponding to the bounds or
22833 (GridHScrolled): switch back to this method, as it's part of the
22834 public api. *sigh*.
22835 (GridVScrolled): same.
22836 (OnMouseWheel): hack up something that more or less works. Call
22837 GridHScrolled/GridVScrolled directly, instead of duplicating much
22838 of their code here.
22839 (EnsureCellVisibility): reinstate a bunch of this code, since we
22840 can't just set the scrollbar Value and expect to do all the work
22841 in the ValueChanged handler. Also, Call Update() after scrolling
22842 in one direction so the other XplatX11.ScrollWindow call has the
22843 proper stuff in the proper places.
22844 (EditCell): set is_editing to true before calling .Edit.
22846 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
22847 don't bother comparing first.
22848 (OnKeyPress): call grid.ColumnStartedEditing before calling
22849 base.OnKeyPress. this will set is_changing and invalidate the row
22850 header if necessary.
22851 (ProcessKeyMessage): for WM_CHAR messages, call
22852 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
22855 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
22856 it's done in the DataGrid.
22857 (NextState): call grid.ColumnStartedEditing, which takes care of
22858 invalidating the row header (and setting is_changing).
22860 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
22861 here. it's done in the DataGrid.
22863 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22865 * Control.cs: allow changing the cursor when the mouse position is
22866 out of bounds but Capture is set.
22867 * LinkLabel.cs: handle the case when the mouse button is pressed on the
22868 linklabel but released somewhere else.
22870 2006-05-25 Jackson Harper <jackson@ximian.com>
22872 * TreeView.cs: When we get focus if there is no selected node make
22874 - Remove some uneeded setup code from Draw.
22875 * TreeNodeCollection.cs: If the tree doesn't have a top node when
22876 a new node is inserted make the new node the top.
22878 * Timer.cs: Use Utc time so that no local time zone stuff needs to
22879 be used (should be faster).
22881 2006-05-25 Chris Toshok <toshok@ximian.com>
22883 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
22884 problem with the last commit.
22886 2006-05-25 Chris Toshok <toshok@ximian.com>
22888 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
22889 need the invalidate call here, while scrolling right-to-left via
22890 the left arrow key (i.e. moving the editing cell while scrolling).
22892 * DataGrid.cs (.ctor): remove the initialization of
22893 ctrl_pressed/shift_pressed. We no longer track them using key
22894 up/down handlers, but by using Control.ModifierKeys. Also, switch
22895 to using ValueChanged handlers on the scrollbars instead of
22896 Scrolled event handlers. This simplifies a bunch of the scrolling
22898 (GridHValueChanged): rename from GridHScrolled, and change it to
22899 work with the new event args.
22900 (GridVValueChanged): same.
22901 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
22902 (OnMouseWheel): actually scroll the datagrid. Don't change the
22904 (ProcessGridKey): correct all the keyboard navigation stuff I
22905 could find. Ctrl up/down/left/right/home/end work now.
22906 (EnsureCellVisibility): correct method name spelling. Also,
22907 simplify this a touch by not explicitly calling the
22908 ScrollToRow/ScrollToColumnInPixels methods. We just set the
22910 (OnKeyUpDG): no need for this method now.
22912 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22914 * LinkLabel.cs: display the OverrideCursor when hovering the label.
22917 2006-05-25 Chris Toshok <toshok@ximian.com>
22919 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
22922 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22924 * Application.cs: Moved setting of is_modal and closing to before
22925 we create the control, to allow the event handlers called as a
22926 result of creation affect closing. Also removed Gonzalo's previous
22927 change to setting DialogResult, the behaviour has been moved to
22930 - ShowDialog(): Removed explicit creation of the form, let RunLoop
22932 - ShowDialog(): If no dialog result is set, we need to return Cancel
22933 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
22934 the close is cancelled
22936 2006-05-25 Jackson Harper <jackson@ximian.com>
22938 * StatusBar.cs: We only need to update the sizes of the other
22939 panels when we have auto size contents. Also we are only updating
22940 the contents of the panel, not the borders, so compensate for the
22941 border width (TODO: get this width from the theme somehow).
22942 * TreeView.cs: Scrollable is true by default
22943 - Use invalidate instead of refresh where needed
22944 - Factor the scrollable value into scrollbar updating
22945 - Update the scrollbars if the Scrollable property is altered
22946 - Update the selected node if its ImageIndex is changed
22947 - Handle null nodes in UpdateNode (mainly so we don't have to
22948 check if selected is null when updating it
22949 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
22950 are factored into the visible count
22951 - Use VisibleCount for clarity in the code
22952 - When the font is changed we need to recurse through all the
22953 nodes and invalidate their sizes
22955 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22957 * Application.cs: set the DialogResult to fixed when the main form is
22958 hidden or destroyed while being modal.
22960 2006-05-25 Miguel de Icaza <miguel@novell.com>
22962 * Theme.cs: Use Tangoified messagebox icons.
22964 (GetSizedResourceImage): Also cope with width = 0 and do not
22965 trigger a warning in that case (0 means "give me your icon from
22966 the resouce, no special size needed).
22968 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
22970 * Application.cs: Leave runloop if the the main modal form is
22971 hidden (fixes #78484)
22973 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
22975 * BindingContext.cs : reject null datasource in Contains() and
22977 * CurrencyManager.cs : check data_member validity when data_source
22978 is dataset. When it is late binding, the initial position is -1.
22980 2006-05-24 Jackson Harper <jackson@ximian.com>
22982 * TreeNodeCollection.cs: Dont't recalculate the visible order on
22983 inserted nodes that aren't visible. This changes the
22984 max_visible_order which confuses scrollbar settings.
22985 - Use the enumerator to get the prev node instead of duplicating
22987 * TreeView.cs: Use new method for setting scrollbar values
22988 - Don't set the bounds every time the scrollbar is updated
22989 - When updating below the root node use an invalidate instead of a
22990 refresh to prevent the child controls (scrollbars) from being
22991 refreshed. (UpdateBelow still needs to be reworked anyways).
22992 - Reenable SetBottom now that visible orders are set correctly,
22993 added some debug code incase we ever get bad values there again.
22994 - Set the scrollbar max to 2 less then the max value, this
22995 compensates for the max value being one above the node count, and
22996 for scrollbars adding one extra "notch".
22997 - When drawing image nodes if there is an imagelist we draw the
22998 first image in the list if the supplied image index is out of the
22999 image list's bounds.
23001 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23003 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
23004 we receive a size change from the WM (Fixes #78503)
23006 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23008 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
23009 rectangle (Fixes #78501)
23011 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23014 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
23016 - Fixed MouseMove to no longer switch pressed state unless the left
23017 mouse button is pressed. Atsushi provided the original patch (#78485)
23019 2006-05-24 Jackson Harper <jackson@ximian.com>
23021 * ScrollBar.cs: New internal methods that allow us to change a
23022 couple values on the scrollbar (the most common case is maximum
23023 and large change) without getting multiple invalidates.
23025 2006-05-24 Chris Toshok <toshok@ximian.com>
23027 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23028 (Edit): save off the original state in oldState, and set
23029 grid.is_editing to true.
23030 (OnKeyDown): abort editing if escape is pressed. also, call
23031 NextState if space is pressed.
23032 (OnMouseDown): call NextState.
23033 (NextState): factor out shared code from OnKeyDown and OnMouseDown
23034 here. Also, only invalidate the row header once (on the initial
23035 is_changing switch) to save on redraws.
23037 2006-05-24 Chris Toshok <toshok@ximian.com>
23039 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23040 if the value in the cell is different than it was before. This
23041 keeps us from triggering a layout when we move around a datarid
23042 with a highlighted cell.
23043 (Edit): suspend layout when creating/positining the text box, and
23044 resume passing false so we don't ever actually re-layout.
23045 (ReleaseHostedControl): same.
23046 (EnsureTextBox): reformat slightly, and set WordWrap to false.
23048 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23049 control-key sequences should go to the datagrid - remove that
23050 lock. Also, modify the conditions under which we move between
23051 cells when moving the cursor within a cell, and remove the "this"
23052 and "base" from field accesses. We weren't even consistent, given
23053 they all were in the base class.
23055 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
23057 * Binding.cs : (.ctor)
23058 An obvious NRE fix for BindingTest.CtorNullTest().
23060 2006-05-23 Chris Toshok <toshok@ximian.com>
23062 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23063 them between lines. This fixes some quirks editing cells in the
23066 2006-05-23 Jackson Harper <jackson@ximian.com>
23068 * TreeView.cs: Use begin/end update when doing expand/collapse all
23069 so that we don't get flicker on the scrollbar.
23071 2006-05-23 Jackson Harper <jackson@ximian.com>
23073 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
23074 treenode calculations to be independant of the painting code. To
23075 do this nodes track a visible order which is calculated by the
23077 - Call new methods for expanding/collapsing nodes. These methods
23078 use scrollwindow so we don't have to update everything below the
23080 * TreeView.cs: Refactored drawing and scrolling code. We don't
23081 need to update nodes when drawing anymore or calculate scrollbar
23083 - Added new methods for expanding/collapsing nodes. These methods
23084 use ScrollWindow so as to not have to redraw all the nodes below.
23085 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23086 we add/remove nodes or sort.
23087 - Handle removing the selected and the top node properly.
23089 2006-05-23 Chris Toshok <toshok@ximian.com>
23091 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23092 maybe this should actually happen in the datagrid code?
23093 (EndEdit): no need to invalidate anything, given that
23094 ReleaseHostedControl causes the datagrid to relayout, which
23095 invalidates everything anyway.
23097 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23098 in SetCurrentCell).
23099 (set_SelectionBackColor): call InvalidateSelection instead of
23101 (set_SelectionForeColor): same.
23102 (BeginEdit): Flesh this out a bit.
23103 (CancelEditing): only do any of this if we're editing/adding.
23105 (OnMouseDown): there's no need to cancel editing here, it's done
23107 (SetCurrentCell): only invalidate the current row header if it's a
23108 different row than the new one.
23109 (ShiftSelection): fix this to work like MS does.
23110 (ResetSelection): factor out the invalidation of selected_rows to
23111 InvalidateSelection.
23112 (SetDataSource): cancel any editing that's going on.
23114 * DataGridColumnStyle.cs
23115 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23116 call the non-interface version.
23118 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23119 header rectangle with the clip rectangle so we don't redraw the
23120 entire header for just a small area. Gets rid of the last flicker
23121 when horizontally scrolling.
23122 (DataGridPaintRow): same.
23124 2006-05-23 Mike Kestner <mkestner@novell.com>
23126 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23127 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
23128 poorly placed checkbox on the MS control. Fixes Alex's unfiled
23129 Critical bug report.
23131 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23133 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23134 and this fixes #78493
23136 2006-05-23 Miguel de Icaza <miguel@novell.com>
23138 * Theme.cs (GetSizedResourceImage): Scale images if the proper
23141 * FileDialog.cs: Do not change the background for the side bar as
23142 it wont work nicely with the theme, and also reduces the artifacts
23143 in rendering the icons (which I want to fix too).
23145 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23146 resources, not resgen resources.
23148 (PlatformDefaultHandler): Pull images using the new API.
23150 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23152 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23153 a reference to the hwnd and will not remove it unless there are
23154 no pending exposures (fixes #78341)
23155 * XplatUI.cs: Improved debug
23157 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
23159 * MenuAPI.cs : don't handle OnClick event when it was not the left
23160 button. Fixed bug #78487.
23162 2006-05-23 Mike Kestner <mkestner@novell.com>
23164 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23165 prefer submenus to the top menu for item lookup, to avoid popping down
23168 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
23170 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23171 Graphics.FillRectangle as the visual results are really bad (even
23172 on win). We now draw perfect arrows (and perfect shadows when the
23173 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23174 Pen.DashPattern to draw the dots of each line.
23176 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
23178 * FileDialog.cs: Update the filename combobox when navigating through
23179 the ListView with the cursor keys. Fixes part 7 of bug #78446.
23181 2006-05-22 Mike Kestner <mkestner@novell.com>
23183 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23186 2006-05-22 Mike Kestner <mkestner@novell.com>
23188 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23189 requests. Fix a misspelled parameter and a copy paste exception error
23192 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
23194 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23195 to get the same width/height (5/13) on X11 as the default font has on
23196 win32. This means that our DefaultFont emSize is smaller than the
23197 the MS SWF equivalent (even thought the width/height stays the same)
23199 2006-05-20 Jackson Harper <jackson@ximian.com>
23202 * MdiWindowManager.cs:
23203 * InternalWindowManager.cs: Make sure to use the border width from
23206 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
23208 * PrintDialog.cs: Implements printer details
23210 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
23212 * FileDialog.cs: Added focus handling for PopupButtonPanel.
23213 Fixes part 1 and 2 of bug #78446
23215 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
23217 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23218 instead of sticking to the first ever calculated value
23220 2006-05-19 Mike Kestner <mkestner@novell.com>
23222 * ComboBox.cs: fix mouse motion selection to use MousePosition and
23223 PointToClient, since Capture is set. Fixes #78344.
23225 2006-05-19 Mike Kestner <mkestner@novell.com>
23227 * ListView.cs: match MS behavior in Details view where items are not
23228 drawn if Columns.Count == 0.
23229 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23230 Use a separate pen to draw the check, since changing the width affects
23231 the box as well. Fixes #78454.
23233 2006-05-18 Miguel de Icaza <miguel@novell.com>
23235 * ListView.cs: ArgumentOutOfRangeException, single versions of the
23236 exception should throw the name of the invalid argument.
23238 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23239 there are no files listed.
23241 2006-05-18 Jackson Harper <jackson@ximian.com>
23243 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23246 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23248 * Control.cs: Brought back our old UpdateZOrder method as a private
23249 function and switched our calls from UpdateZOrder to the new one.
23250 This fixes the Paint.Net canvas disappearing bug.
23252 2006-05-18 Jackson Harper <jackson@ximian.com>
23255 * ThemeWin32Classic.cs:
23256 * InternalWindowManager.cs: Move the drawing into the theme,
23257 expose everything the theme should need from the window manager.
23259 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23261 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
23262 from the call to NativeWindow to avoid walking up the parent chain
23263 further than needed (speeds up setting cursors and avoids setting
23264 the wrong cursor if a parent has another cursor defined)
23265 * Cursor.cs: When loading an icon as cursor, MS uses the center of
23266 the icon as hotspot, not what's contained as hotspot in the icon
23267 file. This fixes the perceived drawing offset seen with Paint.Net
23269 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23272 - Store the calculated rectangle in Hwnd object and use it when
23273 setting the client size
23274 - Force Toolwindows to always be type Dock, to ensure they're on top
23276 2006-05-18 Mike Kestner <mkestner@novell.com>
23278 * ComboBox.cs: first pass at ComboBox rework. Layout is more
23279 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
23280 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
23281 Substantial refactoring to remove confusing nested classes. Coding
23282 standard and Get+Set->property refactorings. Shift to index based
23283 highlighting in ComboListBox instead of constantly using IndexOf and
23284 Items[]. Add invalidations on resize for DropDownList to fix ugliness
23285 in FileDialog growth. Draw borders manually since Simple mode needs
23286 to look like two independent controls. Make listbox border
23287 conditional to DropDownStyle. Improved OwnerDraw support.
23289 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
23291 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
23292 Don't set the disposed graphics to null, so we can throw the "right"
23293 exception if the graphics is reused later (added a flag to avoid
23294 double disposing). Some behaviours are different under 2.0 and are
23295 filled under bug #78448.
23297 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23299 * Control.cs: When double-buffering is enabled, we need to reset
23300 our graphics context between paint calls. Otherwise, any
23301 transformations and other alterations on the context will
23302 become cumulative (#77734)
23304 2006-05-18 Mike Kestner <mkestner@novell.com>
23306 * ListView.cs: do focused item selection like MS on clicks.
23307 Rework focus handling for ItemControl so LostFocus invalidates as
23309 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23310 the ListView ItemControl has focus.
23312 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
23314 * XplatUIX11.cs: If client_window ends up being width or height zero
23315 due to border settings, move it off window inside whole_window (#78433)
23317 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23319 * Mime.cs: Shrink the mime file cache correctly.
23321 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23323 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23325 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23327 * XplatUIX11.cs (AddExpose): More sanity checks
23329 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23332 - AddExpose: Don't add expose ranges outside the size of our
23334 - Cast opacity values to Int32 to avoid crashes with certain
23336 - Added disabled code paths that protect against illegal cross-
23337 thread painting (Developers.exe)
23339 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23341 * ProgressBar.cs: Invalidate the control when it's resized
23342 since block size is based on control size. (#78388)
23344 2006-05-16 Miguel de Icaza <miguel@novell.com>
23346 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23347 of setting the incoming argument to the "reset" value, we set the
23348 this.datamember to string.empty (before we were invalidating the
23353 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23355 * Form.cs: Only apply transparency settings after the form
23356 is created. (Fixes #77800)
23358 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23360 * ApplicationContext.cs: Grab the HandleDestroyed event so
23361 we know when to fire OnMainFormClosed
23363 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23365 * Application.cs: Introduced sub-class to allow tracking of
23366 threads and centralized triggering of the event mess for
23367 ThreadExit, AppExit, etc.. (#76156)
23369 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
23372 - Do not return a null icon index value for a mime subclass.
23373 Instead try the main mime type class too.
23374 - Seems that some newer distributions don't have a link to some
23375 gnome default icons anymore. So check the default gnome dir too.
23378 2006-05-16 Jackson Harper <jackson@ximian.com>
23380 * MdiClient.cs: Don't paint the parent background image if we have
23381 our own background image.
23383 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23386 - PerformLayout: Do not shrink space filled by DockStyle.Fill
23387 controls, all filled controls are supposed to overlap (#78080)
23388 - UpdateZOrder is supposed to update the control's z-order in the
23389 parent's z-order chain. Fixed to behave like that
23390 - BringToFront: Removed obsolete code
23391 - SendToBack: Simplyfied
23392 - SetChildIndex: Trigger layout calculations when Z-order changes
23393 since layout is done by z-order
23395 2006-05-16 Chris Toshok <toshok@ximian.com>
23397 [ fixes bug #78410 ]
23398 * DataGrid.cs (set_AlternatingBackColor): use
23399 grid_drawing.InvalidateCells instead of Refresh().
23400 (set_BackColor): call grid_drawing.InvalidateCells.
23401 (set_BackgroundColor): use Invalidate instead of Refresh.
23403 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23404 invalidate the cell area.
23406 2006-05-15 Chris Toshok <toshok@ximian.com>
23408 [ fixes bug #78011 ]
23409 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23410 on to DataGridPaintRow.
23411 (DataGridPaintRow): take a clip argument, and only draw the cells
23412 which intersect it. same with the not_usedarea.
23414 * Theme.cs (DataGridPaintRow) add @clip parameter.
23416 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23417 XplatUI.ScrollWindow.
23418 (ScrollToRow): same.
23420 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23421 with last column which was causing a gray swath to appear with the
23422 XplatUI.ScrollWindow code.
23424 2006-05-15 Chris Toshok <toshok@ximian.com>
23426 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23427 use XplatUI.ScrollWindow.
23428 (VerticalScrollEvent): use XplatUI.ScrollWindow.
23430 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23432 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23434 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23436 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23437 file since there are no equivalent X11 cursors
23439 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23441 * MonthCalendar.cs : DateTimePicker should reflect selected date
23442 on mouse*up*, not mouse*down*. Fixed originally reported part of
23445 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23447 * TabControl.cs : When argument index is equal or more than tab
23448 count, just ignore. Fixed bug #78395.
23450 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23452 * Control.cs: Dispose all child controls when control is diposed (#78394)
23454 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23456 * ColorDialog.cs: Finally it is possible to select the color with
23459 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23461 * PrintDialog.cs: Fix typo
23463 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23465 * PrintDialog.cs: PrintDialog is not resizable
23466 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23467 color. Made some ToolBar drawing methods protected virtual.
23469 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
23471 * PrintDialog.cs: Implementation of the PrintDialog
23473 2006-05-12 Chris Toshok <toshok@ximian.com>
23475 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23476 thumb, instead use MoveThumb. This has the side effect of making
23477 most of the other thumb moving machinery use MoveThumb as well.
23478 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23479 need to actually invalidate the rectangle where the new thumb will
23481 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23482 We force an Update() after, so it's not as fast as it could be,
23483 but at least there's zero flicker and no droppings.
23484 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23485 (UpdateThumbPos): add another argument (dirty), which says whether
23486 or not to calculate/add dirty regions which we later invalidate.
23487 For cases where we know we're going to use MoveThumb, we pass
23488 false for this. Otherwise, pass true.
23490 2006-05-12 Jackson Harper <jackson@ximian.com>
23492 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23495 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
23497 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23498 and GetClipRegion methods and UserClipWontExposeParent property.
23499 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23500 overriding UserClipWontExposeParent property, setting to false, since
23501 Win32 handles the required expose messages to draw our clipped parent
23503 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23504 PaintEventStart to set the user clip region if set.
23506 - Now internally tracking the Region for the control since we need to
23507 store it if the handle is not yet created and only set it when it
23508 becomes created. Before setting the region forced handle creation
23509 - Added code to draw the parents underneath a user-clipped region
23510 * Hwnd.cs: Added UserClip property
23512 2006-05-12 Chris Toshok <toshok@ximian.com>
23514 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23515 (set_Maximum): same.
23516 (set_Minimum): same.
23517 (set_SmallChange): same.
23518 (OnMouseUpSB): remove the call to refresh when releasing the
23519 thumb. We shouldn't need it.
23521 2006-05-12 Miguel de Icaza <miguel@novell.com>
23523 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23524 AutoSize set to None, we do not need to relayout everything, we
23525 just need to invalidate the current region.
23527 (Draw): Do not draw the entire ClientArea, just redraw the
23528 clip area being passed.
23530 * MdiClient.cs: Make MdiClient constructor with the Form argument
23533 2006-05-12 Jackson Harper <jackson@ximian.com>
23535 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23536 parents background image, but strangely not their own.
23537 - (DrawStatusBarPanel): Take into account horizontal alignment
23538 when drawing the strings and icons.
23540 2006-05-12 Mike Kestner <mkestner@novell.com>
23542 * ListBox.cs: avoid invalidations for focus when the collection is
23545 2006-05-12 Chris Toshok <toshok@ximian.com>
23547 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
23548 invalidate the entire thumb area. Call InvalidateDirty which
23549 limits the redraw to the thumb itself and surrounding pixels.
23551 * XplatUIX11.cs (ScrollWindow): optimize copying.
23553 2006-05-12 Chris Toshok <toshok@ximian.com>
23555 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
23556 Figure out the positioning/layout in a single pass instead of
23557 multiple recursive invocations. Speeds up the initial display of
23558 the data grid. Also, make many things private that were
23559 originally public but unused outside this class.
23561 2006-05-11 Jackson Harper <jackson@ximian.com>
23563 * MdiClient.cs: Improved layout code.
23565 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
23567 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
23568 not SelectedObject.
23570 2006-05-11 Chris Toshok <toshok@ximian.com>
23572 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
23573 union of that will always be {0,0,width,height}.
23575 2006-05-11 Jackson Harper <jackson@ximian.com>
23577 * Form.cs: Match MS's DefaultSize for forms (they must have
23578 changed the size in sp2).
23580 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23582 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
23584 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
23586 * TextControl.cs : Fixed bug #78109. This incorrect position
23587 comparison caused crash on automatic line split.
23588 * TextBoxBase.cs : reduce duplicate code.
23590 2006-05-10 Jackson Harper <jackson@ximian.com>
23592 * MdiClient.cs: Active form is only sent to the back when using
23593 the Next form functionality, when a form is clicked the current
23594 active shouldn't be sent to the back.
23595 - Layout the mdi windows when the container is first made visible.
23596 * Form.cs: Give the MdiClient a ref to the containing form when we
23599 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23601 * LinkLabel.cs : link_font could be uninitialized, so populate one
23602 before actual use. Fixed bug #78340.
23604 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
23606 * XplatUIX11.cs : clipboard format native value is IntPtr.
23609 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23612 - Instead of showing context menus directly we send WM_CONTEXTMENU,
23613 which is passed up the parent chain by DefWndProc
23614 - We now handle WM_CONTEXTMENU to display any menu, or pass it
23615 to DefWndProc (#77956)
23616 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
23618 2006-05-10 Jackson Harper <jackson@ximian.com>
23620 * MdiClient.cs: We need to remove the controls from the mdi
23621 collection, when we close the window.
23622 * MdiWindowManager.cs: Special handling of closing mdi windows.
23623 * InternalWindowManager.cs: Make the close method virtual so the
23624 mdi window manager can handle it specially.
23626 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
23629 - Recalculate grid when the data source has changed
23630 - Matches styles provided by user from all data sources types
23631 * DataGridTableStyle.cs: For columns that provided by the user set the
23632 with the preferred value is there was unassigned.
23633 * CurrencyManager.cs: throw OnItemChanged event
23635 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23637 * PictureBox.cs: Don't animate until handle is created. Start animation
23638 when handle is created.
23640 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23642 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23644 * XEventQueue.cs: We don't need to provide the extra info
23646 2006-05-10 Jackson Harper <jackson@ximian.com>
23648 * MdiClient.cs: If the mdi clients parent form has a background
23649 image set, we draw that background image for the mdi area's
23652 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
23654 * TextBoxBase.cs: Set IBeam cursor (#78347)
23656 2006-05-10 Mike Kestner <mkestner@novell.com>
23658 * ToolBar.cs: fix some text padding issues with ButtonSize
23659 calculation. Update the default size to match MS documentation.
23660 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23661 button size. Fixes #78296.
23663 2006-05-10 Mike Kestner <mkestner@novell.com>
23665 * ListBox.cs: use is_visible for scrollbar positioning in case the
23666 control isn't on screen yet. Fix off by one with Right vs Width
23667 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23669 2006-05-10 Jackson Harper <jackson@ximian.com>
23671 * X11Dnd.cs: Drop to a control with another control on top of it.
23672 * ToolBar.cs: Work on a copy of the buttons list, so that it can
23673 be modified in click handlers. TODO: Look for similar problems in
23676 2006-05-09 Jackson Harper <jackson@ximian.com>
23678 * Form.cs: Window managers need the old window state when setting
23680 * InternalWindowManager.cs: Allow the base mdi window manager to
23681 handle more of the MDI only stuff (like maximize buttons).
23682 * MdiWindowManager.cs: Fix some snafus in changing the window
23683 state. Add all the menu functionality, for both popup and
23685 * MdiClient.cs: When a new form is selected the currently
23686 activated form is sent to the back, this matches MS.
23687 - Implement a new method to activate the next mdi child window.
23689 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23692 - Added new InternalCapture method to allow controls to prevent
23693 the capture behaviour on the click handlers
23694 - Switched to use InternalCapture
23696 - Using InternalCapture to prevent mouse captures from being released
23697 on mouse button release (Fixes #78100)
23698 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23699 returns Form borders if a caption is present. (Fixes #78310)
23701 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
23703 * TreeNode.cs: Changed serialization .ctor to not require every field
23704 to be present. (#78265)
23705 * OwnerDrawPropertyBag.cs: Added serialization .ctor
23707 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
23709 * MimeIcon.cs: for is faster than foreach for strings.
23711 2006-05-05 Mike Kestner <mkestner@novell.com>
23713 * CheckedListBox.cs: update check handling code to not use selected.
23714 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
23715 behavior for visual feedback, motion response, shift/ctrl handling,
23716 and properly deal with all 4 selection modes. Updates to bounds
23717 handling logic. Add scroll wheel support. [Fixes #77842]
23719 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23722 - Moved adding of Implicit controls into .ctor. That way, subsequent
23723 creation of the controls will not cause them to think they are
23724 toplevel windows (fixes #78200 header problem)
23725 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
23726 - Switched visibility setting of header control to use internal field
23727 to avoid triggering handle creation
23728 - Now checking if handle is created before causing a refresh when items
23729 are added (This makes us now match handle creation time with MS)
23730 * Splitter.cs: Removed loading of private splitter cursor, switched to
23731 Cursors version now that that is loading the right ones
23732 * Cursors.cs: Load proper splitter cursors from resources
23733 * Cursor.cs: Added second method of loading resource cursors for the
23734 VS.Net users amongst us
23736 2006-05-05 Mike Kestner <mkestner@novell.com>
23738 * ListView.cs: give header_control a minimum size based on the
23741 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
23743 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
23744 window seems to do that with metacity, so set that type. (#78120)
23746 2006-05-05 Mike Kestner <mkestner@novell.com>
23748 * ListViewItem.cs: fix Details mode checkbox layout bug.
23749 * ThemeWin32Classic.cs: draw a ListView column header for unused space
23750 at the end of the header, if it exists. [Fixes for #78200]
23752 2006-05-04 Jackson Harper <jackson@ximian.com>
23754 * MdiClient.cs: Add a helper property to get the container form.
23755 * MdiWindowManager.cs: We have to make sure to use the menu origin
23756 when drawing the icons and buttons, this fixes maximized window
23757 icons/buttons on win32.
23758 * InternalWindowManager.cs: Reset the restore captions when a
23759 window goes from Maximized to Minimized and vice versa. Move the
23760 DrawMaximizedButtons into the MdiWindowManager source, tool
23761 windows can't be maximized. NOTE: This could use a little
23762 refactoring if time ever permits.
23764 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23766 * TextBox.cs: Add MWFCategoryAttributes
23767 * TextBoxBase.cs: Add MWFCategoryAttributes
23768 * Form.cs: Add MWFCategoryAttributes
23770 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
23772 * Control.cs: Add MWFCategoryAttributes
23773 * ScrollableControl.cs: Add MWFCategoryAttributes
23775 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
23777 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
23778 Divider is true. Fix a little glitch in PropertyToolBar
23781 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
23784 - Dispose: Call base.Dispose, this causes the disposed event
23785 to be fired (and probably other, more important stuff)
23786 - SetVisibleCore: Set is_visible to true after creating the
23787 window so that the window still gets created invisible (if
23788 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
23789 to generate a WM_ACTIVE message
23790 * Form.cs: Call Dispose when we want to destroy the window, instead of
23791 just destroying the handle (Dispose will do that for us)
23793 - RootWindow also needs a queue, so we can properly process the
23794 property change events from RootWindow (like Activate)
23795 - Generatic synthetic WM_ACTIVE message when the active window is
23798 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23800 * LinkLabel.cs: Trigger a recalc of our label dimensions when
23803 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23805 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
23806 for determining width and height (image might not be assigned if
23807 we're drawing an imagelist)
23809 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
23811 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
23812 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
23814 * Theme.cs: No longer returns hardcoded menu height, instead calls
23816 * Form.cs (OnLoad): Scaling happens before triggering Load events
23819 2006-05-01 Mike Kestner <mkestner@novell.com>
23821 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
23823 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23825 * TextBoxBase.cs: Removed Fixme
23826 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
23828 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
23831 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
23832 the rectangle relative to the parent, considering borders. We
23833 don't really want that.
23834 - ScrollWindow: Fixed warning to be more understandable
23835 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
23836 scrollbars and scroll only the visible area
23837 * RichTextBox.cs: Removed debug output
23839 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23841 * NumericUpDown.cs (Text): Just use base
23842 * UpDownBase.cs: Ensure txtView is created before using it
23844 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23846 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
23847 casting to IntPtr to avoid 64bit overflow errors
23849 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23852 - AllowDrop: Don't force handle creation.
23853 - CreateHandle: Added call to tell driver if we're allowed to drop
23855 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23857 * FileDialog.cs: Remember the last directory not only for the
23858 current instance but also for new FileDialog instances.
23860 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23862 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
23863 broke sending async messages
23865 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
23868 - ScrollWindow: Fixed method. We finally generate expose events again
23869 for scrolled areas. This was causing 'garbage' when scrolling
23870 textbox and other controls that used ScrollWindow
23871 - Switched from using the regular queue for paint events to the MS
23872 model of 'generating' paint events when the queue is empty.
23873 We use the new XQueueEvent.Paint subclass to store which windows
23875 - AddExpose now takes the x/y/width/height of the exposed area
23876 and inserts the window into the paint queue if not already there
23877 - InvalidateWholeWindow: Switched to use new AddExpose method
23878 - UpdateMessageQueue: Added which queue to monitor for paint events
23879 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
23880 the unlikely case nothing above handles it. We reset the expose
23881 pending states to get them off the queue.
23882 - GetMessage: Now pulls a paint event if no other events are in the
23884 - Invalidate: Switched to new AddExpose method
23885 - PeekMessage: Updated to understand pending paint events
23886 - UpdateWindow: Fixed logic bug. We were only updating if the window
23887 didn't need updating. Also switched to sending WM_PAINT directly,
23889 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
23890 and random access Remove(). The random access is needed to handle
23891 UpdateWindow() where a WM_PAINT is sent directly without accessing
23893 * ScrollBar.cs: Added Update() calls to cause immediate updates to
23894 allow for better feedback when scrolling. Scrollbars are small and
23895 the immediate update should make it 'feel' more responsive without
23896 slowing things down. ScrollBar still needs it's invaliate logic
23897 updated to not always invalidate the whole bar on certain changes.
23899 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23902 (BackColor): if the control does not support a transparent background,
23903 return the default backcolor when the parent backcolor is transparent.
23905 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
23907 * Application.cs: Updated to new StartLoop/GetMessage API
23908 * RichTextBox.cs: Provide some output on RTF parsing errors
23909 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
23910 new queue_id argument to GetMessage and PeekMessage to allow faster
23911 handling of per-thread queues in drivers.
23912 * Hwnd.cs: Added Queue tracking and property
23913 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
23914 * XEventQueue.cs: Added thread trackingA
23915 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
23917 - Implemented new per-thread queue
23918 - GetMessage: Fixed return/break behaviour on several cases. We were
23919 returning stale messages in some cases, instead of just processing
23922 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23924 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
23926 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
23928 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
23929 fixed off-by-one comparisons between Width/Height and Right/Bottom.
23931 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
23933 * PropertyGridView.cs: Fix drop down width.
23935 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23937 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
23938 a mess in DrawToolBar, so I removed one of them.
23940 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
23942 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
23943 needed (clip). Otherwise we get artifacts.
23945 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23947 * FixedSizeTextBox.cs: Added constructor to allow specifying which
23949 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
23950 and switched FixedSizeTextBox to only be fixed vertical (#78116)
23951 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
23952 if it matches the scale base font (avoids unneeded scaling)
23954 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23956 * X11DesktopColors.cs: One gtk_init_check should be enough
23958 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23960 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
23963 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
23966 - Generate OnTextChanged for Backspace even if we're only deleting
23967 the current selection
23968 - When setting the Text property, only select all text if the
23969 control does not have focus when it is being set. Otherwise
23970 just place the cursor at the beginning of the control
23972 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23974 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23975 Added a little helper to draw PropertyGrid ToolBar with a different
23976 border and a different BackColor.
23977 * PropertyGrid.cs: Some background parts didn't get painted with the
23978 correct background color. Added a class that helps us to draw the
23979 correct border for PropertyGridView and a class that helps us to
23980 draw ToolBars with a different backcolor
23981 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23983 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
23985 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23986 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23988 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23990 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23991 into the palette entries. Also, since we're working on a copy
23992 we needed to copy the palette back onto the bitmap.
23993 * Cursor.cs: Same fix as XplatUIWin32.cs.
23995 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23997 * ImageListStreamer.cs: Need to read the var (or we're off)
23999 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24001 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
24002 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24003 TextBoxBase.cs: Unused var fixes
24004 * AxHost.cs: Small 2.0 fix
24005 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
24006 as it seems that is what at least Metacity expects. This will make
24007 icons show up on 64bit platforms. We still have some 64bit size
24008 issues, though, since the startup app window size still won't match.
24010 2006-04-25 Mike Kestner <mkestner@novell.com>
24012 * *.cs: cleanup newly reported exception var unused warnings.
24014 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24016 * ThemeWin32Classic.cs: Button image alignment now matches exactly
24019 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24021 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24022 image. The image position is always the same, no matter if the
24023 button is pressed or not.
24025 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24027 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24028 selection and set the correct filename for SaveFileDialog.
24029 Patch by Emery Conrad.
24031 2006-04-24 Mike Kestner <mkestner@novell.com>
24033 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24034 check for item.X outside the ClientRect instead of item.Y. Fixes
24037 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24039 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24040 trust that value blindly and do some sanity check. Fixes bug #77814.
24042 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24044 * ImageListStreamer.cs: save the mask as a 1bpp image.
24046 2006-04-21 Mike Kestner <mkestner@novell.com>
24048 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24049 pass Checked and Indeterminate to the Theme Engine. Improve
24050 encapsulation with ListBox.
24051 * ListBox.cs: Keep a StringFormat instead of calculating it every item
24052 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24053 nested types. Move all CheckState functionality to CheckedListBox.
24054 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
24055 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
24056 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24057 single base list. Fix scrollbar sizing and placement to mirror MS.
24058 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24060 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24061 for CheckedListBox by using new DrawItemState info. Center the
24062 checkboxes on the items. Use new StringFormat property.
24064 2006-04-18 Jackson Harper <jackson@ximian.com>
24066 * Form.cs: MdiChildren don't do default locations the same way as
24067 regular forms. This prevents a crash when trying to position the
24070 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
24072 * PropertyGridTextBox.cs: Formatting, copyright
24073 * PropertiesTab.cs: Formatting
24074 * PropertyGrid.cs: Formatting
24075 * PropertyGridView.cs: Formatting, fix drop down, enabled double
24076 click toggling of values
24078 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
24080 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24081 * Control.cs (.ctor): verify_thread_handle is static, don't reset
24082 every time a control is created
24083 * Application.cs: Removed obsolete EnableRTLMirroring method
24085 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
24087 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24088 SelectedIndex to -1. Fixes bug #78121.
24090 2006-04-17 Jackson Harper <jackson@ximian.com>
24092 * Binding.cs: Handle null values for Current and BindingContext.
24093 This occurs when binding is a little delayed.
24094 * CurrencyManager.cs: return null for Current when there are no
24096 - Hookup to the listchanged event on the DataView and update
24097 bindings when the list is changed. This fixes late binding of
24100 2006-04-17 Jackson Harper <jackson@ximian.com>
24103 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24106 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
24108 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24110 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24111 with the correct ButtonState
24113 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
24115 * XplatUIX11.cs: Improved distinguishing between window types to
24116 tell the WM a type closer to what the app wants (Fixes #78107)
24118 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24120 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24123 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24125 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24126 drawing code to reflect the size grip changes
24128 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24130 * ImageListStreamer.cs: fix handling of the mask that follows the main
24131 bitmap when deserializing and serialize it properly. The generated mask
24132 should better be a 1bpp image, but I'll do that later.
24134 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24136 * FileDialog.cs: Show something in the DirComboBox on *nix if the
24137 path doesn't fit into some of our Current.Places
24139 2006-04-13 Jackson Harper <jackson@ximian.com>
24141 * ComboBox.cs: Use borders instead of drawing our own decorations,
24142 try to obey correct rules for heights.
24145 * ThemeClearLooks.cs:
24146 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24147 this is now handled by borders.
24148 - Remove unused DrawListBoxDecorationSize method.
24150 2006-04-13 Mike Kestner <mkestner@novell.com>
24152 * MenuAPI.cs: null guarding for the disbled click check fixes crash
24155 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24157 * ThemeWin32Classic.cs:
24158 - Fixed CPDrawStringDisabled
24159 - Corrected drawing of disabled menu items
24160 - Fixed drawing of disabled radio buttons (bug #78095)
24161 - Draw check in a disabled CheckBox with color ControlDark
24163 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24165 * Form.cs: Use the provided width when calculating the menu size;
24166 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24167 and ClientSize.Width won't be updated yet
24168 * Application.cs: Use Visible instead of Show() to make form visible,
24169 this way we create the handle later and menusize is considered
24171 2006-04-12 Mike Kestner <mkestner@novell.com>
24173 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24176 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24178 * TextBox.cs: Implemented context menu
24180 2006-04-12 Mike Kestner <mkestner@novell.com>
24182 * ListView.cs: implement box selection. fixes #77838.
24183 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24185 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24187 * XplatUIX11.cs: Added setting of window type when transient window
24188 is created (metacity would move it otherwise)
24189 * X11Structs.cs: Added WINDOW_TYPE atoms
24190 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24191 background (the control is Opaque but still wants transparent
24194 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24196 * Control.cs: Added OnPaintBackgroundInternal to allow controls
24197 that set Opaque but don't mean it (like all ButtonBase-derived
24198 controls) to still draw their background
24199 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24202 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24204 * Control.cs (PaintControlBackground): Set the graphics object
24205 on our PaintEvent to null to prevent it from being disposed
24206 when the PaintEvent gets disposed
24208 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
24210 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24211 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24213 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24216 - Added transparency check to BackColor property. Transparent
24217 backgrounds are only allowed if the control styles permit it
24218 - Added recursive painting of parent control background and
24219 foreground if a control with a transparent backcolor is drawn
24220 (Thanks to Tim Ringenback for providing his 'hack' as a base
24221 for this patch) Fixes #77985 and #78026.
24222 - Added Opaque style check before calling OnPaintBackground, no
24223 need to draw the background if the control is opaque
24224 - Removed ControlAccessibleObject owner variable (inherited from
24225 base, no need to define again)
24226 - Added some documentation links explaining the drawing events
24229 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24231 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24232 that the affected control is the located at the left border of our
24233 parent (Fixes #77936)
24235 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24237 * TextBoxBase.cs: When rendering disabled or readonly controls,
24238 draw the background with 'Control' instead of 'Window' color as
24239 long as the user hasn't specifically set a color
24241 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24243 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24244 since that won't be updated if the user types text (only if it's
24245 programatically set)
24247 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24249 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24250 layout changes do to app-triggered resizes will have the proper
24251 display rectangle for layout
24253 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
24255 * ThemeWin32Classic.cs:
24256 - Make use of the SystemBrushes and SystemPens wherever possible
24257 - Corrected some highlight colors
24258 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24260 * Theme.cs: Added Empty field to CPColor struct
24262 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24264 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24265 is displayed when calculating the display rectangle. Thanks to Mike
24266 for teaching me the err of my ways.
24268 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
24270 * ScrollableControl.cs:
24271 - Rewrote DisplayRectangle code, now returning the proper x/y coords
24272 (instead of 0,0) and we now return the real width/height instead of
24273 just the clientrectangle, adjusted for padding. The rectangle is
24274 now cached and created by the new CalculateDisplayRectangle method.
24275 - Created new CalculateDisplayRectange method, which basically does
24276 what get_DisplayRectangle() did originally, but now using the
24277 right edge instead of DisplayRectangle to determine the size of
24279 - get_Canvas(): Fixed it to properly calculate canvas for
24280 right/bottom controls which seem to be placed to the right/bottom
24281 of any controls that have a fixed location
24282 - Removed TODO that's taken care of
24283 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24284 and SetDisplayRectLocation according to new MSDN2 docs
24285 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24286 event when that is called, this is added for compatibility
24287 - ScrollControlIntoView(): Implemented.
24288 - Switched scrollbars to be implicit, they shouldn't be selectable
24289 * ContainerControl: Now that ScrollControlIntoView is implemented, we
24290 call it when the active control is set/changed
24291 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24292 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24293 implicit_control variable (used for native Win32 message generation)
24294 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
24295 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24296 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24297 * XplatUIStructs.cs: Added ScrollBarCommands enum
24299 2006-04-10 Jackson Harper <jackson@ximian.com>
24302 * CheckedListBox.cs:
24309 * PrintPreviewControl.cs:
24315 * UpDownBase.cs: Fixup base event overrides.
24317 2006-04-06 Mike Kestner <mkestner@novell.com>
24319 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24320 all user-initiated value changes to min <= value <= max-thumbsz+1.
24321 (set_Value): check for vert/horiz when calculating new thumb position.
24322 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24324 (OnMouseMoveSB): refactor the thumb dragging code and refine
24325 invalidation logic to reduce flicker.
24326 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24327 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24328 (UpdateThumbPosition): small code readability cleanup
24330 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
24332 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24335 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24337 * ThemeNice.cs: Use a better graphics effect when a button is pressed
24339 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24341 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24342 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24343 This dramatically reduces the number of Pen.Dispose calls.
24344 Where possible call ResPool methods only once instead of calling it
24345 over and over again (for example for the same color).
24347 2006-04-06 Mike Kestner <mkestner@novell.com>
24349 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24350 Also remove an unused private field on the collection. Fixes #77972.
24352 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24354 * ThemeNice.cs: Added ToolBar drawing code
24356 2006-04-06 Mike Kestner <mkestner@novell.com>
24358 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24359 I'm assuming that means we need to look up the toplevel for the
24360 provided control. Fixes the crash trace in #77911 but exposes another
24361 crash in some strange reflection usage in NDocGui.
24363 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24365 * ThemeNice.cs: Gave it a little silver touch and added Images
24367 * FontDialog.cs: FontDialog is not resizable
24368 * FileDialg.cs: Added SizeGripStyle.Show
24370 2006-04-05 Jackson Harper <jackson@ximian.com>
24372 * KeyboardLayouts.cs: Remove warning.
24374 2006-04-05 Jackson Harper <jackson@ximian.com>
24376 * Control.cs: Enable OnPaintInternal so we can use it for drawing
24377 all of our controls instead of Paint +=.
24392 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24393 use OnPaintInternal. Remove Width/Height and Visible checks in
24394 paint handler, this is done at a higher level now.
24395 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24396 * PaintEventArgs.cs: Add a handled flag so controls that don't
24397 want anymore painting after OnPaintInternal can make sure OnPaint
24400 2006-04-05 Mike Kestner <mkestner@novell.com>
24402 * Form.cs: fix the menu WndProc hacks to respect the native enabled
24403 state of the form, so that we don't process events when Modal dialogs
24404 are up. Fixes #77922.
24406 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
24408 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24411 2006-04-05 Mike Kestner <mkestner@novell.com>
24413 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24415 2006-04-05 Mike Kestner <mkestner@novell.com>
24417 * ListView.cs (HeaderMouseMove): null guarding for the over column
24418 when setting up the drag_to_index. Fixes #78015.
24420 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24422 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24423 in the taskbar. Transient windows seem to accomplish that.
24425 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24428 - Re-enabled CreateParams.X/Y code for FormStartPosition
24429 - Added code for manual placement when creating the Control
24430 - Incomplete patch to treat MDI forms differently when
24431 setting the ClientSizeCore. (Still need to figure out handling
24434 - When we're explicitly setting the X/Y position of a non-Child
24435 window, let the WM know. Metacity really wants this.
24437 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24439 * ThemeNice.cs: Added CPDrawButton
24441 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24443 * ThemeNice.cs: Changed the color for focused buttons and activated
24444 the arrows for small scroll buttons.
24446 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24448 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24449 anymore. Changed some method modifiers to protected (virtual)
24450 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24452 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24453 Updated drawing of menus, buttons and progressbars; added
24456 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24458 * ImageListStreamer.cs: implemented serialization/deserialization
24461 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
24463 * ThemeWin32Classic.cs:
24464 - Removed all the DrawFrameControl stuff; CPDrawButton,
24465 CPDrawCheckBox and CPDrawRadioButton are now handled directly
24467 - Updated and corrected the drawing code of CPDrawButton,
24468 CPDrawCheckBox and CPDrawRadioButton to better match ms
24469 - Updated theme checkbox and radiobutton code to use the CP*
24472 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24474 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24477 2006-03-31 Jackson Harper <jackson@ximian.com>
24479 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24481 * UpDownBase.cs: Don't CreateGraphics manually, use a
24482 Refresh. Ideally we would invalidate the correct areas here.
24484 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24487 - We now track the mapping state of windows. If a window (or
24488 one of it's parents) is not mapped we no longer permit
24489 WM_PAINT messages to be generated since we'd otherwise get
24490 lots of BadMatch X errors. Jackson did all the work figuring
24492 - Destroying the caret if the window it's contained in is
24493 destroyed. Can't use regular DestroyCaret method since it
24494 might fall into a drawing function (trying to remove the
24495 caret) and with that generate new BadMatch errors. Again,
24496 Jackson tracked this down.
24497 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24498 make sure we send the messages to all windows. (The old code
24499 would send the WM_DESTROY to the window, and then all child
24500 windows would be 'gone' because the WM_DESTROY handle lookup
24501 would no longer find the destroyed window)
24502 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24503 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24505 2006-03-31 Jackson Harper <jackson@ximian.com>
24507 * ScrollableControl.cs: Dont recalc if we are not visible.
24509 2006-03-31 Mike Kestner <mkestner@novell.com>
24511 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24512 the visibility branch.
24514 2006-03-31 Jackson Harper <jackson@ximian.com>
24516 * ScrollBar.cs: Cap values when incrementing/decrementing.
24518 2006-03-31 Mike Kestner <mkestner@novell.com>
24520 * MenuAPI.cs: setup menu.tracker for popup/context menus.
24521 * ToolTip.cs: guard against timer expirations with no active control.
24522 Not sure why it happened.
24524 2006-03-31 Mike Kestner <mkestner@novell.com>
24526 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24528 * ToolTip.cs: Position the tooltip based on where the cursor is at
24529 popup time, not at MouseEnter time. Add a Down state so that we don't
24530 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24531 positioning offset. Lookup DisplaySize at positioning time, since it
24532 can theoretically change during invocation.
24533 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24534 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24536 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24538 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
24539 Fixes behaviour when the Text property of the box is String.Empty
24541 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24543 * XplatUIX11.cs: Only send mouseleave for our client windows, not
24544 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
24547 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24549 * FileDialog.cs: Visual enhancement for the popup buttons in
24552 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
24554 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
24557 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
24559 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
24560 highlighted menu items to match ms
24562 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
24564 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
24566 2006-03-30 Mike Kestner <mkestner@novell.com>
24568 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
24569 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
24570 go active to account for HotLight to Selected transition.
24571 * MenuItem.cs: add internal Selected prop. Fill out the Status
24572 property by calculating it from item info. Add HotLight,
24573 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
24575 2006-03-30 Mike Kestner <mkestner@novell.com>
24577 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
24579 2006-03-29 Jackson Harper <jackson@ximian.com>
24581 * Form.cs: Implement TODO.
24583 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24585 * PrintPreviewDialog.cs: Implemented missing methods and events; still
24586 missing proper dialog setup in the constructor
24588 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
24590 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
24592 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
24593 - Fixed ResetBindings and removed TODO
24594 - Added check for cross-thread calls to get_Handle()
24595 - Added Marshaller attribute for set_Font to satisfy class status
24596 * FontDialog.cs: Removed TODOs that seemed implemented
24597 * UpDownBase.cs: Removed unneeded TODO and Fixme
24598 * MessageBox.cs: Implemented support for Default button and removed TODO
24599 * FileDialog.cs: Removed obsolete TODO
24600 * DomainUpDown.cs: Removed obsolete TODO
24601 * ButtonBase.cs: Removed obsolete TODO
24602 * XplatUIWin32.cs: Removed obsolete TODO
24604 - Removed obsolete TODO
24605 - Calling CheckAcceptButton when the acceptbutton is changed to allow
24606 internal status updates
24607 - Making sure the active control is selected when the control is created
24608 * CurrencyManager.cs: Removed obsolete TODO
24610 2006-03-29 Mike Kestner <mkestner@novell.com>
24612 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
24613 of PrintPreviewDialog and RichTextBox.
24615 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24617 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
24618 DarkDark, Light and LightLight colors for a specific color
24619 * ThemeWin32Classic.cs:
24620 - Use Button drawing code to draw RadioButtons and CheckBoxes with
24621 Appearance = Button
24622 - Make use of the new ResPool helper CPColor
24623 - Draw ProgressBar and StatusBar with correct 3D borders
24625 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
24627 * ColorDialog.cs: Return selected color. Fixes bug #77940.
24629 2006-03-28 Mike Kestner <mkestner@novell.com>
24631 * ListView.cs: fix Icon layout to plan for scrollbar widths when
24632 calculating col/row counts.
24634 2006-03-28 Mike Kestner <mkestner@novell.com>
24640 switch to explicit interface method implementation for some methods
24641 corcompare identifies as inconsistent with MS.
24643 2006-03-28 Mike Kestner <mkestner@novell.com>
24647 add a few missing methods from the class status output.
24649 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
24651 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24654 2006-03-28 Mike Kestner <mkestner@novell.com>
24656 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24658 2006-03-27 Mike Kestner <mkestner@novell.com>
24660 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24661 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24663 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
24665 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24667 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24669 * ThemeWin32Classic.cs:
24670 - GroupBox: Inserted a little gap between the text and the lines
24672 - Made the code in CPDrawBorder3D more readable
24673 - Corrected the drawing location of the up and down arrows in
24676 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24678 * ControlPaint.cs: Corrected line widths in DrawBorder for
24679 ButtonBorderStyle Inset and Outset
24681 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24683 * ThemeWin32Classic.cs:
24684 - Rewrote the totally broken CPDrawBorder3D method. That was
24685 one of the main problems for the terrific ThemeWin32Classic
24687 - Updated and corrected Button drawing
24688 - Correct the dimensions of the SizeGrip to match ms ones
24689 - Removed a small drawing glitch in DrawComboBoxEditDecorations
24690 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24691 Border3DStyle.Sunken to match ms.
24693 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
24695 * ThemeWin32Classic.cs: First small part of the "de-uglify
24696 ThemeWin32Classic" effort, SizeGrip
24698 2006-03-24 Jackson Harper <jackson@ximian.com>
24700 * XplatUIX11.cs: Give a max idle time of one second, this matches
24701 MS and forces an Idle event every second when there are no other
24702 events in the queue.
24704 2006-03-24 Mike Kestner <mkestner@novell.com>
24706 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
24707 * ListView.Item.cs: fix layout issues with null image lists and images
24708 smaller than checkbox size.
24709 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
24710 mode like MS does. It's weird, but consistent. ;-)
24713 2006-03-24 Mike Kestner <mkestner@novell.com>
24715 * ListView.cs: Scroll wheel support for the item control. Fixes
24718 2006-03-23 Jackson Harper <jackson@ximian.com>
24720 * ScrollableControl.cs: Special case negative sized areas, not
24722 * MonthCalendar.cs: Save the rect of the clicked date so we can
24723 use it for invalidation.
24724 - Try to cut down on the number of invalidates
24725 - Invalidate the rect the mouse is over and was over when moving
24726 the mouse, so we get the focus box following the cursor.
24728 2006-03-23 Mike Kestner <mkestner@novell.com>
24730 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
24731 focus rectangle drawing. Fixes #77835.
24733 2006-03-23 Mike Kestner <mkestner@novell.com>
24735 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
24736 the if and else if and reverting back to the original == check on the
24739 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24741 * FontDialog.cs: Update the example panel if the selected index of
24742 the fontListBox changes.
24744 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
24746 * FileDialog.cs: Make FileDialog remember which directory it was in
24747 last in the same execution.
24749 2006-03-22 Mike Kestner <mkestner@novell.com>
24751 * FileDialog.cs: make the DropDownMenu on the toolbar display
24752 RadioChecks since they are mutually exclusive and that's what MS does.
24754 2006-03-22 Mike Kestner <mkestner@novell.com>
24756 * Theme.cs: add Color param to CPDrawMenuGlyph.
24757 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
24758 checks and radio marks and arrows are visible on highlighted items.
24759 * ControlPaint.cs: update to use new Theme signature.
24761 2006-03-22 Mike Kestner <mkestner@novell.com>
24763 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
24764 is active. Fixes #77870.
24766 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24768 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
24769 to be focused/selected after startup
24771 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
24774 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
24775 CustomColors and ShowHelp properties
24776 - Some internal rewrites to get better results when using the
24779 2006-03-22 Mike Kestner <mkestner@novell.com>
24781 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
24782 HoverSelection. Fixes #77836.
24784 2006-03-22 Mike Kestner <mkestner@novell.com>
24786 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
24787 ToggleButtons. (De)Sensitize the Back button around a stack count of
24788 1, not 0. Update ButtonSize based on a pixel count of the win32
24789 control. Adjust the toolbar size/location for new button size.
24791 2006-03-22 Jackson Harper <jackson@ximian.com>
24793 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
24795 * ScrollBar.cs: When doing increments and decrements we need to
24796 set the Value property so that ValueChanged gets raised. A
24797 possible optimization here would be to make an internal SetValue
24798 that doesn't invalidate immediately.
24799 * ToolTip.cs: Tooltips get added to their container (when
24800 supplied) so they get disposed when the container is disposed.
24801 - Don't create tooltips for String.Empty. This prevents all these
24802 little 2-3 pixel windows from showing up when running nunit-gui
24803 and driving me mad.
24804 * Form.cs: Don't set topmost when setting the owner if the handles
24805 haven't been created yet. The topmost set will happen when the
24806 handles are created.
24808 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
24811 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
24812 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
24813 visible (to allow them to recalculate their sizes)
24815 2006-03-21 Mike Kestner <mkestner@novell.com>
24817 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
24818 methods. Removed a ton of redundant code. Still not really happy with
24819 the border rendering, but I think that's mainly because of the
24820 ControlDarkDark being black instead of a dark grey. Depending on how
24821 close we want to be, we might want to revisit those color choices.
24822 Among the new features added during the refactor were DropDownArrow
24823 pressed rendering, Disabled image rendering. Proper flat appearance
24824 boundary rendering. Removed the Divider and Wrapping dividers since I
24825 can't figure out any combination of themes and conditions to make the
24826 MS control draw a horizontal line on a toolbar despite what the
24827 Divider property docs indicate.
24828 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
24829 conditions and incorrect layout. Updated to coding standard.
24830 * ToolBarButton.cs: refactored layout and positioning code from
24831 ToolBar to here. Invalidate wherever possible instead of forcing
24832 redraws of the whole toolbar.
24833 (Known remaining issues: explicit ButtonSize smaller than provided
24836 2006-03-21 Mike Kestner <mkestner@novell.com>
24838 * ContextMenu.cs (Show): use the position parameter instead of just
24839 showing at the MousePosition.
24841 2006-03-21 Jackson Harper <jackson@ximian.com>
24843 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
24844 control handle this.
24845 * TreeNodeCollection.cs: If we are clearing the root node we need
24846 to reset top_node so calcs can still happen.
24847 * ThemeWin32Classic.cs: This is a Flags so we need to check
24850 2006-03-21 Jackson Harper <jackson@ximian.com>
24852 * DataGrid.cs: Create columns when the binding context has been
24854 * X11Structs.cs: Keysyms are uints.
24855 - Add size to fix build.
24857 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
24859 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24861 - Added ResetMouseHover method to allow controls to retrigger
24862 hovering if they need it more than once
24863 - Implemented MouseHoverTime and MouseHoverSize properties
24864 * Timer.cs: Start() must reset the interval
24865 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
24868 2006-03-21 Jackson Harper <jackson@ximian.com>
24870 * X11Keyboard.cs: improved layout detection. Move the nonchar
24871 tables into this file.
24872 * KeyboardLayouts.cs: Move the tables into resource files.
24874 2006-03-21 Mike Kestner <mkestner@novell.com>
24876 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
24878 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
24880 * Mime.cs: Various speed optimizations. Looking up mime types
24881 is now 2 times faster than before
24883 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24885 * CreateParams.cs: Added internal menu field
24887 - Switched call order for UpdateBounds; now we always call
24888 the one that also takes ClientSize, and we're calculating the
24889 client size via driver method in the others. The previous
24890 method of tracking client size by difference wasn't working
24891 for forms where even the starting client size wouldn't match
24892 the overall form size (due to borders) (Part of fix for #77729)
24893 - CreateParams(): Do not use parent.Handle unless the handle is
24894 already created. Causes havoc with Nexxia and throws off our
24895 creation of controls
24897 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
24898 - Switched handling of ConfigureNotify over to new PerformNCCalc
24899 method (consolidates code)
24900 - Changed RequestNCRecalc to use new PerformNCCalc method
24901 - Added calls to RequestNCRecalc when menus and borders are changed
24902 to allow app to set NC size. (Part of fix for #77729) This matches
24903 when MS send a WM_NCRECALC on Win32 windows.
24904 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
24905 (Part of fix for #77729). This matches what MS does, they also
24906 send that message when the form is made visible.
24907 - XException.GetMessage: Improved usability of X errors by including
24908 a translation of the window into Hwnd and Control class
24909 - Improved debug info for window creation, reparenting and destruction
24910 - Created helper method WindowIsMapped() [Currently not used]
24911 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
24913 - CreateParams: Now setting our menu on the new internal menu field
24914 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
24915 avoid calculating the same property twice
24917 - Improved usability of ToString() for debugging purposes
24918 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
24919 determine the height of the menu, instead of just the font. This
24920 required to also create a graphics context and to keep a bmp
24921 around (for performance reasons)
24923 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
24925 * MenuAPI.cs: Added OnMouseUp method
24927 - Now remembering the requested client size, avoids size errors
24928 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
24929 instead of base if the menu is active. This is required due to
24930 control now capturing and releasing on down/up and it would
24931 prematurely release our menu capture
24933 2006-03-17 Jackson Harper <jackson@ximian.com>
24935 * KeyboardLayouts.cs: Add the czech layouts.
24937 2006-03-16 Jackson Harper <jackson@ximian.com>
24939 * Control.cs: Use the viewport space when sizing not the controls
24940 client size, so things like ScrollableControl that effect the
24941 viewport size (when scrollbars are added) are computed correctly.
24942 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
24944 - Handle creating BindingManagers for null data sources.
24945 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
24946 source, otherwise when rows are added they are added to the 'fake'
24947 datasource and we will crash when trying to set the position in
24949 - Use Implicit scrollbars on the datagrid so they arent
24952 2006-03-16 Jackson Harper <jackson@ximian.com>
24955 * InternalWindowManager.cs:
24956 * MdiWindowManager.cs:
24957 * X11Keyboard.cs: I really want Mike to love me again (fix
24958 compiler warnings).
24960 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24963 - OnMouseDown: Switch to editing mode when clicking on the cell
24964 even if we're clicking on the cell that's currently
24966 - ProcessGridKey: Left/Right now wrap like MS.Net does
24967 - ProcessGridKey: Tab now knows to add a new row when tab is
24968 pressed in the cell of the last column of the
24970 - ProcessGridKey: Enter now adds another row if pressed in the last
24971 row and selectes the new row, same column cell
24972 - ProcessGridKey: Home/End navigate columns, not rows, like
24973 originally implemented
24974 - Broke ProcessKeyPreview code out into an extra Internal method
24975 so it can be called from the edit code
24976 * DataGridTextBox.cs (ProcessKeyMessage):
24977 - Switched to accept Tab keypresses
24978 - Added F2 handling to allow jumping to the end of the edited cell
24979 - Added logic to allow moving caret left/right inside edited cell
24980 and making the edited cell jump when the caret hits cell borders
24981 - Tab and Enter are now passed to the datagrid after being handled
24983 - Removed capture code now that Control handles it
24984 - set_SelectionStart now ensures caret is visible
24986 2006-03-16 Jackson Harper <jackson@ximian.com>
24988 * TrackBar.cs: Debackwards the increment/decrement for handling
24989 mouse clicks on the bar with vertical trackbars.
24990 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24991 bottom to match MS.
24993 2006-03-16 Mike Kestner <mkestner@novell.com>
24995 * ListView.cs: make shift/ctrl keyboard and mouse selection
24996 consistent with the MS control. Fix a bug in
24997 SelectedListViewItemCollection.Clear that was pissing me off for the
24998 better part of a day because the collection was being altered
24999 underneath us as we walked the list.
25001 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25003 * Control.cs: Not sure how we could miss this so long, but it seems
25004 that MS.Net has Capture set all the way from before calling
25005 OnMouseDown through sending the mouse events until after
25006 OnMouseUp. This will fix DataGrid's selection being set to end
25007 at the location of the MouseUp.
25009 2006-03-15 Jackson Harper <jackson@ximian.com>
25011 * BindingContext.cs: Check the binding after its added so that it
25012 can initialize the binding managers and hookup to events.
25013 * Binding.cs: Data members seem to sometimes include rows/cols in
25014 the format Row.Column we now take this into account.
25015 - Hookup to the position changed event so we can update the
25016 control when the position has changed in the data set.
25017 * CurrencyManager.cs: Take into account the row/col naming
25018 convention when creating dataset tables.
25019 * BindingContext.cs: Using a newer better way of storing
25020 datasource/datamember pairs. Hopefully this better matches MS for
25021 looking up binding managers.
25024 2006-03-15 Jackson Harper <jackson@ximian.com>
25026 * BindingContext.cs: The currency manager needs the data member
25027 name, if the member is a data set we use the name to find the
25029 * CurrencyManager.cs: When creating the list prefer an IList over
25031 - Attempt to create a DataTable from a DataSet (TODO: might need
25032 some better error checking here, although MS doesn't seem to have much)
25033 - If we have a DataTable create a view and use it as our list.
25035 2006-03-15 Mike Kestner <mkestner@novell.com>
25037 * ListView.cs: keep a matrix of the icon mode layout to facilitate
25038 keyboard navigation. Support Up/Down/Left/Right selection correctly
25039 for all 4 View modes.
25040 * ListViewItem.cs: add internal row/col fields for icon layouts.
25042 2006-03-15 Jackson Harper <jackson@ximian.com>
25044 * TabControl.cs: Redraw the tabs when we resize so their newly
25045 calculated sizes are drawn on screen.
25046 * X11Keyboard.cs: Begginnings of XIM support. We also now support
25047 composite characters.
25048 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25049 - filter events so that composite characters can be created
25051 * X11Structs.cs: Add XIMProperties enum.
25053 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25055 * Control.cs (BringToFront, SendToBack): Don't use window or handle
25056 unless it's created
25058 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25060 * Control.cs (PerformLayout): We don't need to consider visiblity
25061 for anchoring, only for docking. This fixes 'whacky' alignment
25062 in listbox and other controls that use implicit scrollbars after
25063 the previous PerformLayout patch
25064 * ListBox.cs: Switched to use implicit scrollbars
25066 2006-03-14 Mike Kestner <mkestner@novell.com>
25070 - chain up the "new event" overrides to base and use
25071 OnEvent to raise them. Part of fix for bug #76509.
25073 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
25075 * FileDialog.cs: Do not select an item in the parent directory
25078 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25080 * Control.cs (PerformLayout): It would seem that we considered
25081 invisible windows for our layout. Not quite the right thing
25082 to do. Now we don't any longer, thereby fixing bug #76889.
25084 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25086 * Control.cs (CanFocus): I goofed. A control can have focus
25087 even though it's not selectable. Made it match MS docs.
25089 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25091 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25092 center by default (fixes #76895)
25093 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
25094 all uses of Border3DSides.All with the explicit ORd together
25095 Left|Right|Top|Bottom because I assume that nobody was aware
25096 that All also implies a center fill. Most places I checked had
25097 a fill right above.
25098 * ProgressBarStyle.cs: Added
25100 2006-03-13 Mike Kestner <mkestner@novell.com>
25102 * ListView.cs: fix breakage in drag shadow header positioning
25103 from Peter's csc compilation fix.
25105 2006-03-13 Mike Kestner <mkestner@novell.com>
25107 * ListView.cs: fix NRE produced by backspacing twice in a focused
25110 2006-03-13 Mike Kestner <mkestner@novell.com>
25112 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25114 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25116 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25118 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25119 the allowed size before making programmatic size changes
25121 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25123 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
25124 set, metacity is broken and will still use the emty sizes in
25125 the struct. (Fix for #77089)
25127 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25129 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
25130 WindowExStyles and marked both enums as Flags
25131 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25132 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25133 to match WindowStyles split
25135 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25136 - Updated to match WindowStyles split
25138 - Fixed FosterParent creation, was using ExStyle on the Style field
25139 (This should help with Popup focus issues)
25140 - Updated to match WindowStyles split
25142 2006-03-13 Jackson Harper <jackson@ximian.com>
25144 * MdiWindowManager.cs: Use the system menu height. Fixes some
25145 strange sizing issues.
25147 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25149 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25151 - Scroll to caret after inserting text (#77672)
25152 - Make scroll range one pixel higher, fixes off-by-one error (and
25153 makes underlines visible on the last line)
25155 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25157 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25158 the keyboard state from being stuck with keys in 'pressed' state when
25159 focus is switched away via keyboard
25160 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25161 reset the keyboard if no X11 KeyUp events are expected to come
25162 * X11Structs.cs: Switched type of Visible to bool to match driver
25164 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25167 - Switched caret to be just 1 pixel wide, matches MS and looks less
25169 - Moved caret display 1 pixel down from the top of the control
25171 - InsertCharAtCharet: Update the selection start if moving the caret
25172 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25173 - No longer always creating the caret when the caret methods are
25174 called. Only the actual ShowCaret/HideCaret will do that now
25175 - Only setting caret visible if the owner control has focus
25176 - UpdateView: Added invalidation-shortcut logic for center and right
25177 aligned text. Previously we'd update all according to the left
25178 logic which caused drawing errors. Also fixed height of invalidated
25179 areas, now properly invalidating the whole area (was off-by-one)
25180 - owner_HandleCreated: Always generate the document when the
25181 handle is created; this ensures that
25183 - Fixed situation where caret would disappear under the right
25184 window border, also improved scrolling behaviour on left-
25186 - Fixed right-aligned textboxes to have a border to the
25187 right instead of the caret being under the right border
25189 - Switched from 'nested' to simple visible/not visible tracking
25190 for caret (part of fix for #77671)
25191 - No longer passing through translated FocusIn/FocusOut messages
25192 since we were notifying too often and the wrong windows. Instead
25193 we just notify our focussed window of receiving or loosing focus
25194 * XplatUIWin32.cs: Switched from 'nested' show/hide
25195 counting for caret to simple visible yes/no behaviour (part of
25198 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25200 * Mime.cs: Remove debug code...
25202 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25204 * MimeGenerated.cs: Removed
25205 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25206 and subclasses) from /usr/(local/)share/mime and
25207 $HOME/.local/share/mime.
25209 2006-03-10 Jackson Harper <jackson@ximian.com>
25211 * MdiWindowManager.cs: Recalc the NC area when a window is
25212 maximized/restored so that the menu area is drawn on forms that
25215 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25217 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25218 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25219 us to force a WM_NCCALCRESIZE message being sent. This is needed
25220 for MDI maximizing.
25222 2006-03-10 Jackson Harper <jackson@ximian.com>
25224 * Form.cs: We need to use the ActiveMenu when calculating menu
25226 - Fix nullref when the window manager hasn't been created yet.
25227 * Control.cs: Fix nullref when we try to bring a control to the
25228 front that has no parent.
25229 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25231 - Add a dummy item to the maximized menu so it always has the
25232 correct height. Otherwise when there are no menus we don't get our
25236 2006-03-10 Jackson Harper <jackson@ximian.com>
25238 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25240 * Form.cs: Make the window_state internal so the window managers
25242 - When an MDI child is maximized let its window manager create the
25243 main menu (so it can add its icon).
25244 - Notify the window managers of state changes
25245 - Let the window manager paint its buttons and handle button
25246 clicks on the menu when it is maximized.
25247 * InternalWindowManager.cs: Move the prev_bounds into the mdi
25248 window manager, since tool windows don't use it, only mdi windows.
25249 - Tell the main form that we don't want it to handle NCPAINT
25250 itself to avoid extra painting.
25251 - Handle clicks on a maximized windows menu.
25252 - Handle window state changes
25253 - Handle minimize/maximize clicks correctly by setting the window state.
25254 * MdiWindowManager.cs: Add an icon menu that (the menu you get
25255 when clicking on the forms icon).
25256 - New method to create a forms maximized menu. This is its normal
25258 - Handle window state changes.
25259 - Handle sizing of maximized windows. Maximized windows are just
25260 drawn bigger then the parent visible area. All controls are still
25261 there, they are just outside the visible area (this matches windows).
25262 * MdiClient.cs: No scrollbars when a child window is maximized.
25263 - Let the children windows figure out how big they should be when
25264 sizing maximized windows.
25265 - Implement a version of ArrangeIconicWindows somewhat similar to
25266 Windows version. There are some little differences, but I don't
25267 think any app will rely on the layout of minimized mdi windows.
25269 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25271 * Padding.cs: Several fixes to allow compiling with csc 2.0
25273 2006-03-09 Jackson Harper <jackson@ximian.com>
25276 * MenuItem.cs: Cheap hack so we can add items to the list without
25277 the events being raised. This allows adding mdi items during
25278 drawing. TODO: Should probably find a better time to add the items.
25280 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25282 * ThemeWin32Classic.cs:
25283 - CheckBox_DrawText: Added logic to not wrap if not enough space
25284 is available (Fix for bug #77727)
25285 - RadioButton_DrawText: Added logic not to wrap if not enough
25286 space is available (Fix for bug #77727). Also removed some
25287 duplicate code, DrawString always drawing the regular text
25288 before hitting the if statement.
25290 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25292 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25294 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25296 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25297 * ContainerControl.cs: Partial implementation of some 2.0 scaling
25298 methods. Moved the new 2.0 properties into alphabetical order with
25299 other properties and added MonoTODO tags
25301 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25303 * AutoScaleMode.cs: Added. Fix build.
25305 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25307 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25308 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25309 and was requiring premature handle creation for calls from above
25310 * Form.cs, Control.cs: Removed handle arguments from calls to
25311 CalculateClientRect()
25313 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25315 * ListView.cs (HeaderMouseMove): Fix csc compilation.
25316 drag_column.column_rect is MarshalByRef and can't be used that way
25318 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25320 * AxHost.cs: Added deserialization constructor for
25321 AxHost+State (fixes 77743)
25323 2006-03-09 Mike Kestner <mkestner@novell.com>
25326 - Added column drag reordering for details view.
25327 - fixed behavior when mouse is dragged off column and
25328 AllowColumnReorder is false.
25329 * ColumnHeader.cs: clone the format too in Clone.
25330 * Theme.cs: add DrawListViewHeaderDragDetails method.
25331 * ThemeWin32Classic.cs:
25332 - impl new method for drawing drag column shadows and targets.
25333 - support column offset for details mode in DrawListViewItem.
25335 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25337 * TextControl.cs: Reset the char_count when the document is cleared
25338 (Fixes bug reported on mono-winforms mailing list)
25340 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25342 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25343 of calling base we simply process the key ourselves, since both
25344 DefWindowProc and the handled method would set m.Result.
25347 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25349 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25350 method also moves the window; instead implemented a copy of
25351 Control.ScaleCore (Part of fix for #77456)
25353 - Created new CreateGraphicsInternal method to allow providing
25354 a graphics context when no handle is created without triggering
25355 handle creation. (Part of fix for #77456)
25356 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25358 - Switched Constructor to require TextBoxBase instead of Control (to
25359 allow uncast access to CreateGraphicsInternal)
25360 - Safeguarded use of owner.Handle property. No longer accessing it
25361 unless the handle is already created.
25362 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25363 - Now triggering a recalc when owning control becomes visible
25364 * TextBox.cs, RichTextBox.cs: Switched to use new internal
25365 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25366 premature handle creation (Part of fix for #77456)
25368 - We now only destroy our double-buffering buffers when the
25369 control is resized or disposed, but not when visibility
25370 changes. (The code even re-created them twice every time)
25371 - Now requiring a redraw of the buffer on visibility changes
25372 (fixes bug 77654 part 2)
25373 - Not passing OnParentVisibleChanged up unless the control
25375 - CanFocus: Fixed to match MS documentation
25376 - Focus: Fixed to return actual focus state and to check if
25377 setting focus is legal before setting it
25379 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
25381 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25382 when to draw focus rectangle by looking at parent focus and
25383 selected state instead. This fixes TabPages on Linux sometimes
25384 having none or multiple focus rectangles.
25385 * XplatUIX11.cs (SetFocus):
25386 - Don't set the focus if the same window already has focus
25387 - Use SendMessage instead of PostMessage (like it's Win32
25388 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25389 to match MS behaviour
25390 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25391 are not selectable.
25393 2006-03-07 Jackson Harper <jackson@ximian.com>
25395 * PictureBox.cs: Revert line I accidently committed last week.
25397 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
25400 - Added new IsRecreating and ParentIsRecreating properties to
25401 allow testing if RecreateHandle has been called on ourselves
25402 or one of our parents
25403 - WndProc(WM_DESTROY): If our control handle is being recreated
25404 we immediately need to create the handle when receiving the
25405 destroy, that way our child windows find a valid parent handle
25406 when they themselves are being recreated upon WM_DESTROY receipt
25407 (fix for bug #77654 part 1)
25409 - DestroyWindow: WM_DESTROY must be sent to our own window before
25410 notifying any child windows. MS documents that child windows
25411 are still valid when WM_DESTROY is received. (Control now relies on
25413 - Added some fine-grain debug options
25415 2006-03-06 Jackson Harper <jackson@ximian.com>
25417 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25418 box and base calculations off this.
25419 * MdiChildContext.cs:
25420 * MdiWindowManager.cs: Don't need to ensure scrollbars here
25423 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
25425 * Splitter.cs: In situations where the affected control is added
25426 to the parent's control list after the splitter, we would not
25427 populate affected. Now we try populating it on mousedown, if
25428 it's not already set, and force it to be re-set whenever our
25431 2006-03-03 Matt Hargett <matt@use.net>
25433 * Control.cs: implement Control.Padding
25434 * Padding.cs: -Padding.All returns -1 when constructing with the
25435 implicit default ctor
25436 -Padding.ToString() matches MS.NET
25437 * ContainerControl.cs: implement
25438 ContainerControl.AutoScaleDimensions
25439 * ListControl.cs: implement ListControl.FormattingEnabled
25440 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25442 * TabPage.cs: Implement UseVisualStyleBackColor.
25443 * PictureBox.cs: Implement PictureBox.InitialImage.
25445 2006-03-03 Mike Kestner <mkestner@novell.com>
25447 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25448 event declarations to proxy to base event.
25449 * ListViewItem.cs: update to use ItemControl.
25450 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25451 * ThemeWin32Classic.cs: update to new ListView theme API and fix
25452 column header label rendering for 0 width columns.
25454 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
25456 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25457 that causes the control to be created. Fixes #77476.
25459 2006-03-02 Jackson Harper <jackson@ximian.com>
25461 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25464 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
25466 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25467 passed in for the EventArgs (fixes #77690)
25469 2006-03-01 Jackson Harper <jackson@ximian.com>
25471 * ScrollBar.cs: Refresh afterbeing resized.
25473 2006-02-28 Mike Kestner <mkestner@novell.com>
25475 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25476 Clean up a tracker compile warning.
25477 * MenuItem.cs: add internal PerformPopup method.
25480 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25482 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25483 implicit expose) when the text is set to null
25485 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25487 * RichTextBox.cs (FlushText): When newline is true, we always
25488 need to split the line, even if no text is on it and we may
25489 never eat newlines. (Fixes #77669)
25491 2006-02-28 Mike Kestner <mkestner@novell.com>
25493 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
25494 and set Selected instead.
25495 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
25498 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25500 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25502 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
25505 - Got rid of the panel. All controls are now directly added to
25507 - It is now possible to set a font with the Font property
25508 - MinSize and MaxSize property do now what they should
25509 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25510 - Searching and selecting a font with the font textbox works now,
25511 the same applies to the style and size textbox
25512 - Draw the correct 3D border in the example panel
25513 - Fixed a little mem leak (unused fonts didn't get disposed)
25514 - Many other internal updates/rewrites...
25517 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25520 - InsertRTFFromStream: Added 'number of characters inserted' argument
25521 - set_SelectedRTF: Now using the number of characters to calculate
25522 the new location for the selection and cursor (x/y cannot be used
25523 due to potentially already wrapped text)
25525 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25527 * TextControl.cs: Added property and implemented means to allow
25528 disabling recalculation of a document (can be used to speed up
25529 multiple inserts and is needed to make RTF inserts predictable, see
25531 * RichTextBox.cs: Using the new NoRecalc property of Document to
25532 keep x/y insert locations predictable. Also makes it faster inserting
25533 large chunks of RTF
25535 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25537 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
25538 it's easier for a child control to handle the other messages without
25539 having to duplicate the special functionality
25541 - WndProc: Removed calling base handler for WM_KEYDOWN and added
25542 code to handle processing the key ourselves, in order to get
25543 access to the result of KeyEventArgs.Handled. We now only call
25544 ProcessKey if they key hasn't been handled already. Fixes #77526.
25545 - set_Text: If null or empty string is given, just clear the
25546 document. Fixes part of #77526
25548 2006-02-27 Jackson Harper <jackson@ximian.com>
25550 * SizeGrip.cs: Paint the background color before painting the grip
25551 so things look right.
25552 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
25554 2006-02-27 Mike Kestner <mkestner@novell.com>
25557 - Restructure layout and invalidation model to remove a ton of
25558 flicker from the control and speed up performance in general.
25559 - Add manual column resize, flickers like crazy, but I already have
25560 some ideas on how I'll fix that. (#76822)
25561 - Merge the three Icon-based views into a single layout method.
25562 - Move item selection interaction logic from the item since
25563 interaction with the collections is more appropriate to the view.
25564 - Deselection on non-item clicks.
25566 - Encapsulate most of the layout. Add some internal props to trigger
25567 layout. Move to a model where Items invalidate themselves instead
25568 of just invalidating the whole control every time something changes.
25569 - Invalidate on Text/Caption changes.
25570 - switch to an offset based layout model to avoid having to absolute
25571 position every element on item moves.
25572 - correct checkbox layout to conform to MS layout.
25573 * ThemeWin32Classic.cs:
25574 - refactor some column header drawing code.
25575 - fix string justification for column headers (#76821)
25576 - make SmallIcon labels top justified for compat with MS impl.
25577 * ThemeClearlooks.cs:
25578 - adjust to new ListViewItem internal checkbox bounds api.
25580 2006-02-27 Jackson Harper <jackson@ximian.com>
25582 * Control.cs: Change where implicit controls fall in the zorder.
25583 They are now on top of all children.
25584 - Synced AddImplicit code with Add
25585 - Removed unused enumerator.
25586 * SizeGrip.cs: Remove the TODO as its been TODONE.
25588 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25590 * TextControl.cs(Insert): Combine the last lines unless the insertion
25591 string ends with \n\n, otherwise we leave one line too many (Fixes
25592 something I noticed with the testapp for #77526; the bug itself was
25593 already fixed in the previous checkin)
25595 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
25598 - SelectionColor and SelectionFont methods no longer set absolute
25599 styles. Instead, the keep font or color respectively (This
25600 resolves a long-standing FIXME in the code)
25601 - When flushing RTF text, the insert code now considers text trailing
25602 behind the insertion point (Fixes the bug where when replacing
25603 the selected text via SelectedRTF the remainder of the line behind
25604 the selection would stay on the first insertion line)
25606 - AppendText now updates the selection points after inserting text
25607 - AppendText now ensures that the last tag (sometimes 0-length) of
25608 the document is used for the style information (Fixes part of
25611 - Created new FontDefiniton class to allow describing partial style
25613 - StreamLine() now takes a lines argument, to allow it to decide
25614 whether an encountered zero-length tag is the last in the document
25615 (which must be kept to not loose the font/color contained in it,
25617 - Created Combine() and Split() methods for Marker structs, to
25618 support marker updates due to reformatted documents (soft line
25620 - Implemented Document.CaretTag setter
25621 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
25622 of the last line (Not the cause, but also exposed by bug #77220)
25623 - Added LineTag argument to InsertString method, to allow callers
25624 to force a certain tag to be used (required to force use of the
25625 trailing zero-length tag of a document)
25626 - Now updating markers in Combine(), to avoid stale tag markers
25627 - Added some method descriptions to aid maintenance
25628 - Implemented new FormatText concept, allowing additive/subtractive
25629 formatting by only specifying the components that are to be
25630 changed. This was needed for resolving the RTB.SelectedColor/
25631 RTB.SelectedFont fixmes
25632 - Added Break() support method to allow breaking up linetags (used
25633 for partial formatting)
25634 - Added GenerateTextFormat() method. It is used for partial
25635 formatting and allows to generate a full font/color from given
25636 attributes and an existing tag.
25638 2006-02-26 Jackson Harper <jackson@ximian.com>
25640 * XplatUIX11.cs: Use the correct caption height.
25641 - Translate hittest coordinates to screen coords to match MS.
25642 * XplatUIWin32.cs: When we create MDI windows we need to reset
25643 some of the style flags, so we get a nice blank window, and can
25644 draw all the decorations ourselves.
25645 - Set a clipping rectangle on the non client paint event, the
25646 window manager drawing code needs one.
25647 * Form.cs: The window manager needs to know when the window state
25649 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25650 don't need to factor in border and title sizes in these
25651 methods. TODO: Remove the args and fix the call points.
25652 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25654 - Let the driver set the cursors.
25655 - Improve active window handling
25656 - Correct sizes for title bars and buttons.
25657 - Match MS drawing better
25658 * MdiWindowManager.cs: We don't need to handle border style
25659 updates specially anymore.
25660 - Check for scrollbars when windows are done moving
25661 - Handle Active properly.
25662 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25663 correctly. I am spewing the exception though, so we don't hide the
25666 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
25668 * DataGridViewRowPostPaintEventArgs.cs,
25669 DataGridViewCellPaintingEventArgs.cs,
25670 DataGridViewRowCollection.cs,
25671 DataGridViewRowPrePaintEventArgs.cs,
25672 DataGridViewCell.cs: Clear a few warnings and implement a few
25673 exceptions that should be thrown.
25675 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25677 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25678 'inheriting' our parent's (non-default) cursor. (Part of
25679 the fix for #77479)
25681 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25683 * XplatUIX11.cs: Fixed cast to make csc happy
25685 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
25687 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25688 it's for the client area (part of fix for #77479 and needed
25689 for MDI window cursor handling)
25691 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25692 the appropriate default cursors and also passing the message
25693 up the parent chain
25694 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25695 for non-client areas
25697 2006-02-15 Jackson Harper <jackson@ximian.com>
25699 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25700 is a real MDI window
25702 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
25704 * X11DesktopColors.cs: Instead of checking the desktop session
25705 string for "KDE" check if it starts with "KDE"
25707 2006-02-10 Jackson Harper <jackson@ximian.com>
25709 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
25712 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25714 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
25717 - Got rid of the panel. All controls are now directly added to
25719 - Changed to mono coding style
25721 2006-02-10 Jackson Harper <jackson@ximian.com>
25723 * InternalWindowManager.cs: We don't need the set visibility to
25724 false hack anymore now that peter has written beautiful shutdown
25727 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
25729 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
25730 where already explicitly destroyed
25732 2006-02-10 Jackson Harper <jackson@ximian.com>
25734 * MdiClient.cs: Handle the case where windows are too high or to
25735 the left and we need scrollbars.
25737 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
25739 * MimeIcon.cs: Added some icons
25742 - Got rid of the panel. All controls are now directly added to
25744 - Changed to mono coding style
25745 - On Linux "My Computer" and "My Network" will now show some
25746 more usefull information. A new class, MasterMount, gathers
25747 this information from /proc/mount. Updated MWFFileView to make
25748 use of this information
25749 - Fixed a bug that caused FileDialog to crash when
25750 ".recently_used" file had a zero size
25751 - FilterIndex does now what it should
25753 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
25756 2006-02-09 Jackson Harper <jackson@ximian.com>
25758 * ComboBox.cs: Don't touch if null.
25760 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
25762 * Cursor.cs: 64bit safeness fix
25763 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
25765 2006-02-09 Jackson Harper <jackson@ximian.com>
25767 * Form.cs: If a form is made into an MDI form update the styles so
25768 all the props can get set correctly.
25769 - Kill the mdi_container when we dont need it anymore.
25770 * InternalWindowManager.cs: Add missing NOT
25772 2006-02-08 Jackson Harper <jackson@ximian.com>
25774 * InternalWindowManager.cs: Respek clipping when drawing MDi
25777 2006-02-08 Jackson Harper <jackson@ximian.com>
25779 * Hwnd.cs: Add bits to track non client expose events.
25780 * XplatUIX11.cs: Track non client expose events on the hwnd. This
25781 gives us a proper invalid rect and will allow for some nice
25782 optimizations with NC client drawing
25783 - MDI windows are children windows, so move their style handling
25784 into the child window block.
25785 * InternalWindowManager.cs: Remove a state reset that was
25786 getting invoked at the wrong time. Fixes managed windows getting
25787 into a 'stuck' captured state.
25789 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25791 * TextControl.cs (Document.ctor): Now initializing
25792 selection_anchor. Fixes #77493
25794 2006-02-07 Jackson Harper <jackson@ximian.com>
25796 * TrackBar.cs: The increment/decrements were backwards.
25798 2006-02-07 Mike Kestner <mkestner@novell.com>
25800 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
25801 to the instance itself.
25803 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
25805 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
25806 on ulongs and pointers, the size differs between 32bit and 64bit
25809 2006-02-07 Mike Kestner <mkestner@novell.com>
25811 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
25812 for 64 bit platforms to work around a metacity bug.
25814 2006-02-07 Jackson Harper <jackson@ximian.com>
25816 * TrackBar.cs: Process the input keys we need, and hookup to
25817 KeyDown instead of using WndProc, so we get key messages.
25819 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25821 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
25823 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
25824 we need to translate the XdndVersion atoms array before sending it
25826 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
25829 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
25830 number of bits for the property, not the number of bytes. The
25831 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
25832 but would not crash since it specified 8 bits instead of 4 bits)
25833 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
25834 defined as XID -> long in the C headers)
25835 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
25836 references since those are now IntPtr to begin with
25837 - Switched all Atom.XXX 'int' casts to IntPtr casts
25838 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
25839 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
25840 - Added XChangeActivePointerGrab DllImport (for X11DnD)
25842 - Changed 'int' type for Atoms in XEvent structures to IntPtr
25843 - Changed atom in HoverStruct to be IntPtr
25845 - Removed local DllImports, switched code to use those from XplatUIX11
25846 - Removed/fixed casts related to the switch of Atom to be a IntPtr
25848 2006-02-06 Mike Kestner <mkestner@novell.com>
25850 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
25851 method signatures in the import region. There may still be some
25852 lingering struct marshaling issues, as I didn't drill down into those.
25855 2006-02-06 Jackson Harper <jackson@ximian.com>
25857 * ComboBox.cs: Dont manually set the top_item, this is computed
25858 when the scrollbar position is set.
25860 2006-02-06 Mike Kestner <mkestner@novell.com>
25862 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
25863 startup crashes on amd64. There's other fixes needed. All pinvoke
25864 usage of Atom needs to be mapped to IntPtr for example. And there are
25865 likely other int/long issues to be addressed.
25867 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
25869 * FileDialog.cs: One more...
25871 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25873 * FileDialog.cs: Next try
25875 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25877 * FileDialog.cs: First part of fix for #77464
25879 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
25881 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
25882 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
25883 AcceptButton border drawing.
25885 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25887 * Form.cs: Moved positioning of form after auto scaling is applied,
25888 otherwise it would possibly use wrong form size.
25890 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
25892 * Control.cs (RecreateHandle): No need to re-create any child
25893 controls, the child windows will get destroyed automatically by
25894 the windowing system or driver, and re-created when the handle
25895 is being accessed the first time. Fixes #77456
25896 * Form.cs: No longer setting the form to closing if the handle is
25897 being recreated. This seems like the right thing to do, don't
25898 have a bug or testcase for this, though.
25900 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25902 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
25903 controls to avoid unwanted side effects
25905 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25908 - ScaleCore needs to scale the bounds, not the ClientSize of the
25909 control. Fixes #77416.
25910 - DefaultSize is 0,0 for control
25912 - DefaultSize is 100, 20
25913 - SetBoundsCore: Now enforcing the height, no matter if the provided
25914 height is more or less than the preferred one, as long as AutoSize
25916 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
25918 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
25921 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
25922 call unless both performLayout is true *and* we have a pending
25924 - ResumeLayout: MS does not completely nest Suspend and Resume,
25925 they bottom out at 0, fixed our code to match that.
25926 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
25927 SetBoundsCore, we were updating even when we shouldn't. This fixes
25928 swf-anchors mis-anchoring when resizing the app fast and lots.
25929 - UpdateDistances: Now only setting the left and top distance if
25930 we have a parent and are not suspended, this is based on
25931 a suggestion by Don Edvaldson in bug #77355.
25932 - OnVisibleChanged: Fixed logic when to create the control. We may
25933 not create the control if we have no parent or if it's not visible;
25934 switched to using Visible property instead of is_visible field
25935 since the property also considers parent states. This fixes a bug
25936 when starting Paint.Net
25938 2006-02-02 Jackson Harper <jackson@ximian.com>
25940 * Form.cs: If the forms handle hasn't been created yet don't call
25941 into xplatui to make it top most, just set the topmost flag on the
25942 form in CreateParams
25943 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
25945 2006-02-01 Jackson Harper <jackson@ximian.com>
25947 * ScrollableControl.cs: Refactored the Recalculate method a
25948 little, this wasn't handling all the variants of bottom and right
25949 bars needed to be added and added/removed based on their
25950 counterparts being added/removed (which changes the drawable
25951 size). Also we special case client widths and heights of 0 and
25952 don't add the scrollbar for those.
25954 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
25957 - Added method to get AbsoluteGeometry(); currently unused, but might
25958 be used in the future, if we try again to figure out toplevel
25959 coordinates with some more crappy window managers
25960 - Added FrameExtents() method to retrieve the WM set decoration size
25961 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
25962 to deal with at least KDE, FVWM and metacity (Fixes #77092)
25964 - Added whacky_wm tracking var for metacity
25965 - Added logic to have default menu height if the actual menu height
25966 has not yet been calculated (part of fix for #77426)
25967 * Form.cs: Keep track whether client size has been set and re-set
25968 it if a menu is added/removed afterwards (Fixes #77426)
25970 2006-01-31 Jackson Harper <jackson@ximian.com>
25972 * Control.cs: When a new Site is set on the component attempt to
25973 pull the AmbientProperties from it.
25975 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
25977 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25978 in the background of the owning form. Fixes #77332
25980 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25982 * MimeIcon.cs: Fix for #77409
25984 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25986 * XplatUIX11GTK.cs: Initial import
25988 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
25990 * FixedSizeTextBox: fixes class signature
25992 2006-01-30 Jackson Harper <jackson@ximian.com>
25994 * FixedSizeTextBox.cs: New internal class that represents a
25995 textBox that will not be scaled.
25998 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
26001 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26003 * XplatUIX11.cs: Retrieve default screen number instead of
26004 assuming 0. Attempted fix for #77318
26006 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26009 - GetWindowPos: When a window is parented by FosterParent, use
26010 the desktop instead of FosterParent as the base to get coordinates
26011 - CreateWindow: Don't make FosterParent the parent window for Popups
26012 if we don't want a taskbar entry, Popups automatically don't get one
26013 * Hwnd.cs: Need to call remove to actually remove the key from the
26016 2006-01-30 Mike Kestner <mkestner@novell.com>
26018 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26020 2006-01-30 Jackson Harper <jackson@ximian.com>
26023 * TreeNode.cs: Raise events no matter how the treenode is
26024 checked. Patch by Don Edvalson.
26026 2006-01-30 Jackson Harper <jackson@ximian.com>
26028 * TreeNode.cs: Signature fix.
26030 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
26032 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26034 2006-01-20 Mike Kestner <mkestner@novell.com>
26036 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26037 event forwarding when menus are active.
26038 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
26039 Most of the patch is pdb's with a little rework.
26041 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26043 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
26044 Removed GetMenuDC and ReleaseMenuDC methods; replaced
26045 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26046 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26047 * InternalWindowManager.cs: Added use of PaintEventStart/End to
26048 handling of WM_NCPAINT message, now passing the PaintEventArgs to
26049 the PaintWindowDecorations method
26050 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26051 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26052 * MenuAPI.cs: Made tracker window invisible
26054 - Removed GetMenuDC and ReleaseMenuDC methods
26055 - Implemented the client=false path for PaintEventStart and
26058 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26060 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26061 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26064 - MaximizeBox, MinimizeBox: Recreate the handle when setting
26066 - CreateParams: Reworked the styles to match MS look'n'feel,
26067 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26068 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26070 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26072 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
26073 window is not mapped, since otherwise every form that's being
26074 created is considered minimized, which is wrong.
26075 * Form.cs: Catching the exception and returning our internal value
26078 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26080 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26081 SetWindowMinMax() to have means to tell the driver about the minimum,
26082 maximum and maximized state window sizes. (Part of the fix for #76485)
26084 - Implemented tracking of minimum and maximum window size, now calling
26085 new SetWindowMinMax() driver method to tell the driver (Part of the
26087 - Finished handling of WM_GETMINMAXINFO method, now setting all values
26088 (Completes fix for #76485)
26089 - Calling new SetWindowMinMax driver method when the handle for a
26090 form is created, to make sure the driver knows about it even if
26091 the values have been set before the window was created
26092 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26093 to avoid messing up our anchoring calculations (partial fix
26095 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26097 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26098 - Improved GetWindowState() to detect 'Minimized' state on Metacity
26099 (and presumably other freedesktop.org compliant WMs). Left the
26100 assumption unmapped=minimized, needed for SetVisible to work.
26101 - Now setting the window state when creating windows
26102 - Fixed SetVisible to consider/set the window state when mapping
26103 a Form. We cannot set the state before it's mapped, and we cannot
26104 use Form.WindowState once it's mapped (since it would ask the
26105 driver and get 'normal'. Therefore, we grab the state before
26106 mapping, map, and then set state.
26107 - Implmemented SetWindowMinMax method; Metacity does not seem to
26108 honor the ZoomHints, though.
26110 - Removed MINMAXINFO (moved to XplatUIStructs)
26111 - Added SetWindowMinMax stub (on Win32 the only way to set that
26112 information is in response to the WM_GETMINMAXINFO message, which
26113 is handled in Form.cs)
26114 - Added logic to SetVisible to set the proper window state when a
26115 form is made visible (fixes #75720)
26117 2006-01-26 Jackson Harper <jackson@ximian.com>
26119 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26120 same way we handle them with Invoke.
26122 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
26125 - Added tracking of window state so CreateParams can return
26126 the appropriate style
26127 - Moved setting of WS_CAPTION style in CreateParams to allow
26128 styles without caption
26129 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
26130 control if the TextBox property is accessed. Fixes #77345
26132 - get_Created: now uses is_disposed and is_created to determine
26133 return value (suggested by Jackson)
26134 - CreateHandle: No longer exits if the handle is being recreated
26135 - RecreateHandle: If the handle is not yet created call the
26136 appropriate method to create either control or handle. If the
26137 control is already created CreateHandle will simply exit instead
26138 of just creating the handle
26139 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26140 now SendMessage WM_DESTROY directly to the control when DestroyWindow
26143 - When DestroyWindow is called, instead of waiting for the
26144 DestroyNotification from X11, we directly post it to the WndProc
26145 and immediately dispose the hwnd object.
26146 Same applies to DestroyChildWindows, and this obsoletes the
26147 expose_pending tracking. Contrary to Win32 behaviour we destroy our
26148 child windows before our own, to avoid X11 errors.
26149 - Removed the direct sending of WM_PAINT on UpdateWindow
26151 - Reworked DoEvents and GetMessage to allow access to internal queue
26152 even when trying non-blocking access to the queue. Fixes #77335.
26153 Based on a patch suggestion by Don Edvalson. The new private
26154 GetMessage can now also be used as a backend for a PeekMessage
26156 * XplatUI.cs: Improved debug output for CreateWindow
26158 2006-01-25 Jackson Harper <jackson@ximian.com>
26160 * Help.cs: Allow param to be null. Patch by Don Edvalson.
26162 2006-01-24 Jackson Harper <jackson@ximian.com>
26164 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26165 when we have a MaxDropItems lower then the selected index.
26167 2006-01-24 Jackson Harper <jackson@ximian.com>
26169 * Control.cs: Don't allow selection of non visible controls, allow
26170 selection of controls without parents.
26172 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26174 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26175 * DataGridDrawingLogic.cs: Add editing row only when is necessary
26177 2006-01-23 Jackson Harper <jackson@ximian.com>
26179 * UpDownBase.cs: Make the textbox handle all the selection and
26180 tabbing. This fixes tabing to updown controls.
26182 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26184 * TextBoxBase.cs: fixes exception thown the object was null
26186 2006-01-23 Jackson Harper <jackson@ximian.com>
26188 * ButtonBase.cs: Just use the base CreateParams. They set
26189 visibility and enabled correctly.
26192 * MonthCalendar.cs: Lets let the base set as much of the
26193 createparams as possible so we don't have duplicate code all over
26196 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
26198 * ThemeGtk.cs: Added TrackBar and some experimental code to
26199 get double buffering back
26201 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
26203 * DataGrid.cs: Allows row number set internally higher than the last
26204 when creating a new row. Restores the editing functionality.
26206 2006-01-20 Mike Kestner <mkestner@novell.com>
26208 * MimeIcon.cs: delay Image creation until the icons are accessed
26209 instead of creating 190 scaled images on GnomeHandler startup.
26211 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26213 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26214 first call base before processing the event. Fixes #77279
26216 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26218 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26219 that the stride for the GDI bitmap would match the stride of
26222 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
26224 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26226 2006-01-19 Jackson Harper <jackson@ximian.com>
26228 * ComboBox.cs: Hookup the text controls keydown event so we get
26229 those when the text control has the focus.
26231 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26233 * Label.cs: Now using the base events instead of defining new ones;
26234 this allows us to just call the base properties without having to
26235 duplicate all base property logic
26237 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26239 * Label.cs: A label by default is not a tabstop (Fixes one of our
26240 failing nunit tests)
26242 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26244 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26245 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26247 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26249 * Cursor.cs: Reimplemented creating cursor bitmaps without using
26250 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26253 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
26254 constructor creates images that can't be saved. Part of the fix
26256 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26257 - SetWindowState: Switched ShowWindow flags (part of an upcoming
26258 bug fix for handling window state in forms properly)
26260 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26262 * ThemeGtk.cs: Simplify ScrollBar drawing
26264 2006-01-18 Jackson Harper <jackson@ximian.com>
26266 * Splitter.cs: Set the default dock style for the splitter control
26267 in the constructor.
26269 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26271 * ThemeGtk.cs: Corrected StateType and ShadowType for
26274 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26276 * Control.cs: Make use of Theme.DoubleBufferingSupported
26278 - Added drawing for flat style buttons
26279 - Added ScrollBar drawing
26281 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26283 * ThemeClearlooks.cs: Removed some unneeded code.
26284 * ThemeGtk.cs: First part of ThemeGtk enhancements.
26286 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26288 * LinkLabel.cs: We need to update the hover drawing when
26289 leaving the control as well.
26291 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
26293 * DataGrid.cs: Clicking on non empty areas in the columns
26294 area was giving an exception
26296 2006-01-17 Jackson Harper <jackson@ximian.com>
26298 * ThemeWin32Classic.cs:
26299 * ListView.cs: Do not draw/clip the headers when the header style
26302 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26304 * DataGrid.cs: Fixes 77260
26306 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26308 * DataGrid.cs: Clicking on a column on a empty grid was giving
26311 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26313 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26314 or any keypress will crash the grid.
26316 2006-01-17 Mike Kestner <mkestner@novell.com>
26318 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26319 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
26320 invisible/previously-visible items.
26323 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
26325 * ThemeClearlooks.cs:
26326 - Added CL_Draw_Button method; now other theme controls that are
26327 not derived from button or do not have a button can draw buttons
26329 - Updated ComboBox drawing
26330 - Beautified RadioButton drawing
26331 - Corrected drawing of bottom and left tabs
26332 - Beautified DateTimePicker and MonthCalendar
26333 - Added CPDrawButton and CPDrawRadioButton
26335 2006-01-16 Jackson Harper <jackson@ximian.com>
26337 * ComboBox.cs: Set the initial value of the scrollbar to the
26338 current index. Reduce the numbers of refreshs and IndexOfs called.
26340 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
26342 * FileDialog.cs: When the file listview is focused hitting the
26343 backspace key moves the fileview to the parent directory
26345 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26348 - Added RecreateHandle call when changing taskbar visibility to
26349 trigger reparenting in Win32 driver (Fixes #75719)
26350 - If a window has minimize or maximize buttons, it cannot have
26353 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26354 the toplevel form with FosterParent (A toolwindow not on the
26355 taskbar) (Fixes #75719)
26356 - Made FosterParent a toolwindow
26358 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26360 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26362 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26364 * ToolTip.cs: If SetToolTip is called from a control and the mouse
26365 is currently over that control, make sure that tooltip_window.Text
26368 2006-01-13 Mike Kestner <mkestner@novell.com>
26370 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26372 2006-01-13 Jackson Harper <jackson@ximian.com>
26374 * TreeView.cs: On MS GetNodeAt never actually factors in the X
26375 value passed. Also redraw the selected node when we recieve
26376 focus, so tabbing between trees works correctly.
26378 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26380 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26381 ~/.gconf/%gconf-tree.xml, so use
26382 .gconf/desktop/gnome/interface/%gconf.xml
26384 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26386 * TextControl.cs: Draw text in gray if control is disabled
26388 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26390 * TreeView.cs: Draw the focus rectangle outside the highlight, to
26391 make sure it's always visible. Fixes #76680.
26393 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26395 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26397 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
26399 * PageSetupDialog.cs: Added.
26400 * PrintDialog.cs: Attributes.
26401 * PrintPreviewControl.cs: Updates.
26402 * PrintPreviewDialog.cs: Updates.
26404 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26406 * Control.cs: Undid my selection check fix, since it's not needed
26408 - Now considering the presence of hscroll/vscroll when sizing
26409 vscroll/hscroll respectively. Fixed bug #77077
26410 - Added Left/Up/Down/Right to IsInputKey list to prevent
26411 ContainerControl from stealing them. This fixes what I broke
26412 with my last checkin.
26414 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26416 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26417 I finally understand how the property can be set without a setter :-)
26419 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26422 - Switched RunLoop to use static Message.Create to create a
26424 - Added PreProcessMessage call in runloop for keyboard events; this
26425 is part of the fix for #77219, I overlooked this originally in the
26426 MSDN doc for PreProcessMessage
26428 - Removed call to PreProcessMessage from handling of keyboard
26429 messages; it's supposed to be done in the message pump
26430 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26431 per MSDN documentation.
26432 - IsInputChar: All chars are input chars by default; removed the
26433 parent calling chain, MS does not document that
26434 - PreProcessMessage: If IsInputChar is true, we want to return false
26435 to allow dispatching of the message
26436 - When selecting the next control, now also check that we're not
26437 selecting ourselves again and therefore return a false positive.
26439 - Tried to match return values for IsInputKey and ProcessDialogKey
26440 to what MS returns; moved processing of our special keys outside
26441 ProcessDialogKey since MS does not seem to return true on those.
26442 - Moved code that previously was in ProcessDialogKey into new private
26443 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26444 - Reworked handling of WM_CHAR to not have to duplicate code from
26445 Control.cs anymore, instead we simply call down to base.
26447 2006-01-12 Jackson Harper <jackson@ximian.com>
26449 * ComboBox.cs: We always need to refresh the text area when
26450 EndUpdate is called. Fixes the combobox in the file dialog.
26451 * Control.cs: Don't create the creator_thread until the controls
26452 handle is created. Also in InvokeRequired we check if the
26453 creator_thread is null. This gives the effect of InvokeRequired
26454 returning true if the controls handle is not created yet, and
26457 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26460 - Added StartLoop() driver method. This is used to allow drivers to
26461 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26462 loop for a particular thread
26463 - Added EndLoop() driver method. This is called once the message
26464 pump for the thread is shut down
26465 - Added SupportsTransparency method to allow the driver to indicate
26466 opacity support for windows
26468 - Removed TODO attribute, completed AllowTransparency property
26469 - Added documented logic to Opacity
26470 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26471 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26472 versions of CompatibleTextRendering
26473 * X11Structs.cs: Added opacity atom to our atom enumeration
26474 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26475 of a form might be set before it's reparented by the WM, and we need
26476 the opacity value without calling up to Form)
26477 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
26478 SupportsTransparency() driver methods
26479 * Application.cs: Now calling StartLoop and EndLoop driver methods
26481 - Added opacity atom registration
26482 - Added StartLoop()/EndLoop() methods. They're empty right now but
26483 will need to get implemented when we switch to a per-thread queue
26484 - Implemented SupportsTransparency() method
26485 - Implemented SetWindowTransparency() method
26486 - Added support for setting the opacity value when a window is
26487 reparented (since the opacity needs to be set on the WM frame)
26488 * XplatUIOSX.cs, XplatUIWin32.cs:
26489 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26491 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26493 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26495 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26497 * FileDialog.cs: Added ToolTip for MWFFileView
26498 * MimeIcon.cs: Rewrote GnomeHandler.
26499 - Get currently used gnome icon theme from
26500 ($HOME)/.gconf/%gconf-tree.xml
26501 - Make use of inherited icon themes
26502 - Support SVG icon themes like Tango via librsvg
26504 2006-01-12 Miguel de Icaza <miguel@novell.com>
26506 Revert's Jackson's revert which broke 2.0 builds. Fix both
26509 * Application.cs: Move the use_compatible_text_rendering outside
26510 the NET_2_0 define. If we ever need to use the
26511 use_compatible_text_rendering on the individual controls they will
26512 access the variable from the common shared code paths.
26514 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26517 - Added more granular debug options
26518 - Added method to print both window text and id
26519 - Switched debug output to use new Window() debug method
26520 - Added IsEnabled() driver method
26521 - Added EnableWindow() driver method
26523 - Removed end_modal; no longer needed, new loop handles termination
26524 via 'closing' variable
26525 - If form is modal, setting DialogResult will now initiate loop
26526 termination via 'closing' variable
26527 - Added support for is_enabled/WS_DISABLED to CreateParams
26528 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26530 - Removed code that's now in RunLoop from ShowDialog()
26531 - Added various documented sanity checks to ShowDialog()
26532 - Added handling of WM_DESTROY message; we set 'closing' on getting
26533 the message to indicate the message pump to terminate
26534 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26535 send by the Application.ExitThread method. (We send the message
26536 to destroy the window after all other events have been
26537 processed through the queue, instead of destroying the handle
26539 - Moved code from Close() method to WM_CLOSE handler; added logic
26540 to only send close-related events if the form is not displayed
26542 * Splitter.cs (..ctor): Fixed typo in resource name
26544 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
26546 - set_Cursor: Now only setting calling into XplatUI if the handle for
26547 the control is already created; this avoids implict handle creation
26548 or crashes if it's not created
26549 - set_Enabled: Now setting the enabled state via the new driver method
26550 instead of just tracking it
26551 - CreateParams: Added logic to set WS_DISABLED based on enabled state
26552 - CreateControl: Reordered event firing and method calls to more
26553 closely fire events in the order MS does. Now setting the
26554 enabled state in the driver when creating the control.
26555 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
26557 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
26558 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
26559 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
26561 - Added tracking of window enabled state (get_Enabled/set_Enabled)
26562 - Added EnabledHwnd property to easily allow a driver to find the
26563 handle of the first enabled window in the parent chain (this is
26564 used by drivers to pass up input events of disabled windows)
26565 * XplatUIDriver.cs: Added IsEnabled() method
26567 - Removed crude and obsolete exiting tracking variable
26568 - Removed internal ModalRun(); replaced by RunLoop()
26569 - Implemented private CloseForms() method to allow closing all
26570 windows owned by a particular (or all) threads
26571 - Exit() now properly closes all windows without forcing the message
26573 - Removed obsolete InternalExit() method
26574 - Changed Run() methods to use new RunLoop() message pump
26575 - Implemented new RunLoop() method for both modal and non-modal forms
26577 - get_CreateParams: Added setting of WS_DISABLED
26578 - Simplified ShowDialog(); now all the work is done in RunLoop(),
26579 invoked via Form.ShowDialog()
26580 * NativeWindow.cs: We don't remove the window from the collection when
26581 the handle is destroyed; there might still be messages for it in the
26582 queue (mainly the resulting WM_DESTROY); instead it will be removed
26583 when Control calls InvalidateHandle in the WM_DESTROY handler
26585 - CreateWindow: Added logic to handle the WS_DISABLED window style
26586 - EnableWindow: Implemented based on Hwnd.Enabled
26587 - GetMessage: Reset PostQuitState so the method can be called again
26588 - Implemented support for disabled windows (passing messages to the
26589 first enabled parent) in handling all input messages
26590 - Added optimizations for handling Expose events
26591 - Implemeted new driver method IsEnabled()
26592 - Now always resetting paint pending tracking vars when we start paint
26593 - Re-implemented UpdateWindow via just sending a WM_PAINT message
26594 * XplatUIOSX.cs: Added IsEnabled method stub
26595 * XplatUIWin32.cs: Implemented new IsEnabled() method
26597 2006-01-11 Jackson Harper <jackson@ximian.com>
26599 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26600 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
26601 variables a little.
26602 * ColorDialog.cs: Clear out the old form before adding the new
26605 2006-01-11 Jackson Harper <jackson@ximian.com>
26607 * X11Dnd.cs: Make sure to add all the text formats when adding
26608 strings to the data object.
26609 * TreeNodeCollection.cs: When adding to a sorted tree we need to
26610 do some redrawing too. Also change the UpdateNode to an
26611 UpdateBelow so the newly added node gets painted.
26613 2006-01-11 Miguel de Icaza <miguel@novell.com>
26615 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26616 LinkLabel.cs, PropertyGrid.cs: Implement the
26617 UseCompatibleTextRendering property for 2.x
26619 * Application.cs (SetCompatibleTextRenderingDefault): Add.
26621 2006-01-11 Jackson Harper <jackson@ximian.com>
26623 * TreeView.cs: Use the property for setting the selected node so
26624 the correct events get raised.
26625 * TreeNode.cs: Update the tree when the fore/back colours of a
26628 2006-01-10 Jackson Harper <jackson@ximian.com>
26630 * TreeView.cs: Allow setting SelectedNode to null.
26632 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26634 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26636 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26638 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26640 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26642 * PrintDialog.cs: Added attributes and set default property values.
26644 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26646 * PrintControllerWithStatusDialog.cs:
26647 Added PrintControllerWithStatusDialog.
26649 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26651 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26652 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26654 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
26656 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26658 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
26660 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26661 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26663 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26665 * MimeIcon.cs: Added internal class SVGUtil.
26667 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
26669 * FileDialog.cs: Don't crash if there are two files with the
26670 same name but different locations.
26672 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
26674 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26675 dates across multiple month grids. Used to not highlight entire
26676 month, but does now.
26678 2006-01-06 Jackson Harper <jackson@ximian.com>
26680 * MonthCalendar.cs: Removed DoEvents call to prevent a running
26681 message loop. Change timer intervals to numbers that seem more
26684 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
26686 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26687 object for location info since screen object is now implemented.
26689 2006-01-05 Jackson Harper <jackson@ximian.com>
26691 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26692 * AsyncMethodResult.cs: We no longer use a WeakReference for the
26693 AsyncMethodResult, this is because we ALWAYS want the
26694 ManualResetEvent to get set.
26695 * Control.cs: When disposing use an async invoke to call shutdown
26696 code, so that thigns don't block on the finalizer thread. Also
26697 check if we even have a message loop before trying to send
26698 messages, if we don't then don't bother sending messages.
26699 - No more weak references for async methods
26700 * XplatUIDriver.cs: No more weak references for async methods.
26702 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26704 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
26705 returns two FontFamily with the same name
26707 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26709 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
26710 drawing disabled text. Instead using the ColorGrayText color
26712 2006-01-04 Jackson Harper <jackson@ximian.com>
26714 * TreeNode.cs: redraw the node when its image index is changed.
26716 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
26718 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
26719 time I checked there are no others like it.
26721 2006-01-04 Jackson Harper <jackson@ximian.com>
26723 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
26724 this gives the behavoir I was looking for.
26725 * Control.cs: Special case Invoking EventHandlers, this matches MS
26726 and fixes part of bug #76326.
26728 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26730 * ThemeClearlooks.cs, FileDialog.cs:
26731 - Reflect the latest Theme class changes
26732 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
26735 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
26737 * Theme.cs: Cache UI resource images and resize them if needed
26739 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26741 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
26742 is called. This fixes the crash in Nexxia when setting the font
26743 attributes in the chat. [However, RTF needs a look-over to make sure
26744 that all SelectionXXX methods handle the special case that selection
26745 is empty and therefore the change must be applied to all text starting
26746 at the cursor/selection start]
26748 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26750 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26751 XplatUIOSX.cs: Added SendMessage and PostMessage methods
26752 * X11Keyboard.cs: Switched to new way of calling PostMessage
26754 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
26756 * Theme.cs: Added theme interface for images to allow the theme to
26757 control what images are used for things like FileDialog, MessageBox
26759 * MessageBox.cs: Now uses the new Theme icon/image interfaces
26761 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
26764 - Removed some dead code
26765 - Opening a recently used file does work now
26766 - Small UI enhancements
26769 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26771 * FileDialog.cs: Forgot too add __MonoCS__
26773 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
26775 * FileDialog.cs: We are able to read recently used files now let's
26776 go on and write them.
26778 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
26780 * FileDialog.cs: Breathe some life into "last open"/"recently used"
26782 * MimeIcon.cs: Do a check for the top level media type also
26784 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26786 * ThemeClearlooks.cs:
26787 - Added CPDrawStringDisabled
26788 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
26789 some chars if the text doesn't fit into text_rect
26790 - DrawListViewItem: If View = View.LargeIcon center the image;
26791 rewrote the drawing of ListViewItem.Text if View =
26794 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
26796 * MimeIcon.cs: Use default KDE icon theme if there is no
26797 "48x48" directory for the current icon theme, fixes #77114
26798 * Mime.cs: Disable not working and actually not used code.
26799 * ThemeWin32Classic.cs:
26800 - Replace "new SolidBrush" in GetControlBackBrush and
26801 GetControlForeBrush with ResPool.GetSolidBrush
26802 - Changed DrawListViewItem from private to protected virtual
26804 - Added form.MaximizeBox = true
26805 - Don't throw an exception if there is a broken symbolic link
26807 2005-12-23 Jackson Harper <jackson@ximian.com>
26809 * TabControl.cs: Give the panels focus, keyboard navigation is
26810 fixed so this works correctly now.
26811 - We need these key events also.
26812 * ToolBar.cs: Remove some of the poor mans double buffering.
26814 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
26816 * ComboBox.cs: The internal TextBox now returns the focus.
26818 2005-12-23 Jackson Harper <jackson@ximian.com>
26820 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
26822 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26824 * Control.cs: Removed debug code
26825 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
26828 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26830 * Control.cs: When creating the control, update the Z-order after
26831 all it's children are created, too. (Fixes nexxia not showing
26834 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
26836 * Control.cs: Do not update the anchoring distances if layout is
26837 suspended, instead do it once layout is resumed
26839 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26842 - After many hours of debugging, for both Jackson and
26843 myself, it turns out that it helps to set the parent of a control
26844 if you want to actually see it onscreen. In the spirit of that
26845 discovery, we're now setting the parent of the control and
26846 it's children when the control's handle is created. This fix
26847 will make Lutz Roeder's Reflector run happily.
26848 - now just creating the handle instead of the whole control when
26849 getting a graphics context for the control.
26851 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26853 * ScrollableControl.cs: When calculating the canvas, don't consider
26854 the scrollbar widths. Instead, predict if horizontal scrollbar
26855 will affect canvas when deciding on vertical display and vice versa.
26857 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
26859 * RichTextBox.cs: Set default RTF font for documents that don't
26860 have a font table (Fixes #77076)
26862 2005-12-22 Jackson Harper <jackson@ximian.com>
26864 * TextBoxBase.cs: It's difficult to do, but you can have an empty
26865 clipboard. This prevents a NullRef in that case.
26866 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
26867 clipboard. PRIMARY is for the currently selected text only. (We
26868 should implement PRIMARY at some point.
26870 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26872 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
26873 a Unicode function with a structure that was defined in Ansi way.
26876 2005-12-21 Jackson Harper <jackson@ximian.com>
26878 * StatusBar.cs: Statusbar handles its fore/back colours on it's
26879 on. Because thats how it rolls. (and this avoids it using ambient
26881 * ThemeWin32Classic.cs: Use the proper back color for filling.
26882 * Menu.cs: Use the system menu bar color for drawing menu
26883 bars. Using the window back color will bring ambient colours into
26886 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
26888 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
26889 Bitmaps were created and not disposed.
26891 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26893 * Control.cs (CreateControl): Don't do anything if the control is
26894 already created, otherwise we'd fire the OnCreated event more than
26897 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26899 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
26900 will always match. Instead return -1. Fixes #76464.
26902 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26904 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
26905 neither the beginning nor the end of the line (Fixes bug #76479)
26907 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
26910 - ControlNativeWindow.ControlFromHandle(): Now handling situation
26911 where handle is invalid
26912 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
26913 instead of slower linear search
26914 * NativeWindow.cs: Don't remove the window from the hashtable until
26915 after the driver has destroyed it (since the driver might use
26916 Control.FromHandle to lookup the control object
26917 * Hwnd.cs: Added DestroyPending property to track if a window is
26918 already destroyed as far as the driver is concerned and only hasn't
26919 yet notified the control
26921 - Activate(): Check if the window is still valid before using the
26923 - Implemented DestroyChildWindow() method to mark child windows as
26924 destroyed when a window is destroyed. This prevents situations
26925 where we might call an X method based on queued events for a
26926 window that already has been destroyed but we haven't yet pulled
26927 the destroy method from the queue.
26928 - Added a call to the new DestroyChildWindow() method to the drivers
26929 DestroyWindow code. Also now marking the destroyed window itself
26932 2005-12-20 Jackson Harper <jackson@ximian.com>
26935 * StatusBarPanel.cs: Don't calculate panel sizes on draw
26936 anymore. Just do them when needed, also track the rects of panels
26937 so that we can optimize refreshing more in the future.
26939 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
26941 * ColorDialog.cs: Fixed focus drawing in small color controls
26943 2005-12-19 Jackson Harper <jackson@ximian.com>
26945 * InternalWindowManager.cs:
26946 * MdiWindowManager.cs: Cleanup some coordinate system changes so
26947 moving windows works properly.
26949 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
26952 - Removed call to InitLayout() from SetBoundsCore(); doc says
26953 it's only called when a control is added to a container
26954 - Split InitLayout logic, moved to separate UpdateDistances() method
26955 since we need to perform those calculations more often than just
26956 when adding the control to a container. (Needed to fix #77022)
26957 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
26958 - Reduced the OnBindingContextChanged events count, don't send them
26959 unless the control is created, we still aren't totally matching
26960 MS, but I can't quite figure out some of their rules
26962 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26964 * ThemeClearlooks.cs: Corrected distance between ProgressBar
26967 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26969 * ThemeClearlooks.cs:
26970 - Updated ProgressBar drawing
26971 - Corrected drawing of ScrollBars and scroll buttons
26972 - Some temporary fixes for minor pixel artefacts
26974 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
26977 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26978 cause events to be sent in the same order as MS does.
26979 - Added ChangeParent() method to trigger various OnXXXChanged events
26980 that need to be fired when a parent changes (This is a reworking
26981 of the patch from r54254, with the X11 errors fixed)
26982 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26983 since on MS we get OnLayoutChanged events when calling Clear()
26984 - Changed Enabled property to consider parent state as well, if a
26985 parent is not enabled, the control will not be either
26986 - Changed Parent property to simply call Controls.Add() since that
26987 now does all the work required, this way we avoid code duplication
26988 - Threw in a few OnBindingsContextChanged calls to try and match
26989 when MS sends them. We seem to send a few too many, though.
26990 - Added call to CreateControl when adding the control to a parent.
26991 We were never calling CreateControl. Still needs some work, in
26992 some places we treat HandleCreated and ControlCreated as equal,
26994 - Removed obsolete commented out code from UpdateZOrder()
26996 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26998 * ThemeClearlooks.cs: Updated TrackBar drawing.
27000 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27002 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27004 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27006 * FileDialog.cs: Add the Help button and the open readonly
27007 checkbox only if needed
27009 2005-12-16 Jackson Harper <jackson@ximian.com>
27011 * Control.cs: Make sure we have an active menu before trying to
27012 process commands on it. Prevents menu-less forms from crashing
27013 when Alt is pressed.
27014 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27016 * RichTextBox.cs: Expand statement to help out gmcs and fix the
27019 2005-12-16 Jackson Harper <jackson@ximian.com>
27021 * InternalWindowManager.cs: Don't translate tool windows screen
27022 coordinates. This fixes windows 'bouncing' around when being moved.
27024 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27027 - MaxLength now treats 2^31-1 equal to unlimited length (this is
27028 not quite MS compatible, MS uses that number only for single line
27029 and 2^32-1 for multi-line, but I figure it won't hurt keeping
27031 - Now enforcing the MaxLength limit when entering characters
27032 - Added argument to internal Paste() method to track if it's called
27033 from programatically or via keyboard, since keyboard driven pastes
27034 need to enforce max-length
27035 - Added logic to Paste to only paste as many chars as MaxLength
27037 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27039 - Added Length property to return number of characters in document
27040 - Added private CharCount property which only tracks actual chars
27041 in the document (no linefeeds) and fires event when CharCount
27043 - Added tracking of character count to all methods that alter it
27044 - Added LengthChanged event to allow applications to subscribe
27045 to any changes to the document
27047 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27050 - Removed local password_char field (moved to TextBoxBase)
27051 - Now setting the document's password var when password is
27054 - Added password_char field (needed here so MultiLine can
27056 - Added logic to MultiLine property setter to set the document's
27057 variable when password display is allowed
27058 - Removed debug code and made some debug code conditional
27060 - Added RecalculatePasswordLine() method to handle special password
27062 - Added PasswordChar property, also added related tracking vars
27063 - Draw() method now uses local text var for grabbing text to draw,
27064 this var is set to line.text unless we're doing password display,
27065 then it is set to the pre-generated all-password-chars line
27066 - Added calling RecalculatePasswordLine() method for password lines
27068 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27071 - Added Reparented property to allow tracking of Window Manager
27072 reparenting actions (which affect X/Y calculations of toplevel
27074 - Made ToString() print window handles in hex
27076 - AddConfigureNotify(): Now uses reparented state off Hwnd to
27077 determine if X/Y needs offsetting
27078 - AddConfigureNotify(): Fixed offset calculations
27079 - Now adds ReparentNotify messages into the queue
27080 - Now processes ReparentNotify messages and causes a
27081 WM_WINDOWPOSCHANGED message to be sent upstream if a window
27082 is reparented (as most likely it's X/Y coordinates are changed
27085 2005-12-14 Jackson Harper <jackson@ximian.com>
27087 * XplatUIX11.cs: Tool windows still need to respek focus.
27089 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27091 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27092 have a working release
27094 2005-12-13 Jackson Harper <jackson@ximian.com>
27096 * Form.cs: Update styles after setting the border style regardless
27097 of whether or not the window is using a window manager.
27099 2005-12-13 Jackson Harper <jackson@ximian.com>
27101 * Form.cs: We now hook into an internal window manager instead of just an
27102 MDI subsystem, this is so we can have properly behaving tool windows.
27103 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27104 * InternalWindowManager.cs: New internal class that acts as a
27105 window manager for tool windows and as a base for mdi windows.
27106 * MdiWindowManager.cs: New class that acts as a window manager for
27109 2005-12-12 Jackson Harper <jackson@ximian.com>
27111 * Control.cs: Updates so we match behavoir for for implicit
27112 controls. Fixes explosions in MDI.
27114 2005-12-12 Jackson Harper <jackson@ximian.com>
27116 * Control.cs: Implement Invalidate (Region).
27118 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
27121 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
27122 the same events as MS does. MS fires events for each property
27123 except, for unknown reasons, Cursor, when the control is reparented.
27124 I can't seem to totally match add/remove since MS also fires some
27125 VisibleChanged events, which makes no sense. Consolidated the
27126 parenting code into a separate method so it can be called from
27127 both Add and Remove. set_Parent no longer needs any special logic
27128 as it calls the parent's add method which implicitly fires
27130 - Removed some obsolete code and debug output
27131 - Enabled state is inherited from parents, if this is enabled
27133 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27135 * Form.cs: Removed commented out code
27137 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27140 - Added internal version of Invoke, with additional argument
27141 indicating if we're calling it from a Dispose() handler. That
27142 way we can avoid BeginInvoke throwing an exception if we're
27143 calling for an already destroyed window.
27144 - Added a dispose argument to BeginInvokeInternal, and made the
27145 check if a valid window handle chain exists conditional on
27146 it not being a dispose call
27147 - Removed code in DestroyHandle to destroy our children. Since we
27148 now handle the WM_DESTROY message we will catch all our children
27150 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27152 - Added a field to track the application context of the form.
27153 - No need to set closing variable as response to WM_CLOSE, instead
27154 we destroy the window. We also call PostQuitMessage if the form
27155 has an application context (which makes it the main app form,
27156 which, when closed terminates the app)
27158 - Dropped Exit() method, it's naming was confusing
27159 - Added PostQuitMessage() which causes GetMessage to return false
27160 once the message queue is empty
27161 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
27163 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27164 no longer a valid XplatUI method, but left it in since it's used
27165 internally. Added empty PostQuitMessage() method.
27166 * MenuAPI.cs: Replaced call to Exit() with call to
27167 PostQuitMessage, even though this is probably no longer needed.
27168 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27169 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27171 - Replaced call to XplatUI.Exit() with PostQuitMessage()
27172 - Removed old debug code that would call XplatUI for exception
27173 display, enabled standard exception handling (Still not enabled
27174 though, until NativeWindow's ExternalExceptionHandler define
27177 - Added internal method to allow control to update NativeWindow
27178 after a window has been destroyed
27179 - Added handling of already destroyed windows when calling i
27181 - Added removal of handle from list on ReleaseHandle
27183 - Dropped GetMessageResult var and related code
27184 - Added PostQuitState to field to track if PostQuitMessage has been
27186 - Dropped Exit() method
27187 - Added PostQuitMessage() method
27188 - GetMessage now will return false if PostQuitState is set and no
27189 more messages are in the queue.
27190 - Expose handler will no longer generate WM_PAINT messages if we are
27191 in PostQuitState since it's very likely any windows have already
27192 been destroyed, and since Hwnd won't get updated until we have
27193 processed the DestroyNotify we'd be causing X errors.
27195 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27197 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27198 Thanks to Mike for pointing out the err of my ways.
27200 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27202 * Control.cs(PreProcessMessage): Moved menu handling back, but
27203 after all other key handling, to match MS (who handles Menu in
27205 * Menu.cs (WndProc): Removed my brainfart
27207 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27209 * Control.cs(PreProcessMessage): Removed special menu handling
27210 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27212 2005-12-07 Mike Kestner <mkestner@novell.com>
27214 * Control.cs : special case SYSKEYUP so that we can adjust keynav
27215 state according in tracker.
27216 * Menu.cs : promote tracker field to base class and provide a tracker
27217 lookup capability. Add/Remove shortcuts dynamically if the top menu
27218 has a tracker. Unparent items that are removed from the collection.
27219 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27220 * Theme*.cs: add always_show_hotkeys field to support configurability
27221 of mnemonic display. win32 doesn't show mnemonics until Alt is
27224 2005-12-07 Jackson Harper <jackson@ximian.com>
27226 * MdiChildContext.cs: Use Control.ResetCursor.
27227 * Control.cs: ResetCursor needs to set the property so that the
27228 correct XplatUI call gets made.
27230 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27232 * Control.cs: More fixes to make our key events match MS. We
27233 were not setting the modifier state on KeyData, and we were
27234 not generating any events when Alt was pressed with a key
27235 since handling of WM_SYSxxx was missing for the OnKey methods.
27237 2005-12-07 Jackson Harper <jackson@ximian.com>
27239 * MdiChildContext.cs: reenable the sizing code.
27240 - When the mouse leaves a window reset its cursor.
27242 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27244 * ThemeClearlooks.cs: Reflect latest Hwnd changes
27246 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27248 * Hwnd.cs: Now using the theme 3d bordersize to calculate
27249 widths of Fixed3D borders
27251 2005-12-07 Jackson Harper <jackson@ximian.com>
27253 * MdiClient.cs: Fix warnings. Earn Mike's love.
27255 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27257 * ThemeClearlooks.cs:
27258 - Adjusted mouse over button color
27259 - Added first parts of CheckBox drawing
27260 - Added correct color for selected text background
27261 - Fixed ComboBox drawing
27262 - Added CPDrawBorder3D and CPDrawBorder
27264 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27266 * XplatUIX11.cs: Added call to XBell for AudibleAlert
27268 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27270 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27271 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27272 alert users via sound. We could add an enum arg with different
27273 types of alerts in the future
27275 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27277 * Control.cs: Fix behaviour problems pointed out by Mike
27279 2005-12-05 Mike Kestner <mkestner@novell.com>
27281 * StatusBarPanel.cs: add Invalidate method and hook it into all the
27282 prop setters. Calls parent.Refresh for now, but could be maybe be
27283 optimized with an internal method on StatusBar at some point.
27286 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
27288 * RichTextBox.cs: Implemented get_SelectionColor
27290 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
27292 * ThemeClearlooks.cs:
27293 - Removed dead code
27294 - Draw black button border only if button is Form.AcceptButton
27295 - Draw correct button color for pressed RadioButton if the mouse
27296 has entered the button
27297 - Updated ProgressBar drawing!
27298 - Updated CPDrawSizeGrip drawing
27299 - Updated StatusBarPanel drawing
27301 2005-12-05 Mike Kestner <mkestner@novell.com>
27303 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27304 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27306 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
27308 * ThemeClearlooks.cs: Initial check-in, activate with
27309 export MONO_THEME=clearlooks
27310 * ThemeEngine.cs: Added ThemeClearlooks
27312 2005-12-03 Mike Kestner <mkestner@novell.com>
27314 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27317 2005-12-02 Jackson Harper <jackson@ximian.com>
27319 * Form.cs: If the child form has no menu the default main menu is
27320 used as the active menu.
27322 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27324 * ListBox.cs: Check if any items exist before trying to resolve
27325 coordinates into items
27327 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27329 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27330 as the second color for the background hatch
27332 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27334 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27335 * RichTextBox.cs: FormatText position arguments are 1-based, now making
27336 sure that what we pass to FormatText is always 1-based. Fixes #76885
27338 2005-11-29 Miguel de Icaza <miguel@novell.com>
27340 * NumericUpDown.cs (EndInit): When we are done initializing,
27341 reflect any updates on the UI.
27343 2005-12-02 Jackson Harper <jackson@ximian.com>
27345 * ImplicitHScrollBar.cs:
27346 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27347 their container controls.
27348 * TreeView.cs: Use the new implicit scrollbars.
27350 2005-12-02 Jackson Harper <jackson@ximian.com>
27352 * TreeView.cs: Make top_node internal so the TreeNodeCollections
27354 * TreeNodeCollection.cs: If we remove the topnode we need to
27355 update topnode to the next node in line.
27356 - When clearing nodes go through the same process as removing
27357 them, so they get depareneted and checked if they are top node.
27359 2005-12-01 Jackson Harper <jackson@ximian.com>
27361 * TreeView.cs: When imagelists are used the image area is
27362 selectable as well as the text.
27363 - If there are no selected nodes select the first one.
27364 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27365 so don't do it more then we need to.
27367 2005-12-01 Jackson Harper <jackson@ximian.com>
27369 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27370 that arrows can be scaled.
27372 2005-12-01 Jackson Harper <jackson@ximian.com>
27374 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27375 fail. Patch by Dieter Bremes
27377 2005-11-30 Jackson Harper <jackson@ximian.com>
27379 * Form.cs: Property is 2.0 only
27380 * PrintDialog.cs: Signature fix.
27382 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27385 - No longer artificially moves text 2 pixels down (now that we have
27386 borders this is no longer needed)
27387 - Added calcs for left, hanging and right indent
27389 2005-11-23 Mike Kestner <mkestner@novell.com>
27391 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27393 2005-11-30 Jackson Harper <jackson@ximian.com>
27395 * MdiChildContext.cs: Set the cloned menus forms, as these don't
27396 get cloned as part of CloneMenu ().
27397 * Menu.cs: Make sure the parent of the items get set correctly
27398 when they are added. And the owners are notified of the changes.
27399 * Form.cs: Create an ActiveMenu property, so that when MDI is used
27400 we can change the menu being displayed/handled by the form without
27401 changing the menu assosciated with the form.
27402 - Don't let Mdi children draw/handle menus.
27404 2005-11-30 Jackson Harper <jackson@ximian.com>
27406 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27407 a MenuChanged event. Just to make the API a little more
27410 * MenuItem.cs: Use the new OnMenuChanged
27411 * MdiChildContext.cs: Handle menu merging.
27412 * Form.cs: Implement MergedMenu.
27414 2005-11-30 Jackson Harper <jackson@ximian.com>
27416 * Menu.cs: We were misusing Add. Add goes behind the specified
27417 index according to the docs, and does not replace the specified
27418 index. So I added an Insert method.
27420 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27422 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27423 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27425 * RichTextBox.cs: Added calls to base for DnD events
27427 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
27430 - Fixed drag-selection related crash; style fixes
27431 - Implemented undo class
27432 o Implemented method to capture document state for specified
27433 range in document tree
27434 o Implemented method to restore captured document state
27435 o Implemented cursor tracking
27436 o Implemented basic undo stack
27437 - Added undo cursor tracking to methods altering cursor location
27438 - Added undo tracking to selection deletion (still missing
27439 other text-altering hookups)
27441 - Added SelectionLength property
27442 - Implemented CanPaste()
27443 - Implemented Paste()
27444 - Added missing protected methods
27445 - Fixed RTF->Document conversion; now uses font index 0 and color
27446 index 0 as the default font for the parsed text
27447 - Fixed RTF<->Document font size translation
27448 - Fixed RTF generation, now properly handles cross-tag boundaries
27449 for single line selection
27450 - No longer always appends blank line to generated RTF
27452 - Added missing attributes
27453 - Hooked up undo-related methods
27455 - Implemented Copy()
27456 - Implemented Paste()
27457 - Implemented Cut()
27458 - Fixed caret mis-behaviour on backspace across line-boundaries
27460 2005-11-29 Jackson Harper <jackson@ximian.com>
27462 * MdiClient.cs: Add a method for activating mdi children. Very
27463 basic right now. I imagine someday it might need more girth.
27464 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27465 children windows names are added to the menu item.
27466 * ThemeWin32Classic.cs: Draw the arrow if the item is an
27467 mdilist. This happens regardless of whether or not there are any
27468 mdi windows to see in the list, and according to my tests happens
27469 before the items are even added. Also happens if there isn't even
27470 an mdi client to get windows from.
27472 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
27474 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27475 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27477 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
27479 * DataGridTableStyle.cs:
27480 - Create always the styles for the missing columns even if they are
27481 provided by the user (not default table style)
27484 - Fixes SetDataBinding (always re-attach source)
27485 - Fixes SetNewDataSource (only clear styles if they are not for
27487 - Expands OnTableStylesCollectionChanged to handle style refresh
27488 and remove properly
27490 2005-11-29 Jackson Harper <jackson@ximian.com>
27492 * FileDialog.cs: Implement missing bits, remove some dead
27494 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27495 creation of the panel so that the options set on the dialog are
27496 seen when the panel is created.
27497 * TreeView.cs: raise a click when items are clicked.
27499 2005-11-29 Jackson Harper <jackson@ximian.com>
27501 * MdiClient.cs: Pass some signature methods through to base.
27503 2005-11-28 Jackson Harper <jackson@ximian.com>
27505 * ListView.cs: Raise the click event when items are clicked.
27507 2005-11-28 Jackson Harper <jackson@ximian.com>
27509 * MdiClient.cs: Make this algorithm even more beautiful. And fix
27512 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
27514 * ThemeNice.cs: - Removed 1 pixel bitmaps
27515 - Use SmoothingMode.AntiAlias where it makes sense
27516 (ScrollButton arrow for example)
27517 - Enhanced Button focus drawing
27518 - Fixed ComboBox drawing (no artefacts anymore, focus
27519 rectangle is back again, reduced size of ComboButton, etc.)
27520 - Fixed RadioButton focus drawing for Appearence.Button
27521 - Slight ScrollButton redesign
27522 - Some LinearGradientBrush size fixes
27523 - GroupBoxes have now rounded edges
27524 - Fixed StatusBar drawing
27526 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
27528 * ThemeNice.cs: - Remove dead code
27529 - use correct background colors for menus, etc.
27530 - Fake pixel drawing with 1 pixel bitmaps
27532 2005-11-24 Jackson Harper <jackson@ximian.com>
27534 * MdiClient.cs: Size the scrollbars when resizing the window.
27535 - Resize the maximized windows when the client is resized
27536 * Form.cs: Make the child context available
27538 2005-11-23 Jackson Harper <jackson@ximian.com>
27540 * MdiChildContext.cs: Don't size windows if they are maximized.
27542 2005-11-23 Mike Kestner <mkestner@novell.com>
27544 * ContextMenu.cs: use MenuTracker.
27545 * Control.cs: remove menu handle usage.
27546 * Form.cs: remove menu handle usage.
27547 * Hwnd.cs: remove menu handle usage.
27548 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
27549 motion and clicks to the new Tracker handlers.
27550 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
27552 * MenuAPI.cs: refactored to combine popup and menubar event handling.
27553 Killed the MENU and MENUITEM data types and associated collections
27554 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
27555 MenuTracker class that exposes the leftovers from the old MenuAPI
27556 static methods. Restructured Capture handling so that only one grab is
27557 done for the entire menu hierarchy instead of handing off grabs to
27558 submenus. Tracker now has an invisible control to Capture when active.
27559 * MenuItem.cs: add sizing accessors, kill Create
27561 * Theme.cs: remove menu handle and MENU(ITEM) usage.
27562 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
27563 MENU(ITEM). remove menu handle usage, use Menu directly.
27564 * XplatUIDriver.cs: remove menu handle usage.
27565 * XplatUIOSX.cs: remove menu handle usage.
27566 * XplatUIWin32.cs: remove menu handle usage.
27567 * XplatUIX11.cs: remove menu handle usage.
27569 2005-11-22 Jackson Harper <jackson@ximian.com>
27571 * Hwnd.cs: Don't compute the menu size for
27572 DefaultClientRectangle.
27573 - Reenable menu sizes being computed for GetClienRectangle.
27574 * Form.cs: Remove comment of trechery
27576 2005-11-22 Jackson Harper <jackson@ximian.com>
27578 * Hwnd.cs: The adjustments for the menu bar are made when it is
27579 attached to the form.
27581 2005-11-19 Jackson Harper <jackson@ximian.com>
27583 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
27584 (just like on windows).
27586 2005-11-19 Jackson Harper <jackson@ximian.com>
27588 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
27589 use real buttons anymore because they are in non client area. The
27590 one TODO here is that I need to somehow invalidate a section of
27591 the non client area.
27593 2005-11-18 Jackson Harper <jackson@ximian.com>
27595 * Control.cs: Put the enum check back in now that MDI doesnt have
27596 to use this to set border styles.
27597 * Form.cs: Only set mdi child windows borders if the handle has
27599 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
27600 this directly on to the driver.
27601 - Get the move start position before adjusting for the titlebar
27602 height, this fixes the windows "skipping" when they are first
27605 2005-11-18 Jackson Harper <jackson@ximian.com>
27607 * XplatUIX11.cs: Just compute the mdi borders separately as they
27608 don't totally match up with normal form borders.
27610 2005-11-18 Jackson Harper <jackson@ximian.com>
27612 * Control.cs: Set WS_ styles for borders, so that the driver does
27613 not have to retrieve the control instance to figure out what kind
27614 of borders it should have.
27615 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
27616 driver can know its an mdi child easily.
27617 * XplatUIX11.cs: Get the border styles and whether the window is
27618 MDI from the Styles and ExStyles params instead of having to get a
27619 control. This prevents a chicken and egg problem.
27621 2005-11-18 Jackson Harper <jackson@ximian.com>
27623 * MdiClient.cs: Fix typo so scrollbars show up correctly.
27625 2005-11-18 Jackson Harper <jackson@ximian.com>
27627 * MdiClient.cs: Calculate when to add and remove scrollbars
27629 * MdiChildContext.cs: Adjust the y position to take the titlebar
27631 - No height for FormBorderStyle.None
27633 2005-11-18 Jackson Harper <jackson@ximian.com>
27635 * Control.cs: Allow non enum values to be used for
27636 InternalBorderStyle. MDI does this to set a special border style.
27637 - New utility methods for converting points to/from client coords
27638 - Add the newly created control to the Controls collection before
27639 updating its style. This way UpdateStyle can walk the control
27640 heirarchy to find the control if needed.
27641 so I don't need to create a new Point object all the time.
27642 * Form.cs: Let MDI windows handle their border styles.
27643 - Set styles on MDI windows so the correct title style is derived.
27644 * MdiChildContext.cs: Move all the painting and window handling
27645 into the non client area.
27646 - Use correct sizing and put correct buttons on frames based on
27647 the FormBorderStyle.
27648 - Notify the mdi client about scrolling
27649 - Need to handle the buttons ourselves now, because they are all
27650 in non client areas and we can't add controls there.
27651 * MdiClient.cs: Halfway to scrolling, this implementation is
27652 somewhat broken though, we need to check to make sure other
27653 windows aren't causing scrolling before removing the bars. Also
27654 the bars need to be drawn on top, maybe I can switch implicit
27655 controls to be on top.
27656 * Hwnd.cs: caption_height and tool_caption_height are now
27657 properties of an hwnd, this way they can be set by the driver
27658 based on the type of window they are. In X11 the window manager
27659 handles the decorations so caption_height is zero unless its an
27661 - Add 3 pixel borders for MDI windows (0xFFFF).
27662 - Get rid of some code duplication, have DefaultClientRectanle
27663 just call GetClientRectangle.
27664 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27666 - Set border styles differently for mdi windows.
27667 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27670 2005-11-15 Mike Kestner <mkestner@novell.com>
27672 * Menu.cs: when adding an item to the collection, if item is already
27673 parented, remove it from the parent.
27675 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
27677 * X11DesktopColors.cs: Added KDE support
27679 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
27682 - Clipboard methods now can translate Rtf format
27683 - No longer removes clipboard contents whenever a new format is added
27684 to allow placing multiple formats on the clipboard
27685 * Clipboard.cs: Clipboard now supports getting a IDataObject and
27686 will place all formats contained in it onto the clipboard. Also
27687 now cleans the clipboard before placing a new object onto it
27689 - Implemented set_Rtf
27690 - Implemented set_SelectedRtf
27691 - Created InsertRTFFromStream() method to allow single code base
27692 for all properties and methods that insert RTF into document
27693 - Removed debug output
27695 - Fixed Delete(int) to fix up line numbers
27696 - Fixed ReplaceSelection to combine start and end line
27697 - Fixed serious DeleteChars bug that would leave the document tree
27699 - Improved DumpTree with several logic checks to detect broken
27701 - Removed debug lines
27702 - Fixed Caret.WordForward/WordBack moving code, now always also
27703 updates caret.tag (fixes crash when word-selecting across tag
27704 boundaries via keyboard)
27705 - Added Insert() method for inserting multiline text into documents
27706 - Fixed DeleteChars() calculation errors that would cause a broken
27707 tag chain with multiple tag lines
27708 - DeleteChars() no longer crashes on multi-tag lines if not all tags
27709 - Split() no longer moves caret if split is at caret location
27710 - ReplaceSelection() now updates the cursor and re-displays it
27711 - ReplaceSelection() now uses new Insert() method to avoid code
27713 - FormatText() can now handle formatting partial lines
27715 - Append now uses new TextControl.Insert() method (this avoids
27717 - Implemented Ctrl-X (Cut) (
27718 - Implemented Ctrl-C (Copy)
27719 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
27720 regeneration when pasting text; roundtripping Copy&Paste within
27721 edit control still fails due to some calculation bugs in GenerateRTF)
27722 - The Delete key will now remove the current selection if it is visible
27723 * TextBox.cs: Removed debug lines
27724 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
27725 driver to be initialized and can't therefore be done via a static ctor)
27727 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
27729 * TextControl.cs: Added backend code for finding char arrays and strings
27731 - Added mouse wheel scroll support
27732 - Added support for VScroll and HScroll events
27734 - Implemented all seven Find() variants
27735 - Implemented GetCharFromPosition()
27736 - Implemented GetCharIndexFromPosition()
27737 - Implemented GetLineFromIndex()
27738 - Implemented GetPositionFromCharIndex();
27739 - Implemented SaveFile for PlainText and UnicodeText
27740 - Fixed set_Font, now setting a new font applies that font to
27742 - Implemented generic Document to RTF converter
27743 - Implemented SaveFile for RichText format (still missing unicode
27744 conversion for non-ansi chars)
27745 - Implemented get_Rtf
27746 - Implemented get_SelectedRtf
27748 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
27750 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
27751 to allow any captures to be released before triggering OnClick. This
27752 way a click handler may capture the mouse without interference.
27753 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
27754 This way we send them even though X may not allow a grab (if the window
27755 isn't visible, for example)
27757 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
27759 * DataGridViewRowEventArgs.cs: DataGridView implementation
27760 * DataGridViewElement.cs: DataGridView implementation
27761 * DataGridViewComboBoxCell.cs: DataGridView implementation
27762 * DataGridViewDataErrorContexts.cs: DataGridView implementation
27763 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
27764 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
27765 * ImageLayout.cs: DataGridView implementation
27766 * DataGridViewComboBoxColumn.cs: DataGridView implementation
27767 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
27768 * DataGridViewSelectionMode.cs: DataGridView implementation
27769 * IDataGridViewEditingControl.cs: DataGridView implementation
27770 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
27771 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
27772 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
27773 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
27774 * DataGridViewColumnSortMode.cs: DataGridView implementation
27775 * DataGridView.cs: DataGridView implementation
27776 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
27777 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
27778 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
27779 * Padding.cs: DataGridView implementation
27780 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
27781 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
27782 * DataGridViewRowEventHandler.cs: DataGridView implementation
27783 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
27784 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
27785 * DataGridViewButtonCell.cs: DataGridView implementation
27786 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
27787 * DataGridViewEditMode.cs: DataGridView implementation
27788 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
27789 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
27790 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
27791 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
27792 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
27793 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
27794 * DataGridViewCellEventHandler.cs: DataGridView implementation
27795 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
27796 * DataGridViewCellStyleConverter.cs: DataGridView implementation
27797 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
27798 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
27799 * DataGridViewColumnEventArgs.cs: DataGridView implementation
27800 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
27801 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
27802 * QuestionEventArgs.cs: DataGridView implementation
27803 * IDataGridViewEditingCell.cs: DataGridView implementation
27804 * DataGridViewTriState.cs: DataGridView implementation
27805 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
27806 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
27807 * DataGridViewColumnCollection.cs: DataGridView implementation
27808 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
27809 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
27810 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
27811 * DataGridViewColumn.cs: DataGridView implementation
27812 * DataGridViewCellBorderStyle.cs: DataGridView implementation
27813 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
27814 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
27815 * DataGridViewRow.cs: DataGridView implementation
27816 * DataGridViewImageCellLayout.cs: DataGridView implementation
27817 * DataGridViewImageCell.cs: DataGridView implementation
27818 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
27819 * DataGridViewCheckBoxCell.cs: DataGridView implementation
27820 * DataGridViewHeaderCell.cs: DataGridView implementation
27821 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
27822 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
27823 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
27824 * DataGridViewTextBoxColumn.cs: DataGridView implementation
27825 * QuestionEventHandler.cs: DataGridView implementation
27826 * DataGridViewCellStyleScopes.cs: DataGridView implementation
27827 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
27828 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
27829 * DataGridViewCell.cs: DataGridView implementation
27830 * DataGridViewCellEventArgs.cs: DataGridView implementation
27831 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
27832 * DataGridViewCellStyle.cs: DataGridView implementation
27833 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
27834 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
27835 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
27836 * TextFormatFlags.cs: DataGridView implementation
27837 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
27838 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
27839 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
27840 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
27841 * DataGridViewButtonColumn.cs: DataGridView implementation
27842 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
27843 * HandledMouseEventArgs.cs: DataGridView implementation
27844 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
27845 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
27846 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
27847 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
27848 * DataGridViewRowCollection.cs: DataGridView implementation
27849 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
27850 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
27851 * DataGridViewHitTestType.cs: DataGridView implementation
27852 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
27853 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
27854 * DataGridViewColumnEventHandler.cs: DataGridView implementation
27855 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
27856 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
27857 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
27858 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
27859 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
27860 * DataGridViewContentAlignment.cs: DataGridView implementation
27861 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
27862 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
27863 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
27864 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
27865 * DataGridViewPaintParts.cs: DataGridView implementation
27866 * DataGridViewCellCollection.cs: DataGridView implementation
27867 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
27868 * DataGridViewImageColumn.cs: DataGridView implementation
27869 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
27870 * DataGridViewElementStates.cs: DataGridView implementation
27871 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
27872 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
27873 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
27874 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
27875 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
27876 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
27877 * DataGridViewRowHeaderCell.cs: DataGridView implementation
27878 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
27879 * DataGridViewTextBoxCell.cs: DataGridView implementation
27880 * DataGridViewBand.cs: DataGridView implementation
27881 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
27882 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
27883 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
27884 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
27885 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
27886 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
27887 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
27888 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
27889 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
27890 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
27891 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
27893 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
27895 * ThemeWin32Classic.cs:
27896 - Draw the outside focus rectangle around buttons
27897 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
27898 doesn't use end caps for every dash of a line anymore. This
27899 workaround ignores the forecolor.
27901 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
27903 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
27906 2005-11-07 Jackson Harper <jackson@ximian.com>
27908 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
27910 2005-11-07 Jackson Harper <jackson@ximian.com>
27912 * ScrollableControl.cs: Calculate the maximum and change vars
27913 (more) correctly so that scrollbars appear as a sensible size.
27915 2005-11-04 Jackson Harper <jackson@ximian.com>
27917 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
27919 * TreeView.cs: When the tree is sorted null out the top_node so
27920 that it is recalculated.
27921 - Use dotted lines instead of dashed lines to match MS better.
27923 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
27926 - Implements key search for items. Useful when browsing files with FileDialog
27927 - When changing view mode or when clear the items reset scrollbar positions
27929 2005-11-04 Jackson Harper <jackson@ximian.com>
27931 * CurrencyManager.cs: Implement the MetaDataChanged event, the
27932 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
27933 as to what the method may do as there is no real way of creating a
27934 derived CurrencyManager and calling the method.
27936 2005-11-03 Jackson Harper <jackson@ximian.com>
27938 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
27939 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
27940 method which seems to just be used internally to refresh the tabs.
27942 2005-11-03 Jackson Harper <jackson@ximian.com>
27944 * TabControl.cs: Implement the remove method. Fix some broken
27947 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27949 * DateTimePicker.cs:
27950 - Added missing DateTimePickerAccessibleObject class
27951 - Added missing events
27952 - Added OnFontChanged method
27953 * Form.cs: Added missing attributes
27954 * TreeView.cs: Added missing attributes
27956 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27958 * GridItemCollection.cs: Fix signatures
27960 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27962 * XplatUI.cs: Updated build rev/date
27963 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
27964 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
27965 * Application.cs: Trigger context-specific ExitThread events
27967 2005-11-03 Jackson Harper <jackson@ximian.com>
27971 * GridTableStylesCollection.cs:
27976 * MonthCalendar.cs: Signature fixes
27978 2005-11-03 Jackson Harper <jackson@ximian.com>
27980 * TreeNodeCollection.cs: Remove should not be virtual.
27981 * TreeView.cs: Implement the last of the missing methods.
27983 2005-11-03 Jackson Harper <jackson@ximian.com>
27985 * TreeNodeConverter.cs: Implement to get off my class-status back.
27987 2005-11-03 Jackson Harper <jackson@ximian.com>
27989 * TreeView.cs: Hookup the bits for drag and drop.
27990 * TreeNode.cs: Don't cache the tree_view or index anymore, now
27991 that nodes can be moved from tree to tree easily this just causes
27992 all sorts of problems.
27993 * TreeNodeCollection: Don't need to give treenodes an index and
27994 treeview anymore when they are added, these are computed on the
27995 fly. Also make sure to remove a node before its added.
27997 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28000 - Added CaretSelection enum
28001 - Added comparison methods to Marker struct, makes selection code
28003 - Added SelectionStart and SelectionEnd as 'moveable' location for
28004 the CaretDirection enum and handler
28005 - Added selection_prev variable to track optimized invalidation for
28006 word and line selection
28007 - Added SelectionVisible property (returns true if there is a valid
28009 - Switched CaretHasFocus to only display the caret if there is no
28011 - Avoiding StringBuilder.ToString to retrieve a single char, instead
28012 using the direct character index; should be much faster
28013 - Added various conditional debug statements
28014 - Fixed invalidation calculation for selection ranges
28015 - Added ExpandSelection() method to support word and line selection
28016 - Switched SetSelectionToCaret to use new Marker compare overloads
28017 - Added central IsWordSeparator() method to determine word
28018 separators/whitespace and FindWordSeparator() to streamline common
28019 usage of IsWordSeparator()
28021 - Removed unneeded grabbed variable, it was just mirroring
28023 - No longer firing OnTextChanged event when Text setter is called,
28024 since the base will fire the event for us
28025 - Added handling of Ctrl-Up/Down selection
28026 - Added handling of Shift-Cursorkey selection
28027 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28029 - Added handling of Shift and Ctrl-Shift-Home/End selection
28030 - Removed some debug output
28031 - Added handling for single/double/tripple-click to place caret/
28032 select word/select line respectively (Fixes bug #76031)
28033 - Added support for drag expansion of word/line selection
28034 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28037 2005-11-02 Jackson Harper <jackson@ximian.com>
28039 * X11Dnd.cs: If the drag is going to and from a MWF window just
28040 copy the data instead of sending it out through the X Selection
28043 2005-11-02 Jackson Harper <jackson@ximian.com>
28046 * XplatUIX11.cs: When in a drag we don't want motion notify
28047 messages to get passed on to the other controls. This prevents
28048 mouse move messages from showing up in the drag source.
28050 2005-11-02 Jackson Harper <jackson@ximian.com>
28052 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
28053 the correct button is release to end a drag.
28054 * XplatUIX11.cs: Make the button state internal so the drag system
28055 can access it. Dragging needs to know about all button releases,
28056 not just left button.
28058 2005-11-02 Miguel de Icaza <miguel@novell.com>
28060 * Form.cs (Icon): If the icon is null, reset the icon to the
28063 * Cursor.cs: When writing the AND-mask bitmap do not include the
28064 number of colors, but hardcode those to two (black and white),
28065 fixes the loading of color cursors (Paint Dot Net).
28067 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28068 turn off autoscaling.
28070 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28072 2005-11-02 Jackson Harper <jackson@ximian.com>
28074 * X11Dnd.cs: Make sure to send a status message if the pointer
28075 enters a control that can not accept a drop, otherwise the cursor
28076 isn't updated correctly. Also tried to compress the lines of code
28079 2005-11-02 Jackson Harper <jackson@ximian.com>
28081 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28082 set actions correctly. This isn't perfect as XDND and win32 have
28083 some differences on how you allow actions. I'll clear this up by
28084 adding a path for drag from MWF to MWF windows.
28085 * XplatUIX11.cs: Hook into the dnd system.
28087 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
28089 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28090 previously shown but they are no longer need it. Very obvious when
28091 browsing files with FileDialog.
28093 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
28095 * Control.cs: We always need to call OnPaintBackground. We pretty much
28096 ignore AllPaintingInWmPaint and always do the painting there, whether
28097 it's set or not, since we always ignore the WM_ERASEBKGND message
28098 (which we don't generate on X11). This fixes #76616.
28099 * Panel.cs: Removed unneeded background painting. This happens properly
28100 in Control.cs already
28102 2005-10-31 Mike Kestner <mkestner@novell.com>
28104 * Menu.cs: Add items to collection before setting their index.
28105 * MenuItem.cs : add range checking with ArgumentException like MS.
28108 2005-10-31 Jackson Harper <jackson@ximian.com>
28110 * ListBox.cs: Invalidate if the area is visible at all not just
28111 contained in the visible rect. Fixes unselection of semi visible
28114 2005-10-31 Jackson Harper <jackson@ximian.com>
28116 * Control.cs: Consistently name the dnd methods. Make them
28117 internal so we can override them to match some MS behavoir
28119 * Win32DnD.cs: Use the new consistent names.
28121 2005-10-31 Jackson Harper <jackson@ximian.com>
28123 * TreeView.cs: Don't draw the selected node when we lose focus.
28125 2005-10-31 Jackson Harper <jackson@ximian.com>
28127 * X11Dnd.cs: We still need to reset the state even though a full
28128 reset isn't being done, otherwise status's still get sent all over
28131 2005-10-31 Jackson Harper <jackson@ximian.com>
28133 * Control.cs: Make the dnd_aware flag internal so the dnd
28134 subsystem can check it. Catch exceptions thrown in dnd handlers to
28136 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28137 * X11Dnd.cs: Handle null data in the converters. Set the XDND
28138 version when sending a XdndEnter. Use the control/hwnd dnd_aware
28139 flags to reduce the number of dnd enters/status's sent.
28141 2005-10-31 Jackson Harper <jackson@ximian.com>
28143 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28145 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
28147 * PictureBox.cs: Fixes 76512
28149 2005-10-28 Jackson Harper <jackson@ximian.com>
28151 * X11Dnd.cs: Early implementation to support winforms being a drag
28152 source for data on X11. Also restructured the converters so they
28153 can go both ways now.
28154 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28156 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
28158 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28161 2005-10-27 Jackson Harper <jackson@ximian.com>
28163 * TreeNode.cs: Implement serialization so my DnD examples will work.
28165 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
28167 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28168 TreeView.cs: Don't dispose objects that are not owned.
28170 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
28172 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28173 should retrieve the current cursor and report that, but XplatUI
28174 doesn't (yet) have an interface for that (and I'm not sure I even
28176 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28177 until any message loop processing is done (and the WM_SETCURSOR
28178 replaces the cursor to the proper one)
28180 - Fixed override behaviour, we can't set the cursor globally on X11,
28181 just for our windows.
28182 - Invalidating the System.Drawing X11 display handle when we are
28184 * Control.cs: Fix to make csc happy
28186 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
28189 - get_Text: Add last line (without trailing newline) to returned
28190 value (Fixes 76212)
28191 - get_TextLength: Count last line in returned length
28192 - ToString: Call Text property instead of duplicating code
28194 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
28196 * ImageList.cs: Dispose ImageAttributes objects.
28198 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28200 * ImageList.cs: Use attribute constructors with less arguments where
28203 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28205 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28206 Use typeof instead of strings when assembly is referenced. Added
28207 some more comments.
28209 2005-10-21 Jackson Harper <jackson@ximian.com>
28211 * ListView.cs: Raise a double click event. Also tried to somewhat
28212 fix when the selectedindexchanged event is raised. Its still
28215 2005-10-21 Jackson Harper <jackson@ximian.com>
28217 * TreeView.cs: New method to invalidate the plus minus area of a
28218 node without invalidating the whole node (maybe this can be used
28219 in some more places).
28220 * TreeNodeCollection.cs: When adding to an empty node we need to
28221 invalidate its plus minus area so the little block shows up.
28223 2005-10-21 Jackson Harper <jackson@ximian.com>
28225 * TreeView.cs: Make sure that when we invalidate a node the bounds
28226 are big enough to cover the selected box and the focus
28227 rectangle. Use a different colour for the lines connecting nodes
28228 so they show up with all themes.
28230 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28232 * NativeWindow.cs: Don't call anything that could call into the driver,
28233 we might be on a different thread.
28235 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28237 * Control.cs(Dispose): Since Dispose might run on a different thread,
28238 make sure that we call methods that could call into the driver via
28239 invoke, to avoid thread issues
28241 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28243 * XplatUI.cs: Removed finalizer
28244 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28245 not allowing to be called on the finalizer thread.
28247 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
28250 - Reverted r51889 and r51891.
28251 - Added ImageListItem class that stores unmodified image items and image
28252 properties required to create list images until handle is created.
28253 - Added AddItem and moved image creation logic to AddItemInternal.
28254 - Added CreateHandle method that creates images based on unmodified items.
28255 - Added DestroyHandle that changes state to store unmodified items.
28256 - Add and AddStrip methods no more create handle.
28257 - ReduceColorDepth has no return value.
28258 - Dispose destroys handle.
28259 - Modified other methods to reflect the above changes.
28260 - Implemented key support.
28261 - Added profile 2.0 members and attributes.
28262 - Added private Reset and ShouldSerialize methods that provide the same
28263 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28264 them as they are private.
28265 - Added some more comments about implementation details.
28267 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28269 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28271 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28273 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28275 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28277 * DataGridDrawingLogic.cs: Fixes column hit calcultation
28278 * DataGridColumnStyle.cs: Remove debug message
28280 2005-10-20 Jackson Harper <jackson@ximian.com>
28282 * TreeView.cs: We can always get input keys regardless of whether
28283 or not editing is enabled. They are used for navigation.
28285 2005-10-20 Jackson Harper <jackson@ximian.com>
28287 * TreeNode.cs: Use the viewport rect for determining if a node
28288 needs to be moved for visibility. Don't use Begin/End edit. This
28289 calls a full refresh when its done.
28290 * TreeView.cs: New SetBottom works correctly. Make the viewport
28291 rect property internal so the treenodes can see it. When clicking
28292 on a node we need to ensure that its visible because it might just
28293 be partly visible when clicked.
28295 2005-10-20 Jackson Harper <jackson@ximian.com>
28297 * TreeNodeCollection.cs: Remove debug code.
28299 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28301 * Datagrid.cs: Implements column sorting in Datagrid
28302 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28304 2005-10-20 Jackson Harper <jackson@ximian.com>
28306 * TreeNodeCollection.cs: Remove items properly. Update the correct
28307 area after removing them.
28309 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28311 * Datagrid.cs: Should not call base.OnPaintBackground
28313 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28315 * XplatUIX11.cs (GetMessage):
28316 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28317 window instead of client window
28318 - Now properly calculates NC_xBUTTONUP message coordinates
28319 - ScreenToMenu now properly calculates it's coordinates of whole
28320 window, since menus are in the whole window, not in the client
28322 - Added WholeToScreen coordinate translation method
28324 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28326 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28327 want to return a message, loop back to the beginning of the function
28328 and grab the next real message to process instead.
28330 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28332 * Splitter.cs: Properly set limits if no filler control is used
28334 2005-10-19 Jackson Harper <jackson@ximian.com>
28336 * ColorDialog.cs: Don't show the help button if it is not enabled
28337 instead of disabling it (this is what MS does). Don't create the
28338 panel until the dialog is run, otherwise the vars (such as
28339 ShowHelp) are not set yet.
28341 2005-10-19 Jackson Harper <jackson@ximian.com>
28343 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28344 are reduced when adding nodes.
28346 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28349 2005-10-19 Jackson Harper <jackson@ximian.com>
28351 * FolderBrowserDialog.cs: End editing our treeview so the window
28352 actually gets refreshed.
28354 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28356 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
28357 Obsoleted handling of WM_ERASEBKGND, now always draws our background
28360 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28362 * MenuAPI.cs: Returns after Hidding window
28363 * XplatUIX11.cs: Added TODO found while debugging menu issues
28365 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28367 * XplatUIX11.cs: Do not re-map the whole window when it's size
28368 becomes non-zero unless it's supposed to be actually visible
28370 2005-10-18 Jackson Harper <jackson@ximian.com>
28372 * TreeView.cs: We don't need to keep a count anymore.
28373 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28374 use the Grow method.
28376 2005-10-18 Jackson Harper <jackson@ximian.com>
28378 * TreeNodeCollection.cs: Insert is not supported on arrays, so
28379 implement it manually here.
28381 2005-10-18 Jackson Harper <jackson@ximian.com>
28383 * ImageList.cs: Dont kill the list when the colour depth is
28384 changed, just change the colour depth of all the images.
28385 - Same goes for setting the image size. Just resize them all
28386 instead of killing the list softly.
28388 2005-10-18 Jackson Harper <jackson@ximian.com>
28390 * Control.cs: Don't invalidate empty rectangles.
28392 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28395 - Adds checked item to the Checked/Item lists (where empty before)
28396 - Do not add items to the Selected lists if they are already present
28398 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28399 - When deleting items make sure that we delete them for the Selected
28400 and Checked list also.
28402 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28404 * Label.cs: Dispose objects no longer used
28405 * ThemeWin32Classic.cs: Dispose objects no longer used
28407 2005-10-18 Jackson Harper <jackson@ximian.com>
28409 * TabControl.cs: Don't refresh the whole control when the tabs are
28410 scrolled, we just need to refresh the tab area.
28412 2005-10-17 Jackson Harper <jackson@ximian.com>
28414 * XplatUIX11.cs: Compress code a little bit. Only calculate the
28415 after handle when we need it.
28417 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28419 * Control.cs: When the parent size changes, recalculate anchor
28420 positions. Partial fix for #76462
28422 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28424 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
28425 drawn. Fixes #76462
28427 2005-10-17 Jackson Harper <jackson@ximian.com>
28429 * MonthCalendar.cs: Don't create the numeric up down until our
28430 handle is created. Otherwise our handle is created in the
28431 constructor and we don't know if we are a WS_CHILD or WS_POPUP
28434 2005-10-17 Jackson Harper <jackson@ximian.com>
28436 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28439 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28440 * TreeNode.cs : small logical fix (was using local var instead of field)
28442 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28444 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28446 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28448 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28450 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
28453 - Re-implemented anchoring code. My first version was really broken.
28454 This fixes bug #76033. Unlike the previous implementation we will
28455 no longer have round errors since all numbers are calculated from
28456 scratch every time. Removed various anchor-related obsolete vars.
28457 - InitLayout no longer causes layout event firing and layout to be
28460 2005-10-16 Jackson Harper <jackson@ximian.com>
28462 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28465 2005-10-16 Jackson Harper <jackson@ximian.com>
28467 * TabControl.cs: Remove debug code.
28469 2005-10-16 Jackson Harper <jackson@ximian.com>
28471 * XEventQueue.cs: Increase the default queue size (very simple
28472 apps needed to grow the queue).
28473 * Hwnd.cs: No finalizer so we don't need to suppress
28474 finalization. Compute the invalid area manually so a new rectangle
28475 does not newto be created.
28476 * ScrollableControl.cs: Don't set any params (otherwise visibility
28477 isn't set correctly).
28478 * MdiChildContext.cs: New constructor takes the mdi parent so it
28479 doesn't have to be computed and avoids a crash on windows. Draw
28480 the window icon properly, and allow the text to be seen.
28481 * Form.cs: Use new MdiChildContext constructor. Make sure the
28482 child context isn't null in wndproc.
28483 * TabControl.cs: Don't set focus, this is muddling keyboard
28484 behavoir. Expand the tab rows when a window size increase will
28485 allow extra tabs to be seen. Don't allow tabs smaller than the
28486 width of a window to be scrolled out of view.
28488 * TreeView.cs: Use measure string to calculate a nodes width, the
28489 width is cached and only updated when the text or the font is
28490 changed. Don't check for expand/collapse clicks on the first level
28491 nodes if root lines are disabled.
28493 2005-10-16 Ritvik Mayank <mritvik@novell.com>
28495 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28497 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28499 * DataGridBoolColumn.cs: fixes warning
28501 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28503 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28504 to match more to match more precisely the MS Net behavior
28506 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28508 * Hwnd.cs: Added field to track if window is mapped
28510 - Unmap windows if they become 0-size, re-map when
28511 they are >0 again; fixes #76035
28512 - Re-set our error handler after initializing X11Desktop
28513 to override any error handlers Gtk or whatever was called
28516 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28518 * CheckedListBox.cs: Removed unused vars
28519 * ListView.cs: Fixed signatures
28520 * RichTextBox.cs: Removed unused vars
28521 * TextBoxBase.cs: Removed unused vars
28522 * XplatUIWin32.cs: Removed unused vars
28523 * XplatUIX11.cs: Removed unused vars
28524 * XplatUI.cs: Updated version and date to latest published
28526 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28528 * Cursor.cs: Added private .ctor to work around a bug in
28529 resourceset (Thanks to Geoff Norton for the help on this)
28530 * SplitterEventArgs.cs: Made fields accessible so we don't
28531 waste boatloads of objects and can reuse the same one
28533 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28534 any captions and borders when generating screen coordinates
28535 * Splitter.cs: Reimplemented control, now fully complete, uses
28536 rubberband drawing, supports and obeys all properties, has
28539 2005-10-13 Miguel de Icaza <miguel@novell.com>
28541 * Form.cs (Form): Setup default values for autoscale and
28542 autoscale_base_size; Make these instance variables, not static
28545 (OnLoad): on the first load, adjust the size of the form.
28547 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28549 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
28550 width argument to DrawReversibleRectangle()
28551 * XplatUIWin32.cs, XplatUIX11.cs:
28552 - Implemented width for DrawReversibleRectangle()
28553 - Added logic to DrawReversibleRectangle that recognizes a zero
28554 width or height and only draws a line in that situation
28556 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28558 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
28559 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
28560 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
28561 method (it uses our FosterParent window to get a graphics context)
28563 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
28565 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
28566 and SetWindowBackground methods
28568 - Setting proper ControlStyles
28569 - We no longer call XplatUI.SetWindowBackground and XplatUI.
28570 EraseWindowBackground, instead we draw the window background
28571 ourselves in PaintControlBackground. This behaviour is
28572 required to match MS, where, when OnPaintBackground is not
28573 called, the background is not drawn.
28574 - Removed unneeded Refresh() in set_Text
28575 * Hwnd.cs: Dropped the ErasePending support. No longer needed
28577 - Created DeriveStyles method to translate from CreateParams to
28578 FormBorderStyle and TitleStyle, also handles BorderStyle (which
28579 matches FormBorderStyle enum values)
28580 - Consolidated SetHwndStyles and CalculateWindowRect border/title
28581 style calculations into single DeriveStyles method
28582 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
28583 from redrawing the whole window on any resize or expose.
28584 - Fixed CreateWindow usage of SetWindowValuemask. Before not
28585 all styles were applied to our whole/client window appropriately
28586 - Removed EraseWindowBackground() and SetWindowBackground() methods
28587 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
28588 no longer clear/redraw the background through X
28589 - Removed handling of erase_pending bit, we have no use for it (or
28592 - Removed generation and handling of WM_ERASEBKGND message
28593 - Removed EraseWindowBackground() and SetWindowBackground() methods
28594 - Removed handling of hwnd.ErasePending flag
28596 - Removed EraseWindowBackground() and SetWindowBackground() methods
28597 - We no longer call EraseWindowBackground on PaintEventStart, we
28598 ignore the fErase flag, erasing is handled in Control in the
28600 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
28601 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
28602 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
28603 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
28604 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
28605 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
28606 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
28608 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
28610 * PropertyGrids.cs: Get sub properties
28611 * PropertyGridView.cs: Fix drawing code
28613 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28615 * ListBox.cs: Fixes 76383
28617 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28619 * DataGridTextBoxColumn.cs: Sets location and size before attachment
28620 * ThemeWin32Classic.cs: Fixes border drawing and calculations
28621 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
28624 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28626 * ComboBox.cs: Fixes border drawing
28628 2005-10-10 Miguel de Icaza <miguel@novell.com>
28630 * MimeIcon.cs: Ignore errors if the file can not be read.
28632 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
28634 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28635 - Fixed border calculations
28636 - Fixed horizontal scrolling in single column listboxes
28637 - Fixed drawing issues
28639 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
28641 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
28642 FormBorderStyle enum
28643 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
28644 code to determine FormBorderStyles from CreateParams
28646 - Fixed bug where we'd set the wrong window styles if we were
28647 not creating an MDI window
28648 - Added call to XplatUI.SetBorderStyle when form borders are set
28649 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28651 - Removed obsolete edge style
28652 - Switched from BorderStyle to FormBorderStyle
28654 2005-10-10 Jackson Harper <jackson@ximian.com>
28656 * Form.cs: Use the property to get the window handle instead of
28657 accessing it directly. Prevents a null reference exception.
28659 2005-10-10 Jackson Harper <jackson@ximian.com>
28661 * TreeView.cs: Don't adjust the rect given to DrawString now that
28662 our libgdiplus draws correctly.
28664 2005-10-08 Jackson Harper <jackson@ximian.com>
28666 * TreeView.cs: Don't try to find the clicked on node if there are
28667 no nodes in the tree.
28669 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28675 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
28677 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28678 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28680 Use ResPool for brushes and dispose System.Drawing objects that
28681 are not used anymore.
28683 2005-10-07 Jackson Harper <jackson@ximian.com>
28685 * MdiChildContext.cs: Use the new borders instead of drawing them
28688 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28690 * Calling UpdateBounds after changing the window's BorderStyle
28691 since the style can change the ClientSize
28693 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28695 * Control.cs: Made PaintControlBackground virtual
28696 * Panel.cs: Overriding PaintControlBackground instead of using paint
28697 event; paint event method was interfering with 'real' users of the
28700 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
28702 * ThemeWin32Classic.cs: remove border drawing since it is handled
28703 by the base control class now and was causing double border drawing.
28705 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28707 * Panel.cs: Redraw our background on paint. Not a pretty solution,
28708 but it does seem to match MS behaviour. This fixes bug #75324
28710 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28712 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
28713 somewhat hackish looking
28715 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28718 - We now accept Enter even if AcceptEnter is false, if the containing
28719 form does not have an AcceptButton configured (fixes bug #76355)
28720 - Calculations are now fixed to no longer use Width/Height, but
28721 ClientSize.Width/Height, since we now support borders (this was
28722 a result of fixing borders and therefore bug #76166)
28723 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
28724 true (fixes bug #76354)
28726 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28729 - Defaulting BorderStyle and setting it in XplatUI when our window
28731 - Added enum check to InternalBorderStyle setter
28733 - Added drawing of window borders
28734 - Now properly calculates WM decorations offset for toplevel
28735 windows (fixes bug #74763)
28737 - Implemented BorderStyles for windows (we're letting win32 draw
28739 - Fixed the signature for SetWindowLong
28740 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
28741 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
28743 * UpDownBase.cs: Remove drawing of borders, this is handled by
28744 the driver, outside the client area
28745 * ListView.cs: Removed bogus border calculations. The control should
28746 be oblivious to borders, since those are not part of the client
28748 * X11DesktopColors.cs: Commented out (currently) unneeded variables
28749 * ThemeWin32Classic.cs: Removed border calculations from ListView
28752 2005-10-06 Jackson Harper <jackson@ximian.com>
28754 * MdiChildContext.cs: Clear out the old virtual position remove
28755 all the unneeded calls to CreateGraphics.
28757 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28759 * TextControl.cs: Use proper color for highlighted text; fixes #76350
28761 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28764 - Added loading and setting of our new default icon
28765 - Only set icon if window is already created
28767 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
28770 - Do not explicitly set the foreground and background colors, to
28771 allow inheriting from parents (fixes #76302)
28772 - Use Control's InternalBorderStyle property to deal with borders
28774 2005-10-06 Jackson Harper <jackson@ximian.com>
28776 * MdiChildContext.cs: Use the new xplatui function to draw a
28779 2005-10-06 Jackson Harper <jackson@ximian.com>
28781 * Form.cs: Add the parent before creating the child context cause
28782 we need the parent when setting up the child.
28784 2005-10-06 Jackson Harper <jackson@ximian.com>
28786 * FolderBrowserDialog.cs: redo the tree population code so a
28787 second thread isn't used. Should be a lot faster and more stable
28790 2005-10-05 Jackson Harper <jackson@ximian.com>
28792 * TreeView.cs: There are no expand/collapse boxes if the node has
28795 2005-10-05 Jackson Harper <jackson@ximian.com>
28797 * X11DesktopColors.cs: Get menu colours for the gtk theme.
28799 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
28801 * FileDialog.cs: Fix InitialDirectory
28803 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28806 - Fixes changing between styles
28807 - Fixes simple mode
28808 - Fixes last item crashing when navigating with keyboard
28810 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
28812 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
28814 2005-10-05 Jackson Harper <jackson@ximian.com>
28816 * TreeView.cs: If updating the root node do a full refresh.
28817 * TreeNode.cs: The root node should be expanded by default. Also
28818 added a utility prop to tell if we are the root node.
28819 * TreeNodeCollection.cs: Only refresh if the node we are being
28820 added to is expanded. Also added a comment on a potential
28823 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
28825 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
28826 in dispose method. Fixes #76330
28828 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
28830 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
28832 - Implements vertical and horizontal scrolling using XplatUI
28833 - Fixes keyboard navagation
28834 - Fixes EnsureVisible
28836 - Handles and draws focus properly
28839 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
28841 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
28842 Create handle. NET_2_0: Destroy handle when value is null.
28844 2005-10-03 Jackson Harper <jackson@ximian.com>
28846 * ScrollBar.cs: My last scrollbar patch was broken. This is a
28847 revert and a new patch to prevent the thumb from refreshing so
28850 2005-10-02 Jackson Harper <jackson@ximian.com>
28852 * ScrollBar.cs: Don't update position if it hasn't actually
28853 changed. This occurs when you hold down the increment/decrement
28854 buttons and the thumb gets to the max/min.
28856 2005-10-01 Jackson Harper <jackson@ximian.com>
28859 * MdiChildContext.cs:
28860 * MdiClient.cs: Implement ActiveMdiChild in Form.
28862 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
28864 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
28866 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
28868 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
28871 2005-09-30 Jackson Harper <jackson@ximian.com>
28873 * ListBox.cs: Don't do a full refresh unless some data has
28876 2005-09-30 Jackson Harper <jackson@ximian.com>
28878 * TreeView.cs: Make sure that the checkboxes size is factored in
28879 even when not visible.
28881 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28883 * FileDialog.cs: Fix Jordi's build break
28885 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28888 - Use standard the Windows colours for the combobox as espected
28889 - Dispose objects that use resouces when no longer need them
28891 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28893 * X11DesktopColors.cs: Initial incomplete implementation
28894 * XplatUIX11.cs: Added call to initialize X11DesktopColors
28896 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
28899 - Switched Theme color names to match the names defined in
28900 System.Drawing.KnownColors. Life's hard enough, no need to make
28902 - Added setters to all theme color properties so themes can set
28903 their color schemes. The setters also propagate the color changes
28904 to System.Drawing.KnownColors via reflection
28905 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
28906 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
28907 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
28908 use the new, more logical theme color names
28909 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
28911 * ThemeWin32Classic.cs:
28912 - Removed code to set the old classic Windows colors. Instead it
28913 now relies on the colors returned by System.Drawing.KnownColors
28914 which will be either modern static colors (Unix) or colors
28915 read from the user's configuration (Win32)
28916 - Updated to use the new, more logical theme color names
28917 - Switched DataGrid drawing code to use only Theme colors instead of
28918 a mix of System.Drawing.KnownColors and Theme colors
28919 - DrawFrameControl(): Removed code that fills the button area, the
28920 fill would overwrite any previous fill done by a control. This
28922 - Added DrawReversibleRectangle() stub
28923 * ScrollableControl.cs: Set visible state to false when scrollbars
28924 are removed (pdn fix)
28925 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
28926 DrawReversibleRectangle() method to allow drawing primitive
28928 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
28930 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28932 * ImageList.cs: Add(Icon): Create handle.
28934 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
28937 * ThemeWin32Classic.cs:
28938 - Fixes detail mode
28940 - Issues with drawing
28942 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28944 * ImageList.cs: Moved RecreateHandle back to ImageList as event
28945 source has to be the ImageList.
28947 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28949 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
28951 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28953 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
28955 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28957 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
28959 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
28960 * GridItem.cs: Fixed TODOs
28961 * GridItemCollection.cs: Added ICollection interface
28963 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
28965 * ImageList.cs: Resize icons when needed.
28967 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
28970 - Fixes GetBounds and returns on screen rects
28972 - Fixes vertical and horzintal scrolling of items
28973 * ThemeWin32Classic.cs:
28976 2005-09-29 Raja R Harinath <harinath@gmail.com>
28978 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28980 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
28982 * ImageList.cs: Added comments about handle creation. Moved Handle,
28983 HandleCreated and OnRecreateHandle implementations to ImageCollection.
28984 Handle is created in Add methods.
28986 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28988 * DataGridDrawingLogic.cs:
28989 - Takes rows into account on Colum calculations
28990 - Returns the column when clickig
28992 - Fixes default HitTestInfo values
28993 - Fixes HitTestInfo.ToString
28994 - Fixes ResetBackColor
28996 2005-09-28 Jackson Harper <jackson@ximian.com>
28998 * MdiChildContext.cs: Obey rules for fixed sized windows (no
28999 sizing or cursor changes). Also added some temp code to draw the
29000 titlebars text (Makes dev a little easier).
29002 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29004 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29006 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29008 * ListBox.cs: Fixes bug 76253
29010 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29012 * ImageList.cs: Added comments about the current implementation. Added
29013 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29014 Format32bppArgb to preserve transparency and can use Graphics.FromImage
29015 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29016 with Bitmap.LockBits for better performance. Revised the whole file to
29017 match MS.NET behaviour and provide better performance. Non-public
29018 interface members are calling public members even when they throw
29019 NotSupportedException for better maintainability. Moved ColorDepth,
29020 ImageSize, ImageStream and TransparentColor implementations to
29021 ImageCollection for better performance as these properties are not used
29023 * ImageListStreamer.cs: Added a new internal constructor that takes an
29024 ImageList.ImageCollection and serializes Images based on
29025 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29026 match ImageList property name.
29028 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
29030 * ListBox.cs: Fixes IndexFromPoint for last item
29032 2005-09-27 Jackson Harper <jackson@ximian.com>
29034 * Form.cs: Set the position of new mdi children correctly.
29036 2005-09-27 Jackson Harper <jackson@ximian.com>
29038 * MdiClient.cs: New mdi children need to be added to the back of
29039 the controls collection so the zorder is set correctly. Also add a
29040 count of all the child windows that have been created.
29042 2005-09-27 Jackson Harper <jackson@ximian.com>
29044 * Form.cs (CreateParams): Setup MDI forms correctly.
29046 2005-09-27 Jackson Harper <jackson@ximian.com>
29048 * MdiChildContext.cs:
29049 * MonthCalendar.cs:
29055 * ScrollableControl.cs:
29056 * ComboBox.cs: Add implicit controls using the new implict control
29057 functionality in ControlCollection. Also try to block multiple
29058 control add in a suspend/resume layout to save some cycles.
29060 2005-09-27 Jackson Harper <jackson@ximian.com>
29062 * Control.cs: Add functionality to the controls collection to add
29063 'implicit controls' these are controls that are created by the
29064 containing control but should not be exposed to the user. Such as
29065 scrollbars in the treeview.
29066 * Form.cs: The list var of the ControlsCollection is no longer
29067 available because of the potential of implicit controls getting
29068 ignored by someone accessing the list directly.
29070 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
29072 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29073 loose it's parent. (Fixed bug introduced in r49103 when we added
29074 setting the child parent to null on Remove)
29076 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
29078 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29079 * Splitter.cs: Added missing attributes for BorderStyle property.
29080 * TextBoxBase.cs: Marked Calculate* methods internal.
29081 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29084 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
29086 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29088 2005-09-25 Jackson Harper <jackson@ximian.com>
29090 * TreeView.cs: Update the node bounds correctly regardless of
29091 whether the node is visible.
29093 2005-09-25 Jackson Harper <jackson@ximian.com>
29095 * ImageList.cs: Don't dispose the image after it is added to the
29096 image list. Only reformat images that need to be resized.
29098 2005-09-25 Jackson Harper <jackson@ximian.com>
29100 * ImageList.cs: Don't set the format when changing the image.
29102 2005-09-25 Jackson Harper <jackson@ximian.com>
29104 * TreeView.cs: We can't just assume the node has a font. Use the
29105 treeviews font if no node font is available.
29107 2005-09-25 Jackson Harper <jackson@ximian.com>
29109 * TreeView.cs: Allow the scrollbars to be reset with negative
29111 - Don't add scrollbars to negative sized windows.
29113 2005-09-23 Jackson Harper <jackson@ximian.com>
29115 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29116 old Mono.Posix. Also remove some stray code that shouldn't have
29119 2005-09-23 Jackson Harper <jackson@ximian.com>
29121 * TreeView.cs: Attempt at proper sizing of the horizontal
29122 scrollbar. Also don't resize the scrollbars unless they are
29125 2005-09-23 Jackson Harper <jackson@ximian.com>
29127 * TreeView.cs: We don't need to expand the invalid area when the
29128 selection changes, as this is all drawn in the node's bounding
29129 box. The area needs to be expanded (previous typo was contracting
29130 it) when the focus rect moves.
29132 2005-09-23 Jackson Harper <jackson@ximian.com>
29134 * TreeView.cs: Display the selection box under the correct
29135 circumstances. We were rendering white text with no selection box
29138 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
29140 * TextControl.cs(Split): Now updates selection start/end if it points
29141 into a line that's being split. Fixes a FIXME and bug #75258
29143 2005-09-23 Jackson Harper <jackson@ximian.com>
29146 * ListControl.cs: Don't use the path when retrieving binding
29147 managers from the binding context. My bat sense tells me that the
29148 path is only used on insertion.
29150 2005-09-22 Jackson Harper <jackson@ximian.com>
29152 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29154 2005-09-22 Jackson Harper <jackson@ximian.com>
29156 * Splitter.cs: There are special cursors used for splitting.
29157 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29159 2005-09-22 Jackson Harper <jackson@ximian.com>
29161 * Splitter.cs: Change the cursor appropriately when the splitter
29162 is moused over, so the user actually knows there is a splitter
29165 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29167 * Label.cs : Fix ToString method to give same output as MS.NET
29169 2005-09-22 Jackson Harper <jackson@ximian.com>
29171 * TreeView.cs: Create the scrollbars when the handle is created
29172 and add them right away, just make them invisble. Also account for
29173 the window being shrunk vertically to the point that the vert
29174 scrollbar needs to be added.
29175 - Remove some 0.5 adjustments to get around anti aliasing issues.
29177 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
29179 * MainMenu.cs: Fixes default value
29180 * MenuItem.cs: Fixes default value
29182 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
29184 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29186 2005-09-21 Jackson Harper <jackson@ximian.com>
29188 * Control.cs: Don't try to set the border style on the window if
29189 it hasn't been created. When the window is created the border
29190 style will be used.
29192 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29194 * Control.cs (Update): Don't call XplatUI if we don't have a
29197 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29199 * ContainerControl.cs: Instead of throwing an exception, print
29200 a one-time warning about Validate not being implemented
29201 * XplatUIWin32.cs: Removed debug output
29203 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29205 * Control.cs: Only set XplatUI background if we expect the windowing
29206 system to handle the background. This stops controls that draw their
29207 own background from flickering
29209 * XplatUIX11.cs: Support custom visuals and colormaps for window
29210 creation. This allows, amongst other things, using MWF X11 windows
29213 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29215 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29216 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29217 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29218 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29219 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29220 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29221 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29222 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29223 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29224 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29225 GridColumnStylesCollection.cs,
29226 IDataGridColumnStyleEditingNotificationService.cs,
29227 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29228 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29229 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
29230 TreeNodeCollection.cs, AmbientProperties.cs,
29231 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29232 DataObject.cs, ErrorProvider.cs, Splitter.cs,
29233 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29234 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29235 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29236 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29237 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29238 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29239 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29240 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29241 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29242 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29243 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29244 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29245 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29246 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29247 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29248 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29249 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29250 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29251 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29252 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29253 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29254 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29255 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29256 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29257 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29258 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29259 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29260 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29261 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29262 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29263 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29264 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29265 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29266 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29267 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29269 2005-09-21 Jackson Harper <jackson@ximian.com>
29271 * TreeNode.cs: Call Before/After Expand not Collapse when
29274 2005-09-20 Jackson Harper <jackson@ximian.com>
29276 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29278 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29282 - Fixes proper storing of subitems
29283 - Fixes not updated items
29285 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29287 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29288 things if our window handle isn't created yet. Also disabled
29289 debug for TextBoxBase
29291 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29293 * MenuAPI.cs: Remove filtering of events to allow menu usage
29295 2005-09-20 Miguel de Icaza <miguel@novell.com>
29297 * Cursor.cs: Allow null to be passed to Cursor.Current.
29299 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
29301 * ThemeWin32Classic.cs:
29302 - Change some private methods/fields to protected virtual so that
29303 they can be accessed and overriden in derived classes
29304 - First refactoring of some methods. Derived themes now don't
29305 need to duplicate the complete code from ThemeWin32Classic
29307 - Added nice StatusBar
29308 - Derive from ThemeWin32Classic and not Theme
29309 - Removed duplicate ThemeWin32Classic code
29311 2005-09-20 Miguel de Icaza <miguel@novell.com>
29313 * Control.cs (ControlCollection.Add): If the value null is passed
29314 the control is ignored.
29316 Optimize this loop.
29318 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29320 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29321 PostQuitMessage state.
29322 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29324 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29326 * Application.cs: Our constructor will never get called, move
29327 initialization to fields; fixes bug #75933
29329 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29332 - Allow files to be selected properly using file name
29334 - Add ability to change diretory (absolute / relative)
29335 using file name combo box.
29337 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29340 - Fixes Multicolumn listboxes item wrong calculations
29341 - Allows to click when only one item is in the listbox
29342 - Fixes crash when no items using keyboard navigation
29344 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
29346 * ComboBox.cs: Reverted almost everything from the latest patch which
29349 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
29352 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29354 - When DropDownStyle is Simple, it does not show scrollbar
29355 to the last item of the list.
29356 - When DropDownStyle is Simple, it crashed when the list was
29357 scrolled down with the down cursor key.
29358 - Fixed a bug that when DropDownStyle is DropDownList, the
29359 selected item was not shown.
29360 - The position of the selected item was not preserved when
29361 the next dropdown happened.
29362 * ThemeWin32Classic.cs:
29363 - Items were wrapped at the right end.
29364 * CheckedListBox.cs:
29367 - Items should be fully shown.
29368 - When resizing and vertical scrollbar disappeared, the item
29369 of index 0 should be on the top of the list.
29370 - GetItemRectangle should consider the size of ver. scrollbar
29372 - SizingGrip area should not be allocated when it is not
29374 - Now it reflects MinWidth of the containing panel and
29375 fixed a crash that happens when its width becomes so small.
29377 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29379 * CheckedListBox.cs: Fixes bug 76028
29380 * ListBox.cs: Fixes bug 76028
29382 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29384 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29385 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29387 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
29389 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29391 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29393 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
29395 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29397 * IRootGridEntry.cs: Added
29398 * PropertyGridCommands.cs: Added
29399 * PropertiesTab.cs: Added missing methods and property
29400 * PropertyGridView.cs: Made class internal
29401 * PropertyGridTextBox.cs: Made class internal
29403 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29405 * MimeIcon.cs: Try to check some other environment variables
29406 if "DESKTOP_SESSION" returns "default"
29408 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29410 * ThemeNice.cs: Corrected background colors (e.g. menus)
29411 * ColorDialog.cs: Use correct background colors for controls
29413 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29415 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29417 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
29419 * RichTextBox.cs: Added initial implementation
29420 * lang.cs: Removed. Was accidentally checked in long time ago
29421 * TODO: Removed. Contents were obsolete
29423 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29425 * PropertiesTab.cs : Added
29427 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29429 * PropertyGrid.cs : Update
29430 * PropertyGridView.cs : Update
29431 * System.Windows.Forms.resx : Added images and strings
29433 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29435 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29437 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29439 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29440 a busy loop right after the Ungrab the X11 display is otherwise
29443 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
29445 * ThemeWin32Classic.cs: Optimise the use of clipping
29447 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
29449 * DataGrid.cs: fixes recursion bug
29451 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
29454 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29457 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
29459 * ThemeNice.cs: Draw nice ProgressBars
29461 2005-09-01 Miguel de Icaza <miguel@novell.com>
29463 * VScrollBar.cs: Another buglet found by Aaron's tool.
29465 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29468 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
29471 - Added nicer menu drawing
29475 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29477 * CreateParams.cs (ToString): Made output match MS
29478 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
29479 handle is already created (to avoid forcing window creation)
29480 * XplatUIX11.cs: Set window text to caption after creating window,
29481 in case Text was set before window was created
29482 * Form.cs: Use this.Text instead of a static string as caption
29484 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29486 * NotifyIcon.cs: Don't set the window to visible; this screws
29487 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29488 OnPaint without a bitmap)
29489 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
29490 happen very often anyway; we could add the check to the WM_PAINT
29491 event generation code
29493 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29495 * NotifyIcon.cs: Fill the icon area with a background color, to
29496 avoid 'residue' when transparent icons are drawn
29498 - Handle whole_window == client_window when destroying windows
29499 - SystrayAdd(): Set client_window to whole_window value to
29500 get mouse and other events passed to NotifyIcon
29502 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29504 * Form.cs: Set proper default for Opacity property
29506 - ShowSystray(): Don't bother creating telling the OS
29507 about the systray item if no icon is provided
29508 - Now handles WM_NCPAINT message to deal with whole/client window
29510 - Create window as visible to not get caught by Expose optimization
29511 * Hwnd.cs: Removed debug message
29512 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29513 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
29514 PaintEventStart/End to use new client argument
29516 - Commented out debug messages
29517 - Switched PaintEventStart/End to use new client argument
29518 * XplatUI.cs: Added client window bool to PaintEventStart()/
29519 PaintEventEnd() calls, to support drawing in non-client areas
29520 * XplatUIDriver.cs:
29521 - Added client window bool to PaintEventStart()/PaintEventEnd()
29522 calls, to support drawing in non-client areas
29523 - Added conditional compile to allow using MWF BeginInvoke
29526 - Added some conditional debug output
29527 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29528 whole/client window split
29529 - Implemented handling of client argument to PaintEventStart()/End()
29531 - Throw exception if BeginInvoke() is called and the window handle
29532 or one of the window's parent handles is not created
29533 - Added conditional compile to allow using MWF BeginInvoke on
29535 - get_Parent(): Only sets parent if handle is created. This avoids
29536 forcing window handle creation when parent is set.
29537 - Now fires Layout and Parent changed events in proper order
29538 - Switched to use Handle instead of window.Handle for Z-Order setting,
29539 the get_Parent() patch above causes us to possibly get null for 'window'
29540 - Implemented handling of client argument to PaintEventStart()/End()
29541 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
29543 - Now sends a Refresh() to all child windows when Refresh() is called
29545 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
29547 * Form.cs: Added (non-functional) Opacity property
29548 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
29550 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
29551 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
29552 use export MONO_THEME=nice to activate it.
29553 Currently supported controls:
29557 - TabControl (TabAlignment.Top only, other will follow)
29558 * ThemeEngine.cs: Add theme nice
29559 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
29562 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
29564 * Splitter.cs: Resize docked control and its neighbor.
29566 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29567 -- Making Windows with Menus layout correctly --
29568 * Form.cs : The first leg of the fix
29569 Menu setter - adjust Client Size as needed to make space for the menu
29570 SetClientSizeCore - doesn't call base version to be able to pass the
29571 menu handle to XplatUI.CalculateWindowRect
29572 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
29573 * XplatUIX11.cs: The critical second leg of the fix
29574 GetWindowPos needs to use a recalculated client_rect
29575 so that resizing the window doesn't break layout of child controls.
29576 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
29577 Lots of \t\n killed
29579 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
29581 * Label.cs: Now properly recalculates width and height on Font and Text
29582 changes if AutoSize is set
29584 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29585 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
29587 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
29589 * ImageList.cs: Makes ToString method compatible with MS
29591 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
29593 * MenuAPI.cs: fixes bug 75716
29595 2005-08-11 Umadevi S <sumadevi@novell.com>
29596 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
29598 2005-08-11 Umadevi S <sumadevi@novell.com>
29599 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
29601 2005-08-10 Umadevi S <sumadevi@novell.com>
29602 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
29604 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
29606 * Menu.cs: fixes bug 75700
29607 * MenuAPI.cs: fixes navigation issues
29609 2005-08-09 Umadevi S <sumadevi@novell.com>
29610 * CheckedListBox.cs - simple fix for GetItemChecked.
29612 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
29614 * ComboBox.cs: Serveral fixes
29615 * ListBox.cs: Serveral fixes
29617 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29619 * ComboBox.cs: Fixes FindString methods and GetItemHeight
29620 * ListBox.cs: Fixes FindString methods
29622 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
29624 * DataGrid.cs: fixes bugs exposed by new tests
29626 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
29628 * Mime.cs: Compile Mono assembly references only if compiling
29629 with Mono (Allows to build with VS.Net again)
29631 2005-07-28 Marek Safar <marek.safar@seznam.cz>
29633 * Control.cs (PaintControlBackground): Draw background image
29635 (CheckForIllegalCrossThreadCalls): Stubbed.
29637 * Form.cs (OnCreateControl): Center when should be centered.
29639 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29641 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
29643 * Binding.cs: Binding to properties should be case unsensitive
29645 2005-07-18 vlindos@nucleusys.com
29647 * DataGrid.cs: fixes setmember order
29649 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
29651 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29652 * FileDialog.cs: FileDialog is now resizable and uses the new
29655 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
29657 * DataGridTextBoxColumn.cs: default value
29658 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29659 * GridTableStylesCollection.cs: fixes checking MappingName
29660 * DataGridDrawingLogic.cs: fixes drawing logic issues
29661 * DataSourceHelper.cs: rewritten to make compatible with more data sources
29662 * DataGrid.cs: fixes
29664 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
29666 * MimeGenerated.cs: Use case sensitive comparer for
29667 NameValueCollections
29669 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
29671 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
29672 * ThemeWin32Classic.cs: bug fixes, code refactoring
29673 * DataGridDrawingLogic.cs: bug fixes, code refactoring
29674 * DataGrid.cs: bug fixes, code refactoring
29675 * DataGridTextBox.cs: bug fixes, code refactoring
29676 * DataGridColumnStyle.cs: bug fixes, code refactoring
29677 * Theme.cs: bug fixes, code refactoring
29679 2005-07-01 Peter Bartok <pbartok@novell.com>
29681 * TextControl.cs: Quick fix for the reported crash on ColorDialog
29682 and other text box usage
29684 2005-07-01 Jackson Harper <jackson@ximian.com>
29686 * TabControl.cs: Make sure the bottom of the tab covers the pages
29689 2005-06-30 Peter Bartok <pbartok@novell.com>
29691 * Form.cs (ShowDialog): Assign owner of the dialog
29692 * TextBoxBase.cs: Always refresh caret size when deleting, caret
29693 might have been moved to a tag with different height
29695 2005-06-30 Jackson Harper <jackson@ximian.com>
29697 * Form.cs: Don't create an infinite loop when setting focus
29698 * MenuItem.cs: Don't dirty the parents if we don't have any
29700 2005-06-29 Ben Maurer <bmaurer@ximian.com>
29702 * LibSupport.cs: Rename
29704 2005-06-29 Peter Bartok <pbartok@novell.com>
29706 * TextBoxBase.cs: Re-align caret after deleting a character
29708 - DeleteChars(): Ensure that tag covers the provided position
29709 - StreamLine(): Drop reference for dropped tag
29711 2005-06-29 Peter Bartok <pbartok@novell.com>
29714 - Selections now work properly, anchoring at the initial location
29715 and properly extending in either direction (SetSelectionToCaret(),
29716 SetSelectionStart() and SetSelectionEnd())
29717 - No longer redraws the whole control on selection change, now
29718 calculates delta between previous and new selection and only
29719 invalidates/redraws that area
29720 - Fixed FindPos() math off-by-one errors
29721 - Changed DeleteChars() to verify the provided tag covers the
29722 provided position, selections may have a tag that doesn't cover
29723 the position if the selection is at a tag border
29724 - Fixed off-by-one errors in DeleteChars()
29725 - Added missing streamlining check in DeleteChars() to remove
29727 - Implemented Invalidate() method, now properly calculates exposures
29728 between two given lines/positions
29729 - Implemented SetSelection()
29730 - Obsoleted and removed FixupSelection()
29731 - Improved RecalculateDocument() logic, removing code duplication
29733 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29735 * LibSupport.cs: changes to match different input/output arguments.
29737 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29739 * LibSupport.cs: added libsupport.so init routine.
29741 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
29743 * ControlBindingsCollection.cs
29744 - Throws an exception on null datasource when adding
29745 - Checks for duplicated bindings when adding
29747 2005-06-28 Jackson Harper <jackson@ximian.com>
29749 * TreeView.cs (OnKeyDown): Support left and right properly
29750 (navigates as well as expanding and collapsing.
29751 - Add support for Multiply, this expands all the selected nodes
29753 - Fix some tabbing.
29755 2005-06-28 Jackson Harper <jackson@ximian.com>
29757 * TreeView.cs: Implement keyboard navigation, currently supports,
29758 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
29759 support for toggling checkboxes with the space bar.
29761 2005-06-28 Jackson Harper <jackson@ximian.com>
29763 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
29766 2005-06-28 Jackson Harper <jackson@ximian.com>
29768 * TreeView.cs: Add missing event.
29770 2005-06-27 Peter Bartok <pbartok@novell.com>
29773 - Made line ending size configurable (now allows for counting
29774 lineendings as \n or \r\n)
29775 - Added margin to viewport to keep caret visible on right side
29776 - Fixed translation routines for line/pos to documentpos to consider
29777 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
29778 - Fixed some line-endings to be unix style
29779 - Fixed Document.FormatText to perform it's calculations 1-based
29780 - Added descriptions for a few methods that might otherwise get
29782 - Added NOTE section with some basic conventions to remember at
29783 the top of the file
29784 - Major fixup for RichTextBox selection drawing:
29785 * Fixed crashes when multiple tags on a single line were selected
29786 * fixed selection box drawing not overlaying text
29787 * fixed bogus offset calculation for tags not starting at index 1
29788 * Switched behaviour from using multiple Substrings of a
29789 StringBuilder.ToString() to using multiple
29790 StringBuilder.ToString(start, length) statements, hoping this is
29791 faster (kept original version commented out in the code, in case
29792 original version was faster)
29793 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
29795 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
29798 2005-06-27 Jackson Harper <jackson@ximian.com>
29800 * TabControl.cs: Move to the left and right with the arrow
29801 keys. These keys don't cycle beyond first and last like
29802 tab. Refresh all the tabs when scrolling them to the left or
29805 2005-06-27 Jackson Harper <jackson@ximian.com>
29808 - ToString: Added method
29809 - CreateParams: Remove TODO and comment
29810 - OnKeyDown: Cycle through bounds properly.
29811 - SelectedIndex: Scroll to the right or left if we need to
29812 display the newly selected tab.
29814 2005-06-23 Jackson Harper <jackson@ximian.com>
29816 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
29819 2005-06-23 Jackson Harper <jackson@ximian.com>
29821 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
29822 CTRL-SHIFT-TAB, and HOME, END are there any others?
29824 2005-06-23 Jackson Harper <jackson@ximian.com>
29826 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
29828 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
29830 * DataGridTextBoxColumn.cs: fixes and enhancements
29831 * ThemeWin32Classic.cs: fixes and enhancements
29832 * DataGridBoolColumn.cs: fixes and enhancements
29833 * DataGridDrawingLogic.cs: fixes and enhancements
29834 * CurrencyManager.cs: fixes and enhancements
29835 * DataGrid.cs: fixes and enhancements
29836 * DataGridColumnStyle.cs: fixes and enhancements
29838 2005-06-22 Jackson Harper <jackson@ximian.com>
29840 * TabControl.cs: Add some missing methods that just call into the
29841 base. Make the TabPageCollection's IList interface behave in the
29842 same manner as the MS implementation.
29844 2005-06-22 Peter Bartok <pbartok@novell.com>
29846 * TextControl.cs: Added sanity check
29848 - Fixed wrapping behaviour, don't set wrap on single line controls
29849 (this fixes the breakage of colordialog introduced in an earlier
29851 - Added rudimentary support for autoscrolling right-aligned controls
29852 (still needs fixing, also, center alignment scroll is missing)
29854 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
29856 * ScrollBar.cs: Fixes thumbpos on Maximum values
29858 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
29860 * PropertyGridView.cs: Pass context information to UITypeEditors
29862 2005-06-21 Peter Bartok <pbartok@novell.com>
29865 - Now calling PositionCaret with absolute space coordinates
29866 - Enabled vertical scrolling
29867 - Better tracking of scrollbar changes, tied into WidthChange
29869 - Improved cursor tracking
29870 - Removed debug output
29872 - PositionCaret coordinates are now works in absolute space, not
29874 - Improved tracking of document size
29875 - Added events for width and height changes
29877 2005-06-21 Peter Bartok <pbartok@novell.com>
29879 * Form.cs: Set focus to active control when form is activated
29881 - Added word-wrap functionality to RecalculateLine()
29882 - Added some short function descriptions for VS.Net to aid in
29883 writing dependent controls
29884 - Added Caret property, returning the current coords of the caret
29885 - Added ViewPortWidth and ViewPortHeight properties
29886 - Added Wrap property
29887 - Added CaretMoved event
29888 - Removed some old debug code
29889 - Split() can now create soft splits
29890 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
29891 - Added method to format existing text
29892 - Fixed size/alignment calculations to use viewport
29893 - RecalculateDocument now can handle changing line-numbers while
29897 - Added some wrap logic, we don't wrap if alignment is not left
29898 - Added casts for scrollbar var, base class switched types to
29899 also support RichTextBoxA
29900 - Implemented handling of scrollbar visibility flags
29903 - Switched scrollbars type to RichTextBoxScrollBars to support
29905 - Added tracking of canvas width/height
29906 - Switched scrollbars to be not selectable (to keep focus on text)
29907 - Added central CalculateDocument() method to handle all redraw
29909 - Added ReadOnly support
29910 - Added WordWrap support
29911 - Fixed handling of Enter key (we now treat it as a DialogKey)
29912 - Fixed caret positioning when h or v scroll is not zero
29913 - Fixed placing/generation of vertical scrollbar
29914 - Added CalculateScrollBars() method to allow updating scrollbar
29915 limits and visibility
29916 - Fixed handling of horizontal scroll
29917 - Added handling of vertical scroll
29918 - Implemented auto-'jump' when caret moves to close to a left or
29919 right border and there is text to be scrolled into view (currently
29920 there's the potential for a stack overflow, until a bug in
29921 scrollbar is fixed)
29923 2005-06-21 Geoff Norton <gnorton@customerdna.com>
29925 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
29927 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
29931 - return application/x-zerosize for files with size zero
29932 (if no extension pattern matches).
29933 - check matches collection for strings too.
29934 - return only the first mime type if the name value
29935 collection has more than one mime type.
29937 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
29939 * PropertyGrid.cs: Cleaned up some TODOs
29940 * PropertyGridView.cs: Added support for UITypeEditors
29942 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29944 * DataGrid.cs: clears cached value
29946 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
29948 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
29949 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
29950 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
29951 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
29953 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
29955 * ThemeWin32Classic.cs: fixes colour
29957 2005-06-15 Peter Bartok <pbartok@novell.com>
29959 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
29960 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
29961 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
29962 * Control.cs: Added some MWFCategory and MWFDescription attributes
29963 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
29965 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
29967 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
29970 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
29972 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29973 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29974 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29975 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29976 * DataGrid.cs: default datagrid settings for Default Styles, fixes
29977 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29979 2005-06-13 Jackson Harper <jackson@ximian.com>
29981 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29982 isn't printed when the user enables dropping. (X11 does accept
29985 2005-06-13 Jackson Harper <jackson@ximian.com>
29987 * TreeView.cs: Remove some TODOS.
29989 2005-06-13 Jackson Harper <jackson@ximian.com>
29991 * Form.cs: Hook into the mdi framework.
29992 * MdiClient.cs: Use the base control collections add method so
29993 parents get setup correctly. Set the default back colour and dock
29995 * MdiChildContext.cs: New class, this bad actor handles an
29996 instance of an MDI window. Right now there is only basic
29997 support. You can drag, close, and resize windows. Minimize and
29998 Maximize are partially implemented.
30000 2005-06-13 Jackson Harper <jackson@ximian.com>
30002 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30003 freaky when both vals are negative. NOTE: There are probably other
30004 places in XplatUIX11 that this needs to be done.
30006 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
30008 * DataGrid.cs: implement missing methods, move KeyboardNavigation
30009 * DataGridColumnStyle.cs: fixes signature
30011 2005-06-12 Jackson Harper <jackson@ximian.com>
30013 * XplatUIX11.cs: Use sizing cursors similar to the ones on
30016 2005-06-11 Jackson Harper <jackson@ximian.com>
30018 * StatusBarPanel.cs: Signature cleanups. Implement
30021 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
30023 * DataGridTextBoxColumn.cs: Honors aligment
30024 * GridColumnStylesCollection.cs: Contains is case unsensitive
30025 * GridTableStylesCollection.cs: several fixes
30026 * DataGridTableStyle.cs: default column creation
30027 * DataGridDrawingLogic.cs: fixes
30028 * CurrencyManager.cs: ListName property
30029 * DataGrid.cs: multiple styles support
30030 * DataGridColumnStyle.cs: fixes
30033 2005-06-10 Peter Bartok <pbartok@novell.com>
30035 * Control.cs(Select): Moved SetFocus call to avoid potential
30036 loops if controls change the active control when getting focus
30037 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30038 the up/down buttons
30040 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
30042 * ImageListConverter.cs: Implemented
30044 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30046 * MonthCalendar.cs: Wired in NumericUpDown control for year
30048 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30050 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30051 DoubleClick events, since they are not meant to be fired.
30053 2005-06-09 Peter Bartok <pbartok@novell.com>
30055 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30056 Jonathan's standalone controls into MWF, implemented missing
30057 events, attributes and methods; added xxxAccessible classes
30058 * AccessibleObject.cs: Made fields internal so other classes
30059 can change them if needed
30061 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
30063 * UpDownBase.cs: Complete implementation
30064 * NumericUpDown.cs: Complete implementation
30065 * DomainUpDown.cs: Complete implementation
30067 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
30069 * DataGridTextBoxColumn.cs: drawing fixes
30070 * DataGridCell.cs: fixes ToString method to match MSNet
30071 * DataGridTableStyle.cs: fixes
30072 * DataGridBoolColumn.cs: fixes, drawing
30073 * DataGridDrawingLogic.cs: fixes, new methods
30074 * DataGridTextBox.cs: Keyboard and fixes
30076 - Keyboard navigation
30078 - Row selection (single, multiple, deletion, etc)
30081 2005-06-07 Jackson Harper <jackson@ximian.com>
30083 * ThemeWin32Classic.cs: Clear the background area when drawing
30086 2005-06-06 Peter Bartok <pbartok@novell.com>
30088 * ImageListStreamer.cs: Fixed signature for GetData
30089 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30091 - Added missing ChildAccessibleObject class
30092 - Added missing OnXXXFocus overrides, switched to using those
30093 instead of the event handler
30095 - Added Parent property for ControlAccessibleObject
30098 - Added ResetBindings()
30099 * ListBindingConverter.cs: Implemented some methods
30100 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30101 * ImageList.cs: Implemented basic handle scheme, removed TODOs
30102 * ContainerControl.cs: Fixed signature, now subscribing to the
30103 ControlRemoved event instead of overriding the handler, LAMESPEC
30104 * CurrencyManager.cs: Added missing attribute
30105 * MonthCalendar.cs: Added missing properties
30107 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30109 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30111 2005-06-06 Gaurav Vaish and Ankit Jain
30113 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30114 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30116 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30118 * Control.cs: fixes CreateParams Width / Height.
30120 2005-06-05 Peter Bartok <pbartok@novell.com>
30122 * Win32DnD.cs: Removed compilation warnings
30124 2005-06-05 Peter Bartok <pbartok@novell.com>
30126 * Control.cs (CreateParams): Since we don't know if one of the
30127 properties we use is overridden, lets make sure if we fail accessing
30128 we continue with a backup plan
30130 2005-06-05 Peter Bartok <pbartok@novell.com>
30133 - Removed debug output
30134 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30136 - Plugged resource leak
30137 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30140 2005-06-05 Peter Bartok <pbartok@novell.com>
30142 * XplatUIWin32.cs: Removed DnD code
30143 * Win32DnD.cs: Implemented drop source and drop target functionality
30145 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30147 * UpDownBase.cs: remove duplicate addition of event, enable some code
30148 that was commented out.
30149 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30150 Validate input when a key is pressed. It works fine now for every
30151 combination of Hexadecimal. Only missing some drawing love when sharing
30152 space with other controls.
30154 2005-06-04 Peter Bartok <pbartok@novell.com>
30157 - We need to pass a window for DragDrop, so enable callback events
30158 - Added DnD callback events when being a DragSource
30159 * XplatUI.cs (StartDrag): Added window handle argument
30160 * XplatUIDriver.cs (StartDrag): Added window handle argument
30161 * QueryContinueDragEventArgs: Made fields internally accessible so
30162 drivers can set them
30163 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30166 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
30168 * DataGridTextBoxColumn.cs: column text editing
30169 * DataGridTableStyle.cs: Respect columns styles created by the user
30170 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30171 * DataGridBoolColumn.cs: bool column editing
30172 * DataGrid.cs: fixes to scrolling, properties, etc
30173 * DataGridTextBox.cs: handle keyboard
30174 * DataGridColumnStyle.cs: fixes
30176 2005-06-02 Jackson Harper <jackson@ximian.com>
30178 * ImageListStreamer.cs: Somewhat broken implementation of
30179 GetObjectData. The RLE needs some work to match MS properly.
30181 2005-06-02 Jackson Harper <jackson@ximian.com>
30183 * X11Dnd.cs: Attempting to keep at least one file in MWF
30186 2005-06-02 Peter Bartok <pbartok@novell.com>
30188 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30191 2005-06-02 Peter Bartok <pbartok@novell.com>
30193 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30194 * XplatUI.cs: Added DoDragDrop() method
30195 * XplatUIDriver.cs: Added DoDragDrop() method
30197 2005-06-02 Jackson Harper <jackson@ximian.com>
30199 * Splitter.cs: Implement BorderStyle.
30201 2005-06-02 Jackson Harper <jackson@ximian.com>
30203 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30204 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30207 2005-06-02 Peter Bartok <pbartok@novell.com>
30210 - Added Data setter
30211 - Fixed broken insertion code for SetData, now also
30212 overwrites any existing entry of the same format name
30213 * Hwnd.cs: Added list of pointers that automatically gets
30214 freed when the window is disposed
30215 * XplatUI.cs: Call driver initialization method when loading
30218 - OnDragLeave takes EventArgs, not DragEventArgs
30219 - Added setting of WS_EX_ACCEPTFILES style when dropping is
30221 - Forces style update when drop state changes
30222 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30223 not perfect since we cannot (yet) call the IDataObject.GetData()
30224 method, we keep getting 0x80004005 error, dunno why)
30226 2005-06-02 Peter Bartok <pbartok@novell.com>
30228 * DragEventArgs.cs: Make fields internal so we can cache the
30229 object and re-set the fields from XplatUI
30231 2005-06-02 Jackson Harper <jackson@ximian.com>
30233 * Control.cs: Add some internal methods so the DnD subsystem can
30234 raise DnD events. Also call into the driver when AllowDrop is set.
30236 * XplatUIDriver.cs: New method for setting whether or not a window
30237 is allowed to accept drag and drop messages.
30239 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
30241 * ScrollBar.cs: Make sure that values sent in Scroll events
30242 are always between Maximum and Minimum.
30244 2005-06-01 Marek Safar <marek.safar@seznam.cz>
30246 * Menu.cs: Call MenuChanged when menuitem visibility has been
30248 * MenuItem.cs: Rebuild menu when item is (not) visible.
30249 * MainMenu.cs: MainMenu has special MenuChanged.
30250 * Theme.cs: Caption and FrameBorderSize are not fixed.
30251 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30252 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30254 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30255 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30257 2005-05-30 Jackson Harper <jackson@ximian.com>
30259 * DataFormat.cs: We can't statically initialize this stuff because
30260 it calls into the xplatui and could create a loop. So we lazy init
30263 2005-05-28 Jackson Harper <jackson@ximian.com>
30265 * Control.cs: Proper implementation of Product(Name/Version).
30267 2005-05-27 Jackson Harper <jackson@ximian.com>
30269 * DataObject.cs: Dont crash if no data is found.
30271 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30272 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30273 as per status page, guessing it should be set to true
30275 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
30277 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30278 * DataGridTableStyle.cs: set proper formatting text, def header text
30279 * ThemeWin32Classic.cs: new themable paramaters
30280 * DataGridBoolColumn.cs: paint check box, get data, fixes
30281 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30282 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30283 * DataGridColumnStyle.cs: fixes
30284 * Theme.cs: new themable paramaters
30286 2005-05-26 Peter Bartok <pbartok@novell.com>
30288 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30290 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30291 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30293 2005-05-24 Peter Bartok <pbartok@novell.com>
30295 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30296 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30297 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30298 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30299 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30300 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30301 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30302 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30303 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30304 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30305 missing attributes, etc
30306 * DataGridPreferredColumnWidthTypeConverter.cs: Added
30308 2005-05-24 Peter Bartok <pbartok@novell.com>
30310 * Help.cs: Added, implemented trivial functions, throws up MessageBox
30311 when user tries to get help
30312 * DataObject.cs, DataFormats.cs, LinkArea.cs,
30313 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30314 to suppress warnings
30315 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30316 avoid unreachable code warning
30318 2005-05-20 Peter Bartok <pbartok@novell.com>
30320 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30322 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30324 * DataGridTextBoxColumn.cs: Basic painting methods
30325 * DataGridTableStyle.cs: Set table style in the column
30326 * ThemeWin32Classic.cs: Use Theme for colors
30327 * DataGridDrawingLogic.cs: Implement more drawing
30328 * DataGrid.cs: drawing, theming, enhacements, fixes
30329 * DataGridColumnStyle.cs: fixes, drawing
30330 * Theme.cs: theming for Datagrid
30332 2005-05-20 Peter Bartok <pbartok@novell.com>
30334 * Cursor.cs: Implemented GetObjectData() method
30336 2005-05-20 Peter Bartok <pbartok@novell.com>
30338 * Cursors.cs: Added setting of cursor name
30340 - Implemented constructors
30341 - Implemented Draw and DrawStretched
30342 - Implemented Current property
30343 - Implemented == and != operators
30344 - Implemented Dispose()
30345 - Implemented ToString
30346 - Added missing attributes
30348 - Added missing reset for OverrideCursor when DoEvents is called
30349 - Fixed creation of cursor, logic was wrong
30351 - Added missing reset for OverrideCursor when DoEvents is called
30352 - Fixed creation of cursor, bit arrays were swapped
30353 * Clipboard.cs: Removed obsolete MonoTODO attribute
30355 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30357 * ComboBox.cs: fixes OnSelectedItemChanged
30358 * ControlBindingsCollection.cs: fixes item range check
30360 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30363 - Calc preferred height properly
30364 - Implement missing properties
30366 * NumericUpDown.cs: Implement missing events
30368 2005-05-19 Jackson Harper <jackson@ximian.com>
30370 * TabControl.cs: New method that resizes the tab pages before
30371 redrawing them. This as needed as the control is double buffered
30372 and sizing will not be recalculated unless ResizeTabPages is
30374 * TabPage.cs: Set base.Text instead of Text in the constructor so
30375 that UpdateOwner does not get called. Use the new Redraw method of
30376 TabControl instead of Refresh so the sizing is recalculated.
30377 * ThemeWin32Classic.cs: Draw the text for button tabs.
30379 2005-05-19 Jackson Harper <jackson@ximian.com>
30381 * Control.cs: Paint control background images. Fix typo where
30382 PaintControlBackground was not getting called correctly.
30384 2005-05-19 Peter Bartok <pbartok@novell.com>
30386 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30387 I can investigate, apparently I broke FileDialog
30389 2005-05-19 Marek Safar <marek.safar@seznam.cz>
30391 * AxHost.cs: Some simple properties.
30392 * Control.cs: window must be accessible after ctor.
30393 * Form.cs: Added TransparencyKey property.
30394 * TextBoxBase.cs: Implemented Clear. Text property can be null.
30395 * XplatUIWin32.cs: SetBorderStyle implemented.
30397 2005-05-18 Peter Bartok <pbartok@novell.com>
30399 * DataObject.cs: Entries are not global but particular to the
30400 DataObject, now it behaves that way
30401 * XplatUIWin32.cs: Implemented Clipboard methods
30402 * Clipboard.cs: Implemented
30403 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30404 * XplatUIOSX.cs: Updated to final clipboard prototypes
30405 * XplatUIX11.cs: Implemented Clipboard methods
30406 * XplatUIDriver.cs: Updated to final clipboard prototypes
30407 * XplatUIStructs.cs:
30408 - Added BITMAPINFOHEADER struct
30409 - Added ClipboardFormats enum
30411 - Added ClipboardStruct
30412 - Added Atom enum items for clipboard types
30413 - Fixed atom types for Selection event structures
30415 - Added internal properties and methods for drivers to enumerate
30417 - Switched initialization method to allow drivers to assign their
30418 own IDs even for the MS predefined clipboard IDs
30419 * XplatUI.cs: Updated to final clipboard interface
30421 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30422 * PropertyGridView.cs: Fixed compiler warnings.
30424 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30425 * PropertyGrid.cs: Added some event calls
30426 * PropertyGridView.cs: Change drawing code to use double buffering
30427 * PropertyGridTextBox.cs: Changed Text property name
30428 * GridItem.cs: Added Bounds property.
30429 * GridEntry.cs: Added Bounds property.
30431 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
30433 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30434 since GetType() may not return the correct type if the object is
30437 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
30439 * TreeNodeCollection.cs: fixes get/set item ranges
30441 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30443 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30445 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30447 * ComboBox.cs: Fix item range comparation
30448 * ListView.cs: Fix item range comparation
30450 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30453 - Clear example panel when OnPaint is called
30454 - Better solution for displaying the example panel text
30455 - Select default indexes in the ListBoxes
30457 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30459 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
30461 2005-05-11 Peter Bartok <pbartok@novell.com>
30463 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30464 * SelectionRangeConverter.cs: Implemented
30465 * PropertyGrid.cs: Fixed attribute value
30467 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30468 - Added Sebastien Pouliot's CAS Stack Propagation fixes
30469 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30470 that's common to all drivers. First methods to go there are
30471 Sebastien Pouliot's CAS Stack Propagation helper methods
30472 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30473 Sebastien Pouliot for CAS Stack Propagation
30475 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30478 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30480 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
30482 * DataGridTextBoxColumn.cs: fixed some members
30483 * GridColumnStylesCollection.cs: indexed column is case insensitive
30484 * DataGridTableStyle.cs: fixes
30485 * ThemeWin32Classic.cs: add new theme parameter
30486 * Theme.cs: add new theme parameter
30487 * DataGridDrawingLogic.cs: Datagrid's drawing logic
30488 * DataGrid.cs: fixes, new internal properties, etc.
30489 * DataGridColumnStyle.cs: allows to set grid value
30492 2005-05-10 Peter Bartok <pbartok@novell.com>
30494 * AccessibleObject.cs:
30495 - Removed MonoTODO attribute on help, method is correct
30496 - Fixed Bounds property
30497 * AxHost.cs: Moved MonoTODO
30498 * ButtonBase.cs: Now setting AccessibleObject properties
30499 * RadioButton.cs: Setting proper AccessibleObject role
30500 * CheckBox.cs: Setting proper AccessibleObject role
30501 * ControlBindingsCollection.cs: Added properties, methods and attributes
30502 * DataFormats.cs: Fixed awkward internal API, and changed to enable
30503 userdefined DataFormats.Format items as well
30504 * ListControl.cs: Removed data_member from the public eye
30505 * OpenFileDialog.cs:
30506 - Made class sealed
30507 - Added missing attributes
30508 * SaveFileDialog.cs: Added missing attributes
30509 * ImageListStreamer.cs: Fixed code that caused warnings
30510 * LinkLabel.cs: Removed unreachable code
30511 * TreeView.cs: Fixed code that caused warnings
30512 * PropertyGridView.cs: Fixed code that caused warnings
30513 * GridColumnStylesCollection.cs: Added missing attributes
30514 * GridTableStylesCollection: Added missing attribute
30515 * PropertyManager: Added .ctor
30516 * SecurityIDType: Added
30517 * DataObject.cs: Implemented class
30518 * LinkArea.cs: Added missing attribute
30520 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
30522 * RadioButton.cs: call base method to allow to fire OnClick event
30523 * UpDownBase.cs: OnMouseUp call base method
30524 * CheckedListBox.cs: call base method before returning
30525 * TrackBar.cs: call base method before returning
30528 2005-05-10 Peter Bartok <pbartok@novell.com>
30530 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30533 2005-05-10 Peter Bartok <pbartok@novell.com>
30535 * DataFormats.cs: Implemented
30536 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30537 XplatUIX11.cs: Added Clipboard APIs
30538 * XplatUIWin32.cs: Implemented Clipboard APIs
30539 * FolderBrowserDialog.cs: Added missing event, attributes
30541 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
30543 * CheckBox.cs: call base method to allow to fire OnClick event
30545 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
30547 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
30549 2005-05-06 Peter Bartok <pbartok@novell.com>
30551 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
30552 * Screen.cs: Implemented
30553 * HelpNavigator.cs: Added
30554 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
30556 * HelpProvider.cs: Implemented all we can do until we have a CHM
30557 help library (which means that "What's This" does work now)
30559 2005-05-06 Jackson Harper <jackson@ximian.com>
30561 * XplatUIX11.cs: Fix waking up the main loop.
30563 2005-05-05 Peter Bartok <pbartok@novell.com>
30565 * XplatUI.cs: Updated revision
30566 * Form.cs: Removed enless loop
30567 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
30568 * Label.cs (OnPaint): Added call to base.OnPaint()
30569 * ToolTip.cs: Made ToolTipWindow reusable for other controls
30570 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
30571 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
30573 * ButtonBase.cs: Moved base.OnPaint() call to end of method
30574 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
30575 to ToolTip.ToolTipWindow for drawing and size methods; this allows
30576 reuse of ToolTipWindow by other controls
30577 * SizeGrip.cs: Moved base.OnPaint() call to end of method
30578 * XplatUIX11.cs: Now clipping drawing area (experimental)
30579 * PictureBox.cs: Moved base.OnPaint() call to end of method
30580 * Theme.cs: Fixed ToolTip abstracts to match new format
30581 * ErrorProvider.cs: Implemented
30583 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
30585 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
30589 - Implements LinkBehavior
30590 - Fixes many issues
30592 2005-05-03 Jackson Harper <jackson@ximian.com>
30594 * ListView.cs: Calculate the scrollbar positioning on resize and
30595 paint, so they get put in the correct place.
30597 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30599 * ColorDialogs.cs: The small color panels are now handled by
30600 SmallColorControl. This fixes drawing of the focus rectangle
30601 and adds a 3D border.
30603 2005-05-03 Peter Bartok <pbartok@novell.com>
30605 * Control.cs: Modified version of Jonathan Chamber's fix for
30608 2005-05-03 Jackson Harper <jackson@ximian.com>
30610 * ListView.cs: Remove redraw variable. Control now handles whether
30611 or not a redraw needs to be done, and will only raise the paint
30612 event if redrawing is needed.
30614 2005-05-03 Jackson Harper <jackson@ximian.com>
30616 * Splitter.cs: No decorations for the splitter form. Cache the
30619 2005-05-03 Jackson Harper <jackson@ximian.com>
30621 * TreeView.cs: Use dashed lines to connect nodes. Use the
30622 ControlPaint method for drawing the focus rect instead of doing
30625 2005-05-02 Peter Bartok <pbartok@novell.com>
30627 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
30629 2005-04-29 Jackson Harper <jackson@ximian.com>
30631 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30632 entire image buffer. Just clear the clipping rectangle.
30634 2005-04-29 Jackson Harper <jackson@ximian.com>
30636 * ThemeWin32Classic.cs: Don't draw list view items that are
30637 outside the clipping rectangle.
30639 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
30641 * ListBox.cs: added horizontal item scroll
30643 2005-04-29 Jackson Harper <jackson@ximian.com>
30645 * ThemeWin32Classic.cs: Remove some old debug code that was
30646 causing flicker with the new double buffering code.
30648 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
30650 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30651 behave like combobox and comboboxlist (still not sure if this is
30654 2005-04-28 Jackson Harper <jackson@ximian.com>
30656 * ThemeWin32Classic.cs: Don't fill the middle of progress
30657 bars. This fills areas outside of the clip bounds that don't need
30660 2005-04-28 Jackson Harper <jackson@ximian.com>
30662 * Control.cs: Don't expose functionality to touch the image buffers.
30664 * ListView.cs: We do not need to (and no longer can) manipulate
30665 the image buffers directly. All of this is handled by Control.
30667 2005-04-28 Peter Bartok <pbartok@novell.com>
30669 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30670 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30671 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30673 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30676 - Adjust control's height for non-simple comboboxes (bug fix)
30678 * MenuAPI.cs: remove unused var
30679 * ScrollBar.cs: remove unsed var
30681 * ListBox.cs: unselect items when clearing
30683 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
30685 * ListControl.cs: honors OnPositionChanged and default Selected Item
30686 * ListBox.cs: unselect items when clearing
30688 2005-04-27 Jackson Harper <jackson@ximian.com>
30690 * X11Keyboard.cs: Initialize a default keyboard and give a warning
30691 if a "correct" keyboard is not found. This will make us not crash,
30692 but might give some users bad keyboard layouts...seems to be the
30693 same thing rewind does.
30695 2005-04-27 Jackson Harper <jackson@ximian.com>
30697 * BindingManagerBase.cs: Attach the current/position changed
30698 handlers to their respective events.
30700 2005-04-27 Jackson Harper <jackson@ximian.com>
30702 * Control.cs: Make sure that the first WM_PAINT does a full draw,
30704 * ThemeWin32Classic.cs: Don't fill the background for picture
30705 boxes. This could overright user drawing.
30706 * ComboBox.cs: Just fill the clipping rect not the entire client
30707 rect when drawing the background. This prevents pieces of the
30708 image buffer from getting overwritten and is theoretically faster.
30710 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
30712 * ComboBox.cs: Databinding support fixes, fire missing events
30713 * ListControl.cs: implement missing methods and properties, fixes
30714 * ThemeWin32Classic.cs: Databiding support on Drawing
30715 * CheckedListBox.cs: Databinding support fixes, fire missing events
30716 * ListBox.cs: Databinding support fixes, fire missing events
30718 2005-04-25 Peter Bartok <pbartok@novell.com>
30720 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
30722 2005-04-25 Jackson Harper <jackson@ximian.com>
30724 * TreeView.cs: Use the horizontal scrollbars height not width when
30725 determining how much of the client area is available.
30727 2005-04-25 Jackson Harper <jackson@ximian.com>
30729 * Control.cs: Double buffering is handled differently now. As per
30730 the spec, the extra buffer is created in the WM_PAINT message and
30731 passed down to the control's drawing code.
30739 * PropertyGridView.cs:
30751 * DateTimePicker.cs:
30753 * TreeView.cs: Update to new double buffering system.
30754 * MonthCalendar.cs: Uncomment block, as Capture is now
30755 working. Update to new double buffering
30756 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
30757 * PaintEventArgs.cs: New internal method allows us to set the
30758 graphics object. This is used for double buffering.
30759 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
30760 rectangle. The internal paint_area var has been removed from
30761 StatusBar. The clipping rect should be used instead.
30762 * Theme.cs: Give the PictureBox drawing method a clipping rect.
30763 * TabPage.cs: The RefreshTabs method was removed, so just call the
30764 tab controls Refresh method now.
30765 * TabControl.cs: Update to new double buffering. Make sure the
30766 handle is created before sizing the tab pages, otherwise we will
30767 get stuck in a loop.
30769 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
30771 * LinkLabel.cs: Fix typo, bug #74719; patch
30772 from Borja Sanchez Zamorano
30774 2005-04-22 Jackson Harper <jackson@ximian.com>
30776 * TreeNode.cs: Implement Handle stuff.
30777 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
30779 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
30781 * DataGridTextBoxColumn.cs: call base constructors, fixes
30782 * GridColumnStylesCollection.cs: missing events, methods, and functionality
30783 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
30784 * DataGridTableStyle.cs: implements create default column styles
30785 * DataGridBoolColumn.cs: which types can handle
30786 * DataGrid.cs: missing methods, fixes, new functionality
30787 * DataGridColumnStyle.cs: fixes
30789 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
30790 * FolderBrowserDialog.cs:
30791 - Use a thread to fill the TreeView
30792 - Adjusted some sizes
30794 2005-04-19 Peter Bartok <pbartok@novell.com>
30796 * LinkLabel.cs: (Re-)create the pieces when setting the Text
30797 property. Fixes #74360.
30799 2005-04-19 Jackson Harper <jackson@ximian.com>
30801 * XEventQueue.cs: Lock when getting the lockqueue size.
30802 * PictureBox.cs: Call base OnPaint
30804 2005-04-19 Peter Bartok <pbartok@novell.com>
30806 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
30807 messages were no longer being processed (this broke BeginInvoke)
30810 2005-04-18 Jackson Harper <jackson@ximian.com>
30812 * TreeView.cs: buglet that caused node images to get drawn
30813 regardless of whether or not they were in the clipping rectangle.
30815 2005-04-18 Jackson Harper <jackson@ximian.com>
30817 * CurrencyManager.cs: There are four rules for GetItemProperties:
30818 - If the type is an array use the element type of the array
30819 - If the type is a typed list, use the type
30820 - If the list contains an Item property that is not an object, use
30822 - use the first element of the list if there are any elements in
30825 2005-04-17 Jackson Harper <jackson@ximian.oom>
30827 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
30828 click. This handles offsets for scrolling properly and reduces
30829 memory. Also fixed GetNode to not offset now that TopNode works
30831 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
30833 2005-04-17 Jackson Harper <jackson@ximian.com>
30835 * CursorConverter.cs: Initial implementation.
30837 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
30839 * ListControl.cs: work towards complex data binding support on ListControl
30840 * CurrencyManager.cs: work towards complex data binding support on ListControl
30841 * ListBox.cs: work towards complex data binding support on ListControl
30844 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
30846 * GridTableStylesCollection.cs: fixes name and constructor
30847 * DataGridTableStyle.cs: fixes
30848 * DataGridBoolColumn.cs: fixes names and constructors
30849 * DataGrid.cs: define methods and properties. Some init implementations
30850 * DataGridCell.cs: define methods and properties. Some init implementations
30851 * GridTablesFactory.cs: Define methods and properties
30853 2005-04-15 Geoff Norton <gnorton@customerdna.com>
30855 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
30856 graphics port changes. We still want the coordinates in global screen
30859 2005-04-14 Jackson Harper <jackson@ximian.com>
30861 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
30862 check plus minus or checkbox clicks unless those features are enabled.
30864 2005-04-14 Jackson Harper <jackson@ximian.com>
30866 * TreeView.cs: Add methods for setting the top and bottom visible
30867 nodes. TreeNode::EnsureVisible uses these methods.
30868 * TreeNode.cs: Implement EnsureVisible
30870 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
30872 * Form.cs: Pospone menu assignation if the window has not been created yet
30873 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
30876 2005-04-12 Jackson Harper <jackson@ximian.com>
30878 * TreeView.cs: Set the TopNode properly when scrolling
30879 occurs. This has the added benifit of reducing the amount of
30880 walking that needs to be done when drawing. Also removed an old
30882 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
30884 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
30886 * Timer.cs: fixes interval setting when the timer is already enabled
30888 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
30890 * FolderBrowserDialog.cs: First approach
30892 2005-04-09 Peter Bartok <pbartok@novell.com>
30894 * FolderBrowserDialog: Added
30896 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
30898 * LinkLabel.cs: move drawing code into the theme
30899 * ThemeWin32Classic.cs: drawing code and painting background bugfix
30900 * Theme.cs: define DrawLinkLabel method
30902 2005-04-05 Jackson Harper <jackson@ximian.com>
30904 * BindingContext.cs: Use weak references so these bad actors don't
30905 stay alive longer then they need to.
30907 2005-04-05 Jackson Harper <jackson@ximian.com>
30909 * ListControl.cs: Basic implementation of complex databinding.
30911 * ListBox.cs: Add calls to ListControl databinding methods.
30913 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
30916 - Don't change PopupButtonState to Normal when the
30917 PopupButton gets pressed several times.
30918 - Renamed ButtonPanel to PopupButtonPanel
30920 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
30922 * ColorDialog.cs: Use cached objects instead of creating them
30923 * LinkLabel.cs: Use cached objects instead of creating them
30924 * Splitter.cs: Use cached objects instead of creating them
30925 * FontDialog.cs: Use cached objects instead of creating them
30926 * PropertyGridView.cs: Use cached objects instead of creating them
30927 * MessageBox.cs: Use cached objects instead of creating them
30928 * FileDialog.cs: Use cached objects instead of creating them
30929 * ThemeWin32Classic.cs: Use cached objects instead of creating them
30930 * TreeView.cs: Use cached objects instead of creating them
30932 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
30934 * Control.cs: use Equals to compare the font since no == op
30935 * ScrollBar.cs: use Equals to compare the font since no == op
30937 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
30939 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
30941 2005-04-01 Jackson Harper <jackson@ximian.com>
30943 * Binding.cs: Implement IsBinding.
30944 * BindingManagerBase.cs:
30945 * PropertyManager.cs:
30946 * CurrencyManager.cs: Add IsSuspended property.
30948 2005-04-01 Jackson Harper <jackson@ximian.com>
30950 * Binding.cs: Had some IsAssignableFrom calls backwards.
30952 2005-04-01 Jackson Harper <jackson@ximian.com>
30954 * Binding.cs: Handle null data members when pulling data.
30955 * PropertyManager.cs: Handle the data member being a property that
30958 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30960 * DataGridTextBoxColumn.cs: fixes signature
30961 * DataGrid.cs: calls right constructor
30963 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
30965 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
30966 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
30967 * GridTableStylesCollection.cs: implements GridTableStylesCollection
30968 * DataGridTableStyle.cs: implements DataGridTableStyle
30969 * DataGridBoolColumn.cs: implements DataGridBoolColumn
30970 * DataGridTextBox.cs: implements DataGridTextBox
30971 * DataGridColumnStyle.cs: implements DataGridColumnStyle
30973 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
30975 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30977 2005-03-29 Peter Bartok <pbartok@novell.com>
30980 - Properly implemented CompanyName property
30981 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30982 returns a path that includes CompanyName, ProductName and
30983 Version (fixes bug #70330)
30985 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
30987 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30990 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30992 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30994 - Added ReadOnly CheckBox
30995 - Further refactoring: moved some code from Open-/SaveFileDialog
30998 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31000 * OpenFileDialog.cs: Fixed CheckFileExists
31002 Moved FileView and DirComboBox outside FileDialog class.
31003 They can now be used outside FileDialog
31005 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31007 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31008 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31010 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31012 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31013 - Added missing CreatePrompt property in SaveDialog
31014 - Overall SaveDialog handling should be better now
31015 - Added non standard ShowHiddenFiles property
31016 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31017 - Added InitialDirectory and RestoreDirectory support
31019 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
31021 * FileDialog.cs: Made dirComboBox usable
31023 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
31025 * FileDialog.cs: Added Filter support (case sensitiv)
31027 2005-03-24 Jackson Harper <jackson@ximian.com>
31029 * TabControl.cs: Need a couple more pixels for the lines.
31031 2005-03-23 Jackson Harper <jackson@ximian.com>
31033 * TabControl.cs: Give the tab page focus when it is selected.
31035 2005-03-23 Jackson Harper <jackson@ximian.com>
31037 * TabControl.cs: Account for the drawing of tabs borders when
31038 invalidating. If the slider was clicked dont do click detection on
31041 2005-03-23 Jackson Harper <jackson@ximian.com>
31043 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31045 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
31047 * CategoryGridEntry.cs: Added
31048 * GridItem.cs: Added helper properties
31049 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31050 * GridEntry.cs: Updated code for collection
31051 * PropertyGrid.cs: Cleaned up some formatting
31052 * PropertyGridView.cs: Added drop down functionality for enums.
31053 * GridItemCollection.cs: Added enumerator logic
31054 * PropertyGridEntry.cs: Added
31056 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31059 - Removed unnecessary commented code
31060 - Fixed handling for entering the filename manually in the combobox
31062 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31064 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31066 2005-03-18 Peter Bartok <pbartok@novell.com>
31068 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31069 them being touching the border
31071 2005-03-18 Peter Bartok <pbartok@novell.com>
31073 * TextControl.cs: Quick hack to center text better
31075 2005-03-18 Peter Bartok <pbartok@novell.com>
31078 - Don't throw NotImplemented exceptions, just print a notice once
31079 instead (requested by Miguel). This makes running existing SWF
31082 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31083 - Added context menu trigger on right click
31084 * Panel.cs: Trigger invalidate on resize
31086 - Removed old double-buffer drawing
31087 - Added ResizeRedraw style to force proper update of statusbar
31089 - Removed debug output
31090 * ThemeWin32Classic.cs:
31091 - Fixed drawing of status bar, now draws Text property if there
31092 are no defined panels
31094 2005-03-18 Jackson Harper <jackson@ximian.com>
31096 * ImageList.cs: When the image stream is set pull all the images
31098 * ImageListStreamer.cs: Implement reading image list streams.
31100 2005-03-18 Peter Bartok <pbartok@novell.com>
31102 * ThemeWin32Classic.cs (DrawPictureBox):
31103 - Fixed calculations for centered drawing
31104 - Fixed drawing for normal mode, not scaling the image on normal
31106 2005-03-18 Peter Bartok <pbartok@novell.com>
31108 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31111 - Made Open/Save button the accept button for FileDialog
31112 - Tied the cancel button to the IButtonControl cancel button
31113 - Save/Open now properly builds the pathname
31114 - Now handles user-entered text
31115 - Preventing crash on right-click if no item is selected
31116 - Fixed Text property, now uses contents of textbox
31117 - Fixed SelectedText property, now just returns the text part that
31118 is selected in the text box
31120 2005-03-18 Jackson Harper <jackson@ximian.com>
31122 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31123 rect, make sure to de-adjust the interior rect after drawing the
31126 2005-03-18 Peter Bartok <pbartok@novell.com>
31128 * MenuAPI.cs: Remove menu *before* executing selected action to
31129 prevent the menu from 'hanging around'
31131 2005-03-17 Geoff Norton <gnorton@customerdna.com>
31133 * XplatUIOSX.cs: Implemented WorkingArea property
31135 2005-03-17 Peter Bartok <pbartok@novell.com>
31137 * XplatUIX11.cs: Fixed menu coord calculations
31138 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31139 for calculating offsets
31141 2005-03-17 Peter Bartok <pbartok@novell.com>
31143 * Hwnd.cs: Do not consider menu presence for default client
31144 rectangle location/size
31145 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31146 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31147 translation functions
31148 * FileDialog.cs: Fixed (what I presume is a) typo
31150 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
31152 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31153 X access (avoids X-Async errors)
31155 2005-03-16 Jackson Harper <jackson@ximian.com>
31157 * TabControl.cs: Raise the SelectedIndexChanged event.
31159 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
31161 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31162 - Removed vertical ToolBar and replaced it with a custom panel
31163 (desktop and home button already work)
31164 - Added Help button (some controls get resized or relocated then)
31165 - Draw correct text depending on Open or Save.
31166 - Fixed some typos...
31168 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
31171 - Only change Maximum and Minimum when need it (bug fix)
31173 2005-03-15 Peter Bartok <pbartok@novell.com>
31175 * Form.cs: Use Handle for icon, to trigger creation if
31176 the window does not yet exist
31178 - CanSelect: Slight performance improvement
31179 - Focus(): Preventing possible recursion
31180 - Invalidate(): Removed ControlStyle based clear flag setting
31181 - WM_PAINT: fixed logic for calling OnPaintBackground
31182 - WM_ERASEBKGND: Fixed logic, added call to new driver method
31183 EraseWindowBackground if the control doesn't paint background
31185 - Moved EraseWindowBackground() method to internal methods
31186 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31187 is sent via SendMessage on BeginPaint call on Win32
31189 - Added EraseWindowBackground() method
31190 - No longer sends WM_ERASEBKGND on .Expose, but on call to
31191 PaintEventStart, which more closely matches Win32 behaviour
31192 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31193 - Fixed SetFocus() to properly deal with client and whole windows
31194 * Hwnd.cs: Added ErasePending property
31195 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31196 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31198 2005-03-12 Geoff Norton <gnorton@customerdna.com>
31201 - Fix hard loop when timers exist.
31202 - Fix bugs with middle and right click for 3 button mice.
31204 2005-03-11 Peter Bartok <pbartok@novell.com>
31207 - get_WorkingArea: Need to call X directly, GetWindowPos only
31208 returns cached data now
31209 - Added sanity check to GetWindowPos hwnd usage
31211 2005-03-11 Jackson Harper <jackson@ximian.com>
31213 * BindingManagerBase.cs: This method isn't used anymore as
31214 PullData now updates the data in the control.
31216 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
31218 * Form.cs: fixes menu drawing on X11
31219 * MenuAPI.cs: fixes menu drawing on X11
31221 2005-03-11 Peter Bartok <pbartok@novell.com>
31223 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31224 from Jonathan Gilbert; should fix bug #73606
31225 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31226 in Screen coordinates. Thanks, Jordi.
31227 * Form.cs: Added missing attribute
31229 2005-03-11 Peter Bartok <pbartok@novell.com>
31232 - Rudimentary Mdi support
31233 - Removed outdated FormParent code
31234 - Implemented lots of missing properties and methods, still missing
31235 transparency support
31236 - Added missing attributes
31237 - Implemented support for MaximumBounds
31238 - Added firing of various events
31239 * XplatUI.cs: Added SetIcon() method
31240 * XplatUIDriver.cs: Added SetIcon() abstract
31241 * XplatUIOSX.cs: Stubbed out SetIcon() method
31243 - Implemented SetIcon() support
31244 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31245 - Switched to unix line endings
31247 - Made POINT internal so for can access it as part of MINMAX
31248 - Implemented SetIcon() support
31249 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31250 native Mdi support again, might have to go managed)
31251 * Control.cs: Now fires the StyleChanged event
31252 * MdiClient.cs: Added; still mostly empty
31254 2005-03-10 Peter Bartok <pbartok@novell.com>
31256 * SaveFileDialog.cs: Added emtpy file
31258 2005-03-08 Peter Bartok <pbartok@novell.com>
31260 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31261 in turn triggers OnCreateContro) when creating a handle for the
31263 * TextControl.cs: Fixed endless loop in certain cases when
31264 replacing the current selection
31266 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
31269 - Honors NewValue changes in Scroll events allowing apps to change it
31270 - Adds First and Last Scroll events
31271 - Fixes Thumb events
31273 2005-03-07 Peter Bartok <pbartok@novell.com>
31275 * Hwnd.cs: Added DefaultClientRectangle property
31276 * XplatUI.cs: Now using the X11 driver Where() method, which provides
31277 more detailed debug information
31279 - Fixed size-change feedback loop, where we would pull an old size
31280 off the queue and mistakenly change our window's size to an
31282 - Now compressing ConfigureNotify events, to reduce looping and
31284 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31287 2005-03-07 Jackson Harper <jackson@ximian.com>
31289 * Binding.cs: Push data pushes from data -> property. Check if the
31290 property is readonly when attempting to set it.
31292 2005-03-07 Jackson Harper <jackson@ximian.com>
31294 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31295 instead of IsSubclassOf. Pulling data now sets the value on the
31297 * PropertyManager.cs:
31298 * CurrencyManager.cs: Just need to pull data when updating now,
31299 because PullData will set the value on the control.
31301 2005-03-04 Jackson Harper <jackson@ximian.com>
31303 * Binding.cs: Implement data type parsing and converting on pulled
31304 data. TODO: Are there more ways the data can be converted?
31306 2005-03-04 Jackson Harper <jackson@ximian.com>
31308 * Binding.cs: Support <Property>IsNull checks. Also bind to the
31309 controls Validating method so we can repull the data when the
31310 control loses focus.
31312 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
31315 - Fixes null string format
31318 - Adds enum type checks
31319 - Fixes redrawing and recalc need after changing some properties
31320 - Fixes on focus_item set after the event
31321 - Fixes adding columns after the control has been created
31323 * ThemeWin32Classic.cs:
31324 - Fixes CheckBox focus rectangle
31325 - Fixes ColumnHeader drawing
31328 2005-03-03 Jackson Harper <jackson@ximian.com>
31330 * Binding.cs: Bind to <Property>Changed events so we can detect
31331 when properties are changed and update the data.
31333 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
31336 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31337 - Fixes ImageList constructor with ImageList container
31338 - Fixes image scaling (wrong parameters at DrawImage)
31340 2005-02-02 Jackson Harper <jackson@ximian.com>
31342 * Binding.cs: Make property searches case-insensitive. Eliminate
31343 some duplicated code.
31345 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
31348 - Handle focus event
31349 - Fix scrollbar events
31350 - Discard highlighted item if remove it
31351 - Fixes SelectedItem with strings
31353 2005-03-01 Peter Bartok <pbartok@novell.com>
31356 - Fixed Visible property, now follows (once again) parent chain
31357 to return false if any control in the chain is visible=false
31358 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31359 - Fixed several places where is_visible instead of Visible was used
31360 - Implemented FIXME related to focus selection when setting focused
31361 control to be invisible
31363 * XplatUIWin32.cs: Now using proper method to find out if window is
31364 visible. Thanks to Jordi for pointing it out
31366 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
31368 * ComboBox.cs: show/hide scrollbar instead of creating it
31370 2005-02-27 Jackson Harper <jackson@ximian.com>
31372 * CurrencyManager.cs: Add PositionChanged stuff.
31374 2005-02-27 Peter Bartok <pbartok@novell.com>
31376 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31377 * XplatUIOSX.cs: Added GetMenuOrigin() stub
31378 * XplatUIWin32.cs: Implemented GetMenuOrigin()
31380 - Implemented GetMenuDC()
31381 - Implemented GetMenuOrigin()
31382 - Implemented ReleaseMenuDC()
31383 - Implemented generation of WM_NCPAINT message
31384 - Implemented generation and handling of WM_NCCALCSIZE message
31385 * Form.cs: Added debug helper message for Jordi's menu work
31387 - Modified ClientRect property; added setter, fixed getter to handle
31388 setting of ClientRect
31389 - Added MenuOrigin property
31391 2005-02-26 Peter Bartok <pbartok@novell.com>
31394 - Destroys the caret if a window that's being destroyed contains it
31395 - Ignores expose events coming from the X11 queue for windows that
31396 already are destroyed
31397 - Now uses the proper variable for handling DestroyNotify, before we
31398 marked the wrong window as destroyed
31399 - Improved/added some debug output
31401 2005-02-26 Peter Bartok <pbartok@novell.com>
31403 * X11Keyboard.cs: Fixes to work on 64bit systems
31405 2005-02-26 Peter Bartok <pbartok@novell.com>
31408 - Now calling OnHandleDestroyed from DestroyHandle()
31409 instead of Dispose()
31410 - Removed bogus call to controls.Remove() from DestroyHandle()
31412 2005-02-26 Peter Bartok <pbartok@novell.com>
31414 * Control.cs: Properly destroy child windows when our handle is
31417 2005-02-25 Peter Bartok <pbartok@novell.com>
31420 - Added 'DriverDebug' define to allow tracing XplatUI API calls
31421 - Alphabetized Static Methods and Subclasses
31424 - Added XException class to allow custom handling of X11 exceptions
31425 - Created custom X11 error handler, tied into XException class
31426 - Added support for MONO_XEXCEPTIONS env var to allow the user
31427 to either throw an exception on X errors or continue running
31428 after displaying the error
31429 - Added handling of DestroyNotify message
31430 - Added handler for CreateNotify message (still disabled)
31431 - Improved (tried to at least) Where method to provide file and lineno
31433 - Added XErrorHandler delegate
31434 - Added XRequest enumeration (to suppor translation of errors)
31436 2005-02-25 Jackson Harper <jackson@ximian.com>
31438 * PropertyManager.cs: Implement editing features
31439 * CurrencyManager.cs:
31440 * Binding.cs: First attempt at UpdateIsBinding
31441 * BindingManagerBase.cs: Call UpdateIsBinding before
31442 pushing/pulling data.
31444 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
31446 * MenuAPI.cs: Respect disabled items
31447 * ThemeWin32Classic.cs
31448 - Caches ImageAttributes creation for DrawImageDisabled
31449 - Fixes vertical menu line drawing
31450 - Draws disabled arrows in disable menu items
31452 2005-02-24 Peter Bartok <pbartok@novell.com>
31455 - Added UserData property to allow associating arbitrary objects
31457 - Fixed leak; now removing Hwnd references from static windows array
31459 - Fixed Graphics leak in PaintEventEnd
31460 - Removed usage of HandleData, switched over to Hwnd class
31461 * HandleData.cs: Removed, obsoleted by Hwnd.cs
31463 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31465 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31466 * ScrollBar.cs: Fixes bug
31467 * TrackBar.cs: removes death code, clipping, mimize refreshes,
31468 keyboard navigation enhancements
31470 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31472 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31473 * GroupBox.cs: Add control styles
31474 * Label.cs: Add control styles
31475 * UpDownBase.cs: Add control styles
31476 * ListBox.cs: Add control styles
31477 * XplatUIWin32.cs: Fixes wrong parameter order
31480 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
31482 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31484 2005-02-23 Jackson Harper <jackson@ximian.com>
31486 * PropertyManager.cs: Implement property binding. This doesn't
31487 seem to work yet though as (I think) there are some bugs in
31488 System.ComponentModel.PropertyDescriptor.
31489 * BindingContext.cs: Use new PropertyManager constructor.
31491 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
31493 * ProgressBar.cs: use clip region in ProgressBar
31494 * ThemeWin32Classic.cs: use clip region in ProgressBar
31496 2004-02-22 Jackson Harper <jackson@ximian.com>
31498 * BindingsCollection.cs: Remove some debug code.
31500 2005-02-22 Jackson Harper <jackson@ximian.com>
31502 * BindingContext.cs:
31503 * ControlBindingsCollection.cs:
31504 * CurrencyManager.cs:
31506 * BindingManagerBase.cs: Initial implementation
31507 * BindingsCollection.cs: Add an internal contains method that the
31508 BindingManagerBase uses to ensure bindings aren't added twice to
31510 * PropertyManager.cs: Stubbed out.
31512 * ContainerControl.cs: Hook up databinding
31514 2005-02-22 Geoff Norton <gnorton@customerdna.com>
31517 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31518 Fixed Invalidate/Update chain.
31519 Fixed tons of other minor bugs (this is almost a complete rewrite).
31521 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
31523 * ComboBox.cs: do subcontrol creation when the control is created
31525 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31527 * Label.cs: fixes image drawing (image and imagelist)
31528 * ThemeWin32Classic.cs: cache brushes
31530 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31532 * Form.cs: Move menu drawing code to Theme class
31533 * ComboBox.cs: Move ComboBox drawing code to Theme class
31534 * MenuItem.cs: Move menu drawing code to Theme class
31535 * MenuAPI.cs: Move menu drawing code to Theme class
31536 * ThemeWin32Classic.cs: New methods
31537 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
31538 * ListBox.cs: Move Listbox drawing code to Theme class
31539 * Theme.cs: New methods
31541 2005-02-20 Peter Bartok <pbartok@novell.com>
31544 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
31545 only process mnemonics on those)
31546 - Fixed event sequence for key handling; first calling
31547 ProcessKeyEventArgs now
31549 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
31550 for processing non-character keys
31551 - Fixed WM_CHAR to generate proper event sequence before processing
31552 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
31555 2005-02-19 Peter Bartok <pbartok@novell.com>
31557 * UserControl.cs: Added TextChanged event; added attributes
31558 * SizeGrip.cs: Implemented resizing and optional display of grip
31559 * Form.cs: Fixed attribute
31560 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31561 Changed meaning of ScrollWindow bool argument; instead of the
31562 clear attribute (which will be true usually anyway), it gives the
31563 option of moving child controls as well.
31565 - Changed to match new ScrollWindow argument
31566 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
31567 now handles the implicit parent window a WM puts around us
31568 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
31570 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
31571 * TreeView.cs: Adjusted to new ScrollWindow arguments
31573 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31575 * Form.cs: Menu integration with non-client area
31576 * MenuItem.cs: Menu integration with non-client area
31577 * MenuAPI.cs: Menu integration with non-client area
31579 2005-02-18 Peter Bartok <pbartok@novell.com>
31581 * MethodInvoker.cs: Added
31582 * MdiLayout.cs: Added
31583 * SendKeys.cs: Started implementation
31584 * ErrorIconAlignment.cs: Added
31586 2005-02-18 Peter Bartok <pbartok@novell.com>
31588 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
31589 * Form.cs: Added handling for Menu-related Non-client messages
31591 2005-02-17 Peter Bartok <pbartok@novell.com>
31593 * UpDownBase.cs: Fixed typo, compilation errors
31594 * DomainUpDown.cs: Fixed attribute value
31596 2005-02-16 Miguel de Icaza <miguel@novell.com>
31598 * UpDownBase.cs: Attach entry events.
31600 Add ForeColor property, Focused, InterceptArrowKeys (interception
31601 does not work yet).
31603 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
31606 - Redraw non client are on Setmenu
31607 - Calc proper menu starting point
31609 2005-02-17 Peter Bartok <pbartok@novell.com>
31611 * Application.cs: Fixed message_filter check
31613 2005-02-17 Peter Bartok <pbartok@novell.com>
31615 * Application.cs: Now calls registered message filters
31616 * DockStyle.cs: Fixed attribute
31617 * Form.cs: Fixed attribute
31618 * Menu.cs: Fixed attribute
31619 * ToolTip.cs: Fixed attribute
31620 * TreeNode.cs: Added missing attributes and arranged in regions
31621 * PropertyGrid.cs: Fixed signatures
31622 * TreeNodeCollection.cs: Added attributes
31623 * Splitter.cs: Added missing attributes; arranged into regions
31624 * TabPage.cs: Added missing attributes; arranged into regions
31625 * TextBoxBase.cs: Added missing attributes
31626 * TextBox.cs: Added missing attributes
31627 * ArrangeDirection.cs: Added missing attributes
31628 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
31629 * ToolBarButton.cs: Fixed attributes
31630 * AnchorStyles.cs: Fixed attribute
31631 * TrackBar.cs: Fixed attributes
31632 * TabControl.cs: Added missing attributes and arranged into regions
31633 * ToolBar.cs: Fixed attribute
31634 * StatusBar.cs: Fixed signature, organized into regions and added
31636 * StatusBarPanel.cs: Fixed attributes
31637 * ContentsResizedEventArgs.cs: Implemented
31638 * ContentsResizedEventHandler.cs: Implemented
31639 * DateBoldEventArgs.cs: Implemented
31640 * DateBoldEventHandler.cs: Implemented
31641 * UpDownEventArgs.cs: Implemented
31642 * UpDownEventHandler.cs: Implemented
31644 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
31646 * Form.cs: first Menu NC refactoring
31647 * MenuAPI.cs: first Menu NC refactoring
31649 2005-02-16 Peter Bartok <pbartok@novell.com>
31651 * ImeMode.cs: Added missing attributes
31652 * Menu.cs: Fixed attribute
31653 * GroupBox.cs: Fixed attribute
31654 * Label.cs: Fixed attribute
31655 * ColorDialog.cs (RunDialog): Removed TODO attribute
31656 * ComboBox.cs: Fixed attributes
31657 * ListControl.cs: Added missing attributes
31658 * PropertyGrid.cs: Fixed attributes
31659 * Control.cs: Fixed attributes
31660 * ListViewItem.cs: Added TypeConverter attribute
31661 * NotifyIcon.cs: Fixed attributes
31662 * ListView.cs: Fixed attributes
31663 * ButtonBase.cs: Fixed attribute
31664 * ImageList.cs: Added missing attributes
31665 * ContainerControl.cs: Fixed signature
31666 * CheckedListBox.cs: Fixed attribute; added missing attributes
31667 * Panel.cs: Fixed attributes
31668 * PropertyTabChangedEventArgs.cs: Added missing attribute
31669 * PropertyValueChangedEventArgs.cs: Added missing attribute
31670 * Binding.cs: Fixed attribute
31671 * ListViewItemConverter: Implemented ListViewSubItemConverter class
31672 * ListBox.cs: Fixed attribute; added missing attributes;
31673 * ScrollableControl.cs: Added missing attributes
31674 * PictureBox.cs: Added missing attributes; implemented missing property
31675 * DateTimePicker.cs: Added missing attributes
31676 * Theme.cs (ToolWindowCaptionHeight): Fixed type
31677 * MonthCalendar.cs: Fixed attributes
31678 * StatusBarPanel.cs: Added missing attributes
31679 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31681 2005-02-16 Peter Bartok <pbartok@novell.com>
31683 * TextBoxBase.cs: The previous method to enforce height yet remember
31684 the requested high was less than ideal, this is an attempt to do
31686 * Control.cs: Added comment about possible problem
31687 * Copyright: Updated format
31688 * GridItemType.cs: Fixed swapped values
31690 2005-02-15 Jackson Harper <jackson@ximian.com>
31692 * BaseCollection.cs: Use property so we never access an
31693 uninitialized list. Also initialize the list in the property.
31695 2005-02-15 Peter Bartok <pbartok@novell.com>
31697 * GroupBox.cs (ProcessMnemonic): Implemented
31698 * Label.cs (ProcessMnemonic): Implemented
31699 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31702 2005-02-15 Peter Bartok <pbartok@novell.com>
31704 * RadioButton.cs (ProcessMnemonic): Implemented
31705 * CheckBox.cs (ProcessMnemonic): Implemented
31707 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
31709 - Added internal method to allow calling ProcessMnemonic from other
31711 * ContainerControl.cs:
31712 - Started support for handling validation chain handling
31713 - Implemented ProcessMnemonic support
31714 - Added Select() call to Active, to make sure the active control
31716 * Form.cs: Setting toplevel flag for Forms (this was lost in the
31717 FormParent rewrite)
31718 * ThemeWin32Classic.cs:
31719 - DrawCheckBox(): Fixed stringformat to show hotkeys
31720 - DrawRadioButton(): Fixed stringformat to show hotkeys
31721 * CommonDialog.cs: Removed WndProc override, not needed
31723 2005-02-14 Peter Bartok <pbartok@novell.com>
31725 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
31726 missed those in the rewrite
31728 2005-02-14 Miguel de Icaza <miguel@novell.com>
31730 * NumericUpDown.cs (Increment, ToString): Add.
31731 (DecimalPlaces): implement.
31735 * UpDownBase.cs: Add the designer attributes.
31737 2005-02-13 Peter Bartok <pbartok@novell.com>
31739 * Panel.cs: Removed border_style, now in Control
31740 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
31741 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
31743 2005-02-13 Peter Bartok <pbartok@novell.com>
31745 * MouseButtons.cs: Added missing attributes
31746 * XplatUIStructs.cs: Added enumeration for title styles
31747 * LeftRightAlignment.cs: Added missing attributes
31748 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
31749 it compatible with Graphics.FromHwnd()
31750 * SelectedGridItemChangedEventArgs.cs: Fixed property type
31751 * Keys.cs: Added missing attributes
31752 * SelectionRange.cs: Added missing attributes
31753 * SelectionRangeConverter.cs: Added
31755 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
31756 ReleaseMenuDC methods
31757 - Renamed ReleaseWindow to UngrabWindow
31758 - Added proper startup notice to allow version identification
31760 - Added missing attributes
31761 - Removed FormParent concept
31762 * Label.cs: Removed border_style field, now in Control
31763 * RadioButton.cs: Now properly selects RadioButton when focus is
31765 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
31767 - Added missing attributes
31768 - Added borderstyle handling
31769 - Removed FormParent concept support
31770 - Fixed calls to XplatUI to match changed APIs
31771 - Fixed bug that would case us to use disposed Graphics objects
31772 - Removed unneeded internal methods
31773 - PerformLayout(): Fixed to handle DockStyle.Fill properly
31774 - SelectNextControl(): Fixed to properly check common parents
31775 * TextBoxBase.cs: Removed border_style field (now in Control)
31777 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
31778 fixed calculations for form size
31779 - Added support for localized strings and icons
31780 - Improved form size calculations, added border
31781 * ListView.cs: Removed border_style field (now in Control)
31782 * X11Structs.cs: Moved several structs from X11 driver here
31783 * X11Keyboard.cs: Changed debug message
31784 * Application.cs: Removed FormParent concept support
31786 - Resetting end_modal flag
31787 - Removed FormParent concept support
31788 * NativeWindow.cs: Removed FormParent concept support
31789 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
31790 Client area and Non-Client whole window to allow support for WM_NC
31792 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
31793 prevent using it until it supports Hwnd as per Geoff Norton's request
31794 * ToolBar.cs: Fixed drawing, was not doing proper drawing
31795 * PictureBox.cs: Removed border_style field, now in Control
31796 * XplatUIWin32.cs: Added new driver methods
31798 2005-02-12 Peter Bartok <pbartok@novell.com>
31800 * OpacityConverter.cs: Implemented
31801 * Hwnd.cs: Internal class to support drivers that need to emulate
31802 client area/non-client area window behaviour
31804 2005-02-11 Peter Bartok <pbartok@novell.com>
31806 * KeysConverter.cs: Implemented
31808 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
31810 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
31811 * LinkLabel: Added missing attributes
31812 * MainMenu.cs: fixes ToString
31813 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
31814 * ListBox.cs: fixes event position
31815 * TrackBar.cs: adds missing attributes and events
31817 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
31819 * MenuItem.cs: Use SystemInformation and bug fixes
31820 * MenuAPI.cs: Use SystemInformation and bug fixes
31822 2005-02-09 Jackson Harper <jackson@ximian.com>
31824 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
31825 their keystate otherwise things like VK_MENU get stuck "on".
31827 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
31829 * ListBox.cs: Fixes AddRange bug
31831 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
31834 - Add missing attributes
31835 - Add missing method
31837 * CheckedListBox.cs: Added missing attributes
31838 - Add missing attributes
31839 - Remove extra method
31841 * ComboBox.cs: Added missing attributes
31842 * VScrollBar.cs: Added missing attributes
31843 * ScrollBar.cs: Added missing attributes
31844 * ListBox.cs: Fixes signature, add missing consts
31845 * LinkArea.cs: Added missing attributes
31848 2005-02-08 Peter Bartok <pbartok@novell.com>
31850 * Menu.cs: Added missing attributes
31851 * MainMenu.cs: Added missing attributes
31852 * GroupBox.cs: Added missing attributes
31853 * Label.cs: Added missing attributes
31854 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
31856 - Added Instance and Options properties
31857 - Added missing attributes
31858 * Cursor.cs: Made Serializable
31859 * NotifyIcon: Added missing attributes
31860 * MenuItem.cs: Added missing attributes
31861 * TextBoxBase.cs: Implemented AppendText() and Select() methods
31862 * Panel.cs: Added Missing attributes
31863 * MonthCalendar.cs: Fixed CreateParams
31865 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
31869 - Fixes issues with links
31870 - Adds the class attributes
31872 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
31875 - Fixes button when no items available in dropdown
31876 - Fixes repainting problems
31877 - Adds the class attributes
31879 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31881 * XplatUIOSX.cs: Detect the menu bar and title bar height from
31882 the current theme. Cache these on startup.
31884 2005-02-07 Jackson Harper <jackson@ximian.com>
31886 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
31887 the scrollbar buttons when they are depressed.
31889 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31891 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
31892 Get the display size from the main displayid. We currently dont
31893 support multiple display configurations.
31895 2005-02-07 Geoff Norton <gnorton@customerdna.com>
31897 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
31899 2005-02-07 Miguel de Icaza <miguel@novell.com>
31901 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
31903 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
31905 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
31907 2005-02-04 Jackson Harper <jackson@ximian.com>
31909 * ThemeWin32Classic.cs: Respect the clipping rect when
31910 drawing. Only fill the intersection of clips and rects so there
31911 isn't a lot of large fills.
31912 * ScrollBar.cs: Pass the correct clipping rect to the theme
31913 engine. Remove some debug code.
31915 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
31917 * DateTimePicker.cs:
31918 - Fixed crash on DateTime.Parse, use Constructor instead
31920 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31924 - Owner draw support (MeasureItem and DrawItem)
31926 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
31929 - Implements FindMergePosition and MergeMenu functions (very poor documented)
31930 - Fixes MenuItems.Add range
31932 - MergeMenu and Clone and CloneMenu functions
31934 2005-02-03 Jackson Harper <jackson@ximian.com>
31936 * ScrollBar.cs: Make abstract
31937 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
31940 2005-02-03 Jackson Harper <jackson@ximian.com>
31942 * ScrollBar.cs: First part of my scrollbar fixups. This removes
31943 all the unneeded refreshes and uses invalidates with properly
31946 2005-02-03 Peter Bartok <pbartok@novell.com>
31948 * ComponentModel.cs: Added
31949 * IDataGridEditingService.cs: Added
31950 * Timer.cs: Added missing attributes
31951 * ToolTip.cs: Added missing attributes
31953 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
31955 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
31957 2005-02-03 Peter Bartok <pbartok@novell.com>
31959 * ListBox.cs: Added missing attributes
31961 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
31964 - Fixes font height after font change
31965 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
31967 2005-02-02 Peter Bartok <pbartok@novell.com>
31969 * HandleData.cs: Introduced static methods to allow class
31970 to be more self-contained and track it's own HandleData objects
31971 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31972 HandleData to use new static methods
31974 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
31977 - Fixes default size and PreferredHeight
31979 - ObjectCollection.Insert implementation
31985 - ObjectCollection.Insert implementation
31986 - No selection after clean
31989 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31991 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31993 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
31996 - Caches ItemHeight calculation for OwnerDrawVariable
31997 - Handles dropdown properly
31998 - Fixes several minor bugs
32000 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32003 - Fixes 71946 and 71950
32004 - Fixes changing Multicolumn on the fly
32005 - Fixes keyboard navigation on Multicolumn listboxes
32007 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32009 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32010 crash reporter log.
32012 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32014 * XplatUIOSX.cs: Allow applications to actually exit.
32016 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32018 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
32019 their parent at creation time rather than lazily later. Fixes a major
32020 regression we were experiencing.
32022 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32024 * ThemeWin32Classic.cs: more date time picker painting fixes
32025 * DateTimePicker.cs: more monthcalendar drop down fixes
32026 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32028 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32031 - When moving the thumb going outside the control should stop the moving
32032 - Adds the firing of missing events
32033 - Fixes no button show if Size is not specified
32034 - End / Home keys for keyboard navigation
32036 2005-01-30 Peter Bartok <pbartok@novell.com>
32038 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32039 sanity check to prevent theoretical loop
32040 * XplatUIWin32.cs (SetVisible): Removed debug output
32041 * XplatUIX11.cs (SystrayChange): Added sanity check
32042 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32043 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32044 behaviour, valid until the X11 client window rewrite is done
32045 * TextBox.cs (ctor): Setting proper default foreground and background
32048 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
32050 * Theme: Added DrawDateTimePicker to interface
32051 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32052 * DateTimePicker.cs: Created (still needs keys and painting code)
32053 * DateTimePickerFormat.cs: added
32054 * MonthCalendar.cs: fixed CreateParams for popup window mode
32056 2005-01-29 Peter Bartok <pbartok@novell.com>
32058 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32059 this should also the calculations for ligher/darker
32060 * Theme.cs: Fixed defaults for ScrollBar widths/heights
32062 2005-01-29 Peter Bartok <pbartok@novell.com>
32064 * ArrangeDirection.cs: Added
32065 * ArrangeStartingPositon.cs: Added
32066 * SystemInformation.cs: Implemented
32067 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32068 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32069 used by SystemInformation class
32070 * X11Strucs.cs: Added XSizeHints structure
32072 - Fixed CreateParams to make sure the menu window is always visible
32073 - TrackPopupMenu: Added check to make sure we don't draw the
32076 2005-01-29 Peter Bartok <pbartok@novell.com>
32078 * HandleData.cs: Added method for altering invalid area
32079 * TextBoxBase.cs: Implemented TextLength
32081 2005-01-28 Peter Bartok <pbartok@novell.com>
32083 * XplatUIX11.cs: Improvement over last patch, not sending
32084 the WM_PAINT directly anymore, instead we scroll any pending
32085 exposed areas and let the system pick out the WM_PAINT later
32087 2005-01-28 Peter Bartok <pbartok@novell.com>
32089 * SWF.csproj: Deleted, no longer used. Instead,
32090 Managed.Windows.Forms/SWF.csproj should be used
32091 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32092 directly, to avoid a potential race condition with the next
32095 2005-01-28 Peter Bartok <pbartok@novell.com>
32097 * XplatUI.cs: Made class internal
32099 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
32101 * CheckedListBox.cs:
32104 - Missing methods and events
32106 2005-01-27 Peter Bartok <pbartok@novell.com>
32108 * Application.cs (Run): Don't use form if we don't have one
32110 2005-01-27 Peter Bartok <pbartok@novell.com>
32112 * TextBoxBase.cs (get_Lines): Fixed index off by one error
32114 2005-01-27 Peter Bartok <pbartok@novell.com>
32116 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32117 * GridItem.cs: Added; Patch by Jonathan S. Chambers
32118 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32119 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32120 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32121 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32122 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32123 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32124 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32125 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32126 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32127 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32129 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32132 - Draw focus on Simple Combobox
32133 - Fixes drawing issues
32136 2005-01-27 Peter Bartok <pbartok@novell.com>
32139 - Place window in default location, instead of hardcoded 0/0
32140 - Send initial LocationChanged event
32142 - UpdateBounds after creation to find out where the WM placed us
32143 - Make sure that if the ParentForm changes location the Form
32145 * XplatUIX11.cs: XGetGeometry will not return the coords relative
32146 to the root, but to whatever the WM placed around us.
32147 Translate to root coordinates before returning toplevel
32149 * XplatUIWin32.cs: Removed debug output
32150 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32151 flag to GetWindowPos, to allow translation of coordinates on X11
32153 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32155 * ListBox.cs: connect LostFocus Event
32157 2005-01-27 Peter Bartok <pbartok@novell.com>
32159 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32160 XplatUIX11.cs: Extended the Systray API
32161 * Form.cs: Removed debug output
32162 * Application.cs: Fixed focus assignment, always need to call
32163 XplatUI.Activate() since Form.Activate() has rules that may
32165 * NotifyIcon.cs: Should be complete now
32166 * ToolTip.cs: Worked around possible timer bug
32168 2005-01-27 Jackson Harper <jackson@ximian.com>
32171 - Only invalidate the effected tabs when the
32172 selected index changes. This reduces drawing and gets rid of some
32174 - Only refresh if the tabs need to be shifted, otherwise only
32175 invalidate the slider button.
32176 - On windows the tabs are not filled to right if the slider is
32179 2005-01-27 Jackson Harper <jackson@ximian.com>
32181 * TabControl.cs: Only refresh on mouseup if we are showing the
32182 slider. Also only invalidate the button whose state has changed.
32184 2005-01-26 Peter Bartok <pbartok@novell.com>
32186 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32187 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32188 and SystrayRemove() methods
32189 * XplatUIOSX.cs: Stubbed Systray methods
32191 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32193 - Fixed broken XChangeProperty calls (marshalling messed up things)
32194 * X11Structs.cs: Added enums and structs required for Size hinting
32195 * NotifyIcon.cs: Added & implemented
32197 2005-01-26 Jackson Harper <jackson@ximian.com>
32199 * TabControl.cs: Space vertically layed out tabs properly.
32201 2005-01-26 Peter Bartok <pbartok@novell.com>
32203 * Form.cs (CreateClientParams): Always set the location to 0,0
32204 since we're a child window.
32206 * Control.cs (SetVisibleCore): Always explicitly setting the location
32207 of a toplevel window, apparently X11 doesn't like to move windows
32208 while they're not mapped.
32210 2005-01-26 Jackson Harper <jackson@ximian.com>
32212 * TabControl.cs: Implement FillToRight size mode with vertically
32215 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32217 * ControlPaint.cs, ThemeWin32Classic.cs
32218 - Fixes DrawFocusRectangle
32220 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32223 - MenuBar tracking only starts when item is first clicked
32224 - Fixes menu hidding for multiple subitems
32225 - Unselect item in MenuBar when item Executed
32228 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
32231 - IsInputKey for ListBox
32234 - Shift and Control item selection
32235 - Implement SelectionMode.MultiExtended
32236 - Fixes RightToLeft
32238 - IsInputKey implemented
32239 - Do not generate OnTextChangedEdit on internal txt changes
32241 2005-01-23 Peter Bartok <pbartok@novell.com>
32243 * AccessibleObject.cs: Partially implemented Select()
32244 * MonthCalendar.cs: Added missing attributes and events
32245 * Form.cs: Fixed CreateParams behaviour, now controls derived from
32246 form can properly override CreateParams.
32247 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32248 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32249 Control performs Invalidate & Update
32250 * NativeWindow (CreateHandle): Added special handling for Form
32251 and Form.FormParent classes to allow overriding of From.CreateParams
32253 - ControlNativeWindow: Renamed 'control' variable to more intuitive
32255 - ControlNativeWindow: Added Owner property
32256 - Removed usage of Refresh() on property changes, changed into
32257 Invalidate(), we need to wait until the queue is processed for
32258 updates, direct calls might cause problems if not all vars for
32259 Paint are initialized
32260 - Added call to UpdateStyles() when creating the window, to set any
32261 styles that CreateWindow might have ignored.
32262 - Added support for Form CreateParent overrides to UpdateStyles()
32263 * MessageBox.cs: Removed no longer needed FormParent override stuff,
32264 CreateParams are now properly overridable
32265 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32266 CreateParams are now properly overridable
32268 2005-01-23 Miguel de Icaza <miguel@ximian.com>
32270 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32273 Capture LostFocus and OnTextBoxChanged. The later introduces a
32274 recursive invocation that I have not figured out yet.
32276 Reset the timer when not using (it was accumulating).
32279 (OnTextBoxChanged): Set UserEdit to true here to track whether the
32280 user has made changes that require validation.
32282 Reset changing to avoid loops.
32284 2005-01-22 Miguel de Icaza <miguel@ximian.com>
32286 * NumericUpDown.cs: Display value at startup.
32288 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32291 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32292 filled in. Added some basic parsing of text.
32294 Still missing the OnXXX method overrides, and figuring out the
32295 events that must be emitted.
32297 * UpDownBase.cs: Handle UserEdit on the Text property.
32299 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
32302 - Fixes IntegralHeight
32305 2005-01-21 Jackson Harper <jackson@ximian.com>
32307 * TabControl.cs: Set the SelectedIndex property when SelectedTab
32308 is set so that the page visibility is updated and the tabs are
32311 2005-01-21 Jackson Harper <jackson@ximian.com>
32313 * TabControl.cs: Use cliping rectangle for blitting. Give the
32314 theme the clipping rect so we can do clipping while
32315 drawing. Remove some debug code.
32317 2005-01-21 Jackson Harper <jackson@ximian.com>
32319 * TabPage.cs: Add a new method so tab pages can force the tab
32320 control to recalculate the tab page sizes.
32321 * TabControl.cs: UpdateOwner needs to make the tab control recalc
32324 2005-01-20 Jackson Harper <jackson@ximian.com>
32326 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32328 2005-01-20 Jackson Harper <jackson@ximian.com>
32330 * TreeView.cs: Set the bounds for nodes properly. They were
32331 getting screwed up when checkboxes were not enabled, but images
32334 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
32337 - Owner draw support
32340 2005-01-20 Jackson Harper <jackson@ximian.com>
32342 * XplatUIStructs.cs: More misc keys
32343 * X11Keyboard.cs: Ignore some control keys.
32345 2005-01-20 Jackson Harper <jackson@ximian.com>
32347 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32348 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32350 2005-01-19 Peter Bartok <pbartok@novell.com>
32352 * Control.cs: Un-selecting the control when it is loosing focus
32354 2005-01-19 Jackson Harper <jackson@ximian.com>
32356 * TreeView.cs: Hook up to the text controls leave event so we can
32357 end editing when the users clicks outside the text box.
32359 2005-01-19 Jackson Harper <jackson@ximian.com>
32361 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32362 get set in the conversion array.
32364 2005-01-19 Peter Bartok <pbartok@novell.com>
32366 * Application.cs (ModalRun): Added a call to CreateControl to ensure
32367 focus is properly set
32369 - Added missing attributes
32370 - removed styles, those are already set in the base class
32372 - Added missing attributes
32373 - Added clip window styles
32374 * CheckBox.cs: Added missing attributes
32376 - FormParentWindow.CreateParams: Added required clip styles
32377 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32378 also filters modifier keys
32380 - Added assignment of Accept and Cancel button to enable Enter
32381 and Esc keys in MessageBox dialogs
32382 - FormParentWindow.CreateParams: Added required clip styles
32383 * RadioButton.cs: Added missing attributes
32384 * TextControl.cs: No longer draws selection if control does not
32387 - Now draws simple rectangle around test area to make it obvious
32388 there's a control. This is a hack until we properly support borders
32389 - A few simple fixes to support selections better, now erases selected
32390 text when typing, and resets selection when using movement keys
32392 2005-01-19 Miguel de Icaza <miguel@ximian.com>
32394 * UpDownBase.cs: Added some new properties.
32396 * DomainUpDown.cs: Implement a lot to get my test working.
32398 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32400 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32402 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32404 * OSXStructs (WindowAttributes): Fixed csc complaints
32406 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32409 OSXStructs.cs: Initial refactor to move enums and consts into
32410 OSXStructs and use them in the driver for greater readability.
32412 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32414 * XplatUIOSX.cs: Initial support for Standard Cursors.
32415 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32417 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
32419 * ComboBox.cs: ability to change style when the ctrl is already
32420 created, missing methods and events, bug fixes, signature fixes
32422 2005-01-19 Peter Bartok <pbartok@novell.com>
32424 * Cursors.cs (ctor): Added ctor to fix signature
32426 2005-01-18 Peter Bartok <pbartok@novell.com>
32428 * Button.cs: Implemented DoubleClick event
32430 - Fixed keyboard handling to behave like MS, where the press of
32431 Spacebar is equivalent to a mousedown, and the key release is
32432 equivalent to mouseup. Now a spacebar push will give the same
32433 visual feedback like a mouse click.
32434 - Added missing attributes
32435 - Added ImeModeChanged event
32436 - Added support for generating DoubleClick event for derived classes
32438 - Implemented DoubleClick event
32439 - Added missing attributes
32440 * CommonDialog.cs: Added missing attribute
32441 * ContextMenu.cs: Added missing attributes
32443 - AutoChecked buttons do not allow to be unselected when clicked
32444 (otherwise we might end up with no selected buttons in a group)
32445 - Added missing attributes
32446 - Implemented DoubleClickEvent
32447 * ThreadExceptionDialog.cs: Enabled TextBox code
32449 2005-01-18 Peter Bartok <pbartok@novell.com>
32451 * Form.cs: Removed debug output
32452 * Button.cs: Added support for DoubleClick method
32454 2005-01-18 Peter Bartok <pbartok@novell.com>
32457 - Added method to parent window that allows triggering size
32458 calculations when a menu is added/removed
32459 - set_Menu: Cleaned up mess from early days of Form and Control,
32460 now properly triggers a recalc when a menu is added/removed
32461 - Added case to select form itself as focused form if no child
32463 - Added PerformLayout call when showing dialog, to ensure properly
32466 - Select(): Made internal so Form can access it
32467 - Focus(): Only call Xplat layer if required (avoids loop), and sets
32469 * Application.cs (Run): Removed hack and calls PerformLayout instead
32470 to trigger calculation when Form becomes visible
32472 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
32474 * ComboBox.cs: fixes for ownerdraw
32476 2005-01-18 Peter Bartok <pbartok@novell.com>
32479 - Sentinel is no longer static, each Document gets it's own, this
32480 avoids locking or alternatively overwrite problems when more
32481 than one text control is used simultaneously.
32482 - Switched to use Hilight and HilightText brushes for text selection
32484 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32486 2005-01-18 Peter Bartok <pbartok@novell.com>
32489 - Hooked up the following events:
32497 o SystemColorsChanged
32498 o ParentFontChanged
32500 - Removed debug output
32501 - Added a call to the current theme's ResetDefaults when a color change
32503 * Form.cs: Now setting the proper ImeMode
32504 * Theme.cs: Defined a method to force recreation of cached resources
32505 and rereading of system defaults (ResetDefaults())
32506 * ThemeWin32Classic.cs: Added ResetDefaults() stub
32508 2005-01-17 Peter Bartok <pbartok@novell.com>
32510 * Control.cs: Added missing attributes
32512 2005-01-17 Jackson Harper <jackson@ximian.com>
32514 * TreeNode.cs: Implement editing. Add missing properties selected
32516 * TreeView.cs: Implement node editing. Also some fixes to use
32517 Invalidate (invalid area) instead of Refresh when selecting.
32519 2005-01-17 Peter Bartok <pbartok@novell.com>
32522 - Implemented InvokeGotFocus() method
32523 - Implemented InvokeLostFocus() method
32524 - Implemented InvokePaint() method
32525 - Implemented InvokePaintBackground() method
32526 - Implemented InvokeClick() method
32527 - Implemented FindForm() method
32528 - Implemented RectangleToClient() method
32529 - Implemented ClientToRectangle() method
32530 - Implemented ResetBackColor() method
32531 - Implemented ResetCursor() method
32532 - Implemented ResetFont() method
32533 - Implemented ResteForeColor() method
32534 - Implemented ResetImeMode() method
32535 - Implemented ResetLeftToRight() method
32536 - Implemented ResetText() method
32537 - Implemented Scale() methods
32538 - Implemented ScaleCore() method
32539 - Implemented Update() method
32540 - Removed unused variables
32541 - Stubbed AccessibilityNotifyClients and
32542 ControlAccessibleObject.NotifyClients() methods (dunno what to do
32544 - Now setting proper default for RightToLeft property
32545 - Fixed bug in SetClientSizeCore that would cause windows to get
32547 - Now sending Click/DoubleClick events
32548 - Now selecting controls when left mouse button is clicked on
32550 * AccessibleEvents.cs: Added
32551 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
32552 * XplatUIOSX.cs: Stubbed UpdateWindow() method
32553 * XplatUIWin32.cs: Implemented UpdateWindow() method
32554 * XplatUIX11.cs: Implemented UpdateWindow() method
32555 * Form.cs: Removed stray semicolon causing CS0162 warning
32556 * ThemeWin32Classic.cs: Fixed unused variable warnings
32557 * ScrollableControl.cs: Now calls base method for ScaleCore
32558 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
32559 style to avoid interference with internal click handler (which is
32560 different than standard Control click handling)
32562 - Now unchecks all sibling radio buttons when control is
32563 selected (Fixes #68756)
32564 - Removed internal tabstop variable, using the one inherited from
32567 2005-01-17 Jackson Harper <jackson@ximian.com>
32569 * NavigateEventArgs.cs: Fix base type.
32570 * LinkLabel.cs: Sig fix
32572 2005-01-17 Jackson Harper <jackson@ximian.com>
32574 * TreeView.cs: Only invalidate the effected nodes bounds when
32577 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32579 * XplatUIWin32.cs: fixes Win32 marshaling
32580 * XplatUIX11.cs: fixes method signature
32582 2005-01-17 Peter Bartok <pbartok@novell.com>
32584 * XplatUIX11.cs: Clean up resources when we no longer need them
32586 2005-01-17 Peter Bartok <pbartok@novell.com>
32588 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
32589 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
32590 and DestroyCursor() methods.
32591 * Cursor.cs: Partially implemented, now supports standard cursors;
32592 still contains some debug code
32593 * Cursors.cs: Implemented class
32595 - WndProc(): Added handling of WM_SETCURSOR message, setting the
32597 - Implemented Cursor property
32598 - Replaced break; with return; more straightforwar and possibly
32600 - Now properly setting the result for WM_HELP
32601 * X11Structs.cs: Added CursorFontShape enum
32602 * XplatUIStructs.cs:
32603 - Added StdCursor enum (to support DefineStdCursor() method)
32604 - Added HitTest enum (to support sending WM_SETCURSOR message)
32606 - Now sends the WM_SETCURSOR message
32607 - Implemented new cursor methods
32608 * XplatUIOSX.cs: Stubbed new cursor methods
32610 - Implemented new cursor methods
32611 - Added GetSystemMetrics function and associated enumeration
32613 2005-01-15 Peter Bartok <pbartok@novell.com>
32616 - WndProc(): Now handles EnableNotifyMessage
32617 - SelectNextControl(): Fixed bug where if no child or sibling
32618 controls exist we looped endlessly
32620 2005-01-14 Jackson Harper <jackson@ximian.com>
32622 * TreeView.cs: Recalculate the tab pages when a new one is added
32623 so that the proper bounding rects are created.
32625 2005-01-14 Jackson Harper <jackson@ximian.com>
32627 * TreeView.cs: Draw a gray box instead of a grip in the lower
32628 right hand corner when there are both horizontal and vertical
32631 2005-01-14 Jackson Harper <jackson@ximian.com>
32633 * Control.cs: When erasing backgrounds use FromHwnd instead of
32634 FromHdc when there is a NULL wparam. This occurs on the X driver.
32635 * XplatUIX11.cs: Set the wparam to NULL.
32637 2005-01-13 Jackson Harper <jackson@ximian.com>
32639 * PictureBox.cs: Implement missing methods (except ToString, need
32640 to test that on windows) and events. When visibility is changed we
32641 need to redraw the image because the buffers are killed. When size
32642 is changed refresh if the sizemode needs it.
32644 2005-01-13 Peter Bartok <pbartok@novell.com>
32646 * Control.cs (SelectNextControl): Was using wrong method to select
32649 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32651 * ComboBox.cs: fixes dropstyle
32653 2005-01-13 Peter Bartok <pbartok@novell.com>
32656 - Implemented Select() override
32657 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32658 - Now sets keyboard focus on startup
32659 * Control.cs (SelectNextControl): Now properly handles directed=true
32661 - WndProc: Now passes tab key on to base if AcceptTabChar=false
32662 - Added (really bad) focus rectangle (mostly for testing)
32663 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32664 to enforce redraw on focus changes
32665 * ContainerControl.cs:
32666 - Fixed detection of Shift-Tab key presses
32667 - Fixed traversal with arrow keys
32668 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32669 gonna keep this or if it's complete yet
32671 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
32673 * ComboBox.cs: missing properties, fixes
32675 2005-01-13 Peter Bartok <pbartok@novell.com>
32677 * Panel.cs (ctor): Setting Selectable window style to off
32678 * Splitter.cs (ctor): Setting Selectable window style to off
32679 * GroupBox.cs (ctor): Setting Selectable window style to off
32680 * Label.cs (ctor): Setting Selectable window style to off
32682 2005-01-12 Miguel de Icaza <miguel@ximian.com>
32684 * UpDownBase.cs (InitTimer): If the timer has been already
32685 created, enable it.
32687 Use a TextBox instead of a Label.
32689 2005-01-12 Jackson Harper <jackson@ximian.com>
32691 * TreeView.cs: Refresh the tree after sorting the nodes. Always
32692 draw the connecting node lines (when ShowLines is true).
32693 * TreeNode.cs: The nodes index can now be updated. This is used
32694 when a node collection is sorted.
32695 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32696 insert or an existing unsorted node collection can be sorted.
32698 2005-01-12 Peter Bartok <pbartok@novell.com>
32700 * ContainerControl.cs: Implemented ProcessDialogKeys()
32702 2005-01-12 Peter Bartok <pbartok@novell.com>
32705 - Implemented SelectNextControl() method
32706 - Several focus related bug fixes
32707 - Fixed Docking calculations to match MS documentation and
32710 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
32712 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
32715 2005-01-12 Peter Bartok <pbartok@novell.com>
32718 - Fixed broken Contains() method
32719 - Implemented GetNextControl() method. Finally. This is the pre-
32720 requisite for focus handling.
32722 2005-01-12 Peter Bartok <pbartok@novell.com>
32724 * OSXStrucs.cs: Added
32726 2005-01-12 Peter Bartok <pbartok@novell.com>
32729 - Removed PeekMessageFlags
32730 - Implemented SetWindowStyle() method
32731 * XplatUIStructs.cs: Added PeekMessageFlags
32732 * X11Structs: Added missing border_width field to XWindowChanges struct
32734 - PeekMessage: Now throws exception if flags which are not yet
32735 supported are passed
32736 - Implemented SetWindowStyle() method
32737 - Fixed SetZOrder to handle AfterHwnd properly
32738 * XplatUI.cs: Added SetWindowStyle() method
32739 * XplatUIDriver.cs: Added SetWindowStyle() abstract
32741 - Implemented UpdateStyles() method
32742 - Implemented UpdateZOrder() method
32743 * XplatUIOSX.cs: Added SetWindowStyle() stub
32745 2005-01-12 Geoff Norton <gnorton@customerdna.com>
32747 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
32751 2005-01-11 Jackson Harper <jackson@ximian.com>
32753 * TreeView.cs: Still need to draw lines to siblings even if out of
32754 the current node is out of the clip.
32756 2005-01-11 Jackson Harper <jackson@ximian.com>
32758 * TreeView.cs: When setting the hbar/vbar/grip position use
32759 SetBounds so that perform layout is only called once. Also suspend
32760 and resume layout so layout is only done once for all controls.
32761 - Removed some debug fluff
32762 * SizeGrip.cs: Call base implmentation in overriding methods.
32763 - When visibility is changed the drawing buffers are killed so we
32766 2005-01-11 Jackson Harper <jackson@ximian.com>
32768 * TreeView.cs: Calculate the open node count while drawing. This
32769 saves us an entire tree traversal for every paint operation. Use
32770 a member var for the open node count so less vars are passed around.
32772 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
32774 * MonthCalendar.cs:
32775 - fixed selection to use mousemove, not mouse polling on timer
32776 * ThemeWin32Classic.cs
32777 - removed redundant unused variable "no_more_content"
32779 2005-01-11 Peter Bartok <pbartok@novell.com>
32781 * XplatUIX11.cs (DoEvents): Needs to return when no more events
32782 are pending, so it now calls PeekMessage instead of GetMessage;
32783 implemented a incomplete version of PeekMessage
32785 2005-01-11 Peter Bartok <pbartok@novell.com>
32787 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
32789 * TextBoxBase.cs: Added sending of TextChanged event
32791 2005-01-10 Jackson Harper <jackson@ximian.com>
32793 * TreeView.cs: Try not to draw outside the clipping rectangle on
32796 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
32798 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
32800 2005-01-10 Jackson Harper <jackson@ximian.com>
32803 - Implement fast scrolling. Now only the newly
32804 exposed nodes are drawn and the old image is moved using the
32805 XplatUI::ScrollWindow method.
32806 - Factor in height of nodes when calculating whether or not the
32807 node is in the clipping rect.
32809 2005-01-10 Jackson Harper <jackson@ximian.com>
32811 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
32813 2005-01-10 Peter Bartok <pbartok@novell.com>
32815 * Application.cs: Added temporary hack to resolve all our resize
32816 required issues on startup. This will get fixed properly at
32817 some point in the future
32819 2005-01-10 Jackson Harper <jackson@ximian.com>
32821 * SizeGrip.cs: New internal class that is used as a sizing
32822 grip control...hence the name.
32824 2005-01-10 Peter Bartok <pbartok@novell.com>
32826 * Control.cs: Implemented proper TabIndex handling, now assigning
32827 a tabindex when a control is added to a container
32828 * GroupBox.cs (ctor): Now sets the Container style bit, required
32829 for Control.GetNextControl()
32831 2005-01-09 Jackson Harper <jackson@ximian.com>
32833 * TextBoxBase.cs: Clear window when scrolling (fixes build).
32835 2005-01-09 Peter Bartok <pbartok@novell.com>
32837 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32838 XplatUIX11.cs: Added ability to control ScrollWindow expose and
32839 an overload for ScrollWindow to allow only scrolling a rectangle
32841 2005-01-09 Peter Bartok <pbartok@novell.com>
32844 - Implemented SetDesktopBounds method
32845 - Implemented SetDesktopLocation method
32847 2005-01-08 Jackson Harper <jackson@ximian.com>
32849 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
32850 the node count has changed, this removes to VScroll::Refresh calls
32853 2005-01-08 Geoff Norton <gnorton@customerdna.com>
32855 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
32857 2005-01-07 Jackson Harper <jackson@ximian.com>
32859 * TreeNode.cs: Just update the single node when it is
32860 checked. Don't refresh after toggling, the Expand/Collapse already
32862 * TreeView.cs: Respect clipping a little more when drawing. Try
32863 not to redraw things that don't need to be redrawn. Just hide the
32864 scrollbars when they are no longer needed instead of removing
32865 them, so they don't have to be created again and again.
32867 2005-01-07 Geoff Norton <gnorton@customerdna.com>
32869 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
32870 coordinates to window space to place the caret properly, FIXED.
32871 Implement GetWindowState & SetWindowState
32873 2005-01-06 Peter Bartok <pbartok@novell.com>
32876 - Implemented ClientSize property
32877 - Implemented DesktopBounds property
32878 - Implemented DesktopLocation property
32879 - Implemented IsRestrictedWindow property
32880 - Implemented Size property
32881 - Implemented TopLevel property
32882 - Implemented FormWindowState property
32884 - Implemented GetTopLevel() method
32885 - Implemented SetTopLevel() method
32886 * X11Structs.cs (Atom):
32887 - Added AnyPropertyType definition
32888 - Added MapState definiton and updated XWindowAttribute struct
32889 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
32890 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
32891 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
32893 - Implemented GetWindowState() and SetWindowState() methods
32894 - Fixed Win32GetWindowLong return type
32896 - Introduced central function for sending NET_WM messages
32897 - Implemented GetWindowState() and SetWindowState() methods
32898 * TextBoxBase.cs (set_Lines):
32899 - Now uses Foreground color for text added via Text property (Duh!)
32900 - Added code to remember programmatically requested size (fixes
32901 behaviour when Multiline is set after Size)
32902 - Added AutoSize logic
32904 2005-01-06 Jackson Harper <jackson@ximian.com>
32906 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
32908 2005-01-06 Jackson Harper <jackson@ximian.com>
32910 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
32911 set to less then 0.
32913 2005-01-06 Jackson Harper <jackson@ximian.com>
32915 * ScrollableControl.cs: Lazy init the scrollbars.
32917 2005-01-06 Jackson Harper <jackson@ximian.com>
32919 * Theme.cs: Speed up getting pens and solid brushes, by using
32920 their ARGB as a hash instead of tostring and not calling Contains.
32922 2005-01-06 Peter Bartok <pbartok@novell.com>
32925 - Implemented OnActivated and OnDeactivate event trigger
32926 - Implemented Activate() method
32927 - Fixed ShowDialog() to activate the form that was active before
32928 the dialog was shown
32930 - Added global active_window var that tracks the currently active
32932 - Now always grabs Property changes from the root window to always
32933 catch changes on the active window property
32934 - Added code to PropertyNotify handler to send Active/Inactive
32935 messages when state changes. This puts X11 and Win32 en par on
32936 WM_ACTIVATE notifications (except for double notifications when
32937 the user clicks away from our modal window to another one of our
32940 2005-01-05 Jackson Harper <jackson@ximian.com>
32942 * ImageList.cs: Implment ctor
32944 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32946 * XplatUIOSX.cs: Implement Activate/SetTopmost
32948 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32950 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
32952 2005-01-05 Geoff Norton <gnorton@customerdna.com>
32954 * XplatUIOSX.cs: Implement GetActive/SetFocus.
32956 2005-01-05 Peter Bartok <pbartok@novell.com>
32958 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
32959 XplatUIOSX.cs: Added GetActive method to return the currently
32960 active window for the application (or null, if none is active)
32962 - Implemented ActiveForm
32963 - Commented out owner assignment for modal dialogs (causes problems
32964 on Win32, since the owner will be disabled)
32965 - Reworked some Active/Focus handling (still incomplete)
32966 * CommonDialog.cs: Commented out owner assignment for modal dialogs
32967 (causes problems on Win32, since the owner will be disabled)
32968 * IWin32Window: Added ComVisible attribute
32970 2005-01-05 Peter Bartok <pbartok@novell.com>
32972 * ToolTip.cs (WndProc): Enable setting focus now that we have the
32973 required XplatUI functions.
32975 2005-01-05 Peter Bartok <pbartok@novell.com>
32977 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32978 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32979 to implement focus and activation handling; still incomplete and
32982 2005-01-04 Peter Bartok <pbartok@novell.com>
32984 * TextBoxBase.cs: Changed access level for Document property to
32985 match switch to internal for TextControl
32987 2005-01-04 Peter Bartok <pbartok@novell.com>
32989 * AccessibleObject: Added ComVisible attribute
32991 2005-01-04 Jackson Harper <jackson@ximian.com>
32993 * X11Keyboard.cs: Remove unneeded var.
32995 2005-01-04 Jackson Harper <jackson@ximian.com>
32997 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32999 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33000 ClientMessage. This makes apps exit cleanly (more often).
33002 2005-01-04 Jackson Harper <jackson@ximian.com>
33004 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33005 handling focus, return correct colors and fonts,
33006 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33007 handle selection, horizontal scrolling, and mouse interaction.
33009 2005-01-04 Peter Bartok <pbartok@novell.com>
33011 * ICommandExecutor.cs: Added
33012 * IDataGridColumnStyleEditingNotificationService.cs: Added
33013 * IFeatureSupport.cs: Added
33014 * IFileReaderService.cs: Added
33015 * IDataObject.cs: Added ComVisible attribute
33016 * AmbientProperties.cs: Added
33017 * BaseCollection.cs: Added missing attributes
33018 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33019 * BaseCollection.cs: Added missing attributes
33020 * Binding.cs: Added TypeConverter attribute
33021 * BindingContext.cs: Added DefaultEvent attribute
33022 * BindingsCollection.cs: Added DefaultEvent attribute
33023 * Button.cs: Added DefaultValue attribute
33024 * DragEventArgs.cs: Added ComVisible attribute
33025 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33026 * KeyEventArgs.cs: Added ComVisible attribute
33027 * KeyPressEventArgs.cs: Added ComVisible attribute
33028 * MouseEventArgs.cs: Added ComVisible attribute
33029 * NavigateEventArgs.cs: Added
33030 * NavigateEventHandler.cs: Added
33031 * FeatureSupport.cs: Added
33032 * OSFeature.cs: Added
33033 * Theme.cs: Added abstract Version property to support OSFeature
33034 * ThemeWin32Classic.cs: Added Version property to
33035 support OSFeature.Themes
33036 * ProgressBar.cs: Removed OnPaintBackground override, not required since
33037 the proper styles to avoid background drawing are set, also doesn't
33039 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33040 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33041 * ScrollEventArgs.cs: Added ComVisible attribute
33042 * SplitterEventArgs.cs: Added ComVisible attribute
33043 * AccessibleSelection.cs: Added Flags attribute
33044 * Appearance.cs: Added ComVisible attribute
33045 * Border3DSide.cs: Added ComVisible attribute
33046 * Border3DStyle.cs: Added ComVisible attribute
33047 * BorderStyle.cs: Added ComVisible attribute
33048 * DragAction.cs: Added ComVisible attribute
33049 * ErrorBlinkStyle.cs: Added
33050 * ScrollEventType.cs: Added ComVisible attribute
33051 * AnchorStyles.cs: Added Editor attribute
33052 * DockStyle.cs: Added Editor attribute
33053 * HorizontalAlignment.cs: Added ComVisible attribute
33054 * HelpEventArgs.cs: Added ComVisible attribute
33055 * PaintEventArgs.cs: Added IDisposable
33057 2005-01-04 Peter Bartok <pbartok@novell.com>
33059 * TextControl.cs: Switched Line, LineTag and Document classes to
33062 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33064 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33065 Simple mode, fixes, IntegralHeight, etc.
33067 2005-01-04 Peter Bartok <pbartok@novell.com>
33069 * TextBoxBase.cs: Using proper font variable now
33071 2005-01-04 Peter Bartok <pbartok@novell.com>
33073 * Form.cs (ShowDialog): Set parent to owner, if provided
33074 * GroupBox.cs: Removed unused vars
33076 - Added GetHashCode() for Document and LineTag classes
33077 - Removed unused variables
33078 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33079 to allow translation between continuous char position and line/pos
33080 * CheckBox.cs: Removed vars that are provided by base class
33081 * RadioButton.cs: Removed vars that are provided by base class, added
33082 new keyword where required
33083 * LinkLabel.cs: Added new keyword where required
33084 * Control.cs (WndProc): Removed unused variable
33086 - Finished SelectionLength property
33087 - Implemented SelectionStart property
33088 - Implemented Text property
33089 - Removed unused vars
33090 * MessageBox.cs: Added new keyword where required
33091 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33093 * MenuAPI.cs: Added new keyword where required
33094 * ButtonBase.cs: Removed vars that are provided by base class, added
33095 new keyword where required
33096 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33097 argument to double, to allow compiling with csc 2.0 (Atsushi ran
33099 * Application.cs (Run): Now triggers the ThreadExit event
33100 * CommonDialog.cs: Added new keyword where required; now properly sets
33101 parent (owner) for dialog
33102 * XplatUIX11.cs: Commented out unused vars
33103 * StatusBar.cs: Fixed signature for Text property
33104 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33106 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33108 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33109 TrackBar.cs, MonthCalendar.cs: remove unused vars
33111 2005-01-03 Jackson Harper <jackson@ximian.com>
33113 * ThemeWin32Classic.cs:
33114 * X11Keyboard.cs: Remove unused vars.
33116 2005-01-03 Peter Bartok <pbartok@novell.com>
33119 - set_Text: Tied into TextControl
33120 - set_TextAlignment: Tied into TextControl
33122 - Added alignment properties and implemented alignment handling
33123 and drawing (still has a bug, not generating proper expose events)
33124 - Added new Line() constructor to allow passing the line alignment
33125 - Fixed selection setting, properly handling end<start now
33126 - Added aligment considerations to RecalculateDocument()
33128 - Now properly enforces control height for single line controls
33129 - Added support for CharacterCasing
33130 - Added IsInputKey override
33131 - Fixed Keys.Enter logic
33132 - Added SetBoundsCore override
33133 - Fixed mouse selection handling
33135 2005-01-03 Jackson Harper <jackson@ximian.com>
33138 - Collapse and uncheck all nodes when CheckBoxes is disabled.
33139 - Checkboxes are always aligned to the bottom of the node,
33140 regardless of item height.
33141 - Use the node bounds to draw the text so we can center it when
33142 the item height is greater then the font height.
33143 - Node::Bounds are only the text part of the node.
33144 * TreeNode.cs: New method to combine collapsing and unchecking all
33147 2005-01-02 Jackson Harper <jackson@ximian.com>
33149 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33150 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33151 tree when a check is changed. TODO: Only refresh the checked node.
33153 2004-12-30 Jackson Harper <jackson@ximian.com>
33155 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33156 * TreeNode.cs: When collapsing make sure to never collapse the
33159 2004-12-29 Jackson Harper <jackson@ximian.com>
33161 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33163 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
33165 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33167 2004-12-28 Peter Bartok <pbartok@novell.com>
33169 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33172 2004-12-28 Peter Bartok <pbartok@novell.com>
33174 * Control.cs (WndProc): Added WM_HELP handler, now generates
33175 HelpRequested event
33176 * Form.cs: Added HelpButton property and required support code
33177 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33179 2004-12-28 Peter Bartok <pbartok@novell.com>
33182 - Made DialogForm.owner variable internal
33183 - Added check to ensure owner form is set before setting
33184 owner properties in CreateParams
33186 2004-12-28 Geoff Norton <gnorton@customerdna.com>
33188 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
33189 swizzling. Implement ClientToScreen and ScreenToClient. Implement
33190 GetCursorPos. Fix major visibility issues. Rework the windowing
33191 system to support borderless/titleless windows (implements menus).
33192 Fix GetWindowPos. Implement initial background color support for
33195 2004-12-28 Peter Bartok <pbartok@novell.com>
33197 * Form.cs (get_CreateParams): Make sure we have an owner before using
33198 the owner variable. Implement proper default if no owner exists
33200 2004-12-28 Peter Bartok <pbartok@novell.com>
33202 * In preparation for making Managed.Windows.Forms the default build target
33203 for System.Windows.Forms, the following stubbed files were added.
33204 Dialogs are currently being implemented by contributors and are only
33205 short-term place holders.
33206 * ColorDialog.cs: Initial check-in (minmal stub)
33207 * DataGrid.cs: Initial check-in (minimal stub)
33208 * DataGridLineStyle.cs: Initial check-in (minimal stub)
33209 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33210 * DataGridTableStyle.cs: Initial check-in (minimal stub)
33211 * FontDialog.cs: Initial check-in (minimal stub)
33212 * FileDialog.cs: Initial check-in (minimal stub)
33213 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33214 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33215 * OpenFileDialog: Initial check-in (minimal stub)
33216 * IComponentEditorPageSite.cs: Initial check-in
33217 * Splitter.cs: Initial check-in (for Jackson)
33218 * SplitterEventArgs.cs: Initial check-in (for Jackson)
33219 * SplitterEventHandler.cs: Initial check-in (for Jackson)
33220 * TextBox.cs: Initial check-in; still needs some wiring to
33221 TextControl backend
33222 * Form.cs: Implemented ControlBox property
33223 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33224 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33225 * TextControl.cs: Added selection functionality; added todo header
33227 - Implemented Lines property
33228 - Implemented TextHeight property
33229 - Implemented SelectedText property
33230 - Implemented SelectionLength property
33231 - Implemented SelectAll method
33232 - Implemented ToString method
33233 - Removed and cleaned up some debug code
33234 - Implemented (still buggy) mouse text selection
33236 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
33238 * ComboBox.cs: Complete DropDownList implementation, fixes.
33240 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
33242 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33243 * ComboBoxStyle.cs: ComboBoxStyle enum
33244 * ComboBox.cs: Initial work on ComboBox control
33246 2004-12-21 Peter Bartok <pbartok@novell.com>
33248 * Control.cs (ctor, CreateParams): Moved setting of is_visible
33249 forward so that anything that creates a window gets the default,
33250 also no longer uses Visible property in CreateParams to avoid
33251 walking up the parent chain and possibly get the wrong visible
33252 status. Fixed IsVisible to no longer walk up to the parent.
33254 2004-12-21 Peter Bartok <pbartok@novell.com>
33256 * Form.cs (ShowDialog): Unset modality for the proper window
33258 2004-12-20 Peter Bartok <pbartok@novell.com>
33260 * CommonDialog.cs: Initial check-in
33262 2004-12-20 Peter Bartok <pbartok@novell.com>
33264 * Control.cs (Visible): Now uses the parent window instead of the
33265 client area window for the property
33268 - ShowDialog(): Now uses the proper window for modality
33269 - The default visibility state for the form parent is now false. This
33270 will prevent the user from seeing all the changes to the form and
33271 its controls before the application hits Application.Run()
33272 - Removed some stale commented out code
33275 - Added FindWindow() method to have a method to check for existence
33277 - Added ability to override default exception handling (for example
33278 when debugging with VS.Net; to do this the ExternalExceptionHandler
33280 - Removed some useless debug output
33283 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33284 not working as expected
33285 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33286 property to allow switching back to the modal window if focus is
33287 given to another one of our windows (Application Modal)
33288 - Now only sets override_redirect if we create a window
33290 - Moved EventMask selection before mapping of newly created window
33291 so we can catch the map event as well
33292 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33293 - Added various Atom related DllImports
33294 - Implemented Exit() method
33295 - .ctor() : No longer shows window if WS_VISIBLE is not defined
33296 in the CreateParams
33298 * MessageBox.cs: Now properly deals with the FormParent window by
33299 providing an override the FormParent CreateParams property to
33300 set as POPUP instead of OVERLAPPED window.
33302 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33304 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
33305 Minor code cleanup.
33307 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33309 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33311 2004-12-18 Peter Bartok <pbartok@novell.com>
33313 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33314 implementing SetModal() method
33316 2004-12-18 Peter Bartok <pbartok@novell.com>
33318 * X11Structs.cs (XGCValues): Fixed type of function element
33319 * XplatUI.cs: Added ScrollWindow() method
33320 * XplatUIDriver.cs: Added ScrollWindow() abstract
33321 * XplatUIWin32.cs: Implemented ScrollWindow() method
33322 * XplatUIX11.cs: Implemented ScrollWindow() method
33323 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33325 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33327 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
33328 Some more keyboard support (INCOMPLETE)
33330 2004-12-17 Peter Bartok <pbartok@novell.com>
33333 - Added color attribute to line tags.
33334 - Added color argument to all functions dealing with tags
33335 - Added color argument support to various functions
33336 - Fixed miss-calculation of baseline/shift in certain circumstances
33338 * TextBoxBase.cs: Added new color option to test code
33340 2004-12-17 Jackson Harper <jackson@ximian.com>
33343 * MonthCalendar.cs: Signature fixes
33345 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33347 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33348 keyboard event moved it. Create a new graphics context for each paint resolves this
33350 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33352 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33353 Make caret exist and go blink blink. Initial keyboard support.
33354 Fix exception handler, Add Invalidate support. Change way RefreshWindow
33357 2004-12-17 Jackson Harper <jackson@ximian.com>
33359 * XplatUIStructs.cs: Updated set of virtual keycodes.
33360 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33362 2004-12-17 Jackson Harper <jackson@ximian.com>
33364 * XplatUIX11.cs: Prune old keyboard code.
33366 2004-12-17 Jackson Harper <jackson@ximian.com>
33368 * XplatUIX11.cs: When generating mouse wparams get the modifier
33369 keys from the ModifierKeys property.
33371 2004-12-17 Jackson Harper <jackson@ximian.com>
33373 * X11Keyboard.cs: Send up/down input when generating
33374 messages. Remove some unused vars.
33376 2004-12-17 Jackson Harper <jackson@ximian.com>
33379 * TreeView.cs: get rid of warnings.
33381 2004-12-17 Jackson Harper <jackson@ximian.com>
33383 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33385 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
33387 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33388 CheckedListBox.cs: Implementation
33390 2004-12-17 Peter Bartok <pbartok@novell.com>
33392 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33394 2004-12-16 Peter Bartok <pbartok@novell.com>
33397 - InsertCharAtCaret(): Fixed start pos fixup
33398 - CaretLine_get: No longer derives the line from the tag, the tag
33399 could be stale if lines in the document have been added or deleted
33400 - RebalanceAfterDelete(): Fixed bug in balancing code
33401 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33402 - Line.Streamline(): Now can also elminate leading empty tags
33403 - DumpTree(): Added a few more tests and prevented exception on
33405 - Added Debug section for Combining lines
33406 - Delete(): Now copies all remaining properties of a line
33409 - Left mousebutton now sets the caret (and middle button still acts
33410 as formatting tester, which must go away soon)
33411 - Added Debug section for Deleting/Combining lines
33412 - Fixed calculations for UpdateView after Combining lines
33414 2004-12-16 Peter Bartok <pbartok@novell.com>
33416 * TextControl.cs: Now properly aligns text on a baseline, using the
33417 new XplatUI.GetFontMetrics() method. Simplified several calculations
33418 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33421 2004-12-16 Peter Bartok <pbartok@novell.com>
33423 * XplatUI.cs: Added GetFontMetrics() method
33424 * XplatUIDriver.cs: Added GetFontMetrics() abstract
33425 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33426 into libgdiplus, our private GetFontMetrics function
33427 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33428 * XplatUIWin32.cs: Implemented GetFontMetrics() method
33430 2004-12-16 Jackson Harper <jackson@ximain.com>
33432 * XplatUIStruct.cs: Add enum for dead keys
33433 * X11Keyboard.cs: Map and unmap dead keys.
33435 2004-12-16 Jackson Harper <jackson@ximian.com>
33437 * X11Keyboard.cs: Detect and use the num lock mask.
33439 2004-12-16 Peter Bartok <pbartok@novell.com>
33441 * Control.cs (CreateGraphics): Added check to make sure the
33442 handle of the window exists before calling Graphics.FromHwnd()
33444 2004-12-16 Peter Bartok <pbartok@novell.com>
33446 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33447 contains a lot of code that's not supposed to be there for the
33448 real thing, but required for developing/testing the textbox
33451 2004-12-16 Peter Bartok <pbartok@novell.com>
33454 - Fixed Streamline method
33455 - Added FindTag method to Line
33456 - Added DumpTree method for debugging
33457 - Added DecrementLines() method for deleting lines
33458 - Fixed UpdateView to update the cursor to end-of-line on single-line
33460 - Added PositionCaret() method
33461 - Fixed MoveCaret(LineDown) to move into the last line, too
33462 - Added InsertChar overload
33463 - Fixed InsertChar tag offset calculations
33464 - Added DeleteChar() method
33465 - Added Combine() method for folding lines
33466 - Fixed Delete() method, no longer allocates wasted Line object and
33467 now copies all properties when swapping nodes
33468 - Delete() method now updates document line counter
33470 2004-12-15 Jackson Harper <jackson@ximian.com>
33472 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33473 * X11Keyboard.cs: Expose the currently selected modifier keys
33474 through a property.
33476 2004-12-15 Peter Bartok <pbartok@novell.com>
33478 * TextControl.cs: Initial check-in. Still incomplete
33480 2004-12-15 Jackson Harper <jackson@ximian.com>
33483 * TreeView.cs: Fix build on csc (second time today ;-))
33485 2004-12-15 Jackson Harper <jackson@ximian.com>
33487 * TreeView.cs: Store the treenodes plus/minus box bounds when it
33488 is calculated and use this for click testing.
33489 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33491 2004-12-15 Jackson Harper <jackson@ximian.com>
33493 * TreeView.cs: Pass the nodes image index to the image list when
33494 drawing that image.
33496 2004-12-15 Jackson Harper <jackson@ximian.com>
33498 * X11Keyboard.cs: Set messages hwnd.
33499 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33500 post_message calls.
33502 2004-12-15 Jackson Harper <jackson@ximian.com>
33504 * X11Keyboard.cs: Fix to compile with csc.
33506 2004-12-15 Jackson Harper <jackson@ximian.com>
33508 * X11Structs.cs: Add key mask values
33509 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33510 * X11Keyboard.cs: New file - Extrapolates and interpolates key
33511 down/up foo into WM_CHAR foo
33512 * KeyboardLayouts.cs: Common keyboard layouts
33513 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33514 post messages into the main queue.
33516 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
33518 * Button.cs: implement ProcessMnemonic
33519 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33521 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33522 * ButtonBase.cs: Show HotkeyPrefix (not the &)
33524 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
33526 * MonthCalendar.cs: Implemented click-hold for next/previous month
33529 2004-12-11 Peter Bartok <pbartok@novell.com>
33532 - Added XKeyboardState (moved from XplatUIX11.cs)
33533 - Added XCreateGC related enums and structures
33534 - Added GXFunction for XSetFunction
33536 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33538 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
33539 CaretVisible() calls
33541 * ToolTip.cs: Added code to prevent stealing focus from app windows
33543 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
33544 DestroyCaret, SetCaretPos and CaretVisible)
33547 - Added implementation for caret functions
33548 - Moved hover variables into a struct, to make it a bit easier
33549 on the eyes and to debug
33550 - Removed XKeyboardState (moved to XplatUIX11.cs)
33551 - Moved Keyboard properties into the properties region
33553 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
33554 call to get a graphics context for our control
33556 * XplatUIOSX.cs: Added empty overrides for the new caret functions
33558 * TreeView.cs: Fixed bug. No matter what color was set it would always
33559 return SystemColors.Window
33561 * XplatUIWin32.cs: Implemented caret overrides
33563 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
33565 * ListBox.cs: fire events, implement missing methods and properties,
33568 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
33570 * MonthCalendar.cs: invalidation bug fixing
33571 * ThemeWin32Classic.cs: paint fixing
33573 2004-12-09 Geoff Norton <gnorton@customerdna.com>
33575 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
33576 prepare the CGContextRef there now.
33578 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
33580 * MonthCalendar.cs:
33581 - optimisationL only invalidate areas that have changed
33582 * ThemeWin32Classic.cs:
33583 - only paint parts that intersect with clip_area
33585 2004-12-09 Peter Bartok <pbartok@novell.com>
33587 * Application.cs: Undid changes from r37004 which cause problems
33590 2004-12-09 Ravindra <rkumar@novell.com>
33592 * ToolBar.cs: Added support for displaying ContextMenu
33593 attached to a button on ToolBar.
33594 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
33597 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33599 * Label.cs: autosize works in text change and removes unnecessary
33602 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
33604 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33607 2004-12-08 Geoff Norton <gnorton@customerdna.com>
33609 * XplatUIOSX.cs: Added mouse move/click/grab support
33610 Remove some debugging WriteLines not needed anymore.
33611 Add window resizing/positioning.
33612 Fix visibility on reparenting.
33614 2004-12-08 Peter Bartok <pbartok@novell.com>
33616 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
33618 2004-12-07 Geoff Norton <gnorton@customerdna.com>
33620 * XplatUIOSX.cs: Initial checkin
33621 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
33623 2004-12-03 Ravindra <rkumar@novell.com>
33625 * ListView.cs: Added some keybindings and fixed scrolling.
33626 ScrollBars listen to ValueChanged event instead of Scroll
33627 Event. This would let us take care of all changes being
33628 done in the scrollbars' values programmatically or manually.
33629 * ListView.cs (CanMultiselect): Added a check for shift key.
33630 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
33631 * ListViewItem.cs (Clone): Fixed. We need to make a copy
33632 of ListViewSubItemCollection as well.
33634 2004-12-06 Peter Bartok <pbartok@novell.com>
33636 * Control.cs (Parent): Added check and exception to prevent
33639 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
33641 * ListBox.cs: implemented clipping, selection single and multiple,
33644 2004-12-03 Ravindra <rkumar@novell.com>
33646 * ListView.cs (ListView_KeyDown):
33647 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33648 when CTRL key is pressed.
33649 * ListViewItem.cs (Selected): Fixed setting the property.
33651 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33653 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33655 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33656 MinimizeBox, ShowInTaskbar, TopMost properties.
33658 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33659 will be implemented).
33661 2004-12-03 Marek Safar <marek.safar@seznam.cz>
33663 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33665 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33668 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33670 * TreeView.cs: BackColor is Colors.Window.
33672 2004-12-01 Jackson Harper <jackson@ximian.com>
33674 * TreeView.cs: When resizing the tree if the user is making it
33675 smaller we don't get expose events, so we need to handle adding
33676 the horizontal scrollbar in the size changed handler as well as
33677 the expose handler.
33679 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
33681 * DrawItemState.cs: fixes wrong enum values
33683 2004-12-01 Jackson Harper <jackson@ximian.com>
33685 * TreeView.cs: Resize the hbar as well as the vbar on resize.
33687 2004-12-01 Jackson Harper <jackson@ximian.com>
33689 * NodeLabelEditEventArgs.cs:
33690 * NodeLabelEditEventHandler.cs:
33691 * OpenTreeNodeEnumerator.cs:
33693 * TreeNodeCollection.cs:
33695 * TreeViewAction.cs:
33696 * TreeViewCancelEventArgs.cs:
33697 * TreeViewCancelEventHandler.cs:
33698 * TreeViewEventArgs.cs:
33699 * TreeViewEventHandler.cs: Initial implementation.
33701 2004-12-01 Ravindra <rkumar@novell.com>
33703 * ListView.cs (CalculateListView): Fixed scrolling related
33704 calculations. Also, removed some debug statements from other
33706 * ListViewItem.cs: Changed access to 'selected' instance variable
33707 from private to internal.
33708 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
33710 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
33712 * ThemeWin32Classic.cs: remove cache of brush and pens for
33713 specific controls and use the global system, fixes scrollbutton
33714 bugs (for small sizes, disabled, etc)
33716 * ScrollBar.cs: does not show the thumb for very small controls
33717 (as MS) and allow smaller buttons that the regular size
33719 2004-12-01 Miguel de Icaza <miguel@ximian.com>
33721 * UpDownBase.cs: Add abstract methods for the interface.
33722 Add new virtual methods (need to be hooked up to TextEntry when it
33724 Add override methods for most features.
33725 Computes the size, forces the height of the text entry.
33727 * NumericUpDown.cs: Put here the current testing code.
33729 * Set eol-style property on all files that do not have mixed line
33730 endings, to minimize the future problems. There are still a few
33731 files with mixed endings, and someone should choose whether they
33732 want to move it or not.
33734 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
33736 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
33739 2004-11-30 Ravindra <rkumar@novell.com>
33741 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
33742 drawing and replaced use of SystemColors by theme colors.
33743 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
33744 * ListView.cs (ListViewItemCollection.Add): Throw exception when
33745 same ListViewItem is being added more than once.
33747 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
33749 * MonthCalendar.cs:
33750 - ControlStyles love to make the control not flicker
33752 2004-11-30 Peter Bartok <pbartok@novell.com>
33754 * CharacterCasing.cs: Added
33756 2004-11-29 Peter Bartok <pbartok@novell.com>
33758 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33759 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
33760 I am removing these files as they conflict with already completed
33761 work. While it is fantastic to get contributions to MWF, I
33762 respectfully ask that everyone please coordinate their contributions
33763 through mono-winforms-list or #mono-winforms at this time. We're
33764 explicitly avoiding stubbing and don't want controls that don't have
33765 their basic functionality implemented in svn. Please also see
33766 http://www.mono-project.com/contributing/winforms.html
33769 2004-11-29 Marek Safar <marek.safar@seznam.cz>
33771 * Application.cs (ModalRun): Don't hang after exit.
33773 * Theme.cs: New TreeViewDefaultSize property.
33775 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
33776 with less hardcoded SystemColors constant.
33777 Implemented TreeViewDefaultSize.
33779 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33780 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
33783 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
33785 * MonthCalendar.cs:
33786 - Fix NextMonthDate and PrevMonthDate click moving calendar
33788 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33790 * MonthCalendar.cs:
33791 - Fix usage of ScrollChange Property when scrolling months
33793 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
33795 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
33796 - Fixes menu destroying
33797 - Support adding and removing items on already created menus
33799 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
33801 * MonthCalendar.cs:
33802 - Re-worked all bolded dates handling to match win32
33803 * ThemeWin32Classic.cs:
33804 - Fixed rendering with bolded dates
33806 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
33808 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
33809 - Horizontal scroolbar
33814 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
33816 * MonthCalendar.cs:
33817 - Fix Usage of MaxSelectionCount from SelectionRange
33818 - Fixed Shift + Cursor Selection
33819 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
33820 - Fixed normal cursor selection to be compat with win32
33821 - Fixed Shift + Mouse Click selection
33823 2004-11-24 Peter Bartok <pbartok@novell.com>
33825 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
33826 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
33828 - CreatedKeyBoardMsg now updates keystate with Alt key
33829 - Added workaround for timer crash to CheckTimers, Jackson will
33830 develop a proper fix and check in later
33831 - Implemented DispatchMessage
33832 - Removed calling the native window proc from GetMessage (call
33833 now moved to DispatchMessage)
33835 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
33836 the keydata (Fixes bug #69831)
33839 - (DispatchMessage): Switched to return IntPtr
33840 - Added DllImport for SetFocus
33842 2004-11-24 Ravindra <rkumar@novell.com>
33844 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
33845 background drawing.
33846 * ListViewItem.cs: Fixed various properties, calculations
33847 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
33848 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
33849 and some internal properties. Fixed MouseDown handler and Paint
33852 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33854 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
33856 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33858 * ContainerControl.cs: correct accidental check in of local changes
33860 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
33862 * ThemeWin32Classic.cs:
33863 - Fixed Drawing Last month in grid (sometimes not showing)
33864 * MonthCalendar.cs:
33865 - Fixed title width calculation bug (makeing title small)
33867 2004-11-23 Peter Bartok <pbartok@novell.com>
33870 - Added generation of WM_MOUSEHOVER event
33871 - Added missing assignment of async_method atom
33872 - Fixed WM_ERASEBKGND; now only redraws the exposed area
33874 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33876 * ThemeWin32Classic.cs:
33877 - Fixed Drawing of today circle when showtodaycircle not set
33878 - fixed drawing of first and last month in the grid (gay dates)
33879 * MonthCalendar.cs:
33880 - Fixed Drawing of today circle
33881 - Fixed drawing of grady dates
33882 - Fixed HitTest for today link when ShowToday set to false
33883 - Fixed DefaultSize to obey ShowToday
33885 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
33887 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
33888 * System.Windows.Forms/Theme.cs
33889 * MonthCalendar.cs: added for MonthCalendar
33890 * SelectionRange.cs: added for MonthCalendar
33891 * Day.cs: added for MonthCalendar: added for MonthCalendar
33892 * DateRangeEventArgs.cs: added for MonthCalendar
33893 * DateRangeEventHandler.cs: added for MonthCalendar
33895 2004-11-22 Ravindra <rkumar@novell.com>
33897 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
33900 2004-11-22 Miguel de Icaza <miguel@ximian.com>
33902 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
33905 * NumericUpDown.cs: Added new implementation.
33906 * UpDownBase.cs: Added new implementation.
33908 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
33911 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
33914 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
33917 2004-11-21 Miguel de Icaza <miguel@ximian.com>
33919 * Timer.cs (Dispose): Should call the base dispose when
33922 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33924 * ScrollBar.cs: updates thumb position when max, min or increment
33927 2004-11-21 Ravindra <rkumar@novell.com>
33929 * ListView.cs: Implemented item selection, activation and
33930 column header style. Fixed properties to do a redraw, if
33931 required. Added support for MouseHover, DoubleClick, KeyDown
33932 and KeyUp event handling and some minor fixes.
33933 * ListViewItem.cs: Fixed constructor.
33934 * ThemeWin32Classic.cs: Improved drawing for ListView.
33936 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
33938 * ThemeWin32Classic.cs: initial listbox drawing code
33939 * DrawMode.cs: new enumerator
33940 * ListControl.cs: stubbed class
33941 * ListBox.cs: initial implementation
33942 * Theme.cs: new methods definitions
33943 * SelectionMode.cs: new enumerator
33945 2004-11-17 Peter Bartok <pbartok@novell.com>
33947 * XplatUIWin32.cs: Added double-click events to the class style
33948 * Control.cs (WndProc):
33949 - Added handling of click-count to MouseDown/ MouseUp events.
33950 - Added handling of middle and right mouse buttons
33951 - Removed old debug code
33953 2004-11-17 Jackson Harper <jackson@ximian.com>
33955 * XplatUIX11.cs: Use the new Mono.Unix namespace.
33957 2004-11-17 Ravindra <rkumar@novell.com>
33959 * ListView.cs: Added event handling for MouseMove/Up/Down.
33960 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
33961 * ThemeWin32Classic.cs: We need to clear the graphics context and
33962 draw column header in a proper state.
33965 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
33967 * Menu.cs: fixes signature
33969 2004-11-16 Peter Bartok <pbartok@novell.com>
33971 * XplatUIX11.cs (GetMessage): Implemented generation of
33972 double click mouse messages
33974 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
33976 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33979 2004-11-11 Peter Bartok <pbartok@novell.com>
33981 * HandleData.cs: Added Visible property
33982 * XplatUIX11.cs (IsVisible): Now uses Visible property from
33984 * XplatUIX11.cs: Removed old debug leftovers
33985 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33986 * Control.cs (WndProc): Removed old debug leftovers,
33987 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33988 needed WM_SIZE handling
33990 2004-11-11 Jackson Harper <jackson@ximian.com>
33992 * OwnerDrawPropertyBag.cs:
33993 * TreeViewImageIndexConverter.cs: Initial implementation
33995 2004-11-10 Jackson Harper <jackson@ximian.com>
33997 * ThemeWin32Classic.cs:
33998 * TabControl.cs: instead of moving tabs by the slider pos just
33999 start drawing at the tab that is offset by the slider. This way
34000 scrolling always moves by exactly one tab.
34002 2004-11-10 Jackson Harper <jackson@ximian.com>
34004 * TabControl.cs: You can only scroll left when the slider has
34005 already ben moved right.
34007 2004-11-10 Jackson Harper <jackson@ximian.com>
34009 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34012 2004-11-10 Jackson Harper <jackson@ximian.com>
34014 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34017 2004-11-09 Jackson Harper <jackson@ximian.com>
34019 * TabControl.cs (CalcXPos): New helper method so we can determine
34020 the proper place to start drawing vertical tabs.
34021 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34023 2004-11-09 Jackson Harper <jackson@ximian.com>
34025 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34026 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34027 and Bottom, left and right are illegal values for this and
34028 multiline is enabled when the alignment is set to left or right.
34029 (DrawTab): Each alignment block should draw the text itself now
34030 because Left requires special love. Also add rendering for Left
34033 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
34035 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34036 does not destroy the windows, removes debugging messages
34038 2004-11-09 jba <jba-mono@optusnet.com.au>
34040 * ThemeWin32Classic.cs
34041 (DrawButtonBase): Fix verticle text rect clipping in windows
34042 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34043 rendering and incorrect text rect clipping
34044 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34045 rendering and incorrect text rect clipping
34047 2004-11-08 Jackson Harper <jackson@ximian.com>
34049 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34050 bottom when they are bottom aligned so the bottoms of the tabs get
34052 * TabControl.cs (DropRow): Move rows up instead of down when the
34053 tab control is bottom aligned.
34055 2004-11-08 13:59 pbartok
34058 - Added handling for various window styles
34059 - Added handling for popup windows
34060 - Added SetTopmost handling
34062 2004-11-08 13:55 pbartok
34065 - Added argument to SetTopmost method
34066 - Fixed broken ClientToScreen function
34068 2004-11-08 13:53 pbartok
34070 * XplatUIStructs.cs:
34071 - Added missing WS_EX styles
34073 2004-11-08 13:53 pbartok
34075 * XplatUI.cs, XplatUIDriver.cs:
34076 - Added argument to SetTopmost
34078 2004-11-08 13:52 pbartok
34081 - Added XSetWindowAttributes structure
34082 - Improved XWindowAttributes structure
34083 - Added SetWindowValuemask enum
34084 - Added window creation arguments enum
34085 - Added gravity enum
34086 - Added Motif hints structure
34087 - Added various Motif flags and enums
34088 - Added PropertyMode enum for property functions
34090 2004-11-08 13:50 pbartok
34093 - Fixed arguments for updated SetTopmost method
34095 2004-11-08 13:49 pbartok
34098 - Fixed arguments for updated SetTopmost function
34099 - Fixed usage of PointToClient
34101 2004-11-08 13:44 pbartok
34104 - Added Clipping of children and siblings
34106 2004-11-08 13:41 pbartok
34109 - Removed SetMenuBarWindow call. We do this in Form.cs
34111 2004-11-08 13:40 jackson
34113 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34114 scrolling jimmi in the correct location with bottom aligned tabs
34116 2004-11-08 13:36 pbartok
34118 * ContainerControl.cs:
34119 - Implemented BindingContext
34120 - Implemented ParentForm
34122 2004-11-08 12:46 jackson
34124 * TabControl.cs: Put bottom rendered tabs in the right location
34126 2004-11-08 07:15 jordi
34128 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34131 2004-11-05 17:30 jackson
34133 * TabControl.cs: When selected tabs are expanded make sure they
34134 don't go beyond the edges of the tab control
34136 2004-11-05 14:57 jackson
34138 * TabControl.cs: Reset show_slider so if the control is resized to
34139 a size where it is no longer needed it's not displayed anymore
34141 2004-11-05 13:16 jackson
34143 * TabControl.cs: Make tab pages non visible when added to the
34146 2004-11-05 12:42 jackson
34148 * TabControl.cs: Implement SizeMode.FillToRight
34150 2004-11-05 12:16 jackson
34152 * Control.cs: Do not call CreateHandle if the handle is already
34155 2004-11-05 11:46 jackson
34157 * TabControl.cs: Remove superflous call to CalcTabRows
34159 2004-11-05 09:07 jackson
34161 * XplatUIX11.cs: Update for Mono.Posix changes
34163 2004-11-05 07:00 ravindra
34165 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34168 2004-11-04 22:47 jba
34170 * ThemeWin32Classic.cs:
34171 - Fix Button rendering for FlatStyle = Flat or Popup
34172 - Fix RadioButton and CheckBox rendering when Appearance = Button
34173 (normal and flatstyle).
34174 - Correct outer rectangle color when drawing focus rectangle
34175 - Adjust button bounds to be 1 px smaller when focused
34176 - Make button not draw sunken 3d border when pushed (windows compat)
34177 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34178 - Offset the text in RadioButton and Checkbox when being rendered as
34180 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34182 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34183 - Fixed disabled text rendering for normally rendered radiobuttons
34185 2004-11-04 10:26 jackson
34187 * TabControl.cs: Recalculate tab rows when resizing
34189 2004-11-04 07:47 jordi
34191 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34192 collection completion, drawing issues, missing features
34194 2004-11-04 05:03 ravindra
34197 - We need to recalculate the Thumb area when
34198 LargeChange/maximum/minimum values are changed.
34199 - We set the 'pos' in UpdatePos() method to minimum, if it's less
34200 than minimum. This is required to handle the case if large_change is
34201 more than max, and use LargeChange property instead of large_change
34203 - We return max+1 when large_change is more than max, like MS does.
34205 2004-11-04 04:29 ravindra
34207 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34208 - Changed default value signatures (prefixed all with ListView).
34209 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34211 - Fixed calculations for ListViewItem and implemented Clone()
34214 2004-11-04 04:26 ravindra
34216 * Theme.cs, ThemeWin32Classic.cs:
34217 - Changed default ListView values signatures (prefixed all with
34219 - Fixed default size values for VScrollBar and HScrollBar.
34220 - Fixed DrawListViewItem method.
34222 2004-11-04 04:05 ravindra
34224 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34226 2004-11-04 04:04 ravindra
34228 * ImageList.cs: Implemented the missing overload for Draw method.
34230 2004-11-03 19:29 jackson
34232 * TabControl.cs: Handle dropping rows on selection properly
34234 2004-11-03 11:59 jackson
34236 * TabControl.cs: remove debug code
34238 2004-11-03 11:52 jackson
34240 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34241 the scrolly widgerywoo
34243 2004-11-02 13:52 jackson
34245 * TabControl.cs: Resize the tab pages and tabs when the tab control
34248 2004-11-02 13:40 jackson
34250 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34251 selected tab to the bottom
34253 2004-11-02 13:39 jackson
34255 * TabPage.cs: Store the tab pages row
34257 2004-11-02 12:33 jordi
34259 * MenuItem.cs: fixes handle creation
34261 2004-11-02 11:42 jackson
34263 * TabControl.cs: signature fix
34265 2004-11-02 08:56 jackson
34267 * TabControl.cs: Calculate whether the tab is on an edge properly.
34268 Remove top secret debugging code
34270 2004-11-01 19:57 jackson
34272 * TabControl.cs: Add click handling, and proper sizing
34274 2004-11-01 19:47 jackson
34276 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34279 2004-11-01 19:39 jackson
34281 * TabPage.cs: add internal property to store the bounds of a tab
34284 2004-10-30 04:23 ravindra
34286 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34289 2004-10-30 04:21 ravindra
34291 * ListView.cs, ListViewItem.cs: Added support for scrolling and
34292 fixed calculations.
34294 2004-10-30 03:06 pbartok
34297 - Removed extension of DllImported libs
34299 2004-10-29 09:55 jordi
34301 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34302 navigation, itemcollection completion, menu fixes
34304 2004-10-27 22:58 pbartok
34307 - Now throws a nice error message when no X display could be opened
34309 2004-10-26 13:51 jordi
34311 * ListView.cs: removes warning
34313 2004-10-26 03:55 ravindra
34315 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34316 ThemeWin32Classic.cs: Some formatting for my last checkins.
34318 2004-10-26 03:36 ravindra
34320 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34321 control and default values.
34323 2004-10-26 03:35 ravindra
34325 * Theme.cs: Added some default values for ListView control.
34327 2004-10-26 03:33 ravindra
34329 * ToolBar.cs: ToolBar should use the user specified button size, if
34330 there is any. Added a size_specified flag for the same.
34332 2004-10-26 03:33 ravindra
34334 * ColumnHeader.cs: Added some internal members and calculations for
34337 2004-10-26 03:32 ravindra
34339 * ListViewItem.cs: Calculations for ListViewItem.
34341 2004-10-26 03:31 ravindra
34343 * ListView.cs: Added some internal members and calculations for
34346 2004-10-22 13:31 jordi
34348 * MenuAPI.cs: speedup menus drawing
34350 2004-10-22 13:16 jackson
34352 * XplatUIX11.cs: Make sure to update exposed regions when adding an
34355 2004-10-22 11:49 jackson
34359 2004-10-22 11:41 jackson
34361 * Control.cs: Check to see if the window should have its background
34362 repainted by X when drawing.
34364 2004-10-22 11:31 jackson
34366 * XplatUIX11.cs: When invalidating areas only use XClearArea if
34367 clear is true, this way we do not get flicker from X repainting the
34370 2004-10-22 11:28 jackson
34372 * XEventQueue.cs: Queue properly
34374 2004-10-21 09:38 jackson
34376 * XEventQueue.cs: Fix access modifier
34378 2004-10-21 09:36 jackson
34380 * XEventQueue.cs: Don't loose messages
34382 2004-10-21 09:22 jackson
34384 * XEventQueue.cs: Don't loose messages
34386 2004-10-20 04:15 jordi
34388 * BootMode.cs: enum need it by SystemInfo
34390 2004-10-19 21:58 pbartok
34393 - Small sanity check
34395 2004-10-19 21:56 pbartok
34398 - Added private FormParentWindow class which acts as the container
34399 for our form and as the non-client area where menus are drawn
34400 - Added/Moved required tie-ins to Jordi's menus
34401 - Fixed/Implemented the FormStartPosition functionality
34403 2004-10-19 21:52 pbartok
34406 - Removed unneeded locals
34407 - Added code to all size and location properties to understand and
34408 deal with the parent container of Form
34410 2004-10-19 21:33 pbartok
34413 - Fixed to deal with new Form subclasses for menus
34415 2004-10-19 17:48 jackson
34417 * XEventQueue.cs: commit correct version of file
34419 2004-10-19 16:50 jackson
34421 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34423 2004-10-19 16:15 jordi
34425 * MenuAPI.cs: MenuBarCalcSize returns the height
34427 2004-10-19 08:31 pbartok
34430 - Added missing call to PreProcessMessage before calling OnXXXKey
34433 2004-10-19 00:04 ravindra
34435 * ToolTip.cs: Fixed constructor.
34437 2004-10-18 09:31 jordi
34439 * MenuAPI.cs: menuitems in menubars do not have shortcuts
34441 2004-10-18 09:26 jordi
34443 * MenuItem.cs: fixes MenuItem class signature
34445 2004-10-18 08:56 jordi
34447 * MenuAPI.cs: prevents windows from showing in the taskbar
34449 2004-10-18 00:28 ravindra
34451 * ToolTip.cs: Suppressed a warning message.
34453 2004-10-18 00:27 ravindra
34455 * Control.cs: Default value of visible property must be true.
34457 2004-10-17 23:19 pbartok
34460 - Complete implementation
34462 2004-10-17 23:19 pbartok
34465 - Added EnableWindow method
34466 - Added SetModal stub
34467 - Added generation of WM_ACTIVATE message (still needs testing)
34468 - Added SetTopMost stub
34469 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34471 2004-10-17 23:17 pbartok
34474 - Removed VirtualKeys to XplatUIStructs
34475 - Implemented SetTopMost method
34476 - Implemented EnableWindow method
34477 - Bugfix in ScreenToClient()
34478 - Bugfixes in ClientToScreen()
34480 2004-10-17 22:51 pbartok
34482 * XplatUIStructs.cs:
34483 - Added WS_EX styles to WindowStyles enumeration
34485 2004-10-17 22:50 pbartok
34487 * XplatUI.cs, XplatUIDriver.cs:
34488 - Added method for enabling/disabling windows
34489 - Added method for setting window modality
34490 - Added method for setting topmost window
34492 2004-10-17 22:49 pbartok
34494 * ThemeWin32Classic.cs:
34495 - Added ToolTip drawing code
34497 2004-10-17 22:49 pbartok
34500 - Added ToolTip abstracts
34502 2004-10-17 22:47 pbartok
34505 - Fixed Form.ControlCollection to handle owner relations
34506 - Added Owner/OwnedForms handling
34507 - Implemented Z-Ordering for owned forms
34508 - Removed unneeded private overload of ShowDialog
34509 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34511 - Fixed Close(), had wrong default
34512 - Added firing of OnLoad event
34513 - Added some commented out debug code for Ownership handling
34515 2004-10-17 22:16 pbartok
34518 - Fixed/implemented flat list of controls
34520 2004-10-17 22:14 pbartok
34523 - Added code to simulate modal dialogs on Win32
34525 2004-10-17 16:11 jordi
34527 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34530 2004-10-17 13:39 jordi
34532 * MenuAPI.cs: menu drawing fixes
34534 2004-10-15 09:10 ravindra
34536 * StructFormat.cs: General Enum.
34538 2004-10-15 09:09 ravindra
34540 * SizeGripStyle.cs: Enum for Form.
34542 2004-10-15 09:08 ravindra
34544 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
34545 in Theme for ListView.
34547 2004-10-15 09:06 ravindra
34549 * ColumnHeader.cs: Flushing some formatting changes.
34551 2004-10-15 09:05 ravindra
34553 * ListViewItem.cs: Implemented GetBounds method and fixed coding
34556 2004-10-15 09:03 ravindra
34558 * ListView.cs: Implemented Paint method and fixed coding style.
34560 2004-10-15 07:34 jordi
34562 * MenuAPI.cs: fix for X11
34564 2004-10-15 07:32 ravindra
34566 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
34567 - Renamed Paint() method to Draw() for clarity. Also, moved
34568 DrawImage() to OnPaint().
34570 2004-10-15 07:25 ravindra
34572 * CheckBox.cs, RadioButton.cs:
34573 - Removed Redraw (), we get it from ButtonBase.
34574 - Implemented Paint (), to do class specific painting.
34576 2004-10-15 07:16 ravindra
34579 - Redraw () is not virtual now.
34580 - Added an internal virtual method Paint (), so that
34581 derived classes can do their painting on their own.
34582 - Modified OnPaint () to call Paint ().
34584 2004-10-15 06:43 jordi
34586 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
34587 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
34589 2004-10-15 00:30 ravindra
34592 - MessageBox on windows does not have min/max buttons.
34593 This change in CreateParams fixes this on Windows. We
34594 still need to implement this windowstyle behavior in
34597 2004-10-14 05:14 ravindra
34600 - Changed Redraw () to do a Refresh () always.
34601 - Fixed the MouseMove event handling when mouse is pressed,
34602 ie drag event handling.
34603 - Replaced the usage of ToolBarButton.Pressed property to
34604 ToolBarButton.pressed internal variable.
34606 2004-10-14 05:10 ravindra
34608 * ToolBarButton.cs:
34609 - Added an internal member 'inside' to handle mouse move
34610 with mouse pressed ie mouse drag event.
34611 - Changed 'Pressed' property to return true only when
34612 'inside' and 'pressed' are both true.
34613 - Some coding style love.
34615 2004-10-14 00:17 ravindra
34617 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
34620 2004-10-14 00:15 ravindra
34622 * ButtonBase.cs: Redraw () related improvements.
34624 2004-10-14 00:14 ravindra
34626 * MessageBox.cs: Moved InitFormSize () out of Paint method and
34627 removed unnecessary calls to Button.Show () method.
34629 2004-10-13 17:50 pbartok
34633 - Removed destroying of window until we solve the problem of X
34634 destroying the window before us on shutdown
34636 2004-10-13 16:32 pbartok
34639 - Now Redraws on MouseUp for FlatStyle Flat and Popup
34641 2004-10-13 14:18 pbartok
34644 - Added code to destroy the X window
34646 2004-10-13 14:18 pbartok
34649 - Added code to destroy a window
34651 2004-10-13 14:12 pbartok
34654 - Added the Redraw on Resize that got dropped in the last rev
34656 2004-10-13 09:06 pbartok
34658 * ThemeWin32Classic.cs:
34659 - Path from John BouAntoun:
34660 * Fix check rendering (centre correctly for normal style, offset
34661 correctly for FlatStyle).
34662 * Fix border color usage (use backcolor) for FlatStyle.Popup
34663 * Use checkbox.Capture instead of checkbox.is_pressed when
34664 rendering flatstyle states.
34666 2004-10-12 21:48 pbartok
34668 * ThemeWin32Classic.cs:
34669 - Removed all occurences of SystemColors and replaced them with the
34670 matching theme color
34672 2004-10-12 21:41 pbartok
34674 * ThemeWin32Classic.cs:
34675 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34676 him using the function for flatstyle drawing
34677 - Changed functions to use the new version of CPDrawBorder3D
34679 2004-10-12 21:15 pbartok
34682 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34683 match MS documentation. They need to return defined colors if the
34684 passed color matches the configured control color. Thanks to John
34685 BouAntoun for pointing this out.
34687 2004-10-12 20:57 pbartok
34690 - Fix from John BouAntoun: Raise ForeColorChanged event when text
34693 2004-10-12 20:46 pbartok
34696 - Fix from John BouAntoun: Now properly sets the Appearance property
34698 2004-10-12 20:45 pbartok
34700 * ThemeWin32Classic.cs:
34701 - Fixes from John BouAntoun: now handles forecolors and backcolors
34702 for flatstyle rendered controls much better; It also fixes normal
34703 checkbox rendering when pushed or disabled.
34705 2004-10-08 02:50 jordi
34707 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
34710 2004-10-07 08:56 jordi
34712 * ThemeWin32Classic.cs: Removes deletion of cached brushes
34714 2004-10-06 03:59 jordi
34716 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
34717 XplatUIWin32.cs: removes warnings from compilation
34719 2004-10-05 12:23 jackson
34721 * RadioButton.cs: Fix ctor
34723 2004-10-05 11:10 pbartok
34726 - Partial implementation by Benjamin Dasnois
34728 2004-10-05 10:15 jackson
34730 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
34733 2004-10-05 03:07 ravindra
34736 - Removed a private method, Draw ().
34737 - Fixed the ButtonDropDown event handling.
34738 - Fixed MouseMove event handling.
34740 2004-10-05 03:04 ravindra
34742 * ThemeWin32Classic.cs:
34743 - Added DrawListView method and ListViewDefaultSize property.
34744 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
34745 - Changed DOS style CRLF to Unix format (dos2unix).
34747 2004-10-05 03:03 ravindra
34750 - Added DrawListView method and ListViewDefaultSize property.
34752 2004-10-05 02:42 ravindra
34754 * ToolBarButton.cs: Added an internal member dd_pressed to handle
34755 clicks on DropDown arrow.
34757 2004-10-04 22:56 jackson
34759 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
34760 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
34761 Control handle the buffers, derived classes should not have to
34762 CreateBuffers themselves.
34764 2004-10-04 21:20 jackson
34766 * StatusBar.cs: The control handles resizing the buffers now.
34768 2004-10-04 21:18 jackson
34770 * Control.cs: When resizing the buffers should be invalidated. This
34771 should be handled in Control not in derived classes.
34773 2004-10-04 14:45 jackson
34777 2004-10-04 02:14 pbartok
34779 * LeftRightAlignment.cs:
34782 2004-10-04 01:09 jordi
34784 * ThemeWin32Classic.cs: fixes right button position causing right
34785 button not showing on horizontal scrollbars
34787 2004-10-02 13:12 pbartok
34790 - Simplified the Invalidate method by using an X call instead of
34791 generating the expose ourselves
34792 - Added an expose when the window background is changed
34793 - Implemented ClientToScreen method
34795 2004-10-02 13:08 pbartok
34798 - Added Win32EnableWindow method (test for implementing modal
34800 - Added ClientToScreen method and imports
34802 2004-10-02 13:07 pbartok
34804 * XplatUI.cs, XplatUIDriver.cs:
34805 - Added ClientToScreen coordinate translation method
34807 2004-10-02 13:06 pbartok
34809 * KeyPressEventArgs.cs:
34810 - Fixed access level for constructor
34812 2004-10-02 13:06 pbartok
34815 - Changed access level for the window_collection hash table
34817 2004-10-02 13:05 pbartok
34820 - Added KeyPreview property
34821 - Added Menu property (still incomplete, pending Jordi's menu work)
34822 - Implemented ProcessCmdKey
34823 - Implemented ProcessDialogKey
34824 - Implemented ProcessKeyPreview
34826 2004-10-02 13:02 pbartok
34829 - Added private method to get the Control object from the window
34831 - Implemented ContextMenu property
34832 - Implemented PointToScreen
34833 - Implemented PreProcessMessage
34834 - Implemented IsInputChar
34835 - Implemented IsInputKey
34836 - Implemented ProcessCmdKey
34837 - Completed ProcessKeyEventArgs
34838 - Fixed message loop to call the proper chain of functions on key
34840 - Implemented ProcessDialogChar
34841 - Implemented ProcessDialogKey
34842 - Implemented ProcessKeyMessage
34843 - Implemented ProcessKeyPreview
34844 - Added RaiseDragEvent stub (MS internal method)
34845 - Added RaiseKeyEvent stub (MS internal method)
34846 - Added RaiseMouseEvent stub (MS Internal method)
34847 - Added RaisePaintEvent stub (MS Internal method)
34848 - Added ResetMouseEventArgs stub (MS Internal method)
34849 - Implemented RtlTranslateAlignment
34850 - Implemented RtlTranslateContent
34851 - Implemented RtlTranslateHorizontal
34852 - Implemented RtlTranslateLeftRight
34853 - Added generation of KeyPress event
34855 2004-10-02 05:57 ravindra
34857 * ListViewItem.cs: Added attributes.
34859 2004-10-02 05:32 ravindra
34861 * ListView.cs: Added attributes.
34863 2004-10-01 11:53 jackson
34865 * Form.cs: Implement the Close method so work on MessageBox can
34868 2004-09-30 14:06 pbartok
34873 2004-09-30 11:34 jackson
34875 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
34877 2004-09-30 07:26 ravindra
34879 * ListViewItemConverter.cs: Converter for ListViewItem.
34881 2004-09-30 07:26 ravindra
34883 * SortOrder.cs: Enum for ListView control.
34885 2004-09-30 07:25 ravindra
34887 * ColumnHeader.cs: Supporting class for ListView control.
34889 2004-09-30 07:24 ravindra
34891 * ListView.cs, ListViewItem.cs: Initial implementation.
34893 2004-09-30 07:20 ravindra
34895 * ItemActivation.cs: Enum for ListView Control.
34897 2004-09-29 20:29 pbartok
34900 - Added lookup of pixel value for background color; tries to get a
34901 color 'close' to the requested color, it avoids having to create a
34902 colormap. Depending on the display this could mean the used color
34903 is slightly off the desired color. Might have to change it to a more
34904 resource intensive colormap approach, but it will work as a
34905 workaround to avoid red screens.
34907 2004-09-29 14:27 jackson
34909 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
34911 2004-09-28 12:44 pbartok
34913 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
34914 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
34915 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
34916 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
34917 TrackBar.cs, VScrollBar.cs:
34918 - Streamlined Theme interfaces:
34919 * Each DrawXXX method for a control now is passed the object for
34920 the control to be drawn in order to allow accessing any state the
34921 theme might require
34923 * ControlPaint methods for the theme now have a CP prefix to avoid
34924 name clashes with the Draw methods for controls
34926 * Every control now retrieves it's DefaultSize from the current
34929 2004-09-28 12:17 jackson
34931 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
34934 2004-09-24 14:57 jackson
34936 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
34937 Gives us a nice little performance boost.
34939 2004-09-24 12:02 jackson
34941 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
34942 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
34943 Control and supporting classes. Initial checkin
34945 2004-09-23 13:08 jackson
34947 * Form.cs: Temp build fixage
34949 2004-09-23 01:39 ravindra
34951 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
34952 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
34953 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
34954 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
34955 EventHandlers needed by ListView Control.
34957 2004-09-22 14:12 pbartok
34959 * ScrollableControl.cs:
34960 - Implemented DockPadding property
34961 - Implemented AutoScroll property
34962 - Implemented AutoScrollMargin property
34963 - Implemented AutoScrollMinSize property
34964 - Implemented AutoScrollPosition property
34965 - Implemented DisplayRectangle property (still incomplete)
34966 - Implemented CreateParams property
34967 - Implemented HScroll property
34968 - Implemented VScroll property
34969 - Implemented OnVisibleChanged property
34971 2004-09-22 14:09 pbartok
34974 - Added Form.ControllCollection class
34975 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34976 RemoveOwnedForm (still incomplete, missing on-top and common
34977 minimize/maximize behaviour)
34978 - Added StartPosition property (still incomplete, does not use when
34980 - Added ShowDialog() methods (still incomplete, missing forcing the
34983 2004-09-22 14:05 pbartok
34986 - Added message loop for modal dialogs
34988 2004-09-22 14:02 pbartok
34991 - Fixed wrong types for events
34993 2004-09-22 14:00 pbartok
34995 * Shortcut.cs, FormWindowState.cs:
34996 - Fixed wrong values
34998 2004-09-22 12:01 jackson
35000 * Control.cs: Text is never null
35002 2004-09-20 22:14 pbartok
35005 - Fixed accessibility level for Idle handler
35007 2004-09-20 18:54 jackson
35009 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35010 XplatUIX11.cs: New message loop that uses poll so we don't get a
35013 2004-09-17 10:43 pbartok
35016 - Fixed behaviour of arrow buttons. Now properly behaves like
35017 Buttons (and like Microsoft's scrollbar arrow buttons)
35019 2004-09-17 10:14 pbartok
35022 - Added missing release of keyboard/mouse capture
35024 2004-09-17 06:18 jordi
35026 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35027 Theme.cs: Very early menu support
35029 2004-09-16 17:45 pbartok
35032 - Fixed sending a window to the front
35033 - Added overload for SetWindowPos to avoid casting
35035 2004-09-16 17:44 pbartok
35038 - Added SendToBack and BringToFront methods
35040 2004-09-16 07:00 ravindra
35042 * Copyright: Added Novell URL.
35044 2004-09-16 07:00 ravindra
35046 * ToolBar.cs: Invalidate should be done before redrawing.
35048 2004-09-15 21:19 ravindra
35050 * ColumnHeaderStyle.cs: Enum for ListView Control.
35052 2004-09-15 21:18 ravindra
35054 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35057 2004-09-13 18:26 jackson
35059 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35062 2004-09-13 18:13 jackson
35064 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35065 a second thread and post messages into the main threads message
35066 queue. This makes timing much more consistent. Both win2K and XP
35067 have a minimum timer value of 15 milliseconds, so we now do this
35070 2004-09-13 15:18 pbartok
35072 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35074 - Added Z-Ordering methods
35076 2004-09-13 10:56 pbartok
35079 - Fixed #region names
35080 - Moved properties and methods into their proper #regions
35082 2004-09-13 10:51 pbartok
35085 - Added Accept and CancelButton properties
35086 - Added ProcessDialogKey() method
35088 2004-09-13 08:18 pbartok
35090 * IWindowTarget.cs:
35093 2004-09-10 21:50 pbartok
35096 - Added DoDragDrop() [incomplete]
35097 - Properly implemented 'Visible' handling
35098 - Added SetVisibleCore()
35099 - Implemented FindChildAtPoint()
35100 - Implemented GetContainerControl()
35101 - Implemented Hide()
35103 2004-09-10 19:28 pbartok
35106 - Moved methods into their appropriate #regions
35107 - Reordered methods within regions alphabetically
35109 2004-09-10 18:57 pbartok
35111 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35112 - Added method to retrieve text from window
35114 2004-09-10 18:56 pbartok
35117 - Moved some internal functions into the internal region
35118 - Implemented FontHeight
35119 - Implemented RenderRightToLeft
35120 - Implemented ResizeRedraw
35121 - Implemented ShowFocusCues
35122 - Implemented ShowKeyboardCues
35123 - Implemented FromChildHandle
35124 - Implemented FromHandle
35125 - Implemented IsMnemonic
35126 - Implemented ReflectMessage
35127 - All public and protected Static Methods are now complete
35129 2004-09-10 16:54 pbartok
35132 - Implemented remaining missing public instance properties
35133 - Alphabetized some out of order properties
35135 2004-09-10 05:51 ravindra
35137 * PictureBox.cs: Added a check for null image.
35139 2004-09-10 00:59 jordi
35141 * GroupBox.cs: remove cvs tag
35143 2004-09-09 05:25 ravindra
35145 * ToolBar.cs: Make redraw accessible from ToolBarButton.
35147 2004-09-09 05:23 ravindra
35149 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35152 2004-09-09 02:28 pbartok
35154 * ThemeWin32Classic.cs:
35155 - Improve disabled string look
35157 2004-09-09 01:15 jordi
35159 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35162 2004-09-08 23:56 ravindra
35164 * ItemBoundsPortion.cs: It's enum, not a class!
35166 2004-09-08 23:47 ravindra
35168 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35171 2004-09-08 21:13 ravindra
35173 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35176 2004-09-08 21:03 ravindra
35178 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35181 2004-09-08 21:01 ravindra
35183 * ScrollableControl.cs: Removed unreachable code.
35185 2004-09-08 06:45 jordi
35187 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35189 2004-09-08 01:00 jackson
35191 * XplatUIX11.cs: Only run the timers when updating the message
35192 queue. This effectively gives X messages a higher priority then
35193 timer messages. Timers still need love though
35195 2004-09-07 14:01 jackson
35197 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35198 this for us and the handle is no longer valid.
35200 2004-09-07 13:59 jackson
35202 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35203 loop that manages to not crash. TODO: Add poll and cleanup timers
35205 2004-09-07 11:12 jordi
35207 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35209 2004-09-07 03:40 jordi
35211 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35212 fixes, methods, multiple links
35214 2004-09-06 06:55 jordi
35216 * Control.cs: Caches ClientRectangle rectangle value
35218 2004-09-05 02:03 jordi
35220 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35223 2004-09-04 11:10 jordi
35225 * Label.cs: Refresh when font changed
35227 2004-09-02 16:24 pbartok
35230 - Added sanity check to creation of double buffer bitmap
35232 2004-09-02 16:24 pbartok
35235 - Fixed selection of text color
35236 - Fixed handling of resize event; now properly recreates double
35238 - Added missing assignment of TextAlignment
35239 - Added proper default for TextAlignment
35241 2004-09-02 14:26 pbartok
35244 - Added missing RadioButton.RadioButtonAccessibleObject class
35246 2004-09-02 14:26 pbartok
35249 - Added missing Control.ControlAccessibleObject class
35250 - Started to implement Select()ion mechanisms, still very incomplete
35252 2004-09-02 14:25 pbartok
35254 * AccessibleObject.cs:
35255 - Added missing methods
35257 2004-09-02 14:23 pbartok
35259 * AccessibleNavigation.cs, AccessibleSelection.cs:
35262 2004-09-02 10:32 jordi
35264 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35265 pool for pens, brushes, and hatchbruses
35267 2004-09-01 15:30 jackson
35269 * StatusBar.cs: Fix typo
35271 2004-09-01 14:44 pbartok
35276 2004-09-01 14:39 pbartok
35278 * Button.cs, RadioButton.cs:
35279 - Functional initial check-in
35281 2004-09-01 14:01 pbartok
35284 - Added missing default
35285 - Added missing region mark
35287 2004-09-01 09:10 jordi
35289 * Label.cs: fixes method signatures, new methods, events, fixes
35292 2004-09-01 07:19 jordi
35294 * Control.cs: Init string variables with an empty object
35296 2004-09-01 04:20 jordi
35298 * Control.cs: fires OnFontChanged event
35300 2004-08-31 20:07 pbartok
35303 - Enabled display of strings
35305 2004-08-31 20:05 pbartok
35308 - Added (partial) implementation of DialogResult; rest needs to be
35309 implemented when the modal loop code is done
35311 2004-08-31 19:55 pbartok
35314 - Fixed to match the removal of the needs_redraw concept
35316 2004-08-31 19:55 pbartok
35319 - Removed the rather odd split between 'needs redraw' and redrawing
35320 - Now handles the events that require regeneration (ambient
35321 properties and size)
35323 2004-08-31 19:41 pbartok
35326 - Added firing of BackColorChanged event
35327 - Added TopLevelControl property
35328 - Fixed handling of WM_ERASEBKGRND message
35330 2004-08-31 12:49 pbartok
35336 2004-08-31 12:48 pbartok
35339 - Finished (famous last words)
35341 2004-08-31 04:35 jordi
35343 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35344 scrolling bugs, adds new methods
35346 2004-08-30 14:42 pbartok
35349 - Implemented CheckBox drawing code
35351 2004-08-30 14:42 pbartok
35354 - Made Redraw() and CheckRedraw() virtual
35355 - Improved mouse up/down/move logic to properly track buttons
35357 2004-08-30 09:44 pbartok
35360 - Updated to fix broken build. Not complete yet.
35362 2004-08-30 09:28 pbartok
35367 2004-08-30 09:17 pbartok
35372 2004-08-27 16:12 ravindra
35374 * ToolBarButton.cs: Added TypeConverter attribute.
35376 2004-08-27 16:07 ravindra
35378 * ImageIndexConverter.cs: Implemented.
35380 2004-08-27 14:17 pbartok
35383 - Removed unneeded stack vars
35384 - First attempt to fix sizing issues when layout is suspended
35386 2004-08-25 15:35 jordi
35388 * ScrollBar.cs: more fixes to scrollbar
35390 2004-08-25 14:04 ravindra
35392 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35393 Added the missing divider code and grip for ToolBar Control.
35395 2004-08-25 13:20 pbartok
35398 - Control now properly passes the ambient background color to child
35401 2004-08-25 13:20 jordi
35403 * ScrollBar.cs: small bug fix regarding bar position
35405 2004-08-25 12:33 pbartok
35408 - Now only calls SetTimer or KillTimer if the enabled state has
35411 2004-08-25 12:33 pbartok
35414 - Fixed timer handling, now seems to work
35415 - Improved error message for window creation
35417 2004-08-25 12:32 pbartok
35420 - Fixed generation of MouseUp message
35422 2004-08-25 12:29 jordi
35424 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35425 and fixes for progressbar
35427 2004-08-24 18:43 ravindra
35429 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35430 in ToolBar control.
35432 2004-08-24 17:15 pbartok
35436 - Added missing events
35439 2004-08-24 17:14 pbartok
35441 * StatusBar.cs, PictureBox.cs:
35442 - Now uses Control's CreateParams
35444 2004-08-24 16:36 pbartok
35447 - Fixed background color handling
35448 - Fixed sending of enter/leave events on a grab
35450 2004-08-24 16:35 pbartok
35453 - Refined definitions for CrossingEvent
35455 2004-08-24 12:37 jordi
35457 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35458 formmating, methods signature, and adds missing events
35460 2004-08-24 12:24 jordi
35462 * Control.cs: fire OnEnabledChanged event
35464 2004-08-24 11:17 pbartok
35467 - Implemented SetTimer() and KillTimer()
35469 2004-08-24 11:16 pbartok
35472 - Now uses Remove instead of Add to kill the timer
35474 2004-08-24 10:16 jackson
35476 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35477 picture boxes in the theme now. Draw picture box borders and obey
35480 2004-08-24 05:49 jackson
35482 * Timer.cs: Remove top secret debugging code
35484 2004-08-24 05:34 jackson
35486 * PictureBox.cs: Temp hack to make picture boxes draw their full
35489 2004-08-24 05:29 jackson
35491 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35492 XplatUIX11.cs: Move timers to the driver level. On X they are
35493 queued by the driver and checked on idle.
35495 2004-08-24 01:07 jackson
35497 * XplatUIX11.cs: Use a queue for async messages instead of passing
35498 them as ClientMessages since that was totally broken. Also simply
35499 check for events and return an idle message if none are found. This
35500 gives us an idle handler, and prevents deadlocking when no messages
35503 2004-08-23 18:19 ravindra
35505 * XplatUIWin32.cs: Removed the unwanted destructor.
35507 2004-08-23 17:27 pbartok
35510 - Finishing touches. Works now, just needs some optimizations.
35512 2004-08-23 16:53 jordi
35514 * ScrollBar.cs: small fix
35516 2004-08-23 16:45 pbartok
35519 - Removed debug output
35522 2004-08-23 16:43 jordi
35524 * ScrollBar.cs: [no log message]
35526 2004-08-23 16:10 pbartok
35529 - Fixed handling of WM_CLOSE message
35530 - Removed debug output
35532 2004-08-23 16:09 pbartok
35535 - Added handling of Idle event
35536 - Added handling of form closing
35537 - Fixed reporting of MessageLoop property
35538 - Removed some unneeded code, should provide a bit of a speedup
35540 2004-08-23 15:22 pbartok
35543 - Added InitLayout() method
35544 - Added code to properly perform layout when Anchor or Dock property
35546 - Changed 'interpretation' of ResumeLayout. MS seems to have a
35547 LAMESPEC, tried to do it in a way that makes sense
35549 2004-08-23 14:10 jordi
35551 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
35552 properties and methods
35554 2004-08-23 13:55 pbartok
35557 - Properly fixed Jordi's last fix
35558 - Now uses Cursor's Position property instead of calling XplatUI
35561 2004-08-23 13:44 jordi
35563 * PaintEventHandler.cs: Adding missing attribute
35565 2004-08-23 13:39 pbartok
35568 - Implemented Position property
35570 2004-08-23 13:39 pbartok
35572 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35573 - Added method to move mouse cursor
35575 2004-08-23 13:39 pbartok
35578 - Fixed setting of background color
35579 - Added method to move mouse cursor
35581 2004-08-23 13:16 jordi
35583 * Control.cs: avoids null exception
35585 2004-08-22 17:46 jackson
35587 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
35590 2004-08-22 17:40 jackson
35592 * XplatUIX11.cs: Add some missing locks
35594 2004-08-22 15:10 pbartok
35596 * Control.cs, Form.cs:
35597 - Removed OverlappedWindow style from Control, instead it's default
35599 - Made form windows OverlappedWindow by default
35601 2004-08-22 13:34 jackson
35603 * ScrollBar.cs: Update the position through the Value property so
35604 the OnValueChanged event is raised.
35606 2004-08-22 12:04 pbartok
35609 - Added Cursor.cs and UserControl.cs
35611 2004-08-22 12:03 pbartok
35614 - Started implementation, not usable yet
35616 2004-08-22 12:00 pbartok
35619 - Implemented UserControl (complete)
35621 2004-08-21 19:20 ravindra
35623 * ToolBar.cs: Correcting the formatting mess of VS.NET.
35625 2004-08-21 18:49 ravindra
35627 * ToolBar.cs: Probably this completes the missing attributes in
35630 2004-08-21 18:03 ravindra
35632 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35633 Fixed toolbar control signatures.
35635 2004-08-21 16:32 pbartok
35640 2004-08-21 16:30 pbartok
35645 2004-08-21 16:19 pbartok
35647 * Control.cs, Label.cs:
35650 2004-08-21 15:57 pbartok
35653 - Added loads of debug output for development
35654 - Fixed typo in method name
35656 2004-08-21 15:52 pbartok
35658 * ToolBarButtonClickEventArgs.cs:
35659 - Added missing base class
35661 2004-08-21 14:53 pbartok
35664 - Updated to match new GrabWindow signature
35666 2004-08-21 14:51 pbartok
35668 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35669 - Added method to get default display size
35671 2004-08-21 14:23 pbartok
35673 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35674 - Added method to query current grab state
35675 - Added argument to allow confining a grab to a window
35677 2004-08-21 14:22 pbartok
35680 - Added [Flags] attribute so that modifiers can be used in bitwise
35683 2004-08-21 14:21 pbartok
35685 * TrackBar.cs, ScrollBar.cs:
35686 - Replaced direct XplatUI calls with their Control counterpart
35688 2004-08-21 13:32 pbartok
35691 - Implemented Created property
35693 2004-08-21 13:28 pbartok
35696 - Implemented ContainsFocus
35698 2004-08-21 13:26 pbartok
35701 - Implemented CausesValidation
35703 2004-08-21 13:21 pbartok
35706 - Implemented CanFocus
35707 - Implemented CanSelect
35708 - Implemented Capture
35710 2004-08-21 12:35 pbartok
35713 - Fixed bug with Async message handling
35714 - Implemented getting the ModifierKeys
35716 2004-08-21 12:32 jackson
35718 * AsyncMethodResult.cs: Make sure we have the mutex before we
35719 release it. Fixes BeginInvoke on windows
35721 2004-08-21 11:31 pbartok
35723 * XplatUIWin32.cs, XplatUIX11.cs:
35724 - Drivers now return proper mouse state
35726 2004-08-21 10:54 jackson
35728 * Control.cs: Implement EndInvoke
35730 2004-08-21 10:48 jackson
35732 * Timer.cs: Remove unneeded finalizer
35734 2004-08-20 19:52 ravindra
35736 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
35737 in mouse event handling in the ToolBar control.
35739 2004-08-20 19:50 ravindra
35741 * ImageList.cs: Changed draw method to use the arguments passed in
35744 2004-08-20 18:58 pbartok
35746 * XplatUIStructs.cs:
35747 - Added private message for async communication
35749 2004-08-20 17:38 ravindra
35751 * Control.cs: Made RightToLeft property virtual and removed a
35754 2004-08-20 14:39 jordi
35756 * ThemeGtk.cs: use style_attach
35758 2004-08-20 14:39 pbartok
35761 - Added jackson's Async code from X11 to Win32
35763 2004-08-20 14:09 pbartok
35766 - Added all new files
35768 2004-08-20 14:09 pbartok
35771 - Added call to set window background color
35773 2004-08-20 14:03 pbartok
35775 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35776 - Added method for setting the window background
35778 2004-08-20 14:02 pbartok
35781 - Added method for setting the background color
35782 - Added handling for erasing the window background
35784 2004-08-20 13:45 jordi
35786 * TrackBar.cs: fixes timer, new properties and methods
35788 2004-08-20 13:34 jackson
35790 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
35793 2004-08-20 13:22 jackson
35795 * Timer.cs: Timer Tick events are now handed through Controls Async
35796 mechanism so the callbacks are executed in the same thread as X
35798 2004-08-20 13:19 jackson
35800 * XplatUIDriver.cs: Expose functionality to send async messages
35803 2004-08-20 13:18 jackson
35805 * Control.cs: Implement Begininvoke
35807 2004-08-20 13:14 jackson
35809 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
35810 messages through the driver
35812 2004-08-20 13:12 jackson
35814 * XplatUIX11.cs: Lock before all X operations. Also added Async
35815 method functionality through XSendEvent
35817 2004-08-20 13:11 jackson
35819 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
35820 This will screw up on 64 bit systems)
35822 2004-08-20 13:10 jackson
35824 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
35825 Async messages through X/Win32
35827 2004-08-19 19:39 pbartok
35830 - Updated code to match new HandleData.DeviceContext type
35832 2004-08-19 19:38 pbartok
35835 - Made DeviceContext a generic object to allow usage from various
35837 - Added support for queueing Windows messages
35839 2004-08-19 19:37 pbartok
35842 - Added generation of MouseEnter, MouseLeave and MouseHover events
35843 - Added cleanup on EndPaint
35845 2004-08-19 19:17 pbartok
35848 - Added handling of WM_MOUSEHOVER
35849 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
35852 2004-08-19 18:55 jordi
35854 * ThemeGtk.cs: fixes button order
35856 2004-08-19 18:12 jordi
35858 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
35860 2004-08-19 17:09 pbartok
35863 - Added Right property
35864 - Added RightToLeft property
35866 2004-08-19 16:27 jordi
35868 * ThemeGtk.cs: experimental GTK theme support
35870 2004-08-19 16:26 jordi
35872 * ITheme.cs, Theme.cs: move themes from an interface to a class
35874 2004-08-19 16:25 jordi
35876 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
35879 2004-08-19 16:04 pbartok
35882 - Added colormap basics
35883 - Added a way to re-initialize with a different display handle
35884 - Fixed setting of the window background color
35885 - Added various X11 imports related to colors and colormaps
35887 2004-08-19 15:51 pbartok
35890 - Removed packing hints (Paolo suggested this a while back)
35891 - fixed colormap type
35892 - Added default Atom types
35893 - Added Screen and color structs and enums
35895 2004-08-19 15:39 pbartok
35898 - Added missing Draw() method
35899 - Added missing RecreateHandle event
35901 2004-08-19 15:30 pbartok
35904 - Added handling of WM_CLOSE
35906 2004-08-18 13:16 jordi
35908 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
35911 2004-08-18 09:56 jordi
35913 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
35915 2004-08-17 15:31 ravindra
35917 * SWF.csproj: Updated project.
35919 2004-08-17 15:25 pbartok
35922 - Drawing improvement; don't call UpdateBounds if we are not visible
35923 (or have been minimized)
35925 2004-08-17 15:24 pbartok
35928 - Finished IsVisible
35929 - Added Win32GetWindowPlacement
35931 2004-08-17 15:08 jackson
35933 * Panel.cs: Initial checkin of the Panel
35935 2004-08-17 14:25 pbartok
35938 - Fixed broken handling of default window sizes
35940 2004-08-17 13:29 jackson
35942 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
35943 has a large startup time.
35945 2004-08-17 10:25 jackson
35947 * HandleData.cs: union areas properly
35949 2004-08-17 10:12 jackson
35951 * HandleData.cs: union areas properly
35953 2004-08-16 20:00 ravindra
35955 * ToolBar.cs, ToolBarButton.cs: Added attributes.
35957 2004-08-16 18:48 ravindra
35959 * ToolBar.cs: Added attributes.
35961 2004-08-16 17:17 ravindra
35963 * SWF.csproj: Updated project.
35965 2004-08-16 17:16 jackson
35967 * XplatUIX11.cs: Check for more expose events before sending a
35968 WM_PAINT so they can all be grouped together. This makes dragging a
35969 window across another window redraw in a sane way.
35971 2004-08-16 15:47 pbartok
35974 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35975 support OnMouseEnter/Leave()
35976 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35979 2004-08-16 15:46 pbartok
35981 * XplatUIStructs.cs, XplatUIX11.cs:
35982 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35983 OnMouseEnter/Leave()
35985 2004-08-16 15:34 jackson
35987 * XplatUIX11.cs: Group multiple expose events in HandleData, make
35988 sure messages get the message field set to WM_NULL if they are not
35991 2004-08-16 15:24 jackson
35993 * HandleData.cs: HandleData is used for storing message information
35996 2004-08-15 17:23 ravindra
35998 * ColorDepth.cs: Added attribute.
36000 2004-08-15 17:23 ravindra
36002 * SWF.csproj: Updated project for ToolBar Control.
36004 2004-08-15 17:20 ravindra
36006 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36007 control and also dos2unix format.
36009 2004-08-15 17:13 ravindra
36011 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36012 ToolBarButtonClickEventArgs.cs,
36013 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36014 ToolBarTextAlign.cs: First Implementation of ToolBar control.
36016 2004-08-15 15:31 pbartok
36019 - First (mostly) working version
36021 2004-08-13 16:15 pbartok
36024 - Fixed Anchor default
36026 2004-08-13 15:43 pbartok
36029 - Changed GetCursorPos signature
36031 2004-08-13 15:42 pbartok
36033 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36034 - Changed signature for GetCursorPos
36036 2004-08-13 15:25 pbartok
36040 - Fixed resizing/exposure handling
36042 2004-08-13 15:22 jordi
36044 * ThemeWin32Classic.cs: removes redundant code and fixes issues
36047 2004-08-13 14:55 jordi
36049 * TrackBar.cs: change from wndproc to events
36051 2004-08-13 13:00 jordi
36053 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36054 XplatUIX11.cs: implements PointToClient (ScreenToClient)
36056 2004-08-13 12:53 pbartok
36059 - Changed GetWindowPos to also provide client area size
36060 - Fixed broken prototypes for several win32 functions
36062 2004-08-13 12:53 pbartok
36064 * XplatUI.cs, XplatUIDriver.cs:
36065 - Changed GetWindowPos to also provide client area size
36067 2004-08-13 12:52 pbartok
36070 - Added generation of WM_POSCHANGED
36071 - Changed GetWindowPos to also provide client area size
36073 2004-08-13 12:52 pbartok
36076 - Added Dispose() and destructor
36077 - Fixed resizing and bounds calculation
36079 - Added memory savings for invisible windows
36081 2004-08-13 12:46 jordi
36083 * TrackBar.cs: adds timer and grap window
36085 2004-08-13 10:25 jackson
36087 * Timer.cs: SWF Timer
36089 2004-08-12 16:59 pbartok
36091 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36092 - Implemented method to get current mouse position
36094 2004-08-12 14:29 jordi
36096 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36097 enhancement, fix mouse problems, highli thumb, etc
36099 2004-08-12 13:31 pbartok
36102 - Fixed Anchoring bugs
36104 2004-08-12 13:01 jackson
36106 * StatusBar.cs: Don't forget things
36108 2004-08-12 12:54 jackson
36110 * ThemeWin32Classic.cs: Handle owner draw status bars
36112 2004-08-12 12:54 jackson
36114 * StatusBar.cs: Implement missing properties, events, and methods.
36115 Handle mouse clicking
36117 2004-08-12 10:19 jackson
36119 * StatusBarPanelClickEventArgs.cs,
36120 StatusBarPanelClickEventHandler.cs: Classes for handling status
36121 bar panel click events
36123 2004-08-12 10:10 jackson
36125 * Control.cs: Add missing properties
36127 2004-08-12 09:46 pbartok
36129 * BindingsManagerBase.cs:
36130 - Name changed to BindingManagerBase.cs
36132 2004-08-12 09:25 jordi
36134 * ScrollableControl.cs: calls ctrlbase instead of exeception
36136 2004-08-11 16:28 pbartok
36138 * InputLanguageChangingEventArgs.cs:
36139 - Never check in before compiling. Fixes the last check-in
36141 2004-08-11 16:26 pbartok
36143 * InputLanguageChangingEventArgs.cs:
36144 - More signature fixes
36146 2004-08-11 16:20 pbartok
36148 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36149 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36150 ImageListStreamer.cs, InputLanguage.cs,
36151 InputLanguageChangedEventArgs.cs,
36152 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36153 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36154 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36155 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36158 2004-08-11 16:16 pbartok
36162 - Added .Net 1.1 method
36164 2004-08-11 15:25 pbartok
36167 - Fixed BindingManagerBase.cs filename
36169 2004-08-11 15:22 pbartok
36171 * BindingManagerBase.cs:
36172 - Was checked in with wrong filename
36174 2004-08-11 14:50 pbartok
36179 2004-08-11 13:41 jordi
36181 * XplatUIWin32.cs: Fixes ClientRect
36183 2004-08-11 13:19 pbartok
36185 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36187 - We had SetWindowPos and MoveWindow to set window positions and
36188 size, removed MoveWindow. We have GetWindowPos, so it made sense to
36189 keep SetWindowPos as matching counterpart
36190 - Added some X11 sanity checking
36192 2004-08-11 12:59 pbartok
36195 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36196 (It seems that SetBounds is just a front for SetBoundsCore and
36197 SetBoundsCore updates the underlying window system and
36198 UpdateBounds is responsible for updating the variables associated
36199 with the Control and sending the events)
36200 - Major cleanup of Size handling; we now have two sizes, client_size
36201 and bounds. Bounds defines the window with decorations, client_size
36204 2004-08-11 12:55 pbartok
36206 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36207 - Added method to calculate difference between decorated window and
36210 2004-08-11 12:54 pbartok
36213 - Forcing redraw on resize
36215 2004-08-11 11:43 pbartok
36218 - Removed disposing of the actual images when the list is disposed
36220 2004-08-11 09:13 pbartok
36223 - Now properly reparents windows
36225 2004-08-11 08:37 pbartok
36230 2004-08-11 07:47 pbartok
36233 - Rewrote the collection stuff. Might not be as fast now, not
36234 keeping the number of children around and accessible directly, but
36235 it's more straightforward
36237 2004-08-11 07:44 pbartok
36239 * AccessibleObject.cs:
36240 - Fixed to match ControlCollection rewrite
36242 2004-08-11 07:43 pbartok
36245 - Added missing creation of the collection list
36247 2004-08-10 20:08 jackson
36249 * StatusBar.cs: Get the paint message from WndProc
36251 2004-08-10 19:31 jackson
36253 * ThemeWin32Classic.cs: Create Brushes as little as possible
36255 2004-08-10 19:20 jackson
36257 * UICues.cs: Add Flags attribute
36259 2004-08-10 19:19 jackson
36261 * StatusBarPanel.cs: Signature cleanup
36263 2004-08-10 19:10 jackson
36265 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36266 Initial implementation of status bar item drawing
36268 2004-08-10 17:27 jordi
36270 * TrackBar.cs: add missing methods, properties, and restructure to
36273 2004-08-10 16:24 jackson
36275 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36276 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36279 2004-08-10 13:21 jordi
36281 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36282 enhancements and standarize on win colors defaults
36284 2004-08-10 12:52 jackson
36286 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36287 ThemeWin32Classic.cs: Implement DrawItem functionality
36289 2004-08-10 12:47 jordi
36291 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36293 2004-08-10 12:32 jordi
36295 * Control.cs: throw ontextchange event
36297 2004-08-10 11:43 pbartok
36300 - Added more to the still unfinished Dock/Anchor layout code
36302 2004-08-10 11:39 pbartok
36304 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36305 - Added GetWindowPos method
36307 2004-08-10 11:36 pbartok
36310 - Implemented several methods
36312 2004-08-10 09:47 jackson
36314 * TrackBar.cs: Allow control to handle buffering
36316 2004-08-10 09:41 jackson
36318 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36320 2004-08-10 09:24 jackson
36322 * Label.cs, LinkLabel.cs: Let Control handle buffering.
36324 2004-08-10 09:09 jackson
36326 * StatusBar.cs: Let Control handle all the buffering.
36328 2004-08-10 09:08 jackson
36330 * Control.cs: Control will now handle the buffering code, so each
36331 control does not have to implement this.
36333 2004-08-10 08:34 jackson
36335 * XplatUIDriver.cs: Use default colors from the theme
36337 2004-08-09 17:12 pbartok
36340 - Fixed several bugs Ravindra pointed out
36342 2004-08-09 16:11 pbartok
36345 - Added incomplete dock layout code
36346 - Added support for mouse wheel
36348 2004-08-09 16:09 pbartok
36351 - Added handling for middle and right mousebutton
36352 - Added handling for mouse wheel
36353 - Added handling for key state and mouse state and position
36354 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36357 2004-08-09 15:40 jackson
36359 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36360 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36363 2004-08-09 15:37 jackson
36365 * StatusBar.cs: Initial implementation of StatusBar
36367 2004-08-09 15:36 jackson
36369 * ITheme.cs: Add support for drawing status bar and getting status
36372 2004-08-09 15:35 pbartok
36377 2004-08-09 15:34 jackson
36379 * ThemeWin32Classic.cs: Add support for drawing status bar and get
36380 status bar item sizes
36382 2004-08-09 15:21 jackson
36384 * ThemeWin32Classic.cs: Use known colors for default control
36387 2004-08-09 15:12 jackson
36389 * ThemeWin32Classic.cs: Make the default font static, it is static
36390 in control so this doesn't change functionality and creating fonts
36393 2004-08-09 14:56 pbartok
36396 - Added GrabMode enum
36398 2004-08-09 14:55 pbartok
36400 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36401 - Removed Run method, was only required for initial development
36403 2004-08-09 14:51 pbartok
36405 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36406 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36409 2004-08-09 13:48 pbartok
36412 - Fixed default sizing for child windows
36414 2004-08-09 12:56 pbartok
36417 - Added generation of WM_DESTROY message
36418 - Added handling of window manager induced shutdown
36420 2004-08-09 11:31 jackson
36422 * ThemeWin32Classic.cs: New names for control properties
36424 2004-08-09 11:25 jackson
36426 * Control.cs: Use new color names
36428 2004-08-09 11:02 jackson
36430 * XplatUI.cs: Get default window properties from the theme
36432 2004-08-09 11:01 jackson
36434 * ITheme.cs: The theme engine now controls default window
36437 2004-08-09 11:00 jackson
36439 * ThemeWin32Classic.cs: Add default window color properties
36441 2004-08-09 10:17 jackson
36443 * ThemeWin32Classic.cs: Use correct default back color
36445 2004-08-09 10:05 jackson
36447 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36450 2004-08-09 09:56 jackson
36452 * XplatUI.cs: Remove defaults, these are handled by the theme now.
36454 2004-08-09 09:54 jackson
36456 * Control.cs: Get default properties from the theme.
36458 2004-08-09 09:53 jackson
36460 * ITheme.cs: Themes now handle default control properties
36462 2004-08-09 09:53 jackson
36464 * ThemeWin32Classic.cs: Themes now handle default control
36465 properties so coloring will be consistent
36467 2004-08-08 16:54 jordi
36469 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36471 2004-08-08 15:08 jordi
36473 * XplatUIX11.cs: fixes keyboard crash
36475 2004-08-08 13:47 jordi
36477 * Label.cs: add cvs header info
36479 2004-08-08 12:09 jackson
36481 * ThemeWin32Classic.cs: Add pen_buttonface
36483 2004-08-08 11:52 jordi
36485 * Label.cs, LinkLabel.cs: [no log message]
36487 2004-08-08 11:34 jordi
36489 * ThemeWin32Classic.cs: Use Windows Standard Colours
36491 2004-08-07 17:32 jordi
36493 * TrackBar.cs: throw exceptions of invalid enums values
36495 2004-08-07 17:31 jordi
36497 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36500 2004-08-07 16:56 jackson
36502 * HorizontalAlignment.cs: Initial checkin
36504 2004-08-07 13:16 jordi
36506 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36509 2004-08-07 13:05 jordi
36511 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36512 GetSysColor defines
36514 2004-08-06 18:01 pbartok
36516 * ThemeWin32Classic.cs:
36517 - Fixed some rounding issues with float/int
36519 2004-08-06 18:00 jackson
36521 * DockStyle.cs, AnchorStyles.cs:
36523 Add flags and serializable attributes.
36525 2004-08-06 17:46 pbartok
36528 - Implemented GetParent
36530 2004-08-06 17:18 pbartok
36533 - Fixed some rounding issues with float/int
36535 2004-08-06 17:17 pbartok
36537 * X11Structs.cs, XplatUIX11.cs:
36538 - Fixed Refresh and Invalidate
36540 2004-08-06 15:30 pbartok
36542 * Control.cs, X11Structs.cs, XplatUIX11.cs:
36543 - Fixed recursive loop when resizing
36544 - Improved/fixed redrawing on expose messages
36546 2004-08-06 09:53 jordi
36548 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
36549 keyboard navigation
36551 2004-08-06 08:02 pbartok
36553 * X11Structs.cs, XplatUIX11.cs:
36554 - Fixed reparenting
36555 - Fixed window border creation
36557 2004-08-05 15:38 pbartok
36560 - Attempted fix for reparenting problems
36562 2004-08-04 15:14 pbartok
36565 - Fixed Invalidation bug (calculated wrong client area)
36566 - Added ClientSize setter
36568 2004-08-04 15:13 pbartok
36571 - Added AutoScale properties
36573 2004-08-04 15:13 pbartok
36576 - Added latest files
36578 2004-08-04 14:11 pbartok
36580 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36582 - Added Invalidate handling
36584 2004-08-03 17:09 jordi
36586 * XplatUIDriver.cs: fixes spelling mistake
36588 2004-07-27 09:53 jordi
36590 * TrackBar.cs: fixes trackbar events, def classname, methods
36593 2004-07-27 09:29 jordi
36595 * ScrollBar.cs: fixes scrollbar events
36597 2004-07-27 04:38 jordi
36599 * Control.cs: changes to be able to run winforms samples
36601 2004-07-26 11:42 jordi
36603 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
36604 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
36606 2004-07-26 05:41 jordi
36608 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
36609 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
36612 2004-07-22 09:22 jordi
36614 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
36615 check link overlapping, implement events, and fixes
36617 2004-07-21 10:28 jordi
36619 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
36621 2004-07-21 10:19 jordi
36623 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
36624 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
36625 LinkLabelLinkClickedEventArgs.cs,
36626 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
36627 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
36630 2004-07-19 13:09 jordi
36632 * Control.cs, Label.cs: label control re-written: added missing
36633 functionlity, events, and properties
36635 2004-07-19 10:49 jordi
36637 * Control.cs: fixes SetBounds logic
36639 2004-07-19 01:29 jordi
36641 * Control.cs: Call RefreshWindow only if the window has created
36643 2004-07-15 14:05 pbartok
36645 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36646 - Implemented ImageList and ImageList.ImageCollection classes
36647 - Added ColorDepth enumeration
36648 - Updated SWF VS.Net project
36650 2004-07-15 11:06 jordi
36652 * XplatUIStructs.cs: added MsgButons enum
36654 2004-07-15 11:03 jordi
36656 * Control.cs: added basic mouse handeling events
36658 2004-07-15 03:38 jordi
36660 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36661 Vertical TrackBar control implementation
36663 2004-07-13 09:33 jordi
36665 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36667 2004-07-13 09:31 jordi
36669 * Control.cs, Form.cs: commit: new properties and fixes form size
36672 2004-07-09 14:13 miguel
36674 * ProgressBar.cs: Spelling
36676 2004-07-09 11:25 pbartok
36679 - Removed usage of Rectangle for drawing. Miguel pointed out it's
36682 2004-07-09 11:17 miguel
36684 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
36686 * ProgressBar.cs: Fixed spelling for `block'
36688 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36691 Avoid using the += on rect.X, that exposed a bug in the compiler.
36693 2004-07-08 23:21 pbartok
36695 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36696 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36697 BaseCollection.cs, Binding.cs, BindingContext.cs,
36698 BindingMemberInfo.cs, BindingsCollection.cs,
36699 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36700 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36701 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36702 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36703 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36704 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
36705 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
36706 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
36707 FrameStyle.cs, GiveFeedbackEventArgs.cs,
36708 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
36709 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
36710 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
36711 InputLanguageChangedEventArgs.cs,
36712 InputLanguageChangedEventHandler.cs,
36713 InputLanguageChangingEventArgs.cs,
36714 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
36715 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
36716 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
36717 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
36718 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
36719 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
36720 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
36721 QueryAccessibilityHelpEventArgs.cs,
36722 QueryAccessibilityHelpEventHandler.cs,
36723 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
36724 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
36725 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
36726 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
36727 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
36728 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
36729 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
36730 XplatUIX11.cs, lang.cs: