1 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
3 * Control.cs: CreateControl just returns if the Control is diposed
4 and doesn't throw ObjectDisposedException.
7 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
9 * Control.cs: Do not create the control if the parent isn't created
10 yet, e.g in the case of a parented form on which .Show is called.
11 It will be created when the parent is made visible/created.
14 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
16 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
17 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
20 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
22 * Form.cs: When disposed set owner to null. Improves #402446.
24 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
26 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
27 use children's PreferredSize if in AutoSize mode and ExplicitBounds
29 * Form.cs: Take the Padding into account for the PreferredSize.
32 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
34 * TabControl.cs: Since we don't support more than one direction in
35 TabControl rows alignment (this is, the row becomes the
36 bottom row when selected), make Direction return always 1. This way
37 the layout doesn't get confused about a bad calculation.
40 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
42 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
43 so that the wparam is properly set.
44 Fixes form moving in the test case in bug 402446.
46 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
48 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
49 the full tree instead of nothing. [Improves bug #406584]
51 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
53 * ThemeWin32Classic.cs: Adjusted minimized window painting.
55 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
57 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
60 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
62 * TreeView.cs: Add a null check when using CollapseAll on an
63 empty tree. [Fixes bug #406449]
65 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
67 * Form.cs: Make OnMenuComplete internal so we can call it.
68 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
71 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
73 * TabControl.cs: Handle Up and Down keys when TabControl is in
77 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
79 * TabControl.cs: Invalidate when we remove a tab. Guard against
80 an AOORE when trying to remove a tabpage that is not owned by the
84 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
86 * ScrollBar.cs: Change the LargeChange calculation to be correct.
87 Ensure we are using LargeChange instead of large_change so we our
88 calculations are correct.
91 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
93 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
94 we need to ensure the ColumnCount/RowCount gets set.
97 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
99 * ListBox.cs: When handling item navigation, if selection mode is
100 None, call EnsureVisible, since scrolling is normally handled by
101 selection, that we are not calling in this case.
104 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
106 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
107 a null check to our focus walking code. [Fixes bug #394332]
109 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
111 * ComboBox.cs: Case missed in bug 379596 "Support item
112 navigation by entering text": On _close_ drop-down select
113 the first item matching the text in the textbox. [Fixes bug #397265]
115 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
117 * DataGridView.cs: Fix a crash when sorting by column headers,
118 mentioned in bug #404841. Remove some dead switch cases.
120 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
123 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
124 uses the AutoComplete support in the internal TextBox. Also TextBox
125 can store a reference to ComboBox, in case AutoCompleteSource is set
126 to ListItems (this is, ComboBox's items, and we don't want to pass an
127 additional collection).
129 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
131 * ListViewItem.cs: Restore the initial value of bounds rect to
132 Rectangle.Empty, and is this value for Layout detection in virtual
133 mode. Fixes the tests.
135 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
137 * XPlatUI.cs: Remove references to "new" X11 backend.
139 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
141 * Control.cs: Add an internal virtual OnDragDropEnd method
142 to allow controls such as ListBox, which depend on a sequence
143 of MouseDown+Move+End events, to handle the lack of a MouseUp
144 when a DnD operation is started in MouseDown.
145 * ListBox.cs: If a DnD operation is started in MouseDown we won't
146 get a MouseUp, so reset our state whenever a DnD operation ends.
148 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
150 * PropertyGrid.cs: Clear the root griditem first thing when
151 new object/s is/are selected. Fixes some rare cases where
152 the View will get a paint request and won't know that the
153 grid is in the process of repopulating.
155 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
157 * XplatUIX11.cs, InternalWindowManager.cs:
158 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
159 doesn't automagically update the FormBorderStyle, so we must
160 double check the CreateParams explicitly to determine if the
161 window is a toolwindow.
162 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
163 instead of doing custom checks.
165 Fixes toolwindows for the test case in bug #402446
167 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
169 * Control.cs: Visibility of the control should be false
170 when the handle is destroyed in WmDestroy and not immediately
171 in Dispose(). This is effectively where the disposing process
172 ends even though the control is marked as Disposed immediately
173 after calling Dispose().
176 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
178 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
179 when the textbox gets focus.
182 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
184 * PropertyGridTextBox.cs, PropertyGridView.cs:
185 - Alt + Down should show the drop down editor.
186 - Focus the editor when showing it
189 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
191 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
192 that are not the first panel.
193 * StatusBar.cs: Ensure that the X coordinate of panels is always
194 stored. Fix IList implementation of StatusBarPanelCollection to
195 call the regular methods.
196 [Fixes bug #403599, #402165]
198 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
200 * ThemeWin32Classic.cs: Fix position calculation for centered
201 text on status bar panels. [Fixes bug #402165]
203 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
205 * Splitter.cs: Fix Splitter to:
206 - Work for arbitrary splitter size
207 - Handle MinSize and MinExtra properly
208 - Get rid of absolute positioning during drag and use relative
209 - Multiple other fixes
212 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
214 * Cursor.cs: Show shouldn't hide the cursor.
216 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
218 * ListViewItem.cs: When invalidating, add some extra space to bounds,
219 since focus rectangle and selection can add some space and need to
220 take into account those small offsets - specially in Details view.
221 * ListView.cs: Instead of invalidate using item Bounds directly, call
222 item.Invalidate, to have the code centralized.
223 Fixes focused/selection garbage when selecting and deselecting items
226 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
228 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
229 mode we can check whether we have to force a Layout or not, and can
230 cache based on this, instead of avoiding caching all the the time. Do
231 this check in GetBounds and TextBounds.
232 Fixes selection in Details view.
234 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
236 * ListView.cs: Make HeaderControl internal, thus the theme engine can
237 get its *real* height instead of trying to infere it.
238 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
239 get the position of them, since it's in general a bad idea in general,
240 and because we can't do that in virtual mode. Instead get the first
241 visible item as well as item height, and draw them.
244 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
246 * ToolStripSplitButton.cs: We can't add in extra width if
247 the button is not AutoSize. [Fixes bug #401279]
249 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
251 * PaddingConverter.cs:
252 - Implement conversion to InstanceDescriptor
253 - Handle "All" in CreateInstance by using the supplied
254 ITypeDescriptorContext.
255 [Fixes bugs #396076 and #396078]
257 Patch by Andy Hume <andyhume32@yahoo.co.uk>
258 Code contributed under MIT/X11 license.
260 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
262 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
264 Add Category attributes.
265 Code is contributed under the MIT/X11 license.
267 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
270 - Fix a NRE when unparenting a form.
271 - Do not recreate or destroy a parented form when
274 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
276 * TextBox.cs: Implement basic support for AutComplete with custom
279 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
281 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
282 DropDownButtonBounds should be from the origin of the button, not the
283 ToolStrip. [Fixes bug #401279]
285 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
287 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
288 running gtk_init_check. This prevents GAIL from loading
289 unnecessarily, which was breaking UIA support. Initial fix for bug
291 * Application.cs: Add UIA support to Winforms. New static constructor
292 uses reflection to initialize UIAutomationWinforms assembly. Added
293 PreRun event so UIA can initialize before the mainloop starts, and
294 FormAdded event so UIA can provide a11y support for new Forms in an
297 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
299 * DataGridView.cs: When binding to a dataset, subscribe to table
300 and column change events. Unsubscribe to these when we clear bindings.
303 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
305 [DataGrid drawing refactory]
307 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
309 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
310 must be handle by Theme, now it call DataGridPaintColumnHeader.
312 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
313 test cases must be also fixed because it checks for wrong size.
315 * ThemeWin32Classic.cs:
316 - Draw the bottom line of grid caption.
317 - Prevent to draw caption text when it is empty.
318 - Use CPDrawBorder3D for 3D efects to simplify code.
319 - Uses 3D (when not flat) to paint corner shared between row and column
321 - Fix header drawing issues on win32, now borders are drawing.
322 - Fix column header paint issues to mimic win32.
323 - Adjust header drawing for last column, like first one it must be draw
325 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
327 - DataGridPaintColumnHeader created to draw column headers, it also
328 paint stuff right on Win32.
329 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
333 - DataGridPaintRowHeaderStar method added.
334 - DataGridPaintColumnHeader method added.
336 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
338 * Control.cs: Don't reset to Dock style layout if DockStyle is
339 set to none. [Fixes bug #399316]
341 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
343 * Win32DnD.cs: Fix the check for control not equal null.
344 Fixes bug #341420 and #381886.
346 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
348 * DataGridViewRowCollection.cs: Update the indexes of rows after
349 one has been removed.
350 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
351 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
352 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
353 rows for the Rows collection, or deleting rows from the bound DataSet.
355 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
357 * DataGridView.cs: Listen to a DataSet's changed event even
358 when autogeneratecolumns is false. Refactor the changed event's
359 add row code to use the same as the existing add row code.
362 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
364 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
365 much any time the caret moves and there is text, not just when
366 the selection changes as one would think.
367 * RichTextBox.cs: Override RaiseSelectionChanged and fire
371 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
373 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
374 instead of trying to duplicate the code.
375 * ListBox.cs: Make method internal so we can send keyboard events.
378 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
380 * TextBoxBase.cs: When pasting and checking the max length,
381 subtract the selected text length (the text we will be replacing) from
383 * TextControl.cs: Ensure every character insertion is reflected in
384 charcount, so max length will work properly.
387 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
389 * ListBox.cs: Ensure scrollbars are updated when a single
390 column listbox with an already set top-index is created.
393 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
395 * FontDialog.cs: Typing in the font/style textboxes should search
396 the list boxes case-insensitively. [Fixes bug #398343]
398 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
400 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
401 widths of icon and buttons instead of hard coded values.
403 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
405 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
406 as well as generating a SelectedIndexChanged event, just like .Net does
410 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
412 * ListBox.cs: When navigating items visually, use FocusedItem as the
413 reference point instead of SelectedIndex, since even in
414 SelectionMode.None we need to support navigation, and in that case we
415 just can't use SelectedIndex.
416 Fixes part of #398345.
418 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
420 * Control.cs: Make a SetBoundsInternal that avoids the new
422 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
423 SetBoundsInternal instead of SetBoundsCoreInternal.
425 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
427 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
428 SetBounds for the scrollbars.
430 2008-06-10 Andreia Gaita <avidigal@novell.com>
432 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
433 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
434 OnMouseMove, OnMouseOver, OnMouseUp
435 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
436 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
437 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
438 to the WebControl object to pass to new collection objects
439 * HtmlHistory.cs: Implement support for individual window histories.
440 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
441 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
442 GotFocus, LostFocus, OnLoad, OnUnload
443 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
445 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
446 security level changes and context menu event support.
448 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
450 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
451 as happens with Esc, patch my Andy Hume.
454 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
456 * MdiWindowManager.cs: DrawMaximizedButtons now uses
457 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
458 * Theme.cs: Made MenuButtonSize platform dependent. Added
459 ManagedWindowButtonSize.
460 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
461 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
463 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
465 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
466 Added support for rendering with VisualStyles.
468 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
470 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
471 support for rendering the border with VisualStyles.
473 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
475 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
476 the icon is not shown.
477 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
480 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
482 * InternalWindowManager.cs: Draw minimized windows even if they don't have
485 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
487 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
489 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
491 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
494 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
496 * ComboBox.cs: When snaping height -because of IntegralHeight set to
497 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
498 if the requested height leaves the listbox area with *less* than the
499 required are to see one item. We were setting it to PreferredHeight
500 even for values matching the height for a single item.
503 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
505 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
507 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
509 * DataGridViewCell.cs: Use property instead of field.
511 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
513 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
516 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
518 * Theme.cs: Added #region around the managed window code. Made the managed
519 window methods abstract.
520 * ThemeWin32Classic.cs: Added #region around the managed window code.
522 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
524 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
526 * ThemeWin32Classic.cs: Removed HasBorders checks in
527 DrawManagedWindowDecorations.
529 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
531 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
532 Extracted ManagedWindowGetTitleBarIconArea.
534 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
536 * DataGridViewCellStyle.cs: Don't clone the font.
538 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
540 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
542 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
544 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
545 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
548 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
550 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
551 Use Format/FormatProvider before trying converters.
552 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
553 are 'set'. Change constructor to not use ApplyStyle since it wants
554 everything applied. Clone the Font.
555 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
558 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
560 * ListView.cs: We need to calculate the scrollbars even if the handle
561 hasn't been created - this is needed when methods using scrollbars
562 info, such EnsureVisible, are called before control has been created.
565 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
567 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
568 only if the elements are defined.
570 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
572 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
573 section. Also, when setting bounds, snap height as well as save the
574 requested height if Dock has any value affecting the height: Left,
575 Right and Bottom - important if using IntegralHeight as true.
577 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
579 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
580 passed to SetBounds to reflect the new adjusted height (Integral-wise),
581 instead of doing that only in our SetBoundsCore override, since the
582 bounds cached can be the same as saved one and we could not get the
586 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
588 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
589 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
590 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
591 ToolWindowCaptionButtonSize.
592 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
594 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
596 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
598 * Theme.cs: Made DoubleClickTime plaform dependent.
600 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
602 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
603 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
604 ToolWindowCaptionHeight.
606 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
608 * InternalWindowManager.cs: The adjustment to ensure positive client area
609 sizes is now platform dependent (disabled on Windows).
610 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
611 RequiresPositiveClientAreaSize.
613 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
615 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
617 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
619 * InternalWindowManager.cs: Changed IconicSize to use
620 SystemInformation.MinimizedWindowSize.
621 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
622 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
624 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
626 * ComboBox.cs: If the combobox is anchored both on top and bottom,
627 adjust height if IntegralHeight is true when calling SetBoundsCore (as
628 likely the height was modified even if Height wasn't specified in
629 BoundsSpecified parameter).
630 Fixes part of #396297.
632 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
634 * InternalWindowsManager.cs: Changed minimum window size while resizing to
635 SystemInformation.MinWindowTrackSize.
636 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
637 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
639 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
641 * MenuItem.cs: Fixed Dispose.
643 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
645 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
646 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
647 EnteredHeaderCell, PressedHeaderCell: Added.
648 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
649 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
650 theme a chance to override default painting.
651 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
652 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
653 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
654 ListView and DataGridView header rendering.
656 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
658 * RichTextBox.cs: GetPositionFromCharIndex should return the
659 visual position of the character relative to the viewport.
660 [Fixes part of bug #396664]
662 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
664 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
665 and not just for the existance of an UITypeEditor. In some cases
666 there is an editor associated just to do PaintValue, but which
667 doesn't actually support editing.
670 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
672 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
673 if needed, instead of 0 - this should help us in the corner case where
674 we have more than one item but we are only partially showing 1 item.
675 Fixes part of #374713.
677 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
679 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
680 control, return immediately if the any parent control's handle hasn't
681 been created or isn't visible, as well as avoiding creating the parent
682 Form if the handle hasn't been previously created.
685 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
687 * TableLayoutPanel.cs: Use border sizes when calculating the
688 panel's preferred size. [Fixes part of bug #396433]
690 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
693 - Fix SplitterDistance to update only if needed.
694 - Make it force min and max validation.
695 - Handle properly mouse moves outside the resizeable area.
698 2008-06-02 Andreia Gaita <avidigal@novell.com>
700 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
701 (which also suppresses all popup dialogs). Throw NotSupported
702 exceptions for activex getters/setters.
703 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
704 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
705 StatusText, Version, GoSearch
706 * HtmlDocument.cs: Add DocType support
708 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
710 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
713 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
715 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
717 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
719 * TableLayoutPanel.cs: When calculating preferred size, use the
720 actual number of columns and rows, not what the user set them to.
723 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
725 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
728 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
730 * XplatUIX11.cs: When detecting areas obscured in a control by other
731 toplevel windows while scrolling, return if the control hasn't a
735 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
737 * XplatUIX11.cs: Properly detect the visible area of a control being
738 scrolled (obscured by other winforms controls and any X toplevel
739 windows), to mark as invalid the requested area to be scrolled that
740 isn't visible and thus can't be copied.
743 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
745 * ListBox.cs: Compute the precise amount to vertically scroll when
746 using DrawMode.OwnerDrawVariable.
747 Patch by jkeymer (j.keymer@gmx.net).
749 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
751 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
752 to avoid setting an invalid value for the verticall scrollbar
753 when navigating items. And, duh, also remove my silly debug messages
754 from previous commits.
757 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
759 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
760 make it MS compatible.
762 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
764 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
765 - Allow the editing of entries even if their parent is read-only.
766 - Do not render expandable properties read-only.
767 - Refactor expansion checks form PropertyGrid into PropertyGrid.
769 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
771 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
772 support for the hover style.
774 2008-05-29 Andreia Gaita <avidigal@novell.com>
776 * ContainerControl.cs: Check for null dead-end when traversing the tree
779 [Fixes #394332, patch by Ernesto Carrea]
781 2008-05-29 Geoff Norton <gnorton@novell.com>
783 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
784 constant that it is. Fixes #393981
786 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
788 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
789 that the user probably doesn't want to set this.
791 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
793 * ThemeWin32Classic.cs: Don't let the text size be bigger than
794 the control size for CheckBox/RadioBox.
795 [Fixes part of bug #394645]
797 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
799 * PropertyGrid.cs: Update the state of the sorting buttons in
800 the toolbar if PropertySort is set programatically.
802 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
804 * GridItemCollection.cs: Add multiple items with conflicting names
805 support and also preserve name ordering.
808 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
810 * GridItemCollection.cs: Revert my multiple items with same
813 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
815 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
817 Fixes part of #393908.
819 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
821 * ToolStripDrowDown.cs: When using the Show () methods that have a
822 Control parameter, set the menu owner to that Control.
825 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
827 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
830 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
832 * GridItemCollection.cs: Refactor to support multiple items with the
836 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
838 * Control.cs: The 2.0 check for illegal cross thread calls in
839 Control.Handle were throwing an exception when we were getting
840 the Handle in order to invoke correctly. Created a private
841 version that does not contain this check.
844 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
846 * PropertyGrid.cs: Respect DefaultTabType.
848 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
850 * ListView.cs: SPACE selects an item.
853 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
855 * ListView.cs: Reset the search string whenever the items are
859 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
861 * ListControl.cs: For the first added item PositionChanged is fired
862 _before_ ItemChanged, which leave us in a temporary invalid state - so
863 we need to set the selected index from ItemChanged handler *if* we
864 know that the first item has just been added *and* the items have been
865 actually added to the ListControl.
868 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
870 * TabControl.cs: Only clicks with the left button should be
874 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
878 * TextBox.cs: Expose an internal method in TextBox to restore the
879 original context menu, and call it from ComboBox to re-use it in the
880 combobox containing the file name in FileDialog.cs.
881 Fixes part of #393775.
883 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
885 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
888 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
890 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
893 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
895 * ComboBox.cs: Minor correction to previous patch: PageDown should
896 also *try* to move by one item if the computed offset is negative,
897 just like the PageUp case.
899 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
901 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
902 should be done for at least 1 item, and not stay at the same item.
903 Fixes part of #374713.
905 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
907 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
908 directories. [Fixes bug #393931]
910 2008-05-22 Andreia Gaita <avidigal@novell.com>
912 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
913 Don't fire events until the initial about:blank page has finished
914 loading. Clean up events.
916 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
918 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
919 FocusIn() too. This should fix the issue on switching
922 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
924 * X11Keyboard.cs : set XIM font size to somewhat reasonable
925 number (ideally the input textbox size, but that could be
928 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
930 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
931 the ToolStripItem's TextChanged. [Fixes bug #393597]
933 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
935 * TabControl.cs: When invalidating in SelectedIndex and we need to
936 inflate to take into account the border of the tabs, make sure that
937 the invalidated rect doesn't overflow the control bounds, since that
938 would avoid updating at all.
940 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
942 * TabControl.cs: Don't substract scroller width from the row width,
943 since we need to take into account the total width of the control when
944 calculating the position of the tabs. This avoids showing scroller
945 when it is actually not needed.
946 Fixes part of #322325.
948 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
950 * ThemeVisualStyles.cs: Added support for TextBoxBase.
952 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
954 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
955 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
957 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
959 * DataGridView.cs: Only paint the top left header cell if there
962 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
964 * DataGridView.cs: When binding to a BindingSource, get the underlying
965 list to bind to. [Fixes bug #345483]
967 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
969 * DataGridView.cs: Do not bind to collection properties.
972 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
974 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
976 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
978 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
981 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
983 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
985 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
987 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
990 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
992 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
994 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
996 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
999 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1001 * TabControl.cs: Extended to handle the hot style.
1003 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1005 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1006 Extended UpDownBase code to handle hot and disabled styles.
1008 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1010 * DataGridView.cs: Handle databinding to generic list type things.
1013 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1015 * DataGridViewCellCollection.cs: Add a method to find the cell
1016 with the given DataPropertyName.
1017 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1018 * DataGridViewColumnCollection.cs: Add a method to clear all
1019 autogenerated columns.
1020 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1024 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1026 * DataGridView.cs: Don't try to update the RowTemplate with
1027 a null CellTemplate.
1029 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1031 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1032 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1033 * DataGridView.cs: Lots of fixes/enhancements to databinding to
1036 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1038 * Control.cs: Remove invalidating implicit child controls when
1039 control is invalidated. It was causing too many redraws on
1040 controls with implicit scrollbars.
1041 * ListView.cs: Listen to the Invalidated event and invalidate
1044 2008-05-20 Andreia Gaita <avidigal@novell.com>
1046 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1047 * HtmlDocument.cs: Check for nulls
1049 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1051 * Control.cs: In ControlCollection.RemoveInternal, remove the
1052 internal control before calling PerformLayout and OnControlRemoved,
1053 which was leaving us in an invalid state and causing a X error (bad
1054 match). Observe that Remove () call has the same order.
1055 Fixes an X error changing ComboBoxStyle.DropDownStyle.
1057 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1059 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1060 being fired if ControlStyles.UserPaint style is activated.
1063 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1065 * GridEntry.cs: Don't be so strict when setting the value -
1066 do not check if what we set is what we get.
1069 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1071 * XplatUIX11.cs: If there are no timers timeout should be 0
1074 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1076 * Control.cs: As a followup to invalidating implicit children when
1077 a control is invalidated, only invalidate them if they are in the
1080 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1082 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1084 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1086 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1088 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1090 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1091 * XplatUIWin32.cs: Made Win32DeleteObject public.
1093 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1095 * GridEntry.cs: Determine HasDefaultValue more strictly by using
1096 PropertyDescriptor.ShouldSerializeValue.
1099 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1101 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1102 in the classic theme.
1104 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1106 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1108 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1109 ScrollBarHasPressedThumbStyle.
1111 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1113 * TextRenderer.cs: Included some methods in the 1.1 profile.
1115 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1117 * Control.cs: When we make a control visible, it may have been
1118 previously visible and while it wasn't visible, the z-order of
1119 things may have been shuffled, so the control needs to have its
1120 z-order updated just in case. [Fixes bug #391518]
1122 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1124 * ThemeVisualStyles.cs: Added support for GroupBox.
1126 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1128 * GroupBoxRenderer.cs: Included in the 1.1 profile.
1130 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
1132 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1133 bug #389996; XSelectInput() behaved as mouse handler robber,
1134 so remove extra call to it.
1136 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1138 * Control.cs: Simplify ControlCollection.Contains method.
1140 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1142 * DataGridViewRow.cs: Implement GetPreferredSize.
1144 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1146 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
1148 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1150 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1151 painting and edit control fixes.
1153 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1155 * DataGridView.cs, DataGridViewCell.cs: Work around some external
1156 checks to make sure we are in an actual row/col for top left header cell.
1157 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1159 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1161 * Control.cs: Use long instead of int when handling WParam from
1162 mousewheel scrolling. Int was overflowing on Win64.
1164 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1166 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1167 flow panel without scrolling first, and then calculate the
1168 scrolling based on the new layout. [Fixes bug #390149]
1170 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1172 * ListBox.cs: Invalidate after scrolling up when selected index
1173 changes. [Fixes bug #390151]
1175 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1177 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1178 set, default height to 150. I tried first with DefaultSize, but this
1179 is not generating a SetBoundsCore call before handle creation time, so
1180 we can take it into account. This is just what .net does.
1182 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1184 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1185 as it broke some stuff. Calberto is filing a bug for eno to
1188 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1190 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1191 to 0 is the current value is -1, and if style is not Simple, just
1192 return, like .net does.
1193 Fixes part of #374713.
1195 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1197 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1198 progress bar stuffs, use doubles instead of ints to prevent
1199 overflow. [Fixes bug #389798]
1201 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1203 * XplatUIX11.cs, X11Keyboard.cs :
1204 Significant refactoring on XIM support. Now IM engine UI
1205 should show up, at mostly-correct preedit position.
1206 - Eliminated use of FocusWindow, as it is never mapped
1207 and hence blocks correct preedit position. XIC is now
1208 created per window, and it must be destroyed too when
1209 the window is destroyed.
1210 - WM_QUIT messages should not be filtered even when hwnd
1211 is zombie. Filtering it could cause endless loop.
1212 - Preedit position must move only when the window is alive.
1213 - Make it IDisposable and make sure to release XIM/XICs.
1215 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1217 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1218 XplatUIX11.cs, XplatUIWin32.cs :
1219 fix for bug #325033 and #387693;
1220 - WM_QUIT should not be sent when no running application
1222 - SetTimer/KillTimer (especially on win32) should be
1223 invoked for the window that the timer is/will_be attached.
1224 - There could be unattached timers to a window when it's
1225 started. For those timers, hold pending timers and when
1226 a window is mapped, attach them to it.
1227 - WaitForHwndMessage() could run into loop when
1228 WM_SHOWWINDOW is handled before this method is called.
1229 So, strictly check wm_showwindow state.
1230 - Tick handler should not be invoked while one Tick handler
1231 call is still running (introduced Busy state).
1233 2008-05-13 Andreia Gaita <avidigal@novell.com>
1235 * WebBrowserBase.cs: Override Internal alternative methods for
1236 SetBoundsCore and OnResize instead of the protected ones.
1237 * Control.cs: Move SetBoundsCore and OnResize implementations to
1238 SetBoundsCoreInternal and OnResizeInternal, so they can be
1239 overriden internally (WebBrowserBase needs to catch them but can't
1240 override the protected methods without api compat problems)
1242 2008-05-13 Andreia Gaita <avidigal@novell.com>
1244 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1246 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1249 * ListView.cs: Remove debug messages.
1251 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1253 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1254 area is empty. Also calculate scrollbars in Simple mode based in area
1255 height and total number of items, not in MaxDropDownItems.
1256 Fixes part of #371991.
1258 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1260 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
1262 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1264 * BindingSource.cs: GetListSortDescription is not public.
1266 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1268 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1270 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1272 * HtmlElement.cs: Fix parameter names to match MS.
1273 * HtmlWindowCollection.cs: Should not be sealed.
1275 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1277 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1278 button, because the thumb button will not get drawn if the scrollbar
1279 is disabled. [Fixes bug #389262]
1281 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1283 * ListBox.cs: Handle End key for multi-column listboxen.
1286 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1288 * ListBox.cs: Fix algorithm to determine which column our item is in.
1291 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1293 * ListBox.cs: Invalidate when the listbox is resized.
1296 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1298 * ListBox.cs: There is always at least one row in the ListBox (if
1299 we are doing these calculations.) [Fixes bug #389253]
1301 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1303 * ListBox.cs: There is always at least one column in the ListBox.
1306 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1308 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1309 ensure in Simple mode that the height is exactly the requested one.
1310 Also add the ComboBoxListControl to the controls collection in Simple
1311 mode even if handle hasn't been created.
1312 Fixes part of #371991.
1314 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1316 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1317 our ComboBox owner instead of giving it back to the previous control (
1318 as done in other controls). Also remove the empty override of Select
1319 method, since we want to be selected *and* give focus to our owner.
1320 This should let the user do keys-navigation in Simple mode.
1322 2008-05-10 Geoff Norton <gnorton@novell.com>
1324 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1325 problems with rapid scrolling of treeviews. Fixes #381084
1327 2008-05-10 Geoff Norton <gnorton@novell.com>
1329 * XplatUICarbon.cs: Deactivate the active window before
1330 activating the desired window. Completes fixing #386504
1332 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1334 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1335 SmallChange to the item size width plus the padding, to match .net.
1337 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1339 * FileDialog.cs: Apply the custom filter typed by the user in the file
1340 name combobox as much as possible while navigating in the file dialog.
1343 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1345 * Binding.cs: Actually use NullValue if the retrieved value of
1346 data source is null or DBNull. Makes a test pass.
1348 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
1350 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1351 * MimeIcon.cs: Provide a way to get icons from resources.
1353 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1355 * Binding.cs: When the value retrieved from the control to be assigned
1356 to the data source is null, actually use the 2.0 DataSourceNullValue
1357 value. Make pass a data binding test.
1359 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1361 * Control.cs: We need to invalidate implicit children even when
1362 invalidate is called with invalidatechildren = false. (Implicit
1363 children are really part of the parent.)
1364 * ListView.cs: Double-buffer internal child controls for less
1366 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1367 owner ListView subitems for greatly increased performance.
1370 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1372 * FileDialog.cs: When the user types a wildcard character in the
1373 filename combobox, update the contents of the folder using the text as
1375 Fixes part of #385261.
1377 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1379 * ListBox.cs: Various fixes for MultiColumn listboxen.
1382 2008-05-08 Andreia Gaita <avidigal@novell.com>
1384 * HtmlElement.cs: Implement Style property
1386 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1388 * ListBox.cs: Respect checkboxes when measuring item size.
1389 * ThemeWin32Classis.cs: When drawing list items, don't draw
1390 text outside of the item's bounds to prevent overlapping.
1391 (.Net actually overlaps, but that's just silly.)
1394 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
1396 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1397 Gert Driesen. Fixes bug #324830.
1399 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
1401 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1404 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1406 * BindingSource.cs: When calling IsSynchronized, return the value of
1407 the related IList list.
1409 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1411 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1414 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1416 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
1417 navigation to scroll the grid if the current cell is not visible.
1419 2008-05-07 Andreia Gaita <avidigal@novell.com>
1421 * HtmlElement.cs: Implement TabIndex
1423 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1425 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1426 properties, even when there are no items.
1429 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
1431 * NativeWindow.cs: Add support for multiple handles per window.
1432 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
1433 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
1434 directly - use FromHandle instead.
1437 2008-05-07 Andreia Gaita <avidigal@novell.com>
1439 * HtmlElement.cs: Implement InnerHTML setter
1441 2008-05-07 Andreia Gaita <avidigal@novell.com>
1443 * HtmlDocument.cs: Implement Focused
1445 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1447 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1448 methods, as well as add messages to the exceptions.
1450 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1452 * BindingSource.cs: Setting DataSource should only reset DataMember if
1453 the previous value was null (make pass a not working test).
1455 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1457 * BindingSource.cs: When EndInit call is postponed and is called until
1458 DataSource.EndInit is called, remove the handler for data source.
1460 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1462 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1464 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1466 * ToolStripManager.cs: Store references to toolstrips as
1467 weak references so they do not prevent forms from getting collected.
1470 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1472 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1473 on .Net. So do the same thing in WndProc.
1475 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1477 * TrackBar.cs: Commit patch from Andy Hume that corrects
1478 the clickable areas to better match .Net.
1481 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1483 * TrackBar.cs: Commit patch from Andy Hume that adds the
1484 ResizeRedraw control flag so the track bar repaints itself
1485 when it is resized. [Fixes bug #387072]
1487 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1489 * TrackBar.cs: Commit patch from Andy Hume that adds better
1490 support for keyboard navigation when the TrackBar is vertical.
1493 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1495 * BindingSource.cs: Implement ISupportInitializeNotification support.
1497 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1499 * ThemeVisualStyles.cs: Added support for ToolBar.
1501 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1503 * ToolBar.cs: Made the Vertical property internal.
1505 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1507 * ThemeVisualStyles.cs: Added support for TrackBar.
1509 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1511 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1512 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1513 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1514 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1515 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1516 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1518 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1520 * ThemeVisualStyles.cs: Added support for UpDownBase.
1522 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1524 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1525 Extracted Theme.UpDownBaseDrawButton.
1527 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1529 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1530 removed from the static toolstrips collection in ToolStripManager
1531 when they are disposed. Provides a workaround for bug #386483.
1533 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
1535 * GridEntry.cs: Read-only properties with Editor with
1536 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1539 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1541 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1542 the menu key and there are no items on the menu.
1545 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
1547 * Control.cs: Avoid calling ToString on a string.
1548 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1549 * GroupBox.cs: In FlatStyle property throw, not just create, the
1550 exception. Avoid calling ToString on a string.
1551 * ProgressBar.cs: Avoid calling ToString on a string.
1552 * ScrollBar.cs: Avoid calling ToString on a string.
1553 [All issues were found using Gendarme]
1555 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1557 * NotifyIcon.cs: Prevent click events to be trigger after double click
1558 events. Fixes remaining issues of bug #324832.
1560 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1562 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1563 to mimic win32 behavior. Partially fixes bug #324832.
1565 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1567 * BindingSource.cs: Implement Find methods.
1569 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1571 * BindingSource.cs: Implement Sort, ApplySort overloads, and
1574 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1576 * ListBindingHelper.cs: When calling GetListItemProperties and the
1577 passed object is ITypedList, return the result of
1578 ITypedList.GetItemProperties instead.
1580 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1582 * LinkLabel.cs: Set default value of name on constructor of Link class
1583 only for 2.0 profile.
1585 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1587 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1588 Fixes remaining issues of bug #346154.
1590 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1592 * LinkLabel.cs: Set a default value for name on internal contructor of
1593 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1595 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1597 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1598 and refer all instances to owner.links. Partially fixes #346154.
1600 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1602 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
1603 length equal zero. Also called CreateLinkPieces in constructor. It fixes
1604 the LinkLabel test 'TestLinkArea'.
1606 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1608 * Form.cs: Remove menu before close form to prevent form to be not gaced.
1611 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1613 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1616 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1618 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1621 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1623 * MenuAPI.cs: Remove unused ProcessCmdKey method.
1625 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1627 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
1630 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1632 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1635 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1637 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1638 sometimes we open a conext menu on mouse down of some controls and the mouse
1639 up is dispatched to menu and dont need to. It fix remaining issues of
1640 #363711 and other problems related to menu mouse click events.
1642 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1644 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1645 some var names to better fit changes, now we have month_menu and today_menu
1646 vars. Fixes bug #363711.
1648 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1650 * MonthCalendar.cs: Handle every right mouse click to open context menu,
1651 right now the default month menu but it will be change to have "Go to today"
1654 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1656 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1658 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1660 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1662 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1664 * ThemeVisualStyles.cs: Added support for TreeView.
1666 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1668 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1669 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1671 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1673 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1675 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1677 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1678 Implement 2.0 SP1 stuffs.
1680 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1682 * FileDialog.cs: Implement 2.0 SP1 stuffs.
1684 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1686 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1687 Implement CanEnableIme property. (2.0 SP1)
1689 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1691 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1694 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1696 * Control.cs: Provide an internal way for a control to override
1697 the setting of Height.
1698 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1699 set height using new method.
1701 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1703 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1705 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1707 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1708 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1710 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1712 * ThemeVisualStyles.cs: Added support for StatusBar.
1714 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1716 * DataObject.cs: Add the other IDataObject interface.
1718 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1720 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1721 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1723 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1725 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1726 * ListView.cs: Hide non-public API.
1727 * MaskedTextBox.cs: Remove extra attribute.
1729 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1731 * DataGridViewImageCell.cs: Use formatted value instead of value
1732 to calculate preferred size.
1734 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1736 * ListBox.cs: Move some initialization around so that selected_indices
1737 is not accessed before it is created.
1739 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1741 * InputLanguageCollection.cs: Implement the collection better.
1744 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1746 * ToolStripDropDownItem.cs: Get the correct event object for
1747 DropDownItemClicked.
1748 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1751 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1753 * DataGridViewRowCollection.cs: We don't currently support shared
1754 rows. Should fix test failures caused by previous commit.
1756 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1758 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1759 datagridview gets set. Only paint cells in visible columns.
1760 * DataGridViewCell.cs: Draw border after cell content.
1761 * DataGridView.cs: Invalidate after setting some properties. Only
1762 use visible columns. Fit hit test bug with areas in the col/row header
1763 area but not in a row or col. Implement UpdateCell/Row methods.
1765 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1767 * DataGridViewElement.cs: Don't throw NIEX.
1768 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1769 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1770 * DataGridViewCheckBoxColumn.cs: Implement ToString.
1771 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1772 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1773 if the user filled in the formatting Value, use it.
1775 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1777 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1780 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1782 * BindingSource.cs: Some corrections to Filter property, as well as
1783 setting it for our list when resetting it.
1785 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
1787 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1788 than the maximum. Fixes reopened bug #384182.
1790 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1792 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1793 Fixes remaining issues of #367490.
1795 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1797 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
1798 SystemInformation.WorkingArea to get max_screen value.
1800 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1802 * BindingSource.cs: Implement Filter and RemoveFilter.
1804 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1806 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1808 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1810 * X11Dnd.cs: When trying to convert data and we know we started the
1811 dnd loop, don't try to use the cached data if the loop is not running,
1812 which means that the data has been resetted.
1815 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1817 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1820 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1822 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1823 it to drawn off screen edge. Fixes bug #367490.
1825 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1827 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1828 menu position to have only one assignment of Location var.
1830 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1832 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1833 for this patch. Fixes bug #384115.
1835 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1837 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1838 the same. If LargeChange is zero, set a minimum size for the scroll
1839 thumb grip. [Fixes bug #384182]
1841 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1843 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1846 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1848 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
1850 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1852 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1853 patch from Ernesto).
1855 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1857 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1859 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1861 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
1863 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1865 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
1867 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1869 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
1871 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
1873 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
1875 2008-04-27 Andreia Gaita <avidigal@novell.com>
1877 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
1878 supposed to return a reference to an mshtml interface, which we
1880 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
1881 reference to an mshtml interface, which we don't support). Code
1883 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
1884 DomDocument getter (it's supposed to return a reference to an
1885 mshtml interface, which we don't support). Code formatting cleanup.
1887 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1889 * ListView.cs: Ouch, forgot to commit.
1891 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1894 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
1896 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1898 * ListView.cs: When calculating box selection for virtual mode, don't
1899 look for intersection with item's text, but item bounds, since that
1900 would mean read ListViewItem's text for _every_ item, and that's
1901 something we just can't do in virtual mode (items are only requested
1904 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
1906 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
1907 partial support for managed windows (based on the patch from Ernesto).
1909 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1911 * ListView.cs: When doing a key search use FindItemWithText method
1912 instead of doing the search by ourselves, this way we avoid
1913 duplicating the code and also we handle the special case for virtual
1914 mode. To achieve that make our private overload of FindItemWithText
1915 internal and also have a 'roundtrip' parameter.
1917 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1919 * ListView.cs: When doing the layout don't request the
1920 ListViewItem instance if we are in virtual mode (since we can't request it
1921 until the item is actully drawn).
1923 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1925 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
1928 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1930 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
1931 the patch from Ernesto).
1933 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1935 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1936 * ThemeVisualStyles.cs: Added.
1938 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1940 * IDeviceContext.cs: Added a missing using.
1942 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1944 * ButtonBase.cs: Made IsDefault protected internal.
1945 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1947 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1949 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1950 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
1951 RadioButtonRenderer.cs: Included in the 1.1 profile.
1952 * IDeviceContext.cs: Added.
1953 * TextRenderer.cs: Included a member in the 1.1 profile.
1955 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1957 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
1959 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1961 * ErrorProvider.cs: Make the error icons come after the control
1962 they refer to. It isn't the way the MS does it, but its better
1963 than what we were doing. See bug #368587.
1965 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1967 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
1968 from Eric Albright that lazy loads the input language as ensures
1969 everything gets properly initialized. Fixes bug #373871.
1971 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
1973 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
1974 implicit mnemonics. [Fixes bug #383000]
1976 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1978 * X11Dnd.cs: When canceling the operation, automatically restore the
1979 default cursor - normally the default cursor is restored when the
1980 mouse buttons are released, but we should be able to restore it even
1981 if the buttons are still pressed (for example, when pressing ESC to
1985 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1987 * X11Dnd.cs: When starting a new drad and drop operation, set control
1988 field to null, just as the other fields, to avoid calling any
1989 operation on a previous control. Also, when calling DndLeave on a
1990 control, set it to null, thus we don't fire that event multiple times
1994 2008-04-23 Geoff Norton <gnorton@novell.com>
1996 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
1997 the whole_window object. Fixes #377084.
1999 2008-04-23 Andreia Gaita <avidigal@novell.com>
2001 * HtmlElement.cs: Implement RaiseEvent (event injection into the
2004 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
2006 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2008 2008-04-23 Andreia Gaita <avidigal@novell.com>
2010 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2013 2008-04-23 Andreia Gaita <avidigal@novell.com>
2015 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2018 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2020 * X11Dnd.cs: When the drop was cancelled, or could just not be
2021 performed, return DragDropEffect.None always (match .net).
2023 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2025 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2027 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2029 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2031 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2033 * DataGridView.cs: Add support for error icon tool tips.
2034 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2035 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2037 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
2039 * X11Structs.cs: Add mouse button masks enum.
2040 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
2041 WM_EXITSIZEMOVE only once at the beginning and at the end of the
2042 form resize/move operation instead of for each step of it.
2043 [Fixes bug #346529 for the x11 backend]
2045 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2047 * DataGridView*: Implement support for drawing error icons.
2049 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2051 * TreeView.cs: Make vbar and hbar internal.
2052 * TreeNode.cs: If collapsing the node removes one of the TreeView's
2053 scrollbars, invalidate the whole thing.
2056 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2058 * TreeView.cs: Calling Sort() sets Sorted = true.
2059 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2060 if the nodes need to be sorted.
2063 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
2065 * Form.cs: Fire SizeChanged for both when the form is minimized and
2067 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
2068 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2070 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2072 * ComboBox.cs: If the combobox is disabled, draw a disabled
2073 background before painting anything else.
2076 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2078 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2079 forget to send a Leave event to the target window - just as .net does
2080 when cancelling dnd operations.
2082 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2084 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2085 soon as possible - this happens when we send the drop message to the
2086 target window. This way we avoid firing any DragOver _after_ drop finished.
2089 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2091 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2092 * Form.cs: Handle form minimization as a special state, where size doesn't
2093 change, but we have to fire SizeChanged.
2094 [Fixes bug #325122 for the win32 and x11 backends]
2096 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2098 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
2099 if the handle is disabled.
2102 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2104 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
2105 for forms with FormBorderStyle.None.
2108 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2110 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
2112 [Fixes bug #346529 for the X11 backend]
2114 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2117 - Send a mouse Enter message after say dragging the mouse with a
2118 button down and then release it in another client.
2119 - Reset the cursor to prevent X11 from remembering it and setting it
2120 before the control gets WM_SETCURSOR.
2121 - Qeueue a mouse move after a mouse enter like win32.
2124 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2126 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
2127 It's sent when the form gets moved, resized, closed.
2128 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2129 [Fixes bug #359193 for X11]
2131 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2133 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
2136 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2138 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
2139 group. Fixes the 1.1 build.
2141 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2143 * ListView.cs: Use display indexes for selection in Details view, as
2144 well as do the proper layout based on display indexes for that view
2147 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2149 * ListView.cs: Focused item information is now stored as a display
2150 index, and display indexes are used all over the place for selection,
2151 instead of ListViewItem.Index values, which doesn't give us enough
2152 information to modify the selection in groups mode, and was broken.
2154 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
2156 * Control.cs: Do not fire MouseDown if validation of the control has
2158 * Form.cs: Validate the form before closing.
2159 [Fixes bugs #330501 and #353310]
2161 2008-04-18 Andreia Gaita <avidigal@novell.com>
2163 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2164 CreateWebBrowserSiteBase implementations
2165 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2166 Style and TabIndex setters
2168 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2170 * ListViewGroup.cs: When returning the actual item count, return the
2171 proper count for default group.
2174 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2177 * ListViewGroup.cs: When calculating groups layout, get the actual
2178 number of items per group, since groups added to the group BUT not
2179 added to the ListView are just ignored, and can cause some nasty
2180 exceptions because of the lack of synchronization. Also for
2181 ListViewGroup don't use lazy initialization for items, since we
2182 the common scenario is to use it always - and it helps us to refactor
2183 and clean the .ctor overloads.
2185 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2187 * ListView.cs: When adding an item to a ListViewItemCollection
2188 belonging to a group (ListViewGroup.Items), don't generate a redraw if
2189 the added item hasn't beeen previously added to the ListView instance
2190 refered by the group, since it will be ignored. This should avoid some
2191 really nasty flickering.
2193 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2195 * ListView.cs: When accessing an item in a specific display
2196 position, use the helper method GetItemAtDisplayIndex, instead of
2197 direct access to the reordered_items_indices array. When doing layout
2198 for groups set the correct Items index for the display position (since
2199 in groups mode items don't have the same position as in Items
2201 * ListViewGroup.cs: Add a field to store the starting item number,
2202 which is later used when calculating the layout.
2206 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
2208 * Application.cs: Fixed ProductVersion to fallback to the assembly
2209 version. Fixes regression for bug #325413.
2211 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2213 * ListView.cs: New helper method to retrieve an item in a _specific
2214 display_ position (the items can be displayed in a different order
2215 than one of Items collection).
2216 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2217 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2218 specific display position (again remember that items can be sorted
2219 different than Items).
2221 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2223 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2224 list and update it when the collection changes. We were recreating
2225 this several times per row paint and for every pixel the mouse moved
2227 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2230 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2232 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2233 list to use generics.
2234 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2235 and remove unneccessay casts.
2237 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2239 * DataGridViewBand.cs: Add internal way to set displayed variable.
2240 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2241 * DataGridView.cs: Make sure we always keep track of Displayed
2242 rows and columns, and only draw things that are displayed.
2244 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
2246 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2247 whether the key events are filtered or not. Introduced
2248 PreFilter() process for this purpose. This fixes atokx3/iiimx
2251 2008-04-16 Andreia Gaita <avidigal@novell.com>
2253 * HtmlHistory.cs: Implement Length property
2255 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
2257 * DataGridView.cs: Call EndEdit when a sort is performed so we take
2258 away the edit textbox. Refactor to reuse column sort code.
2260 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
2262 * MenuAPI.cs: Remove the code that save and restore capture status of
2263 grab_control, this fixes some Menu and Context menu bugs but maybe it can
2264 cause some others, I cant figure the possible problems of this patch but
2265 right now remove the code looks to be better than keep it. This patch fixes
2266 bugs #357638, #378721 and #379570.
2268 2008-04-12 Andreia Gaita <avidigal@novell.com>
2270 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2271 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2272 add missing properties and event handlers.
2274 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
2276 * ListBox.cs: Make sure the LargeChange we are setting is at least
2277 zero, to prevent an IOORE. [Fixes bug #379531]
2279 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
2281 * ComboBox.cs: Support item navigation by entering text. Firstly,
2282 in DropDownList mode, for each key-press select the next item
2283 starting with that letter.
2284 For other modes, when no item selected, on arrow-up/-down and open
2285 drop-down select the first item matching the text in the textbox.
2287 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
2289 * X11Keyboard.cs : Control.FromHandle() could return null
2290 in MoveCurrentCaretPos().
2292 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2294 * ListView.cs: When changing the size in VirtualMode, also Reset the
2296 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2297 changing selection info for VirtualMode.
2300 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2302 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2303 view, don't use LineLimit for the first item - use NoWrap *always*
2304 instead, since ListView.LabelWrap is not used for this view.
2307 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2309 * Binding.cs: Call UpdateIsBinding when setting control - probably
2310 Binding is already usable and we don't need to wait to check the
2311 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2312 Created, just like 2.0 does.
2313 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2315 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2317 * Binding.cs: Just realized we don't need to have a handler for
2318 BindingContextChanged, since this info should be now consumed directly
2319 in the BindingManagerBase. And also, the manager.IsBindingSuspended
2320 state info is checked directly, instead of caching it.
2322 * CurrencyManager.cs: IsSuspended should return always false if Count
2325 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2327 * Binding.cs: When calling PushData, return if manager.Count == 0,
2328 since we just don't have data to be read. Also, when setting the
2329 Control for binding, hook up some events to refresh the IsBinding
2330 state when BindingContext change or control gets created; use
2331 Control.IsHandleCreated instead of Control.Created check to set
2332 IsBinding state - we *actually* need to modify IsBinding when control
2333 is created, but we don't have any Created event, only HandleCreated.
2334 Fixes part of #349364.
2336 2008-04-11 Geoff Norton <gnorton@novell.com>
2338 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
2339 warping a null Caret.
2341 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2343 * DataGridView.cs: Implement row/column autosizing methods. Implement
2345 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2346 * DataGridViewRowCollection.cs: Add an internal sorting method.
2348 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2350 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2351 value in ListView drawing code.
2353 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2355 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2356 is clicked. Respect the user setting Cancel in FileOk.
2358 2008-04-11 Geoff Norton <gnorton@novell.com>
2360 * ListView.cs: Avoid setting and resetting control Width/Heights and
2361 calculate the final value and set it once. Prevents a feedback loop
2364 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2366 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2369 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
2371 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2372 Add some on-the-spot code, but it seems we don't need it.
2374 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2376 * Form.cs: Add method for DataGridView to trigger focus cues
2377 even when it handles the tab keypress.
2379 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2381 * DataGridView.cs: More keyboard handling, tab, esc.
2382 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2383 when at the beginning or end of the text in the text box.
2385 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2387 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2389 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2391 * DataGridView.cs: Some fixups for showing and adding the edit control.
2392 * DataGridViewButtonColumn.cs: Implement ToString.
2393 * DataGridViewCell.cs: Size and position the control simultaneously.
2394 * DataGridViewTextBoxCell.cs: Use base to position control.
2396 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2398 * DataGridViewCell.cs: Fix up some formatting and painting code.
2399 * DataGridViewImageCell.cs: Implement some NIEX methods.
2401 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2403 * ToolStripItemCollection.cs: What moving an item from one owner
2404 to another, remove from source owner before adding to destination.
2407 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2409 * PictureBox.cs: Call Load when ImageLocation is set.
2412 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
2414 * X11Keyboard.cs, XplatUIX11.cs :
2415 Implement over-the-spot mode (with some odd offsets).
2416 - set preedit position when caret is set.
2417 - Wrap XMoveResizeWindow() to move preedit position.
2419 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2421 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2424 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2426 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2427 and ScanTableIndex public, it fix compilations errors when compiling
2428 WinForms to generate keyboard layout resources.
2430 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2432 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
2433 different element count than scan table. It prevents some errors in non
2436 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2438 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2440 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2442 * DataGridView.cs: Call OnContentClick.
2443 * DataGridViewCell.cs: Do a null check on ValueType instead
2445 * DataGridViewCheckBoxCell.cs: Implement.
2447 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2449 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2451 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2453 * X11Keyboard.cs : Check XGetIMValues() return value in
2454 case it does not return input styles in some environment.
2456 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2458 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2460 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2462 * BindingContext.cs: Stub UpdateBinding method.
2464 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
2466 * X11Structs.cs : added couple of structs for XIM support.
2468 Release XIM in case it failed to create XIC.
2469 Use consts for XNblah string.
2470 Add support for IM style customization and XIC creation
2471 for preedit-position and preedit-callback.
2472 Right now use MONO_WINFORMS_XIM_STYLE environment variable
2473 (list of: over-the-spot | on-the-spot | root). Only root
2476 (redoing r99172 with fix.)
2478 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2480 * TreeView.cs: Center the checkbox a little better.
2482 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2484 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2485 Apply very nice patch from Ernesto Carrea that simplifies our
2486 scrollbar drawing. [From bug #376146]
2488 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2490 * TreeView.cs: Correct the location of the root node checkbox when
2491 ShowRootLines = false. Don't draw the root lines for the root node
2492 when ShowRootLines = false. [Fixes bug #377535]
2494 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2496 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2498 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2500 * MaskedTextBox.cs: Added missing attribute. Code formatting.
2501 * PageSetupDialog.cs: Added missing attribute. Code formatting.
2502 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2503 * ImeMode.cs: Added missing field.
2504 * HtmlWindow.cs: Code formatting. Fixed line endings.
2505 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2507 * HtmlHistory.cs: Code formatting. Fixed line endings.
2508 * HtmlDocument.cs: Code formatting. Fixed line endings.
2509 * ToolStripPanel.cs: Added missing IList implementation.
2510 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2512 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2514 * BindingContext.cs: Changed argument names to fix corcompare errors.
2515 * DataGridView.cs: Removed extra explicit interface implementation
2516 of IDropTarget. Code formatting.
2517 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2518 * ComboBox.cs: Changed argument names to fix corcompare errors.
2519 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2521 * GridColumnStylesCollection.cs: Changed argument names to fix
2522 corcompare errors. Removed extra tabs.
2523 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2525 * Control.cs: Changed argument names to fix corcompare errors. Code
2526 formatting. Removed extra explicit IList implementation.
2527 * TextBox.cs: Changed argument names to fix corcompare errors. Code
2528 formatting. Use string.Empty instead of "".
2529 * GridItemCollection.cs: Changed argument names to fix corcompare
2530 errors. Code formatting.
2531 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2532 corcompare errors. Code formatting.
2533 * ImageList.cs: Changed argument names to fix corcompare errors.
2534 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2535 * DataGridViewRowCollection.cs: Changed argument names to fix
2536 corcompare errors. Code formatting.
2537 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2538 * DataGridViewSelectedCellCollection.cs: Changed argument names to
2539 fix corcompare errors. Code formatting.
2540 * DataGridViewComboBoxCell.cs: Changed argument names to fix
2541 corcompare errors. Code formatting.
2542 * LinkLabel.cs: Changed argument names to fix corcompare errors.
2543 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2545 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2547 * BindingSource.cs: Changed argument names to fix corcompare errors.
2548 Removed extra explicit interface implementations.
2549 * DataGridViewSelectedRowCollection.cs: Changed argument names to
2550 fix corcompare errors. Code formatting.
2551 * ToolStripItemCollection.cs: Removed extra explicit interface
2552 implementation of IList.ReadOnly.
2553 * DataGridViewColumnCollection.cs: Changed argument names to fix
2554 corcompare errors. Code formatting.
2555 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2556 * ListView.cs: Changed argument names to fix corcompare errors.
2557 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2559 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2561 * ListBindingHelper.cs: Changed argument names to fix corcompare
2563 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2564 fix corcompare errors. Code formatting.
2565 * ToolStripPanel.cs: Removed extra explicit implementation of
2566 IDropTarget interface.
2567 * ListBox.cs: Changed argument names to fix corcompare errors. Code
2568 formatting. Removed extra tabs and spaces.
2569 * DataGridViewCellCollection.cs: Changed argument names to fix
2571 * Help.cs: Changed argument names to fix corcompare errors. Code
2573 * TabControl.cs: Changed argument names to fix corcompare errors.
2574 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2576 * TableLayoutSettings.cs: Changed argument names to fix corcompare
2579 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2581 * ListBindingHelper.cs: When returning properties, only return those
2582 that are browsable. Also, don't do a linear search of the properties,
2583 but use the indexer of the PropertyDescriptorCollection class.
2585 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2587 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2588 Dictionary containing the related (child) currency managers. Also,
2589 when setting DataSource, add datasource to our List if it is not a list.
2591 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2593 * PropertyGridTextBox.cs: Fix background color of the buttons.
2594 * PropertyGridView.cs: Make the entry less jumpy.
2596 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2598 * PropertyGrid.cs: Fix unused variable warnings.
2600 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2602 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
2603 double-click. It expanded it once in the mouse down and then
2604 again in the double-click handler.
2606 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2608 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
2609 TypeConverter and UITypeEditors.
2611 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2613 * Control.cs: Visibility should be set synchronously,
2614 so we must also redraw once it is and not rely on layouting or
2615 other code to repaint.
2618 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
2620 * DataGridViewCell.cs: Respect DataGridView.GridColor.
2622 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2624 * Control.cs: Invalidate when the alpha channel is less than 255,
2625 not only when control is transparent.
2627 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2629 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2630 Implement some painting convenience methods that threw NIEX.
2632 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2634 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2635 * DataGridViewLinkCell.cs: Implement.
2637 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
2639 * GridEntry.cs: Report the conversion exception error description.
2642 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
2644 * PropertyGridView.cs: Do not scroll to item on resize.
2647 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2649 * BindingContext.cs: When retrieving a BindingManagerBase, if the
2650 dataSource parameter is ICurrencyManagerProvider, then return
2651 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2652 instead of creating a new one.
2654 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2656 * BindingSource.cs: Implement support for Type instances as
2659 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
2661 * DataGridView.cs: Minor cleanups and call CellMouseUp.
2662 * DataGridViewCell.cs: Make some painting routines internally virtual.
2663 * DataGridViewButtonCell.cs: Implement.
2665 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
2667 * Control.cs: We always need to invalidate our children with
2668 transparent backgrounds when we are invalidated.
2671 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2673 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2674 and CancelCurrentEdit on CurrencyManager respectively. Implement
2675 support for ICancelAddNew too.
2677 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2679 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2680 call EndNew/CancelNew if list is ICancelAddNew.
2682 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
2684 * DataGridView.cs: Guard against an exception while painting
2685 if there are no rows.
2687 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
2689 * DataGridView.cs: Implement a bunch of keyboard commands.
2691 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
2693 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
2694 isn't set, don't call OnPaint. [Fixes bug #375300]
2696 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2698 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2699 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2700 hookup the remaining events related to CurrencyManager, and fire
2701 OnListChanged also for the Clear () method.
2703 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2705 * BindingSource.cs: Use Current and Position implementations in
2706 CurrencyManager instead of using our own routines, since we need
2707 to be in synch with it. Count should NEVER return a -1 value, and
2708 also report ListChanged events for both simple IList data
2709 sources (manually) as well for IBindingList ones (by hooking up an
2710 event handler for it).
2712 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2714 * BindingSource.cs: Make one .ctor call the another, to avoid
2715 duplicate code. Add the CurrencyManager property, and also for AddNew
2716 throw the proper exceptions and show better error messages.
2718 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2720 * ComboBox.cs: Only adjust selectedindex if Handle has been
2721 created. Fixes failing test.
2723 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2725 * ComboBox.cs: Adjust selectedindex if we insert a new item
2726 above the current selectedindex in a sorted ComboBox.
2729 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2731 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2734 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2736 * DataGridViewTextBoxCell.cs: Implement stuffs.
2738 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2740 * TreeView.cs: Create the scrollbars even earlier to be
2741 double dog certain they are created before they are accessed.
2743 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2745 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2747 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2749 * ScrollBar.cs: Create an internal safe Value setter so we
2750 won't crash if we try to set a value outside the min and max.
2751 * TextBoxBase.cs: Use safe value setter to guard against a
2752 potential NRE that is being reported by Reflector.
2754 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2756 * TreeView.cs: Create the scrollbars earlier in the constructor
2757 to attempt to guard against an NRE in SetTop in Reflector.
2759 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2761 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2762 DataGridViewRowCollection.cs: Do not scroll column and row headers,
2763 show messagebox on data format error, use column display index
2764 correctly, make sure HitTest supports new layout stuff,
2765 make sure scrollbars support new layout stuff.
2767 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
2769 * XplatUIX11.cs : Patch by Doug Rintoul.
2770 For some IM engines, keypress events need to delay call
2771 to XPending() and XNextEvent() in the loop so that it
2772 does not mess the orders in XIM commit callback.
2773 Some KeyRelease events such as shift keys need to be
2774 processed both in the IM engine and winforms driver
2775 itself since winforms holds its own state check.
2777 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2779 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
2781 * X11Keyboard.cs, XplatUIX11.cs :
2782 add primitive support for XIM input support (preedit-
2783 nothing and status-nothing). It requires precise event
2784 capturing (XSelectInput/"filterEvents") and different
2785 call to XFilterEvent against root window.
2786 Get composed string and send dummy WM_IME_COMPOSITION.
2787 Free XIM and XIC instances in finalizer.
2789 (This first patch does not include suggested changes
2790 by Doug Rintoul. It will follow.)
2792 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2794 * DataGridView.cs: When binding to a property, if the property
2795 doesn't have a setter, set the column to readonly.
2798 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2800 * ComboBox.cs: Guard against NRE if an arrow key is hit while
2801 we aren't dropped down. Support Home/End in DropDownList mode.
2804 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2806 * TreeNodeCollection.cs: Don't increment count until we've
2807 saved our index to return.
2810 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2812 * Label.cs: Add padding to the label's AutoSize calculation.
2815 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2817 * ListBindingHelper.cs: Actually implement GetListName method.
2819 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2821 * BindingSource.cs: Throw the propert expceptions for some methods, as
2822 well as detect the list item type for Add method if DataSource is null.
2824 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2826 * DataGridViewCell.cs: I don't know why I commented this out,
2827 putting it back for now.
2829 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2831 * DataGridViewCell.cs: Remove storage for owning column, just
2833 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2834 * DataGridViewColumnHeaderCell.cs: If the header text has been
2835 explicitly set, return it.
2838 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2840 * DataGridViewRowCollection.cs: Disable row sharing when
2841 using data binding. Its a great feature, but lets work on
2842 getting DGV usable first before we worry about optimizations.
2844 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2846 * BindingSource.cs: When resetting our internal list, compute list
2847 item type information to be used for indirect list access. Also
2848 implement/tune some properties and methods related to the list access
2850 * ListBindingHelper.cs: Add a stub for GetListName method, used from
2853 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2855 * DataGridView.cs: If RowCount is increased while ColumnCount
2856 is zero, add a column. [Fixes bug #331649]
2858 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2860 * DataGridViewRowCollection.cs: When adding new rows for
2861 databinding, make sure they are place before the add row.
2864 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2866 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
2867 instead of Index order.
2869 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2871 * DataGridView.cs: If columns are added by increasing ColumnCount,
2872 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
2875 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2877 * DataGridView.cs: Turn off and on the "new row" when
2878 AllowUserToAddRows is toggled. When the handle is created,
2879 set current cell and selected cell/row/col.
2881 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2883 * ComboBox.cs: When navigating the drop down by keyboard, we
2884 need to scroll the list box if our selection moves out of the
2885 currently shown items. [Fixes bug #371990]
2887 2008-03-24 Luke Page <luke.a.page@gmail.com>
2889 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
2890 on the control. Also now handles unicode compatibility characters and
2891 stores the unicode compatibility length on the stack. Fixes Bugs
2892 #355198 and #366436.
2894 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2896 * BindingSource..cs: Take into account DataMember when re-creating the
2897 List property, and also create a specific kind of list as needed.
2899 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2901 * ListBindingHelper.cs: Add a new case for GetList () method - when we
2902 get an empty IEnumerable, try to detect whether the datamember is
2903 valid or not for that type, if true, return null, and throw exception
2906 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
2908 * ComboBox.cs: Alt-Down should drop down the list, Esc should
2909 retract it. [Fixes bug #371989]
2911 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
2913 * PropertyGrid.cs: Initialize the sorting button as pushed.
2915 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
2918 - Visually select the PropertyTab.
2919 - Filter Properties by Attributes properly.
2921 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2923 * MenuItem.cs: Remove menu item from parent when disposed.
2926 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2928 * ToolBar.cs: Don't reset layout_type if Dock = None.
2930 2008-03-21 Andreia Gaita <avidigal@novell.com>
2932 * UserControl.cs: Select the first available control when we get focus.
2935 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2937 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2938 the content if we are in edit mode. [Fixes bug #343964]
2940 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2942 * DataGridViewCell.cs: Fix border painting for column headers.
2944 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2946 * BindingSource.cs: When setting or resetting data source,
2947 use ListBindingHelper.GetList () method, since it will get the list in
2948 case datasource is IListSource.
2950 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
2952 * DataGridViewCell.cs: Implement lots more stuffs.
2954 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2956 * PropertyGridView.cs, GridEntry.cs: Implement support for
2957 UITypeEditor.IsDropDownResizable.
2959 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
2961 * DataGridViewCell.cs: Remove unused variables, improve how
2962 several of the property getters work.
2963 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
2964 get its size from the parent row/col.
2966 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2968 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
2969 user alters manually the PropertyTabs collection via the
2970 PropertyTabs property.
2972 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2974 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
2975 new tests for them to be sure to be compatible with .net.
2977 2008-03-20 Andreia Gaita <avidigal@novell.com>
2979 * WebBrowserBase.cs: Fix attributes, add events
2980 * WebBrowser.cs: Fix Padding signature
2982 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
2984 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
2986 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
2988 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
2989 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2990 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
2991 passes the new suite of tests for it.
2993 2008-03-18 Andreia Gaita <avidigal@novell.com>
2995 * WebBrowser.cs: Add missing attributes, missing Padding and
2996 DefaultSize properties, remove extraneous getters
2998 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3000 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3003 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3005 * ComboBox.cs: Move resetting the selected index to keypress
3006 instead of textchanged. Changing the text programmatically
3007 should not trigger resetting the selected index. Fixes test.
3009 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3011 * ComboBox.cs: When the user types into the textbox, reset
3012 the selected index to -1. [Fixes bug #371672]
3014 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3016 * FileDialog.cs: Support Control-A for selecting everything
3017 in an OpenFileDialog. [Fixes bug #371564]
3019 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
3021 * DataGridView.cs: When row/column visible/height properties
3022 change, invalidate. Take the NIEX out of InvalidateRow/Column
3023 etc. We don't support them yet, but we can just invalidate
3024 everything until we do support them. (Added MonoTODO). Set
3025 proper control styles.
3026 * DataGridViewRow.cs: Don't call PaintHeader if row headers
3029 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3031 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3033 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3035 * DataGridViewRow.cs: Only paint the white background in
3036 cell bounds, the row bounds extends past the cells if the
3037 grid width isn't as wide as the DGV.
3039 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3041 * DataGridView*: Completely revamp the drawing to match the
3042 public API. Our grids now look better, and call all the
3043 appropriate methods and event to allow users to override
3044 the painting and do their own.
3046 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3048 * ListBindingHelper.cs: Implement 2.0 GetList methods.
3050 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3052 * DataGridView.cs: Implement BorderStyle.
3054 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3056 * FileDialog.cs: Apply patch from Andy Hume: Any time we
3057 are comparing attributes, make sure we only look at the
3058 one we are interested. These calls were failing if there
3059 were more than one attribute.
3062 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3064 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3066 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3068 * PageSetupDialog.cs: Stub EnableMetric.
3069 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3070 * PrintPreviewDialog.cs: Add ProcessDialogKey,
3073 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3075 * MonthCalendar.cs: Remove unused variable.
3077 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3079 * DataGridView*.cs: corcompare stuffs.
3081 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3083 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3084 The savings aren't worth the extra code to fix the optimization.
3087 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3089 * ToolBar.cs: Always call base.Dock in the Dock override so that
3090 Control's layout_type gets reset correctly.
3093 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
3095 * X11Dnd.cs: End DnD operation also for the middle mouse button.
3097 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3099 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3100 at the same time we do explicit ones, because we have to give all
3101 other controls on the container a chance to handle explicit ones
3102 first. If no one has an explicit mnemonic, then we can let the
3103 MenuStrip have a shot at implicit mnemonics.
3104 * MenuStrip.cs: Create an implicit mnemonic function.
3105 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3106 mnemonics for MenuStrips.
3109 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3111 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3112 DataGridColumnStyle.cs: corcompare stuffs.
3114 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3116 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3117 Details - This is needed after we added the bits to use any available
3118 column also for List and SmallIcon view.
3120 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3122 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3123 at the proper place, not only when changing SelectedIndex and changing
3124 the selection using keys/mouse, as .net does.
3126 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3128 * ControlBindingsCollection.cs: Implement last 2.0
3129 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3130 in the new 2.0 Add methods.
3132 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3134 * ListBox.cs: When calling SelectedIndexCollection.Clear,
3135 return if no items are previously selected - this is done to avoid
3136 firing OnSelectedIndexChanged without need to do so. Also,
3137 when creating handle ensure that the focused item is visible (as
3140 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3142 * ListBox.cs: Rewrote/refactored most of selection code. We require
3143 the following things in selection: a) keep selection sorted (both
3144 indices and items), b) SelectedIndices automatically detect the
3145 selection mode, c) SelectedIndex should be the first selected item
3146 index, d) Need to Focus/adjust scroll bar when selecting a new item,
3147 not only for SelectedIndex, which is specially important in Multi*
3148 selection modes. To achieve this we are moving the selection core to
3149 SelectedIndexCollection and make depend all selection modifications on
3153 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3155 * ToolStrip.cs: Enable implicit mnemonics for drop down
3156 menu strips. [Fixes part of bug #367692]
3158 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3160 corcompare - fix parameter names [stragglers].
3161 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3162 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3165 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3167 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3168 was a mnemonic pressed as well as Alt. Also, if nothing handles a
3169 mnemonic, let the ToolStripManager have it even if it doesn't
3170 have a matching mnemonic.
3173 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3175 corcompare - fix warning about implicit implementation
3176 * ToolStrip.cs: Add IToolStripData interface.
3177 * IToolStripData.cs: Add.
3179 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3181 corcompare - fix warning about implicit implementation
3182 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3185 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3187 corcompare - fix parameter names [N-Z].
3188 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3189 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3190 PropertyManager.cs, RichTextBox.cs,
3191 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3192 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3193 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3194 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3195 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3196 ToolStripContentPanel.cs, ToolStripDropDown.cs,
3197 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3198 ToolStripPanel.cs, ToolStripSeparator.cs,
3199 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3200 UICuesEventHandler.cs, UpDownBase.cs.
3202 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3204 corcompare - fix parameter names [G-M].
3205 GridColumnStylesCollection.cs, GridItemCollection.cs,
3206 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3207 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3208 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3209 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3210 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3212 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3214 corcompare - fix parameter names [A-F].
3215 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3216 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3217 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3218 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3219 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3220 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3221 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3223 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3225 * GridEntry.cs: Do not convert not only if the types match,
3226 but also if the property type is assigneable from the value's
3230 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3232 * PropertyGridView.cs:
3233 - Subscribe to the listbox only once and not everytime.
3234 - Update the textbox even if SetValue fails.
3235 - Close the listbox before calling TrySetValue just in case.
3238 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
3240 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3242 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3244 * ListView.cs: Implement support for custom column width based on
3245 Columns collection (we were previously using this collection only
3249 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3251 * ListViewItem.cs: For Tile view, always set bounds for the first
3252 subitem (which is the main one), and also don't let Width be larger
3253 than ListView.TileSize.Width. Improve code readibility also.
3254 * ThemeWin32Classic.cs: When painting the ListViewItem instances
3255 in Tile view, _always_ use the NoWrap flag.
3258 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
3260 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
3262 * GridEntry.cs: For MS compitability make all child properties
3263 readonly if the parent is readonly. Ugh.
3264 [Fixes bug #365945 and #365944]
3266 2008-02-29 Andreia Gaita <avidigal@novell.com>
3268 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3269 relative to the history
3271 2008-02-29 Andreia Gaita <avidigal@novell.com>
3273 * HtmlElement.cs: More handlers for mouse and key events
3275 2008-02-28 Andreia Gaita <avidigal@novell.com>
3277 * WebBrowserBase.cs: MouseClick sig changed.
3278 * HtmlHistory.cs: Implement history navigation
3279 * HtmlElement.cs: Add event handlers, and connect them.
3281 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
3284 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3285 so that DisplayNameAttribute doesn't get ignored.
3286 - Check for ParenthesizeNameAttribute and parenthesize the Label.
3287 - Add support for PasswordPropertyTextAttribute
3288 * PropertyGridView.cs: Check if an entry is a password.
3289 [Fixes bugs #365589, #365586, #365588]
3291 2008-02-28 Andreia Gaita <avidigal@novell.com>
3293 * PropertyGridView.cs: Revert the message filtering change, as we
3294 need it to block after all. Remove block parameter, unnecessary.
3296 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
3298 * UserControl.cs: Better implementation of GetPreferredSize.
3299 First step to fixing bug #361441.
3301 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3303 * Binding.cs: Actually implement data binding support for
3304 classes implementing IBindableComponent.
3305 * ControlBindingsCollection.cs: Likewise.
3307 2008-02-26 Andreia Gaita <avidigal@novell.com>
3309 * PropertyGridView.cs: Use a message filter to check when to
3312 2008-02-26 Andreia Gaita <avidigal@novell.com>
3314 * Application.cs: Change the message_filters loop so a filter
3315 can be removed while looping.
3317 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
3319 * GridEntry.cs: Optimization in ToggleValue so that it caches
3321 * PropertyGridView.cs: An optimization so that the property isn't
3322 re-read twice for each StandardValue added to the drop-down menu.
3323 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3327 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
3329 * Application.cs: Apply patch from Justin Cherniak to match
3330 MS better for ProductName, ProductVersion, and CompanyName.
3333 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3335 * Binding.cs: Actually implement 2.0 NullValue property. Also
3336 when changing the formatting related properties, only update the state
3337 if formatting_enabled is true (we don't mind otherwise).
3339 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
3341 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3344 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3346 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
3347 of GetType on the current value as it uses reflection to
3348 determine the type. This fixes the case where the new value is
3351 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3353 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3356 2008-02-24 Luke Page <luke.a.page@gmail.com>
3358 * Line.cs, TextControl.cs: Implement offset x and y so that a
3359 document doesn't have to begin at (0,0) on the viewpoint.
3360 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3361 bars and switches the text alignment (and therefore is now
3362 implemented for textbox). Fixes #321383.
3364 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3366 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3367 properties. Also when changing FormattingEnabled update the control
3368 property -as .Net does-.
3370 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3372 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3373 * Binding.cs: Add stubs for the overloads of the Add method in
3376 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3378 * Binding.cs: PullData () returns a false value if we got an exception.
3379 Also when validating the control and we get an error, instead of
3380 setting the value of the previous one, cancel the event (tested in 1.1
3383 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
3385 * TreeView.cs: Make selected_node and highlighted_node internal.
3386 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3387 to null when Nodes.Clear is called.
3390 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3392 * FontDialog.cs: Ensure that when the Font is set in code,
3393 all the gui pieces are updated accordingly.
3396 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3398 * TextRenderer.cs: Respect proposed size for MeasureString.
3399 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3400 autosize, use a proposed width to force wrapping for long text.
3403 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3405 * TreeView.cs: Factor in checkboxes = false and state images in
3406 to HitTest. [Fixes bug #363360]
3408 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3410 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3411 when drawing the selected range.
3414 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3416 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3417 ResizeRedraw control styles.
3420 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3422 * TreeView.cs: StateImages are basically custom checkboxes, so
3423 factor their size the same as real checkboxes when determining
3427 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3429 * MessageBox.cs: Make the message box wider if the form caption
3430 is longer than the text in the form.
3433 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3435 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3437 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3439 * TreeNode.cs: Guard against an NRE when the parent's
3440 StateImageList hasn't been set.
3443 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3445 * SplitContainer.cs: Add SupportsTransparentBackColor and
3446 OptimizedDoubleBuffering control styles.
3449 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3451 * Application.cs: For the app data paths and the registry key paths,
3452 ensure they are created before returning them to the user.
3455 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3457 * Application.cs: Guard against an NRE in CompanyName and
3460 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3462 * Application.cs: For CompanyName, ProductName, and ProductVersion,
3463 make sure we handle all three cases correctly: attribute is present,
3464 attribute is present but is an empty string, and attribute is not
3467 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3469 * PropertyGridView.cs:
3470 - Fix a NRE that caused a test failure
3471 - Another performance improvement - cache the standard values
3474 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3476 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3479 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
3481 * PropertyGridView.cs: Fix a big performance bug.
3483 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3485 * SelectionRange.cs: Apply patch from Andy Hume to make
3486 constructor behavior more accurate. [Fixes bug #362117]
3488 2008-02-19 Andreia Gaita <avidigal@novell.com>
3490 * Control.cs: Added a new flag is_disposing to track if the
3491 window is currently in the process of being disposed of.
3492 This is used so that, when firing visibility changes triggered
3493 by unparenting controls during Dispose, the control doesn't
3496 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3498 * ComboBox.cs: Set height to preferred height when the handle
3499 is created. [Fixes bug #360862]
3501 2008-02-18 Andreia Gaita <avidigal@novell.com>
3503 * XplatUIX11.cs: Create FosterParent with border width at 0.
3504 With the previous value of 4, everytime a control got reparented
3505 from parent = null, it's location would be shifted right and
3506 down by 4, since these coordinates would be offset by the
3507 FosterParent's border width.
3509 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
3511 * Control.cs: During diposing firstly remove ourselfes from
3512 the parent and *then* destroy our handle, because removing
3513 ourselfes from the parent controls collection causes
3514 VisibilityChange, etc events, which require a handle and end
3515 up recreating the control.
3517 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
3519 * GridEntry.cs: Set expanded state before notifying that the
3520 expansion has taken place.
3521 * PropertyGridView.cs:
3522 - Set the propertygridtextbox text to the selected
3523 StandardValue before proceeding to setting it.
3524 - Scrolling bugfixes.
3526 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3529 - Fix ValueText to not return null.
3530 - Fix conversion error reporting to actually happen.
3531 * PropertyGridView.cs: Set entry only if the text has changed.
3534 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3537 - Fix handling of a null current value.
3538 - Swallow editor exceptions.
3541 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3543 * PropertyGrid.cs: Clear current items first thing before
3544 repopulating subitems.
3546 - Handle null StandardValuesCollection.
3547 - Mark as not editable if there is no PropertyDescriptor and
3548 if the Converter cannot convert from string.
3549 [Part of fix for bugs #360666 and #358332]
3551 2008-02-15 Luke Page <luke.a.page@gmail.com>
3552 * MaskedTextBox.cs: Now skips non editable characters after a
3553 character has been entered and we are progressing to the next
3554 position in the MaskedTextBox.
3556 2008-02-15 Luke Page <luke.a.page@gmail.com>
3557 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3558 that it changes the selection rather than just repositioning the
3559 cursor. Fixes Bug #360873.
3561 2008-02-15 Luke Page <luke.a.page@gmail.com>
3562 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3563 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3564 correctly. See #359330
3566 2008-02-15 Andreia Gaita <avidigal@novell.com>
3568 * XplatUIX11.cs: If the handle is null when posting a message, use the
3569 current thread queue to post instead. Fixes #332409
3571 * SendKeys.cs: Slight optimization
3573 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
3575 * PropertyGrid.cs, PropertyGridView.cs:
3576 Fix multiple scrolling and sizing issues.
3579 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3581 * PropertyGridView.cs: Ensure that drop down editors are shown
3582 in the WorkingArea of the screen.
3585 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3587 * GridEntry.cs: Fail silently when UITypeEditor is missing.
3590 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3592 * Binding.cs: Implement 2.0 DataSourceNullValue property.
3594 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3596 * PropertyGridView.cs:
3597 - Clear the controls in the drop down form after it is hidden.
3598 - Fix Width sizing of the dropdown editors to match MSFT.
3600 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3602 * PropertyGridView.cs:
3603 - Fix height for drawing the grid entry
3604 text value, so that it clips multiline text properly.
3605 - Fix unfocusing to match MSFT.
3607 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3609 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3610 Fixes a bug where on repopulation after value changed items become
3613 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3615 * Binding.cs: For the 2.0 profile, look for a
3616 'PropertyChanged' event in the target control, and add checks for
3617 DataSourceUpdateMode property to change -or not- the data source
3618 from validation/control property change.
3620 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
3622 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3623 not compare struct with null in 2.0).
3625 2008-02-10 Luke Page <luke.a.page@gmail.com>
3627 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3628 updates the provider and if not using a provider, uses the internal document
3629 class implementation of password char. Also when showing text, uses display string
3630 from the provider, instead of the actual text.
3632 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3634 * Binding.cs: Ooooops, forgot to take into account the data_source
3635 and binding_member_info null case (it was breaking the Binding tests).
3637 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3639 * Binding.cs: Implement support for data source changes exposed by
3640 'PropertyNameChanged' events, and update the control property as
3643 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3645 * Binding.cs: Implement 2.0 WriteValue method.
3647 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3649 Commit patch from James Purcell for better AutoScale implementation:
3651 * ScaleControl should call GetScaledBounds with the control's total size rather
3652 than client size. GetScaledBounds should handle ignoring the borders in its
3653 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
3654 (for the most part they just call the base code now since that is fixed).
3655 * Added ScaleChildrenInternal to allow controls to disable scaling of children
3656 without having to override ScaleChildren (since none of .NET's controls do).
3657 This is required for most controls in Mono that have scrollbars to prevent the
3658 scrollbars from being moved/resized.
3659 * Nested ContainerControls can have a different scale mode than their parent.
3660 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3661 designer produce different results both of which look incorrect).
3662 * Default AutoScaleMode for ContainerControl should be Inherit.
3663 * Simplified workaround for ComboBox scaling issue.
3664 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
3665 1.0 style auto scaling should scale the whole control's size instead of
3666 ignoring the borders (except for Form) and the rounding is done differently to
3667 preserve control alignment.
3668 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3670 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3671 * CurrentAutoScaleDimensions should round the estimated character width instead
3673 * ListBox's GetScaledBounds should always use the height it was set to instead
3674 of the height that was passed in. This prevents rounding errors from
3675 accumulating quickly with IntegralHeight.
3678 2008-02-08 Andreia Gaita <avidigal@novell.com>
3680 * Form.cs: Add a null check (darn it).
3682 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3684 * MdiClient.cs: Make sure the requesting form actually owns the
3685 control menu items before removing them. Also, use
3686 Suspend/ResumeLayout when adding or removing items so we only
3690 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3692 * Control.cs: Guard against an NRE in ShowFocusCues.
3695 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3697 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3698 property, as well as stubbing DataSourceUpdateMode.
3700 2008-02-08 Andreia Gaita <avidigal@novell.com>
3702 * Form.cs: When closing forms, get focus back to the active control of the
3703 active form. [Fixes #341314, corner case]
3705 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3707 * MdiClient.cs: After we move the scrollbars, invalidate the NC
3708 area, so any old scrollbar artifacts are cleaned up.
3711 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3713 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3714 for our menus, display that control box menu instead of the 1.1
3717 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3719 * MdiControlStrip.cs: Add property to access the mdi form tied to
3721 * MdiClient.cs: Be smarter about removing and adding toolstripitems
3722 to the implicitly merged menu. Every time we clicked the form, items
3723 were getting removed and the re-added, causing the form to jump around
3724 as the menu resized.
3726 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3728 * MdiClient.cs: Make sure the NormalBounds always gets set. It
3729 was being reset by the implicit menu merge for menustrips.
3732 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3734 * Form.cs: Don't do the previous change when WindowState = Normal,
3735 or it messes up where the window is placed. Fixes test failure.
3737 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3739 * Form.cs: When becoming visible, if we are an MDI child, call
3740 SetWindowState with a dummy old_state so that changes will actually
3742 [Fixes the 2nd part of bug #325473]
3744 2008-02-07 Andreia Gaita <avidigal@novell.com>
3746 * Control.cs: Reset properties to their pre parent-change values in case
3747 the new parent == null (in which case we're basically removing the control,
3748 and don't want any events fired due to fake property changes)
3751 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
3753 * PropertyGridView.cs:
3754 - Refactor SetValue to allow setting the value
3755 when a custom editor is used, but the entry is not editable.
3756 - Remove the custom editor control on CloseDropDown.
3759 2008-02-06 Andreia Gaita <avidigal@novell.com>
3761 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3762 reflection only on 1.1, this property is public on system.drawing on 2.0.
3765 2008-02-06 Andreia Gaita <avidigal@novell.com>
3767 * WebBrowser.cs: Do a normal page refresh by default.
3769 2008-02-05 Andreia Gaita <avidigal@novell.com>
3771 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
3772 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3773 platforms. Fixes #359036
3775 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
3776 platform-specific flags.
3778 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3780 * Binding.cs: Add 2.0 BindableComponent property - just return control
3783 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
3785 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3786 Jonathan for this patch. Fixes #358442.
3788 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
3790 * Form.cs: If we change the active MDI child form, let the others
3791 know they need to repaint their title bar so it will appear inactive.
3792 [Fixes part 1 of bug #325473]
3794 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
3796 * PropertyGridView.cs: Do not trucate custom editors' width
3797 and align them to the left.
3798 [Fixes #358353 and #358349]
3800 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3802 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3803 Also fix the arguments passed to CollectionChangeEventArgs in the
3806 2008-02-04 Geoff Norton <gnorton@novell.com>
3808 * Hwnd.cs: The conversion to Quartz coordinates happens in
3809 System.Drawing. Removing this translation from here.
3811 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
3813 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3814 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3815 GridItemCollection.cs:
3816 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3818 2008-02-04 Geoff Norton <gnorton@novell.com>
3820 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
3821 SYSKEYUP if any other key has been pressed in the mean time.
3824 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3826 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3827 when the item in current position is different than 0. Also, save the
3828 item index in the beginning of the operation, instead of getting the
3829 index of the item when the event is actually performed. Lastly clean
3830 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3834 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3836 * Form.cs: Alt-Minus for MDI children system menu should work
3837 with both the minus keys on the keyboard.
3840 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3842 * Control.cs: Don't invalidate on region change. The WM should
3843 take care of this automagically. Keeps us out of an infinite
3844 paint loop if someone changes the Region in the OnPaint.
3847 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
3849 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3851 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3853 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3854 down the MonthCalendar only on F4, not Alt+F4.
3855 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3858 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3860 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3861 if its part of a DateTimePicker, else, use the back color.
3864 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3866 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
3869 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3871 * CurrencyManager.cs: When we get a ListChanged event from our source,
3872 always fire our own ListChanged event, as .Net does.
3874 2008-02-03 Luke Page <luke.a.page@gmail.com>
3876 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
3879 2008-02-03 Luke Page <luke.a.page@gmail.com>
3881 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
3882 property. Removed if for richtext property that was always true.
3883 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
3885 2008-02-03 Luke Page <luke.a.page@gmail.com>
3887 * TextBoxBase.cs - commited patch from James Purcell that
3888 correctly sets the FixedHeight control style when the MultiLine
3889 property is changed on a TextBox control. Fixes bug 358229.
3891 2008-02-02 Luke Page <luke.a.page@gmail.com>
3893 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
3894 Fixes bug 351938 - caret is positioned correctly when drawn
3895 and when calculating textual position of caret, no longer
3896 has a NRE in certain situations.
3898 2008-02-01 Geoff Norton <gnorton@novell.com>
3900 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
3901 get that region removed from the paint event.
3902 * XplatUICarbon.cs: Remove the window mapping after disposing of
3903 window. Prevents a crash with handle reuse. Optimize exposes
3904 only onto visible windows (rare; but possible).
3906 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3908 * UpDownBase.cs: Make sure the internal textbox calls the base's
3909 OnMouseDown and OnMouseUp so the textbox will function correctly.
3910 There were notes saying it doesn't chain up, but its an internal
3911 class, so our implementation may differ.
3914 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3916 * ListBox.cs: Fix a logic error and don't process MouseDown
3917 for mouse buttons other than Left.
3919 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3921 * Control.cs: Remove HeightInternal.
3922 * ListBox.cs: Commit patch from James Purcell that correctly
3923 calculates heights for ListBoxen.
3926 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3928 * Label.cs: Apply patch from James Purcell that corrects the
3929 signature of the AutoSize property.
3932 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3934 * ListBox.cs: Don't throw [Mouse]Click events for buttons
3935 other than the left mouse button.
3937 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
3939 * Control.cs: Remove my awesome optimization as it caused some
3940 regressions with control ordering. :(
3943 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
3945 * PropertyGridView.cs: Fix a NRE on double click when there is no
3948 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3950 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
3952 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
3954 * ListBox.cs: Call MouseClick and MouseDoubleClick.
3957 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3959 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
3960 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
3961 instead of Hwnd.bmp_g.
3963 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3965 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
3966 Use the Hwnd one instead.
3968 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3970 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
3972 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3974 * Form.cs: corcompare for RestoreBounds.
3976 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3978 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
3980 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
3982 * Form.cs: Handle Alt-Minus for MDI children forms.
3983 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
3984 Add mnemonics to the control menu.
3987 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3989 * Binding.cs: Initial implementation bits of FormattingEnabled
3990 property and BindingComplete event (2.0).
3991 * BindingCompleteEventArgs.cs: Internal methods for setting error text
3994 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
3996 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
3997 table.Location. [Fixes bug #354672]
3999 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4001 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4002 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
4004 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4006 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4007 of doing all the re-bound work, just invalidate and call SetControlText
4008 to set the updated text of selected item to our textbox.
4011 2008-01-28 Andreia Gaita <avidigal@novell.com>
4013 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
4014 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4015 missing properties and methods. Add Load, Unload, Error, GotFocus,
4016 LostFocus, Resize, Scroll events (only load and unload are connected)
4018 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
4020 * AccessibleObject.cs: Modified argument names to match MS.
4021 * Button.cs: Modified argument names to match MS.
4022 * BindingContext.cs: Modified argument names to match MS.
4023 * BindingMemberInfo.cs: Modified argument names to match MS.
4024 * ButtonBase.cs: Modified argument names to match MS.
4025 * ComboBox.cs: Modified argument names to match MS.
4026 * Control.cs: Modified argument names to match MS.
4027 * CheckedListBox.cs: Modified argument names to match MS.
4028 * CommonDialog.cs: Modified argument names to match MS.
4029 * DataGrid.cs: Modified argument names to match MS.
4030 * CursorConverter.cs: Modified argument names to match MS.
4031 * ControlPaint.cs: Modified argument names to match MS.
4032 * CheckBox.cs: Modified argument names to match MS.
4033 * ControlBindingsCollection.cs: Modified argument names to match MS.
4034 * BindingSource.cs: Modified argument names to match MS.
4035 * DataFormats.cs: Modified argument names to match MS.
4036 * ContainerControl.cs: Modified argument names to match MS.
4037 * CurrencyManager.cs: Modified argument names to match MS.
4038 * Application.cs: Modified argument names to match MS.
4039 * ContextMenuStrip.cs: Modified argument names to match MS.
4040 * ContextMenu.cs: Modified argument names to match MS.
4041 * BindingManagerBase.cs: Modified argument names to match MS.
4042 * WindowsFormsSection.cs: Fixed line ending.
4044 2008-01-27 Andreia Gaita <avidigal@novell.com>
4046 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4047 detecting that the dropdown toolwindow is hidden. EndLoop outside the
4050 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
4052 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4053 MS. Code formatting.
4055 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4057 * Binding.cs: Don't avoid the Format event if the control
4058 property type is object. Also, if the value retrieved by
4059 the data source is null _and_ the control proeprty type
4060 is object, return Convert.DBNull (match .Net).
4061 Fixes part of #324286.
4063 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4065 * ListControl.cs: Since we are getting two BinginContextChanged events
4066 for the same binding context instance (when the control is added to
4067 form, and when the form is actually shown), take it into account only the
4068 first time for a given binding context instance.
4069 Fixes part of #324286.
4071 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4073 * PropertryGridView.cs: Ops.
4075 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4077 * PropertyGridView.cs: Close dropdown form if the owner form is
4081 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
4083 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
4084 RootGridEntry.cs, CategoryGridEntry.cs:
4085 PropertyGrid rewrite.
4086 - Rewrite all of the control logic in PropertyGrid.
4087 - Rewrite all of the ComponentModel logic in GridEntry.
4088 - Rewrite all UI work in PropertyGridView.
4089 - Many bugfixes, etc.
4091 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
4093 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4094 when all contained controls are autosize or dock-fill. Also take into
4095 account when the total percentage of column/row sizes is not 100%.
4098 2008-01-24 Andreia Gaita <avidigal@novell.com>
4101 - Save a reference to the IDocument in the instance and
4102 use that one instead of going to WebHost.Document; the document that the
4103 WebHost returns might not be the right one (in case of frames).
4104 - Use the hashcode returned from the IDocument interface.
4105 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
4106 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
4107 LinkColor, Url, VisitedColor, Window
4110 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
4111 set_Attribute, NextSibling, Parent, TagName, AppendChild,
4112 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4113 SetAttribute, Equals, equality operators.
4114 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
4115 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
4117 * HtmlElementCollection.cs: Change implementation to use a generic
4118 collection. Implemented Enumerator and CopyTo
4120 * HtmlHistory.cs: Add constructor, no implementation yet.
4122 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4123 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
4124 Equals, equality operators.
4126 * HtmlWindowCollection.cs: Implemented.
4128 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4129 has been deprecated).
4131 * WebBrowserBase.cs: Use Completed event to track document loading
4132 (Navigated has been deprecated)
4134 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
4136 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
4137 level MenuItems do not respect tabs.
4140 2008-01-23 Geoff Norton <gnorton@novell.com>
4142 * XplatUICarbon.cs: Ensure that windows are created in their initial
4143 FormWindowState. Finished fixing Fullscreen windows on Carbon
4145 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4147 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4148 be used as grab_control. Also save status of capture before show ContextMenu
4149 and restore it after close.
4151 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4153 * Control.cs: Internal FindRootParent method added to return high control
4156 2008-01-23 Geoff Norton <gnorton@novell.com>
4158 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4159 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4160 it work again. Handle HITTEST events.
4162 2008-01-23 Geoff Norton <gnorton@novell.com>
4164 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
4165 a crash in certain cases. Support for fullscreen windows in certain cases.
4167 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
4169 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4172 2008-01-23 Geoff Norton <gnorton@novell.com>
4174 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4176 2008-01-23 Geoff Norton <gnorton@novell.com>
4178 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
4180 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4182 * SplitContainer.cs: Remove unused declarations.
4183 * Binding.cs: Remove unused declarations.
4185 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4187 * Form.cs: Remove unused declaration of 'active' in Activate method.
4188 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
4189 prevent compilation warnings.
4190 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4191 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4192 * Bindings.cs: Remove unused formatting_enabled declaration.
4193 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4195 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4197 * PropertyGridView.cs: Remove usused 'ex' declaration.
4198 * DataGridView.cs: Remove unused declarations.
4200 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4202 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4204 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
4205 to Control class, it makes possible to grab menu to controls that can't
4206 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4207 WmMouseMove removed since it was used only to track menu events.
4210 - Moved all active_tracker stuff from Form.
4211 - ProcessActiveTracker added to prevent code duplicity, now mouse events
4212 can call this method instead of reimplement all necessary code handle for
4214 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4218 - Remove special handle to ToolStripOverflow, now we can grab menu to
4219 controls that can't reach Form using parent tree.
4220 - Change type of grab_control from Form to Control.
4222 2008-01-22 Geoff Norton <gnorton@novell.com>
4224 * TextBoxBase.cs: Split up the sizing of controls and placing of
4225 controls. Fixes a bug where scrollbars in Reflector could be sized
4226 wrong and have non-working thumbers.
4228 2008-01-23 Geoff Norton <gnorton@novell.com>
4230 * XplatUI.cs: Refactor environment variables to default support to the
4231 Carbon driver on the Mac.
4233 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4235 * Label.cs: Uses new LabelPainter for drawing operations.
4236 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4237 * Theme.cs: DrawLabel and LabelDefaultSize removed.
4239 2008-01-22 Geoff Norton <gnorton@novell.com>
4241 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4243 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4245 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4246 through the normal flat button code and don't draw the checkbox glyph.
4247 * Theme.cs: Button->ButtonBase signature change.
4250 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4252 * LinkLabel.cs: Uses new class LinkLabelPainter.
4254 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4256 * MessageBox.cs: Adjust right border space, we don't need to add
4257 "space_border*2" two times.
4259 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4261 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4262 becomes a wrapper around Padding.
4263 [Fixes a part of bug #354676]
4265 2008-01-22 Geoff Norton <gnorton@novell.com>
4267 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
4268 acquired. Also ensure the buffer is large enough to grab the header
4269 we need on linux boxes.
4271 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4273 * Control.cs: Implement a custom enumerator so people can delete
4274 from the Controls collection while in a foreach.
4277 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4279 * PropertyGridView.cs: Fix focusing behavior:
4280 - Tab should focus the grid text box.
4281 - Clicking on the labels shouldn't focus the grid text box.
4283 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4285 * PropertyGridView.cs: IsValueTypeGridItem should return true
4288 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4290 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4291 - Renamed GridEntry.SelectedObjects to TargetObjects to better
4292 reflect the property name role.
4293 - PropertyGrid.GetTarget is not required as the target is known
4295 - Setting values will handle value types as a special case now and
4296 populate them up in the chain.
4299 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
4301 * Hwnd.cs: Create a public property for the Graphics we keep around.
4303 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4305 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
4306 when the current object selection changes.
4307 Fixes failing test SelectedObject_Null2.B5.
4309 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4311 * PropertyGrid.cs: Process Browsable properties with
4312 DesignerSerializationVisibilityAttribute.Content as being expandable.
4313 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4314 will not be expandable. We should be nested components-friendly now.
4316 2008-01-21 Andreia Gaita <avidigal@novell.com>
4318 * WebBrowserBase.cs: Check if control was loaded properly,
4319 don't bind if it wasn't.
4321 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
4322 GetElementFromPoint, equality operators, OpenNew, Write.
4323 Remove extra set_Body
4325 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4327 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4328 that makes our AutoScale* stuff more tolerant to different orders
4329 of being set. [Fixes bug #354669]
4331 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4333 * PropertyGridView.cs, PropertyGridTextBox.cs:
4334 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4335 [Fixes #339005 and #348209]
4337 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4339 * PropertyGridView.cs: Hide the grid text box before adjusting it
4340 for the newly selected GridItem.
4343 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4345 * Form.cs: Give MDI children the opportunity to cancel the parent form
4346 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
4347 properly for both the parent and child.
4348 * Application.cs: Signature of internal method changed, pass the previous
4352 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4354 * PropertyGridView.cs: Set the property value only if it has changed.
4357 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4359 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4360 If the mouse hasn't actually moved, ignore these messages so the currently
4361 highlighted menuitem isn't reset to the one under the mouse.
4364 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4366 * PropertyGridView.cs: When the property changes Invalidate the GridItem
4367 in order for the properties with UITypeEditor.GetPaintValueSupported == true
4368 to reflect the change visually.
4371 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4373 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4374 to 2.0 button drawing.
4375 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
4376 the button text is tall enough for one line. LineLimit says it will
4377 always draw at least one line, but it is a lie.
4380 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
4382 * XplatUIStructs.cs, X11Keyboard.cs :
4383 added some more VK_* keys to be handled.
4385 2008-01-16 Andreia Gaita <avidigal@novell.com>
4387 * Control.cs: Check if there is a container before setting or getting
4388 the validation flag.
4390 2008-01-16 Andreia Gaita <avidigal@novell.com>
4392 * ContainerControl.cs: Add flag to track if a control cancels validation,
4393 so we don't fire click events.
4396 - (HandleClick) Check if validation was cancelled before firing the click
4397 events (doubleclicks are fired, but not clicks)
4398 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
4399 ContainerControl.set_ActiveControl, but in the case of non-selectable
4400 controls, like a Label, activecontrol is not set.
4402 * ButtonBase.cs: Only fire clicks if validation passes.
4406 2008-01-16 Geoff Norton <gnorton@novell.com>
4408 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4411 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
4413 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4414 SelectedPath, just display the default dialog instead of crashing.
4417 2008-01-16 Geoff Norton <gnorton@novell.com>
4419 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
4420 AddExpose instead of trusting apples compositing manager which doesn't
4421 work for our use case. Remove some dead code causing warnings and
4422 redecorate some other code to prevent warnings.
4424 2008-01-16 Geoff Norton <gnorton@novell.com>
4426 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
4427 carbon signals us to redraw. Fixes another portion of the flickering bug
4429 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4431 * Form.cs: Prevent the MdiParent property to be set when value is the same
4432 as value already set. Fixes bug #328019.
4434 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4436 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
4437 it prevents NRE when closing mdi child windows. Fixes bug #325211.
4439 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4441 * InternalWindowManager.cs: Invalidade close button after mouse up when
4442 mdi form is prevented to close.
4444 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4446 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4447 thanks to Andy Hume. Fixes bug #325433.
4449 2008-01-16 Andreia Gaita <avidigal@novell.com>
4451 * LinkLabel.cs: Reset focused_index when resellecting the control.
4454 2008-01-15 Geoff Norton <gnorton@novell.com>
4456 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
4459 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4461 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4464 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4466 * ContainerControl.cs: Setting AutoScaleMode to anything should set
4467 Form.AutoScale to false.
4468 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4469 AutoScaleBaseSize should be changed on Font change unless it has been
4473 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4475 * MenuAPI.cs: On instance of MenuTracker check if source control is
4476 ToolStripOverflow and use properly method to find form.
4479 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4481 [Fixes bug #323241 Transparent toolbar support]
4483 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4486 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4487 defined in control style to mimic win32 behavior.
4489 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
4490 it will be transparent.
4492 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4494 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4495 CreateParams for ToolBar controls.
4497 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4499 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4500 FixedToolWindow, SizeableToolWindow, or None for border styles have
4501 different minimum sizes than regular forms. Implemented to fix
4502 regression in PDN with toolbox being too wide.
4504 2008-01-14 Andreia Gaita <avidigal@novell.com>
4506 * HtmlElementCollection.cs: Implemented
4508 * HtmlElement.cs: Implemented:
4516 * HtmlDocument.cs: Implemented GetElementsByTagName.
4518 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4520 * Screen.cs: Stub BitsPerPixel to always return 32.
4522 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4524 * Form.cs: Implement RestoreBounds.
4526 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4528 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4529 Sebastien and his fabulous magical problem-finding machine:
4530 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
4531 respect the value set.
4533 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4535 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4536 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
4538 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4540 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4541 messages (to match .Net), we need to remove the capture ourselves.
4543 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
4545 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4546 will process the message and close our window.
4549 2008-01-10 Geoff Norton <gnorton@novell.com>
4551 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
4552 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
4555 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4557 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
4560 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4562 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
4563 Linux doesn't care, having a minimum matches MS and keeps the window
4564 from becoming too small to use window decorations.
4567 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4569 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4570 ShowFocusCues. Make focus rectangles fit the text instead of the whole
4571 control. [Fixes bug #325419]
4573 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4575 * ComboBox.cs: Guard against an NRE if the user open a new form from a
4576 SelectedIndexChanged event. This closes the combobox dropdown, and we
4577 were trying to dispose it. [Fixes bug #352830]
4579 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4581 * Control.cs, Form.cs: Implement the necessary semantics for
4582 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
4583 to determine if a focus rectangle should be drawn.
4584 * PropertyGrid.cs: Fix property visibility to match override.
4585 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4587 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4589 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4592 2008-01-09 Geoff Norton <gnorton@novell.com>
4594 * XplatUICarbon.cs: Scroll windows in the correct direction.
4596 2008-01-09 Geoff Norton <gnorton@novell.com>
4598 * XplatUICarbon.cs: Track all created utility windows so we can hide them
4599 when the app is deactivated or spaces is enabled.
4601 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4603 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4604 extra separation pixel for the label rect origin if SmallImageList is
4605 null, and thus we don't need that separation between icon and label
4607 Patch by Ernesto Carrea.
4610 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
4612 * StatusStrip.cs: Invalidate after completing a layout. The base
4613 OnLayout does this, but we don't call the base.
4614 * ToolStripItem.cs: Revert the previous change to invalidate after
4616 [Fixes bug #351341 better.]
4618 2008-01-07 Geoff Norton <gnorton@novell.com>
4620 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
4621 not a notification to exit the application. Listen for WM_QUIT
4624 2008-01-07 Andreia Gaita <avidigal@novell.com>
4626 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4628 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
4630 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4631 so it can repaint at the correct location.
4634 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4636 * ListControl.cs: SelectedValue should return a null value if
4637 SelectedIndex is -1. Also, when setting it, it should throw an
4638 ArgumentNullException if the value is null, as well as taking
4639 into account the String.Empty value, instead of ignoring it (we have
4640 tests for that now).
4641 Fixes part of #324286.
4643 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
4645 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4646 SelectionStart is updated after pressing enter. Fixes bug #351918.
4648 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4650 * TextControl.cs: Revert a piece r92316 that prevented the fix
4651 from working when there were multiple tags in the text box.
4654 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4656 * TextControl.cs: Apply patch from Luke Page that prevents an
4657 NRE when determining the beginning of a paragraph.
4660 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4662 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4663 caret gets moved with clicking away from a selected block of
4664 text. Fixes bug #351885.
4666 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4668 * TextControl.cs: Apply patch from Luke Page that takes line
4669 alignment into account for mouse selection, so that center and
4670 right aligned text can be selected.
4673 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4675 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4676 issues after loading an RTF file by using the correct line feeds.
4679 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4681 * TextControl.cs: When deleting multiple line selections, we need
4682 to invalidate every line beginning at the first line of the selection.
4683 Patch from Luke Page fixes bug #351791.
4685 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4687 * ListControl.cs: When getting a CurrencyManager.PositionChanged
4688 event, don't set SelectedIndex if the number of items is 1. This is
4689 because, for the first item, PositionChanged is fired _before_
4690 ItemChanged (the place where we actually populate the items), and
4691 leave us in a temporary invalid state (since items collection is
4695 2008-01-04 Geoff Norton <gnorton@novell.com>
4697 * XplatUICarbon.cs: Create native toolwindows instead of
4698 the managed drawing ones.
4700 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4702 * LineTag.cs: If the line doesn't have any characters, return
4703 0 for GetCharIndex. Fixes an AOORE exception after certain
4704 caret movements. Fixes bug #351683. Patch by Luke Page.
4706 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4708 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4709 is hit when there is selected text, only the selected text gets
4710 deleted, not the character in front of the selection as well.
4713 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715 * ComboBox.cs: When the values are displayed, calculate the
4716 ComboListBox scrollbar's LargeChange based on the visible area's
4717 height and the actuall ItemHeight, instead of calculating it
4718 based on MaxDropItems value, since it's not used by our _current_
4722 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4724 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4725 Patch from Luke Page that fixes issues with font colors and styles
4726 not showing up in a readonly RichTextBox. Fixes bug #324354.
4728 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4730 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4731 from Luke Page. This one fixes bug #349926.
4733 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4735 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4736 an item in the IBindingList source changes with
4737 ListChangedType.ItemAdded. Ignore for now firing the event for other
4738 changes, since we want to have tests for those cases as well.
4740 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4742 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4745 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4747 * TextBoxTextRenderer.cs: Implement a cache for measuring each
4748 character. This is effective because the typical usage of a
4749 TextBox is with a limited amount of fonts and characters, and
4750 the current implementation of TextBox measures everything one
4751 character at a time. Another second or two speedup for bug #347238.
4753 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4755 * Control.cs: Rewrite the Font getter to only query the parent's
4756 Font property once instead of twice. Since this operation is
4757 recursive, the queries were growing exponentially as the control
4758 tree got deeper. Another second or two speedup for bug #347238.
4760 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4762 * Control.cs: Avoid setting a parent (and more importantly, updating
4763 the zorder of all its children) if the parent is already correct in
4764 WmShowWindow. Decreases the startup time of the test case on bug
4765 #347238 from 35 seconds to 11 seconds.
4767 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4769 * X11Dnd.cs: When the dnd operation has started and we are
4770 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4771 This is done to match .Net, which doesn't send those messages after
4772 dnd operation was completed/cancelled.
4775 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
4777 * ToolStrip.cs: Previous change should be != null, not == null.
4780 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
4782 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4783 user may have moved the mouse off the current item during the event.
4785 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4787 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4788 calling GetItemAt for every MouseMove event by also taking into
4789 account whether any mouse button is pressed (probably dragging);
4790 if so, we can call GetItemAt, and if not, try to not call it
4791 (GetItemAt can be quite expensive when used with a large number of items).
4793 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4795 * ListView.cs: Implement -finally- support for dnd, by calling
4796 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4798 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4799 simple calculation of distances for all the items in the owner
4802 2007-12-21 Geoff Norton <gnorton@novell.com>
4804 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
4805 for windows that are originally created as invisible. Fixes missing
4806 main window in paint-mono.
4808 2007-12-21 Geoff Norton <gnorton@novell.com>
4810 * XplatUICarbon.cs: Register our D&D handler. Register our custom
4811 subclass handler for com.novell.mwfview subclassing HIView. Implement
4812 Pasteboard and Dnd methods.
4814 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4816 * ListBox.cs: When we got focus, give focus to first item if there
4817 wasn't any pervious focused item. Also update navigation to depend on
4818 SelectedIndex rather than FocusedItem, just as .Net does.
4821 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4823 * ListBox.cs: Both FindString and FindStringExact methods must do an
4824 case insensitive search, should allow the last valid index to be
4825 passed in the overload taking an initial index, and should also
4826 continue searching from the top back to the specified index when it
4829 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4831 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4832 redraw issue, and allows RichTextBox to draw colored text even while
4833 disabled or readonly.
4835 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4837 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4838 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4839 and doesn't grey text in a disabled RichTextBox.
4841 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4843 * RichTextBox.cs: Apply patch from Luke Page that adds better support
4844 for many RTF commands: quad alignment, separate formatting for blocks
4845 inside groups, and ParDef support. Makes the test case from bug #324589
4848 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4850 * LineTag.cs: Fix an error in the new Draw method that caused
4851 a crash when rendering the document on bug #324589.
4853 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4855 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4856 TextControl.cs: Apply patch from Luke Page that adds support
4857 for URL links in RichTextBox.
4858 [Fixes enhancement #342516]
4860 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
4862 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
4863 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
4865 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4867 * ListBox.cs: When a key gets pressed, try to find a string
4868 if the key is a character or a digit.
4871 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
4873 * TableLayoutPanel.cs: Remove some unused variables.
4875 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
4877 * DateTimePicker.cs: Commit patch from Luke Page that ensures
4878 we don't end up at an invalid date when we click the up/down
4879 spinner to change the month or year. Fixes bug #348682.
4881 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
4883 * Application.cs: Calling Exit in 2.0 should chain to the
4884 Exit (CancelEventArgs) version so it can be cancelled.
4885 * Form.cs: Create a flag to allow raising the Closing
4886 events to be skipped. We raise them once in Application.Exit
4887 and don't want to raise them again when the Form is actually
4888 closed. [Fixes bug #349073]
4890 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
4892 * ToolStripDropDown.cs: Guard against an NRE when there
4893 hasn't been a mainform set in the application context.
4896 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4898 * ListBox.cs: When SetBoundsCore gets called, besides
4899 calling UpdateScrollBars, update the value of
4900 last_visible_index, since we could need to show more items
4901 than before, and we need to let the paint routines know that.
4904 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4906 * ListView.cs: Add DesignerSerializationVisibility attribute to
4907 InsertionMark property.
4908 * ListViewItem.cs: Add same attribute to Position property.
4910 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4912 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
4915 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
4917 * ThemeWin32Classic.cs: Don't draw the background on a
4918 flat button if there is a background image.
4921 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4923 * ListBox.cs: If we remove the item currently selected,
4924 remove it not only from SelectedItems, but also
4925 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
4926 the items count decreased and focused_item has bigger value than that.
4928 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4930 * Control.cs: Perform our layout after we resize ourselves
4931 if we had to adjust our AutoSize. Missed commit for bug
4934 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4936 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4937 we can provide an implementation of AutoSize.
4940 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4942 * ListBox.cs: Add the internal overload Sort (bool paint),
4943 to indicate whether we actually need a paint or we will
4944 call Refresh ourselves. This way we don't request a paint
4945 _before_ having an updated and valid layout.
4948 2007-12-12 Andreia Gaita <avidigal@novell.com>
4950 * XPlatUIX11.cs: Send paint messages when updating a systray icon
4951 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
4952 properly invalidated.
4955 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4957 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
4958 don't simply assign it to our internal group field, but instead
4959 use our Group property, which should do all the neccessary work
4960 required to support groups. Fixes an issue reported to me (mail) by a
4961 guy using this new feature.
4963 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
4965 * Control.cs: Use Scale instead of ScaleControl to ensure the
4966 whole hierarchy gets scaled.
4969 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4971 * DateTimePicker.cs: Don't set the internal MonthCalendar's
4972 Parent property. Doing this causes the control to be hosted by
4973 the Form instead of being a popup window.
4976 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4978 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
4979 at an index higher than Count, just use Add instead of Insert.
4982 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
4984 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
4985 DrawPictureBox, this is handled by Control.PaintBackground.
4988 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
4990 * MenuAPI.cs: When process menu keys return true by default only if menu is
4991 active. Fixes bug #342892.
4993 2007-12-09 Andreia Gaita <avidigal@novell.com>
4995 * Control.cs: check if windows are actually mapped before
4996 trying to zorder. Fixes #342509, #346955
4998 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5001 * ListViewInsertionMark.cs:
5002 * ThemeWin32Classic.cs: Implement the drawing side of the
5003 new 2.0 ListView.InsertionMark property.
5005 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
5007 * CurrencyManager.cs: Silence some debug spew.
5009 2007-12-07 Geoff Norton <gnorton@novell.com>
5011 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5012 masks for our children as well as siblings to avoid having to query
5013 Quartz for this information.
5014 * XplatUICarbon.cs: Implement a delegate based system to pass
5015 information to System.Drawing. Implement Async methods. Remove
5016 the hack for the resize thumb and imlpement a transparent Grow Box.
5017 Rework the messaging system to proplery create window's and messages,
5020 2007-12-06 Andreia Gaita <avidigal@novell.com>
5022 * X11Keyboard.cs: Use Xutf8LookupString to support international
5023 characters under alternate codepages. Patch from #340878
5025 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5027 * ListView.cs: When doing layout computations, set position in the
5028 ListView instances (we cache the position just as .Net does).
5029 * ListViewItem.cs: New internal setter method for Position. Also set
5030 position field as also available in 1.1, since we are going to use it
5031 now in the common case.
5033 2007-12-06 Andreia Gaita <avidigal@novell.com>
5035 * Control.cs: When removing controls, get the actual container
5036 to notify about active control changes. Fixes 341314.
5038 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5040 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5042 2007-12-05 Andreia Gaita <avidigal@novell.com>
5044 * Control.cs: When updating the zorder, ignore windows that are not
5045 mapped. Fixes #342509
5047 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5049 * ListViewItem.cs: Actually implement serialization on this class.
5051 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
5053 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5054 LinkCollection. Spaces to tabs, and removed extra tabs.
5056 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5058 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5059 tests to fail (hopefully).
5061 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5063 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5064 the image margin so custom renderers can correctly place it.
5066 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5068 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5069 so custom renderers can correctly place it.
5071 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5073 * Application.cs: Let WM_CHAR messages flow through to controls
5074 hosted in Strips. [Fixes bug #343972]
5076 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5078 * ToolStripManager.cs: Guard against an NRE I ran into.
5080 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5082 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
5083 a Link is manually added to the Links collection, we need to set
5084 its owner, so it can invalidate properly.
5087 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5089 * ListView.cs: When changing ListViewItem.Position (which calls
5090 ListView.ChangeItemLocation), invalidate not only the area
5091 corresponding to the main item, but also to the area occupied
5092 by the items being moved.
5094 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5096 * ListView.cs: When changing the position of a given item,
5097 don't use item bounds, but item areas (which includes the item spacing
5098 between them). Also, use first/last position if the requested
5099 position is outside bounds (as .Net does). Invalidate the previous and
5100 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5101 in a specific position, instead of directly accessing Items collection
5102 (this is done to get the right item - remember an Item can have a
5103 different position in the grid than in the Items collection).
5105 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5107 * MessageBox.cs: Calculate text area instead of just top left, this rect
5108 area will be used in DrawString. Fixes bug #343364.
5110 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5112 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5113 screen width. Partially fixes bug #343364.
5115 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5117 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5118 code inside recalculate, it makes code more simple.
5120 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
5122 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5123 between update or add icon. Fixes bug #324344.
5125 2007-11-21 Andreia Gaita <avidigal@novell.com>
5127 * XPlatUIX11.cs: Do not treat tool windows as if they have no
5128 window manager, since that stretches the drawing area to include
5129 the window decorations, and they get hidden. Reverts r84444 and fixes
5130 #335849 and #342790 (mdi and pdn3 regression)
5132 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5134 * ListView.cs: When setting focused item, try to give focus to the
5135 previous one _only_ if the previous one remains valid.
5138 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
5140 * Application.cs: Revert r89650, as it broke a common case to fix
5141 an obscure case. Fixes bug #342606.
5143 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5145 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5147 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5149 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
5150 alignment. [Fixes #324228]
5152 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5154 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5157 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
5159 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5160 it prevent problems when empty captions. [Fixes #342141]
5162 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5164 * Label.cs: Use Size instead of None. Fixes bug #342077.
5166 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5168 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5170 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5172 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5173 but there isn't a MdiContainer.
5176 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5178 * TextControl.cs: Don't recalculate document if the recalc_start and
5179 recalc_end hasn't changed.
5182 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
5184 * DataGridViewTextBoxCell.cs: Removed CWL.
5186 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5188 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5190 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5192 * TextControl.cs: Missed some code for bug 341534 to trigger a
5193 recalculation when the font changes.
5195 2007-11-16 Andreia Gaita <avidigal@novell.com>
5197 * Control.cs: When updating the zorder, check if the child to update is
5198 the same control that is set to always be on top (i.e., scrollbars), and
5199 just put it on top directly. Fixes BadMatch error on pdn3
5201 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5203 * ListView.cs: Throw the needed exceptions for FindNearestItem.
5205 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5207 * Control.cs: Don't perform a new layout when a label changes its text,
5208 cause label handles its own autosizing.
5211 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5213 * ListView.cs: Implement 2.0 FindNearestItem methods.
5215 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5217 * ToolStripPanel.cs: Make Join at least add the control to the panel,
5218 even if the rest of what Join does isn't supported. Add some more
5219 support for vertical toolbars.
5220 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5221 [Fixes the application breaking parts of bug #341998]
5223 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5225 * ToolStripItem.cs: When determining if we have a check/image margin,
5226 we need to look at ShowCheckMargin as well as ShowImageMargin.
5228 2007-11-15 Geoff Norton <gnorton@novell.com>
5230 * XplatUIOSX.cs: Rename to...
5231 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5232 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
5234 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5236 * KeysConverter.cs: The default values should be an array of Keys, not
5237 strings. Also, the array has more values for 2.0.
5240 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5242 * Application.cs: Change ExecutablePath to use
5243 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5246 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5248 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5249 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5250 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5251 be ignored. Create a new GetLineEnding that can specify which types of
5252 line endings to look for. On Insert, only create new lines for \n and \r\n.
5255 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5257 * TextBoxBase.cs: As we loop through each line changing the font, tell
5258 the document that the line needs to be recalculated. Fixes bug #341534.
5260 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
5261 [Another round of refactoring]
5262 * Line.cs: Add DeleteCharacters.
5263 * LineTag.cs: Add Delete.
5264 * TextBoxBase.cs: Update to use new methods.
5265 * TextControl.cs: Refactor the Delete* methods.
5267 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
5269 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5270 the patch. [Fixes #324856]
5272 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5275 * ListViewItem.cs: Add an initial implementation of
5276 2.0 ListViewItem.Position getter.
5278 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5280 * ListView.cs: Add a reordered_items_indices array, to allow us
5281 to have a different sorting than that of Items (the sorting in Items
5282 could not match the actual sorting in screen). This is needed to
5283 implement a pair of 2.0 features.
5284 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5285 actual position in the ListView grid, since it could have a position
5286 different than its Index (position in ListViewItemCollection).
5288 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5290 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
5291 not draw partial lines.
5292 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5293 LineLimit flag from the base is preserved.
5294 Fixes the windows part of bug #338965.
5296 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5298 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5299 so that it can be canceled in KeyPress.
5302 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5304 * ListView.cs: In ItemControl, reset mouse-handling related
5305 fields even if we dont' have items (we still should reset them when
5306 we had items but then called Items.Clear). Partially based in a patch
5310 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
5312 * Application.cs: In ProductVersion first try AssemblyFileVersion
5313 before falling back to assembly version. Fixes bug #339787.
5315 2007-11-08 Andreia Gaita <avidigal@novell.com>
5317 * HtmlElement.cs: Implement InnerText setter.
5318 * WebBrowserBase.cs: Implement Navigated event support.
5319 Add flag to track when the browser "document" is ready to be retrieved.
5320 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5321 Make sure browser document is ready before retrieving it.
5322 Clean up cached objects (document) when moving to a new page through
5323 any of the navigation methods.
5324 Use the new Mono.WebBrowser.INavigation interface to control navigation.
5325 Implement OnNavigated event.
5327 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
5329 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5330 DrawLinkLabel, this is handled by OnPaintBackground.
5331 Fixes bug #339565, part II.
5333 2007-11-07 Andreia Gaita <avidigal@novell.com>
5335 * Control.cs: Revert r88915. Selecting text on a textbox depends on
5336 getting a Select call on click, so this call needs to be here for now.
5339 2007-11-07 Geoff Norton <gnorton@novell.com>
5341 * OSXStructs.cs: Add the kEventClassApplication constants.
5342 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
5343 application is deactivated otherwise Menu overlays linger on top of
5344 other application windows.
5346 2007-11-07 Geoff Norton <gnorton@novell.com>
5348 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5349 dont support cursors yet anyways. This allows Reflector to run.
5351 2007-11-07 Geoff Norton <gnorton@novell.com>
5353 * XplatUIOSX.cs: Implement DragSize.
5355 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5357 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5358 ItemControl, request the focus, as .Net does. This is needed after
5359 Control does not request focus anymore when it receives a
5362 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
5364 * Label.cs: Make DrawImage internal so it can be called from Theme code.
5365 Remove the DrawImage call from OnPaint.
5366 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5367 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5368 but before we draw the text for DrawLabel and DrawLinkLabel.
5371 2007-11-05 Andreia Gaita <avidigal@novell.com>
5373 * Control.cs: Remove select call on click. Fixes #325809
5375 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5377 * ListViewItem.cs: Add 2.0 Position property getter.
5379 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381 * ListView.cs: Add 2.0 BackgroundImageTiled property.
5382 Also, to make it work properly, change item's BackColor and
5383 BackgroundImageLayout as needed.
5384 * ThemeWin32Classic.cs: Don't fill any background rectangle
5385 in ListView.ItemControl when drawing items; just let the Control
5386 base implementation fill it.
5388 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5390 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5391 as well as adding a custom 'dummy' Converter, as .net does.
5393 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5395 * PropertyGridView.cs: When clicking drop-down button,
5396 select an index in the listbox only if our standard values collection
5397 has one or more items.
5399 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5401 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5404 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5406 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5407 the value is not changed. This ensure a pushed button remains in that
5408 state when clicked again. When switching the value of PropertySort
5409 between Categorized and CategorizedAlphabetical, do not update the
5410 grid items and do not fire a PropertyChangedEvent. When clicking the
5411 sorting buttons, do not modify the PropertySort value when switching
5412 between Categorized and CategorizedAlphabetical but only update the
5415 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5417 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5419 * PropertyGrid.cs: Also put Categorized button in pushed state when
5420 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5421 for help description label.
5423 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5425 * ListView.cs: When calculating the biggest item for a given column,
5426 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5429 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
5431 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5432 value for PropertySort on 1.0 profile. PropertySortChanged event
5433 should only be fired on 2.0 profile. Fixed NullReferenceException
5434 in UpdateSortLayout when PropertyGrid contains no items.
5436 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
5438 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5441 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5443 * ListViewItem.cs: Implement 2.0 IndentCount property.
5445 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5447 * X11Dnd.cs: When sending status in a dnd operation, compare current
5448 effect with the 'allowed' field instead of 'drag_data.Allowed', since
5449 the later is only created when a Winforms application is both the
5450 source and the target, but not when we are the target only.
5451 Fixes part of #324251.
5453 2007-11-01 Geoff Norton <gnorton@novell.com>
5455 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5457 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
5458 children out of the drawing view on mac.
5459 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
5460 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5462 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5464 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5465 on the non-hosted-control part of it shouldn't do anything.
5466 Fixes part of bug #327498.
5468 2007-11-01 Andreia Gaita <avidigal@novell.com>
5470 * WebBrowserBase.cs: revert previous change, resize can be called anytime
5472 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5474 * Application.cs: When a toolstrip has the keyboard input loop, let messages
5475 it does not use flow through to controls that are hosted in menus.
5476 Same with mouse clicks.
5477 * Form.cs: Don't close all menus on click if the click is on a
5478 control hosted in a menu.
5479 Fixes part of bug #327498, and part of bug #325969.
5481 2007-10-31 Andreia Gaita <avidigal@novell.com>
5483 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5485 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
5487 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5488 Addresses an issue raised in bug #336218.
5490 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
5492 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5493 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
5495 2007-10-30 Andreia Gaita <avidigal@novell.com>
5497 * ContainerControl.cs: Check if the active control is a
5498 child of a removed control and update active_control accordingly.
5501 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5503 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5504 or the MaxDate. Fixed bug #337693.
5506 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5508 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5509 after calling SetWindowLong for a form, to force an immediate NC refresh.
5510 Fixes first part of bug #325150.
5512 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5514 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5515 simple. Fixes the last part of bug #322668.
5517 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5519 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5520 needs to be TopMost as well, or else the MessageBox is under the form.
5521 Patch by George fixes bug #325300.
5523 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5525 * X11Dnd.cs: When starting a new drag operation, reset the static
5526 'dropped' field to false (previously the implementation didn't reset
5527 it and got confused after the first drag).
5530 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5532 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5533 items instead of re-creating them all. For this purpose we now cache
5534 both CategoryGridEntry items and the GridEntries for the main object's
5536 * GridItem.cs: Make SetParent method abstract.
5537 * GridEntry.cs: Override the SetParent method (already there, but now
5541 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5543 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5544 depending on its depth (as .Net does). Update the needed values in
5545 MouseDown handler. Also draw the plus/minus rect after the label,
5546 so we don't draw on top of it.
5548 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
5550 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5551 processed by forms or controls when menu is active. [Fixes #333548]
5553 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5555 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5556 parent doesn't have focus. This was causing ToolStripTextBoxes to take
5557 focus on mouse over.
5559 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5561 * TextControl.cs: Code cleaning, simplifying.
5563 2007-10-24 Geoff Norton <gnorton@novell.com>
5565 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5566 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5568 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5570 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5571 the cap is maxvalue, not actually 0. [Fixes bug #336218]
5573 2007-10-24 Andreia Gaita <avidigal@novell.com>
5575 * SendKeys.cs: apply jpobst's patch to bug #332409
5577 2007-10-23 Andreia Gaita <avidigal@novell.com>
5579 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
5580 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5583 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5585 * PropertyGridView.cs: If a property has an UIEditor available,
5586 make the drop-down/editor button available only if the property
5589 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5591 * PropertyGridView.cs: Don't make the grid item textbox
5592 editable when a drop-down control is available, but
5593 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5594 true. The same bur the color of the grid item value's label.
5596 2007-10-22 Geoff Norton <gnorton@novell.com>
5598 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5599 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5600 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
5601 driver. Padd the bottom of all real windows so the resize thumb doesn't
5602 obscure scroll/status bars.
5604 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
5606 * WindowsFormsSection.cs: Implement.
5608 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5610 * MdiClient.cs: Maximize new active mdi child when a maximized child is
5611 closed see #325434 patch.
5613 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5615 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5618 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5620 * PropertyGridView.cs: When showing the textbox for a grid item,
5621 have two local variables to store the read-only and non-editable
5622 status of a grid item (we were previously using just one variable
5623 to do this, when actually they are slightly different).
5624 Fixes part of #325023.
5626 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5628 * PropertyGridView.cs: When showing a drop-down list, try to get the
5629 values using TypeConverter.ConvertTo (to convert to a string). Fixes
5632 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5634 * PropertyGrid.cs: When updating a property and populating sub grid
5635 items, remove the previous ones, and invalidate the specific area.
5636 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5637 area behind a grid item.
5638 * GridItemCollection.cs: Add an internal Clear method, to allow us to
5639 clean the items if needed (specially for controls implementing
5640 ICustomTypeDescriptor and returning a variable number of properties).
5643 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
5645 * TextControl.cs: Clean up and document the Insert function.
5647 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5649 * TextControl.cs: Make sure we know our start point for updating the view
5650 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
5653 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5655 * ListView: Couple of corcompare fixes.
5657 2007-10-17 Geoff Norton <gnorton@novell.com>
5659 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
5660 the title caption of real window.
5662 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5664 * ErrorProvider.cs: Add the error provider's internal window to a
5665 containercontrol when the parent changes. [Fixes bug #329714]
5667 2007-10-17 Geoff Norton <gnorton@novell.com>
5669 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
5670 When we make a new window; restore the old active window - fixes dialogs.
5672 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5674 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5675 when modifying a property, and if found then invalidate as
5677 Fixes part of #324865.
5679 2007-10-17 Geoff Norton <gnorton@novell.com>
5681 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
5682 highly experimental. Fixed coordinate translation. Fixed window locations.
5683 Initial support for clipping. Implemented NC areas and menus. Support for
5684 launching from command line from Will Johansson (wjohansson@atacomm.com).
5685 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5686 wjohansson@atacomm.com)
5687 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5688 Hwnds now track the existence of all of their children for Mac clipping.
5689 * XplatUI.cs: Re-enabled the native driver on the Mac.
5691 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5693 * Line.cs: Move the InsertString function to here.
5694 * TextControl.cs: Cleanup some duplicate code, move some InsertString
5695 functionality to Line.
5697 2007-10-17 Geoff Norton <gnorton@novell.com>
5699 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
5701 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
5703 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5704 always setting value to true.
5705 * Form.cs: When changing AcceptButton, notify new and original button.
5707 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
5709 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5710 a custom control that implements IButtonControl instead of an actual
5711 button. [Fixes bug #334244]
5713 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
5715 * Form.cs: Change SelectActiveControl to internal, we need to call it in
5718 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5719 active control when activate a new mdi window.
5723 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
5725 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5729 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5731 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5732 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
5733 so we always recalculate the whole document instead of just the new part.
5736 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5738 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5739 when the mouse was to the left of the first character in the line.
5741 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5743 * TextBox.cs, TextBoxBase.cs: When setting the document's password
5744 character, use the property instead of the variable so that the
5745 UseSystemPasswordChar property is taken into account.
5748 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5750 * FolderBrowserDialog.cs: When a node is right clicked and the "New
5751 folder" contex menu appears, actually add the new folder to it, even
5752 if the node is not currently selected. Still use SelectedNode in case
5753 there wasn't found a node under the pointer.
5756 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5758 * ListViewItem.cs: When retrieving the focused state, the index check
5759 should be done only when ListView is in virtualmode, as it is an
5760 expensive check for normal mode.
5762 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5764 * ListViewItem.cs: Make the focus state information be stored
5765 in the ListView, not in the items. This is done to match the MS
5766 behaviour for items that are not yet part of a ListView control;
5767 besides that, since just one item can be focused at the same time,
5768 we save a little space in our items.
5769 Fixes part of #331643.
5771 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5773 * ComboBox.cs: When focus is lost, deselect the text. When setting
5774 text of control, select all text. Do not hide selection when control
5775 does not have focus. Fixes bug #333663.
5777 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5779 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5780 instead of ArgumentException when SelectionLength is set to negative
5781 value. Added same check to SelectionStart. Code formatting.
5783 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5785 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5786 or SelectionStart. Code formatting.
5788 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5790 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5791 indicating that there was not a previous drag-and-drop operation going
5793 Fixes part of #325071.
5795 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5797 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5798 AllowedEffect, don't let the drop operation happen.
5801 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5803 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5805 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5807 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5810 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5812 * Line.cs: Add a method that finds the tag that contains an x-coord.
5813 * LineTag.cs: Add a method that finds the character at an x-coord using
5814 a binary search, the old way was a linear search.
5815 * TextControl.cs: Change FindCursor to use the above new methods.
5817 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5819 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5820 value different than AllowedEffect). This should be possible to
5821 indicate that dragging is not possible in some control/area.
5823 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
5825 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
5826 descent internally when font changes instead of outside code being responsible
5828 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5829 instead of accessing internal variables.
5831 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
5833 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5834 remove special treatment for ArrangeIcons since it is already arranged.
5836 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5838 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5839 the Win32 backend uses Color.
5840 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5841 Refactor to store a Color instead of a Brush for Color.
5843 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5845 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5846 away. I didn't realize I needed this when I refactored these earlier.
5848 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5850 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5851 store a Color structure and use the ResPool for back color instead of
5852 holding onto brushes.
5854 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5856 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5859 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5861 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
5862 to recalculate its size. Fixes a part of bug #331052.
5864 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5866 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
5867 button. Fixes a part of bug #331052.
5869 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5871 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
5873 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
5877 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5879 * TextBoxTextRenderer.cs: Don't make this a static class, as static
5880 doesn't exist in 1.1. (Thanks jb!)
5882 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5884 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
5885 class to allow us to use different backends on different platforms.
5886 Linux uses the current [Draw|Measure]String backend. Windows uses
5887 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
5888 of GDI+. This leads to better looking text and more accurate measurements
5889 on Windows, fixing many of the reported issues.
5890 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
5892 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5894 * FolderBrowserDialog.cs: When running on Windows,
5895 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
5896 since we must match both "C:" and "C:\" forms. A little hackish, but
5900 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5902 * ListView.cs: When calling EndEdit (after editing an item),
5903 create a new instance of LabelEditEventArgs to keep clean the fields
5904 in case we get a new call to BeginEdit; also do Application.DoEvents
5905 to have focus in synch. This is a fix similar to TreeView's #325244.
5907 2007-10-07 Andreia Gaita <avidigal@novell.com>
5909 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
5910 * WebBrowserBase.cs: Added dialog support, calling the
5911 WebBrowserDialogs classes for each specific dialog type.
5913 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5915 * ListView.cs: When the last item is focused and is removed,
5916 move the focus to the previous item (in Items order). This is what MS
5920 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5922 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
5923 instead of the opposite (RemoveAt call Remove). This is a better
5924 approach since we don't need to to a pair of traversals when using
5927 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5929 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
5930 check that the node actually has nodes, and if not, move to the
5931 parent node instead.
5934 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5936 * TreeView.cs: Move the previous change to the general case (to
5937 call Application.DoEvents in cases where the method was called by
5940 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5942 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5943 call Application.DoEvents. This is neccessary when we get a call to
5944 BeginEdit from an AfterLabelEdit handler, because the focus always
5945 goes to the TreeView, even if we try to give it to our
5946 LabelEditTextBox. The call do Application.DoEvents seems to
5947 synchronize the focus, basically.
5950 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5952 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
5953 should be false. This also removes some nasty recursive paths. Fixes
5956 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
5958 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
5959 state to normal. Also resize window when cascading. Fixes #325433.
5961 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
5963 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
5964 DefaultForeColor, as drawing empty colored lines isn't very useful.
5965 [Fixes the not drawn lines part of bug #324358]
5967 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
5969 * TextControl.cs: Move Line and LineTag classes into separate files to
5970 make things easier to find.
5971 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
5972 * RichTextBox.cs: Capitalize LineTag.Length property access.
5973 - This is purely an organizational/formatting change, no logic changed. -
5975 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5977 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
5980 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5982 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
5985 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5987 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
5988 prevent calling of OnBackColorChanged. Fixes #325321.
5990 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
5992 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
5993 because control can be disabled because owner is disabled.
5995 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
5997 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
5998 string.Empty, test failed from previous change.
6000 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6002 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6003 is null, not String.Empty. See bug #323038.
6005 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
6007 * TextControl.cs: Change the margins to match MS a little better.
6008 Still not perfect for X11 due to some DrawString differences, but
6009 is still an improvement over the old stuff.
6010 Partially fixes #324467.
6012 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6014 * FolderBrowserDialog.cs: When using MyComputer as
6015 RootFolder, let absolute paths be considered as valid ones. Also, use
6016 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6017 for Windows compatibility.
6018 Partially fixes #325247.
6020 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6022 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6023 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6024 method, since it causes the dialog to not select folders directly
6025 under the root path (when setting SelectedPath property).
6027 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6029 * TreeNode.cs: When calling Expand/Collapse and need to call
6030 ExpandBelow/CollapseBelow respectively, take into account
6031 partially visible nodes (previously Expanding/Collapsing
6032 a partially visible node in the bottom was not updating its +- sign).
6034 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6036 * TreeView.cs: When calling Expand on a TreeNode, and we need to
6037 expand nodes below (ExpandBelow), scroll the entire Viewport
6038 area if the node is above it and not visible (instead of scrolling
6039 the area from node's Bottom, which applies only when the node is
6043 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6045 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6046 node in the bottom area (as .Net does). This is done to preserve the
6047 scroll position when ExpandAll is called before handle is created for
6048 the 1.1 profile (bottom area, as opposed to top area in 2.0).
6051 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6053 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
6054 bottom area if we are in fact not using the vertical scroll bar.
6057 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6059 * Control.cs: Comment out a double buffering optimization that doesn't
6060 take into account invalidates created in OnPaint, causing the control
6061 to never be redrawn. It would take quite a bit of work to work around
6062 this, but I left it commented with an explanation for later possible
6066 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6068 * Control.cs: Ask parent to perform a layout if control is AutoSize and
6070 * RadioButton.cs: Implement GetPreferredSizeCore.
6073 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6075 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6078 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6080 * Application.cs: Move the sync context stuff to Run instead of RunLoop
6081 so that it doesn't get uninstalled on modal forms.
6082 * Control.cs: Install a sync context when a control is created.
6083 * WindowsFormsSyncronizationContext.cs: Create a private static control
6084 to invoke on. This is easier than trying to find a created control we
6088 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
6090 * Application.cs: Install a WindowsFormsSynchronizationContext in the
6091 run loop, and uninstall it when done.
6092 * WindowsFormsSynchronizationContext.cs: Implement.
6093 [Fixes the common case in bug #327608]
6095 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
6097 * DataGridViewCellCollection.cs: Added argument checks for indexers.
6098 Use case-insensitive lookup of column name in indexer. Code
6101 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6103 * TreeNode.cs: When collapsing or expanding a node, check whether its
6104 change will affect the visible area (we were previously doing a
6105 IsVisible check, but that check is not enough since children nodes
6106 could be still visible). Fixes part of #325266.
6108 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6110 * TreeView.cs: Always select the first node when the TreeView gets
6111 focus if there is no currently selected node.
6114 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6116 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6117 node being selected is null.
6118 [Patch from Yves Bastide fixes bug #326858]
6120 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6122 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6123 whether all the parent nodes are expanded.
6124 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6125 call RecalculateVisibleOrder if all previous nodes are expanded.
6126 Before that we were doing a IsVisible check, but sometimes the node
6127 is not in the visible area, but _should_already be ready, because of
6128 all previous nodes are expanded. Fixes #325259.
6130 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6132 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6133 portion of the item is clicked.
6135 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6137 * TextControl.cs: Do not tell the system to move the cursor if the
6138 textbox isn't focused. Fixes part of bug #322668.
6140 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6142 * ComboBox.cs: When there are no items, do not show the dropdown if
6143 the down arrow is clicked. Fixes part of bug #322668.
6145 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6147 * ToolStripComboBox.cs: Manually set the size of this control in the
6148 constructor, as it doesn't seem to be the same as DefaultSize.
6149 Fixes a failing monobuild test.
6151 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6153 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6154 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
6156 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6158 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6159 Desktop. This lets it work for people who have moved their desktops
6160 from the default location on windows. For people who have not, both
6161 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
6163 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6165 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6166 but when the base constructor sets this, the control is null. Set it
6167 again in the constructor. Fixes a failing monobuild test.
6169 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6171 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6173 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6176 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6178 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6179 will handle it themselves.
6180 * ToolStripItem.cs: When deciding what the text of a tooltip should
6181 be, use the Text property instead of the text field.
6182 * ToolStripTextBox.cs: Handle tooltips.
6183 [Fixes bugs #325417 and #325973]
6185 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6187 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6188 left click. Fixes the easy part of bug #325969.
6190 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6192 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6193 bug #325406, but set a minimum for StatusStrip to 22 to keep
6194 bug #325390 fixed. I think this minimum would have been figured
6195 up automatically if the grip was actually a ToolStripItem, but it
6198 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6200 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6201 as this is apparently the actual value used by .Net. Also apply
6202 ItemPadding in Details view only, and decrease the general width padding,
6203 to have only the needed. This should fix #324340 in Windows too.
6205 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6207 * ListViewItem.cs: Don't Invalidate item if parent is inside
6208 a BeginUpdate/EndUpdate block. This prevents to have differences
6209 between the ListView and items state, as well as avoid some exceptions
6211 * ListView.cs: Make 'updating' field internal.
6213 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6215 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6216 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6217 size if appropriate.
6218 Fixes reopened bug #325414.
6220 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6222 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6223 * ToolStripItem.cs: Invalidate before and after our new autosize when
6225 Fixes reopened bug #325390.
6227 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6229 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6230 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
6233 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6235 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
6237 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6239 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6240 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6243 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6245 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
6246 item to select when the ToolStrip is selected.
6247 * ToolStripControlHost: Realign the control when the bounds or visibility
6249 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6250 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6252 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6253 base.OnPaint. Was causing text not to be drawn.
6255 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6257 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6259 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6261 * TreeView.cs: When creating the label edit text box,
6262 set is initially to Visible = false. This is done to
6263 prevent a confusion in the layout which makes it to lose
6264 focus when shown the first time. Fixes part of #82592.
6266 2007-09-13 Andreia Gaita <avidigal@novell.com>
6268 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6270 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6272 * ToolStrip.cs: Take Margin into account when calculating preferred
6273 size. Also, allow preferred size to get smaller than the explicit
6275 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6276 First step towards fixing bug #82747.
6278 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6280 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6281 full row select background over the plus/minus glyph. Also, turn
6282 off the focus rectangle for full row select since MS doesn't seem
6283 to ever paint it. [Fixes bug #81839]
6285 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6287 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6288 This was causing keyboard opened dropdowns to lose focus.
6291 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6293 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6294 ClientRectangle instead. [Fixes bug #82838]
6296 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6298 * SplitContainer.cs: We can't reset Visible on every layout because
6299 someone may have set Visible = false explicitly on a SplitterPanel.
6300 Make sure when we switch orientation the SplitterDistance does not
6301 change. Fixes two failing tests.
6303 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6305 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6306 TextRenderer, since the latter is only available in 2.0.
6308 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
6310 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6311 * SplitContainer.cs: Implement FixedPanel layouting.
6313 2007-09-12 Andreia Gaita <avidigal@novell.com>
6315 * WebBrowserBase.cs: setup shutdown routine
6317 2007-09-12 Andreia Gaita <avidigal@novell.com>
6319 * Application.cs: Let keyboard events that are targetted
6320 to non-mwf windows hosted inside mwf (as in, webbrowser),
6321 propagate properly. Fixes keyboard handling on the webbrowser.
6323 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6325 * ListView.cs: When handling MouseUp event and we are
6326 highligting a node with the mouse right button, don't trigger
6327 Before/AfterSelecting event, since we are not actually selecting
6330 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6332 * TreeView.cs: When editing a node, modify the edit text box
6333 depending on the text length (as you are typing), like MS does.
6335 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6337 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
6338 Override GetPreferredSizeCore to perform calculations. Remove custom
6339 autosize logic. [Fixes bug #82739]
6341 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6343 * TextBoxBase.cs: Modified should default to false.
6345 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6347 * Control.cs: Update the anchoring distances even when layout is supspended.
6348 Patch provided by George fixes bug #82805.
6350 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6352 * Control.cs: Provide a setter for ExplicitHeight.
6353 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6354 remove the hacks in here for requested_height.
6357 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6359 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6360 Maximum to lower that its current Value caused an ArgumentException by setting
6361 the Value to the new Maximum.
6363 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6365 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
6366 handle moves to the closest tick when it is being dragged.
6369 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6371 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6372 can't let them count as real items when calculating where to merge in the
6373 user's items. [Fixed bug #82786]
6375 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6377 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6378 who want to add a menu item directly onto a toolstrip.
6379 [Fixes bug #82775, part II]
6381 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6383 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6384 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6385 don't set it to available.
6386 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6387 [Fixes bug #82727, part II]
6389 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6391 * StatusStrip.cs: Change item placement to None if not visible.
6392 * ToolStripItem.cs: Invalidate when InternalVisible changes.
6393 These should have been committed to fix 82723, but I missed them.
6395 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6397 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6398 Click, and that it is only called once.
6399 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6400 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6404 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6406 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6408 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6409 instead of 8, just like above. Partially fixes #82734.
6411 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6413 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
6416 * ListView.cs: Remove extra space between rows in Details view (match
6418 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6421 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
6423 * Application.cs: Modified ProductVersion to return value of
6424 AssemblyInformationVersion if available, and fallback to assembly
6425 version. Fixes bug #82746. Code formatting.
6426 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6429 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6431 * Control.cs: When updating ZOrder for a child control,
6432 take into account the implicit ones (we need it in our controls
6433 using them). Fixes #82642.
6435 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6437 * ToolStripItem.cs: Add support for animated images.
6440 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6442 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
6443 visible. [Fixes bug #82727]
6445 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6447 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6448 so we repaint using the new size. [Fixes bug #82723]
6450 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6452 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6453 option. [Fixes bug #81779]
6455 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6457 * TreeView.cs: Override HandleClick because the StandardClick style is
6458 set to false. According to MSDN (and testing), the click events should
6459 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
6461 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6463 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6464 the border will disappear. Fixes reopened #82653.
6466 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6468 * Control.cs: If the control is autosize, and its preferred size changes
6469 when it lays out its children, tell its parent so it can be re-layed out.
6470 Fixing some of the fallout from r85433.
6472 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6474 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6475 and CheckBox share some code.
6477 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6479 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6480 the TrackBar, not every mouse move. [Fixed bug #82718]
6482 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6484 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6485 under 2.0 rendering. [Fixes bug #82657]
6487 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6489 * TreeView.cs: If we found a TreeNode to display a context menu, but
6490 it doesn't have one to show, let the TreeView display its menu
6491 instead. [Fixes bug #82680]
6493 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6495 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6496 OnPaintInternal instead. Give the internal TextBox a Border property
6497 so it can draw itself more correctly. [Fixes bug #82653]
6499 2007-09-06 Zoltan Varga <vargaz@gmail.com>
6501 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6503 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6505 * ComboBox.cs: Adjust combobox button state to reflect current state when
6506 back to enabled = true. Fixes first issue of #82654.
6508 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6510 * Control.cs: Fix last patch regression, prevent forms to update zorder when
6511 setting visible property.
6513 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6515 * Control.cs: Update zorder after control creation in SetVisibleCore, it
6516 fix zorder for controls initially created as non visible. Fixes #82667.
6518 2007-09-04 Everaldo Canuto <everaldo@simios.org>
6520 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6521 mimic win32 look. Fixes #82656.
6523 2007-09-01 Zoltan Varga <vargaz@gmail.com>
6525 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
6526 Stubs for new net 3.5 classes.
6528 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6530 * ListViewItem.cs: In ListViewItemCollection operations calculate
6531 Layout for owner as well as invalidate it. Fixes part of #82642.
6533 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
6535 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6536 when returning Enabled. [Fixes bug #82651]
6538 2007-08-30 Everaldo Canuto <everaldo@simios.org>
6540 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6542 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6544 * ListView.cs: Put item padding info in a single place
6545 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6547 * ThemeWin32Classic.cs:
6548 * Theme.cs: Likewise.
6550 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6552 * ListView.cs: When a ListViewSubItem instance is invalidated,
6553 invoke Invalidate on parent ListViewItem, not parent ListView.
6556 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6558 * ListView.cs, ListViewItem.cs: corcompare stuffs.
6560 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6562 * BindingMemberInfo.cs: Implement == and != operators.
6564 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6566 * HtmlElementEventArgs.cs: Implement properties.
6568 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6570 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6572 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6574 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6575 Add (string,string,string) to implement the imagekey. It turns out, we
6576 use the requested imagekey whereas .Net does not. So I broke ours to match
6579 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6581 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6583 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6585 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6587 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
6589 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6590 up-to-date. Fixes bug #82618.
6592 2007-08-29 Everaldo Canuto <everaldo@simios.org>
6594 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6595 reflect document changes. Fixes #82367.
6597 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6599 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6600 as well as add new ones. This should make work the BackgroundImage
6601 property for ListView again.
6603 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6605 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6606 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6607 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6609 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6611 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6614 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6616 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6617 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6619 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6621 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
6622 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6624 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
6626 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6628 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
6630 * GridEntry.cs: Implement GetService.
6632 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
6634 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6635 for label editting, make sure we focus back on the TreeView.
6638 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6640 * ListView.cs: Add some 2.0 overrides.
6642 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6644 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6645 because getter dont returns right value before handle creation. Thanks
6646 to George. Fixes #82569.
6648 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6650 * Theme.cs: Revert last patch, it causes error under win32.
6652 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6654 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
6655 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
6656 logical Desktop rather than the physical file system location. Fixes #82603.
6658 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
6660 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6661 for the patch. Fixes #82568.
6663 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6665 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6668 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6670 * ListViewInsertionMark.cs: New stubbed class.
6672 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6674 * FolderBrowserDialog.cs: When adding folder, immediately create the
6675 directory with temporary name and rename the directory when editing
6676 finishes. This matches MS. Ensure the node for the new folder is
6677 selected and LabelEdit is disabled, when editing is either finished
6680 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6682 * TreeView.cs: When editing label of node, ensure node is visible.
6684 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
6686 * PropertyGridView.cs: Set the value only if it has changed.
6688 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6690 * ListView.cs: Some more code refactoring to add support sorting
6691 with groups (now for Details view). Remove unused code also.
6693 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6695 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6696 Not a big fan of reacting immediately to a field in an EventArg, but that's
6697 the way it's done. (This is part of the previous commit that got left out.)
6699 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6701 * FolderBrowserDialog.cs: Removed need for separate description field.
6702 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6703 has focus when dialog box is displayed again, regardless of what
6704 button was pressed the previous time. Set RootFolder and SelectedPath
6705 each time dialog box is displayed. This ensures the treeview is
6706 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6707 when it does not have focus. Added support for more special folders.
6709 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6711 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
6712 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
6713 it resets the edit_args.
6714 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6717 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
6719 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6720 button to match MS. Provide more meaningful exception message for
6721 invalid RootFolder value. Use zero-length string when SelectedPath
6722 is set to null. Allow non-rooted paths in SelectedPath, but ignore
6723 them in FolderBrowserTreeView. Allow folders to be created in
6724 RootFolder. Fixes bug #82576.
6726 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6728 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6729 since we need to take into account the group headers and the margin
6731 * ListViewGroup.cs: Add a rows field to store the number of rows per
6734 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6736 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6737 Anyways, let's just follow the lead.
6739 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6741 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6742 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
6743 controls in GetPreferredSizeCore.
6744 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6747 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6749 * PrintDialog.cs: Need to instantiate the form variable here too.
6751 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6753 * ListView.cs: Do some reorganization to support sorting in groups,
6754 by doing the layout sequentially in ListView.Items. Also add support
6755 for the Default Group, which should be available for items with no
6757 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6758 for storing layout info also.
6759 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6760 collection, as well as providing internal members to do a traversal
6761 including the default group (needed when doing layout/drawing).
6762 * ThemeWin32Classic.cs: When drawing group headers use internal
6763 ListViewGroupCollection members to take into account the default
6766 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
6768 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
6770 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6772 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6773 been created. If handle is created, we want arror keys. If we are editing
6774 a node, we want things like enter, esc, home, end, page up, page down.
6775 Allows Esc to work for FolderBrowserDialog.
6777 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6779 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6780 they close when ESC is pressed. Thanks Andy!
6782 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6784 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6785 This way we can tell if this is a CommonDialog provided with mono, or one
6786 that is being implemented outside by a developer. If it is an external one,
6787 the developer is responsible for showing their own form. We were showing
6788 our blank form after the developer showed his.
6789 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6790 PageSetupDialog.cs: Instantiate form variable in our constructor.
6793 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6795 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6796 and always return true. [Fixes bug #81616]
6798 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6800 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6801 TextBox. [Fixes bug #82549]
6803 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
6805 * FileDialog.cs: When Save/Open is clicked and no filename is selected
6806 or entered then do not close the dialog. Fixes bug #82539. Removed
6809 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
6811 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6812 code to this method. It is calling every time filter changes. This method
6813 will help to fix the bug #80887.
6815 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
6817 * CheckBox.cs: Implement AutoSize calculation.
6819 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
6821 * CheckBox.cs: Use new 2.0 rendering for 2.0.
6822 * Theme.cs: Method declarations for 2.0 rendering path.
6823 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6825 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6827 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6829 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6831 * ListViewGroupCollection.cs: Implement AddRange the right way, to
6832 only call Redraw on the parent one time.
6834 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6836 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6837 GetClipboardContent.
6838 * DataGridViewCell.cs: Implemented GetClipboardContent,
6839 GetEditedFormattedValue, GetFormattedValue.
6840 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6842 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
6844 * TableLayoutStyleCollection.cs: corcompare fix.
6846 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6848 * DataObject.cs: Implemented retrieval of convertible / not convertible
6851 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
6853 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6854 ourselves. This ensures the entire old bounds are repainted, in case our new
6855 size is smaller. [Fixes bug #82518]
6857 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
6859 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6860 flag to make fast handle of mouse events, without this the mouse move is
6861 handled in some manner, whether it is a mouse move or not. Fixes #81588.
6863 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6865 * ListView.cs: When doing layout calculations don't use a ref
6866 param to keep the current item; instead use its Index value (this
6867 is specially important when doing the layout with Groups
6868 and Items being sparse). Also don't take into account items added to
6869 the Group but not yet added to the main ListView.Items collection.
6871 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6873 * ListViewGroupCollection.cs: Forgot to mimic an issue
6874 in the indexer (don't assign the ListView owner for new values).
6876 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6878 * ListViewGroupCollection.cs: Make the string indexer use
6879 the int based indexer to re-use code, instead of duplicate the code.
6880 Also Redraw as needed and take into account null values.
6882 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
6884 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
6887 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
6889 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
6890 when other buttons are clicked or navigated to.
6892 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6894 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
6895 it's XplatUIX11 that attaches them.
6897 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6899 * DataGridView.cs: If a column has been added, recreate the editing row.
6902 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6904 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
6905 of the tag to draw. Makes disappearing text show up again.
6907 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6909 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
6910 Contents. Fixes #82487.
6912 2007-08-19 Andreia Gaita <avidigal@novell.com>
6914 * Added HtmlElement.cs, HtmlElementCollection.cs,
6915 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
6917 2007-08-19 Andreia Gaita <avidigal@novell.com>
6919 * BindingSource.cs: Implement this, dispose and getenumerator.
6920 * DataGridViewRowCollection.cs: Move the InvalidOperationException
6921 out of AddInternal, throw it only on public Add calls. The
6922 UsingWebBrowser sample was blowing up with this when setting the
6923 DataSource after adding DataBindings, so it's likely that .net
6924 only throws this exception when Add is called directly.
6926 * ToolStripControlHost.cs: Return the hosted control's text
6927 property, and not the ToolStripItem one (it would always return
6930 * HtmlDocument.cs: Implement GetElementById and All
6931 * WebBrowser.cs: Remove exception on set_DocumentStream.
6933 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6935 * Form.cs: Fix the max and min value for opacity (0~1).
6937 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6940 * DataGridTableStyle.cs: Default header font is now null, on getter it
6941 returns datagrid font when is null. On setter permits null.
6944 - When ResetHeaderFont set header font to null.
6945 - On EndInit set grid_style.DataGrid.
6947 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6949 * TabControl.cs: Fix regression in default padding x.
6951 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6953 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
6955 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6957 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
6958 not 2. Fixes #82229.
6960 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6962 * TabControl.cs: Fix tab size when image height is less than text height.
6963 Partially fixes #81837.
6965 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6967 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
6968 "alt + tab". It works only for Win32, for X11 theres no way to remove window
6969 from taskbar and keep it on "alt_tab". Fixes #81722.
6971 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6973 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
6974 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
6975 Fixes #80877 and #79418.
6977 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6979 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
6980 between position and one of the screen borders. Fixes #82349.
6982 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6984 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
6985 the MessageBox in the taskbar. Fixes #82457.
6987 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
6989 * MessageBox.cs: Fix form size when icon is set and text height is bigger
6990 than icon. Fixes #82468.
6992 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6994 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
6995 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
6996 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
6997 Refactored HandleNCCalcSize somewhat to avoid code duplication.
6998 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
6999 FormBorderStyle to decide if we're calculating a new size from the
7000 client size or not. CreateParams: Don't fake tool windows, only the X11
7001 backend manages toolwindows manually.
7003 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7005 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7006 ObjectDisposedException.
7008 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7010 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
7011 in OnLoad should not have any effect. [Fixes bug #82470]
7013 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7015 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7016 paint for controls that create their own ToolTipWindow instead of
7017 going through ToolTip.
7019 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7021 * ToolTip.cs: Make Hide internal instead of public to match MS API.
7023 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7025 * ListViewGroupCollection.cs: Use generic List instead of an
7026 ArrayList, since this collection is 2.0 only.
7028 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
7030 * ToolTip.cs (Hide): Made public to make the build work (should
7031 this not be public?).
7033 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7035 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7037 * ToolTip.cs: Add an internal Visible property to facilitate transition.
7039 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7041 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7042 PopupEventHandler.cs: Make these internal for 1.1.
7043 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7044 use ToolTipWindow internals.
7045 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
7046 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7048 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7050 * X11Dnd.cs: Add a null check.
7052 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7054 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7055 nothing else succeeds. Fixes #82453.
7057 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7059 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7060 rectangle if we're painting to another window than the one the paint
7061 message was generated on. Simplify the code somewhat, which makes
7062 PaintEventEnd also simpler.
7064 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7066 * Control.cs: When changing parent of a form, let the form decide whether
7067 XplatUI.SetParent should be called or not.
7068 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7069 recreating the handle. If the new parent's handle isn't created, don't
7070 recreate our handle, just destroy it. CreateParams: Check if the
7071 parent's handle is created before fetching it.
7073 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7075 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7076 Update calls to PaintEventStart/End to take a Message argument.
7077 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7078 take a Message argument.
7079 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7080 Message argument, and handle the case where we don't paint to the window
7081 for which the paint message was generated.
7083 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7085 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7086 Marshal.GetLastWin32Error. Plug nasty memory leak in
7087 PaintEventStart/End, we were creating a DC we weren't releasing.
7089 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7091 * ListView.cs: Add Groups support in Details view. Also have a small
7092 method to do the layout of the group header. Don't use a separate
7093 method to do the groups calculation in Icons view, since our methods
7094 are now a little simpler.
7095 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7097 * ThemeWin32Classic.cs: Likewise.
7099 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7101 * Application.cs: Add FilterMessage method and rework our message loop
7104 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7106 * Application.cs: Add some methods and stub a few methods that are
7107 pretty much never used.
7109 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
7111 * TreeNode.cs: Add some serialization methods.
7113 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7115 * ListView.cs: In ListViewItemCollection have a
7116 'is_main_collection' field to not modify ListViewItem.ListView
7117 when using it as ListViewGroup.Items (and not ListView.Items)
7118 and also don't modify selection state (.Net behaviour).
7119 Instead, set group for items contained in a ListViewGroup.Items collection.
7120 * ListViewItem.cs: Simplify some code in Group setter.
7121 * ListViewGroup.cs: use the new .ctor to pass the current instance
7122 to the ItemsCollection.
7123 * ListViewGroup.cs: Set the ListView property for ListViewGroup
7124 instances when adding/removing. Also make Remove use RemoveAt, which
7125 should perform better.
7127 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7129 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7130 that crept into the 1.1 profile.
7132 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7134 * ToolBarButton.cs: Implement ImageKey.
7136 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7138 * ToolBar.cs: Implement ScaleControl/ScaleCore.
7140 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7142 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7143 created, it might have gotten destroyed since we last checked. Fixes
7146 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
7148 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7149 tooltip will hide when mouse is moved off the control.
7152 2007-08-11 Andreia Gaita <avidigal@novell.com>
7154 * WebBrowserBase.cs, WebBrowser.cs: add implementation
7155 using Mono.Mozilla for loading and navigating webcontrol
7157 The initial implementation was done on
7158 /trunk/mozembed/tests/browser , and copied here.
7160 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
7162 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7163 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7165 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7167 * DataGridView.cs: Add support for an editing row. Fixes #82226.
7168 RowTemplateFull: throw an exception if a column doesn't have a template.
7169 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7170 add the row just before it.
7171 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7173 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7174 DataGridView field to be able to reach the grid's editing row.
7176 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7178 * ToolTip.cs: If the control's handle hasn't been created when it has a
7179 tooltip set on it, don't check to see if we need to show the tooltip. This
7180 check was causing the control's handle to be created.
7183 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7185 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7187 Handle Not Created -1 0
7191 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7193 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7196 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7198 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7199 * ToolTip.cs: Implement some properties and owner draw.
7201 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7203 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7204 show them again, since setting visibility causes a paint, causing an
7205 endless loop (instead use a temporary and set it all when it's known if
7206 they should be shown or not). Fixes #79265.
7208 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7210 * DataGridView.cs: Only do a full column/row selection if a header was
7211 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7212 isn't pressed, deselect everything before selecting something.
7214 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7216 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7217 behaviour according to bug #81075 - they are returned in the order they
7218 are selected. Fix HitTest to check if the point is within any of the
7219 headers. Allow for row/column selection when in ColumnHeader or
7220 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7221 the row and column to call when their selected state changes, and
7222 updated selected_[rows|columns] whenever SetSelected* is called.
7223 * DataGridViewBand.cs: Initialize isRow correctly. Call
7224 SetSelected[Row|Column]CoreInternal when the selected state changes, and
7225 add a SelectedInternal to avoid StackOverflows.
7226 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7227 ReadOnly no matter what.
7228 * DataGridViewSelectedColumnCollection.cs,
7229 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7230 the items in reverse order (just as MS does...)
7232 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7234 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7235 itself, not part of a mnemonic. [Fixes bug #82378]
7237 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7239 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7240 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7241 the DGV, the column, the row, or the cell itself is readonly.
7243 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7245 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7247 * FileDialog.cs: Same.
7248 * TextRendered.cs: Same.
7249 * FolderBrowserDialog.cs: Same.
7250 * TextBoxBase.cs: Same.
7251 * Application.cs: Same.
7253 * ThemeClearLooks.cs: Same.
7255 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7257 * XplatUI.cs: Added RunningOnUnix property to be used by controls
7258 instead of duplicating these checks everywhere.
7259 * FileDialog.cs: Use case-insensitive comparison for populating the
7260 DirComboBox when not running on unix. Fixes bug #82385.
7261 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
7264 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7266 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7267 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7268 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7269 cell and column selection with ctrl and shift pressed. Call the correct
7270 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7271 the corresponding virtual method (PaintBackground to paint background,
7273 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7274 either the column, row or the cell itself is selected.
7275 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7277 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7278 here. When the row is selected, don't select all cells. Each cell now
7279 queries the row to see if the row is selected.
7281 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7283 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7286 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7288 * ListView.cs: In ListViewItemsCollection check that owner is
7289 not null before trying to access it (this happens quite often
7290 using Groups). Also don't duplicate calls by calling CollectionChanged
7293 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7295 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
7296 when we are dismissed to clear keyboard mnemonics.
7297 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
7298 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7299 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7300 was activated by keyboard or the OS tells us to always draw them.
7301 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7302 [Fixes bugs #82376, #82377]
7304 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7306 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
7307 shot at having it because Alt was pressed.
7308 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7309 the first real menu item.
7310 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7311 a mnemonic if Text is null.
7314 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7316 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7317 search do check whether the item is already contained in the
7318 collection or not; instead check if the owner of the item is the same
7319 as ours. Also, remove a redundant check in the same method.
7321 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7323 * Control.cs: Allow the clip region to be set back to null.
7324 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7325 [Fixes button still showing up in bug #82370 when Show Through is turned off]
7327 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7329 * GridEntry.cs: Add a null check.
7330 * PropertyGrid.cs: When checking for existing grid entries, ignore category
7331 entries. Fixes #82297.
7333 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7335 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7338 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7340 * ListBox.cs: Implement ScaleControl.
7342 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7344 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7346 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7347 parent has a menu strip. Fixes #81689.
7349 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7351 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7352 moments, so apply some fuzzy logic to determine if the mouse is still
7353 inside a control or not. Fixes #82288 (for the third time).
7355 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7357 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7358 Don't create the child if it has been disposed already (may happen if
7359 the user closes the form the Load event).
7361 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7363 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7366 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7368 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7369 might call us after we've been destroyed, in which case our own private
7370 parent field is null. Fixes #82326.
7372 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7374 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7375 check for setting the dropdown's owner.
7377 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7379 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7380 before removing system menu items.
7382 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
7384 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7386 * MdiControlStrip.cs: Added. These are the menu items used in mdi
7388 * ToolStrip.cs: Add a null check to mnemonics.
7389 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7391 [Fixes most of bug #81689]
7393 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7395 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7397 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7399 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7401 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7403 * DataGridViewCell.cs: EditType: returns
7404 DataGridViewTextBoxEditingControl always.
7406 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
7408 * TextRenderer.cs: Remove the LineLimit string format flag from the
7409 DrawString fallback method so that things like buttons that aren't
7410 tall enough to draw a full line will still draw part of the text.
7411 [Fixes part of bug #82272]
7413 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7415 * DataGridView.cs: Implemented AutoResizeColumn(s).
7416 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7417 according to the Alignment.
7418 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7419 Implement alignment and padding when painting.
7420 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7422 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7424 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7427 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7429 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7432 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7434 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7435 hide GetPreferredSize from public API.
7436 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7437 * ToolStripItem.cs: Stub out drag and drop methods and events.
7438 * ToolStripManager.cs: Stub out Save/LoadSettings.
7439 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7440 * ToolStripPanel.cs: Fix corcompare error.
7441 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7442 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7443 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7445 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7447 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7448 bounds height instead of PreferredHeight. Puts things back the way
7449 they were for height while still fixing the width. Fixes broken unit
7452 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7454 * Binding.cs: Implement 2.0 constructors and add a null check.
7456 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7458 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7459 and fix row index (off by one).
7461 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7463 * PropertyGridView.cs: Remove debug output.
7465 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7467 * Control.cs: We need to reset the is_created flags when the handle is
7468 destroyed. Fixes #82187.
7469 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7470 client coordinates if the window doesn't have a parent.
7471 Win32GetParent returns the parent or the owner, and for top-level
7472 windows with no parent (but with an owner) we were calculating the
7473 location from the location of the owner.
7474 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7475 form has been disposed.
7476 * MdiClient.cs: Add a null-check.
7478 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7480 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7481 actually do auto-sizing. Override the internal GetPreferredSizeCore
7482 so we can provide an implementation that returns the current width
7483 and preferred height. Allows anchor = right to work with TextBox 2.0.
7486 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7488 * ListView.cs: Add support for navigating items in Groups mode, by
7489 creating a big matrix containing all rows and cols of all groups. When
7490 are in other mode than Details, pressing Up should have a similar
7491 behaviour as that one of Down (moving to the next available column if
7492 current one doesn't have an item in the requested row). Also, don't
7493 proceed to use groups if ShowGroups is false.
7494 * ListViewGroup.cs: Add an internal int field to store the starting
7495 row of the group (used by the big matrix used for navigating the
7497 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7500 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7502 * ToolStripDropDown.cs: When we do Show, start with the
7503 DefaultDropDownDirection, but if our popup menu is going to off-screen,
7504 modify the direction to keep it on screen. [Fixes bug #82210]
7506 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
7508 * FileDialog.cs: Accept any FilterIndex value, and store it
7509 unmodified. When FilterIndex is less than 1, or greater than number
7510 of filters, then default to first filter. Only add filter extension to
7511 file if user did not specifiy an extension. When type of dialog is
7512 OpenFileDialog and DefaultExt is set, then only use filter extension
7513 if: CheckFileExists is true and no file wih the default extension
7514 exists, or CheckFileExists is false, and user specified file does not
7515 exist. When CheckFileExists is true, then add first extension of
7516 selected filter that matches existing file. Perform checks for
7517 existing file, overwrite and create after extension has been added to
7518 file name. When CheckFileExists is true and type is SaveFileDialog,
7519 then only consider first filter extension if DefaultExt is set.
7520 When CheckFileExists is true, then ignore DefaultExt if file with that
7521 extension does not exist. Also perform check for existing file when
7522 type is SaveFileDialog. Changed some field to constants.
7524 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7526 * ListView.cs: Take into account the region used by header
7527 control when doing the vertical scroll (this way we invalidate
7528 the precise area, and don't get any dirty one).
7530 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
7532 * FileDialog.cs: Check for valid filterIndex on button open/save.
7535 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7537 * ListView.cs: Update some layout calculations in details view
7538 and clean the code in a pair of assignations.
7540 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7542 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7543 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7544 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7545 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7547 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7549 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7550 performance of thread-safe Graphic methods. (Thanks rolf!)
7552 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7554 * ListView.cs: When doing the layout calculations, don't calculate
7555 scroll bars before handle is created. This is unnecessary and also
7556 calculating them before handle creation item causes a number of random
7557 bugs (which begin to appear after Chris' big patch for handle creation
7560 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7562 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7563 for things that don't have a Graphics object. Currently, things just use
7564 the static Hwnd.bmp_g which is not thread safe.
7566 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7568 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7569 dialog. Fixes #82187.
7571 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7573 * DataGridViewElement.cs: Initialize state.
7574 * DataGridView.cs: Forward a few Mouse events to cells. Add
7575 GetRowInternal and GetCellInternal that doesn't unshare rows.
7576 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7577 don't use the index, but look it up. Add
7578 DataGridViewControlCollection.RemoveInternal to remove controls
7579 that Remove won't remove (scrollbars, edit control).
7580 * DataGridViewColumn.cs: Initialize State correctly.
7581 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7582 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7584 * DataGridViewRowCollection.cs: Implemented shared rows.
7585 * DataGridViewRow.cs: Throw exceptions as MS do.
7586 * DataGridViewCell.cs: A few properties are implemented by a
7587 Get<Property> method, so move implementation there and remove the
7588 NIEX in the method. Add a bunch of OnXInternal that DataGridView
7589 calls when necessary.
7590 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7591 complicates matters.
7592 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7595 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7597 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7598 the children controls. Instead, we will just set up the proper docking for the
7599 children controls so we don't have to worry about it. [Fixes bug #82188]
7601 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7603 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7604 canceling and correct Before/AfterLabelEdit properties as layed out in bug
7605 81847. [Fixes bug #81847]
7607 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7609 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7610 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
7611 an explicit size based on the design-time size of the text. Since our fonts
7612 may not match this explicit size, we tend to cut off the ends of people's labels.
7614 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
7616 * Menu.cs: Add some missing methods to MenuItemCollection.
7618 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7620 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7621 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7622 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7623 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7624 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7625 * DataGridViewElement.cs: State defaults to Visible.
7626 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7627 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7629 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7631 * Control.cs: Minor 1.1 corcompare fix.
7633 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7635 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7636 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7638 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7640 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7641 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7642 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7643 DataGridViewSelectedColumnCollection.cs,
7644 DataGridViewSelectedRowCollection.cs: Corcompare work.
7646 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7648 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
7649 it is autoset by VS2005 designer and the effect is barely noticeable.
7651 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7653 * TreeView.cs: Implement HitTest.
7655 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7657 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7658 manually adding and removing the control from the Controls
7660 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7661 EditingControlInternal property that tracks the editing control.
7662 Always keeping the scrollbars in the Controls collection, as MS
7663 testing confirms is the right behaviour.
7665 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7667 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7668 according to MSDN and new test.
7670 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7672 * TreeNode.cs: Implement ToolTipText.
7673 * TreeView.cs: Implement tooltips, NodeMouse* events.
7675 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7677 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7679 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7681 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7682 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7684 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
7686 * Control.cs, Form.cs, ContainerControl.cs,
7687 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
7688 for misc properties.
7690 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7692 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7693 * TreeView.cs: Implement StateImageList.
7695 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7697 * Form.cs: Don't check if the current form is the active form before
7698 activating it. Fixes #81904.
7700 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7702 * Form.cs: Don't check if the current form is the active form before
7703 activating it. Fixes #81904.
7705 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7707 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7709 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7711 * Form.cs: Don't try to position the form after loading if the form was
7712 disposed. Fixes #81969.
7714 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7716 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7717 properties. Had to change ToolBar into ToolStrip, which required a
7720 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7722 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7723 resized, fixes part of #79829 (vertical lines in toolbar).
7724 PropertyGrid: Refactored Populate* to something that's easier to
7725 follow at least for me, as well as splitting it up into several new
7726 methods, required to update only subitems when something has
7727 changed by a popup editor or listbox. Don't use events to check
7728 when any values are changed, since the events are unreliable (we're
7729 changing the objects the events are registered with, and if the
7730 event handling requires the objects to be immutable (objects stored
7731 in hashtables for instance), the events will never be raised).
7732 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7733 everytime we change a value, since events are unreliable.
7734 DropDownButtonClicked: For the same reason don't compare objects to
7735 check if it has changed or not, it would require all objects to
7736 derive Equals. Fix dialog location on windows, MS is doing weird
7737 things when creating parented forms.
7738 * GridEntry.cs: Add a SelectedObject setter.
7740 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
7742 * TreeNode.cs: Add some corcompare attributes.
7743 * TreeNodeCollection.cs: Implement 2.0 stuffs.
7744 * TreeView.cs: Implement some 2.0 stuffs.
7746 2007-07-18 Andreia Gaita <avidigal@novell.com>
7748 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7751 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
7753 * ListBox.cs: Implement custom tab offsets.
7755 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7757 * ToolStripContentPanel.cs: Support System renderer.
7758 * ToolStripControlHost.cs: Set RightToLeft to default to No.
7760 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7762 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7764 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7766 * CheckBox.cs: Chain TextAlign to base implementation instead of
7767 maintaining another one.
7769 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7771 * ButtonBase.cs: Fix an incorrect string constant.
7773 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7775 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7776 of creating one for measuring strings.
7778 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7780 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
7781 Implement MaxItemSize.
7783 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
7785 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7786 for DeviceContext. Instead, use the static one available in Hwnd.
7787 Informal tests show this saves about 500k on formtest.exe.
7789 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
7791 * ContainerControl.cs: Implement 2.0 AutoScaling.
7793 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7795 * ComboBox.cs: Work around bug #82120 (bug in mcs).
7797 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
7799 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7800 Darken the focus color.
7802 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
7804 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7806 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7807 X, Y instead of a rect for drawing text.
7808 - For ControlPaint.DrawCheckBox, center the check a little better when the
7809 checkbox is odd width. When drawing a flat checkbox, use a white background
7810 when state != inactive.
7811 [Fixes bugs #82097, 82100]
7813 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
7815 * ListControl.cs: When changing CurrencyManager, disconnect event
7816 handlers from previous one. Fixes bug #81771. Code formatting.
7818 2007-07-15 Andreia Gaita <avidigal@novell.com>
7820 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7821 full preview invalidation from layout invalidation, and only invalidate
7822 the layout when setting zoom or other properties. Invalidation should
7823 always be done even when resetting properties with the same values as
7824 what is there. Fixes #81744 and #79830.
7826 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7828 * ListView.cs: Implement initial support for Groups. Split some of the
7829 LayoutIcons code to render a partial list of the items (needed by
7830 items contained in ListViewGroup instances). Let the
7831 ListViewItemsCollection.ListView property be modifiable (needed when
7833 * ListViewGroup.cs: Use a Bounds property rather than a Location
7834 one. Also invalidate the bounds when they get changed.
7835 * ThemeWin32Classic.cs: When drawing items, also draw the group header
7836 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7839 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7841 * ListView.cs: When space gets pressed and CheckBoxes is true,
7842 don't invoke the Begin and EndUpdate methods. We are generating
7843 a redraw of the entire control without need to do so.
7845 2007-07-13 William Holmes <billholmes54@gmail.com>
7847 * Control.cs: Changing logic in FindFlatForward and
7848 FindFlatBackward to handle multiple Controls with
7850 This fixes bug 81687.
7852 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
7854 * OSFeature.cs: Enable IsPresent.
7856 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7858 * Control.cs: Don't do anything in WmShowWindow if the control has been
7859 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7860 control is created, put on a form, the control is disposed (the
7861 form is never shown), and then we get a MapNotify, triggering a
7863 * Form.cs: Exclude the current form when sending Deactivate to all
7865 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
7866 there was a race condition because assigning the handle raises
7867 events, we can get more messages, therefore trying to assign the
7868 handle again, which would fail if any of those event handlers
7869 closed/disposed the control.
7871 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7873 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
7875 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
7877 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
7878 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
7880 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
7882 * DateTimePicker.cs: If there's no part format specifier, return an
7885 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
7887 * FlatButtonAppearance.cs: Throw NotSupportedException for a
7888 Transparent BorderColor.
7890 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
7892 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
7893 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
7894 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
7895 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
7896 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
7897 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
7898 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
7900 * X11Structs.cs: Remove warnings, add ToString implementations.
7902 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7904 * XplatUIX11.cs: Translate min/max size according to the actual min/max
7905 size, and not the current size. Fixes #81798.
7907 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7909 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
7910 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
7911 to the control yet).
7913 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7915 * PropertyGridTextBox.cs: Add a method that sends any forwarded
7916 mousedowns to the contained textbox.
7917 * X11Structs.cs: More ToString implementation.
7918 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
7921 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7923 * PropertyGridView.cs: Add a null-check, fixes a few tests.
7925 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
7927 * TableLayoutPanelCellPosition.cs: TypeConverter.
7929 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7933 * PropertyGridTextBox.cs: Propagate any color changes to all contained
7935 * PropertyGridView.cs: A few color fixes.
7937 2007-07-10 Jackson Harper <jackson@ximian.com>
7939 * TextControl.cs: Remove some old unused text formatting stuff.
7941 2007-07-10 Jackson Harper <jackson@ximian.com>
7943 * TreeView.cs: Update full row select invalidation to match the
7944 newer DrawSelection... method.
7945 - Make sure to invalidate the entire width when selecting a new
7946 node, if we have full row selection enabled.
7948 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7950 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
7951 display of properties again.
7953 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
7955 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
7956 to existing collections.
7958 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7960 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
7961 that changed between 1.1 and 2.0.
7963 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7965 * PowerStatus.cs: Added. This is just a data class, it is filled
7966 in by SystemInformation.
7968 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7970 * Message.cs: Add op_Equality and op_Inequality.
7972 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7974 * MenuStrip.cs: Finish corcompare work.
7976 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7978 * LinkArea.cs: Add op_Equality and op_Inequality.
7980 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7982 * Application.cs: Add MessageLoopCallback delegate.
7984 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7986 * ListBox.cs: First set of 2.0 stuffs.
7988 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
7990 * Control.cs: Make an internal Height property we can override
7991 without messing up the public API.
7992 * ListBox.cs: Override HeightInternal to always return the size
7993 the user set. [Fixes bug #80466]
7995 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
7997 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
7998 paint cell borders if we haven't calculated where they go yet.
7999 [Fixes bugs #82040 and #82041]
8001 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8003 * ListView.cs: In Details view, set the location of item_control
8004 in the (0,0) position (and the header_control is thus on the
8005 item_control). This way the Bounds of the Items are relative to the
8006 ListView control (before this, they had a Bounds value without the
8007 header_control offset, which wasn't matching .Net). Fixes #82004.
8009 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8011 * ListControl.cs: When DataSource is set to null, pass an empty
8012 array of object to SetItemsCore. This is done to clean the items
8013 in the ListContol children. Fixes #81788.
8015 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8017 * ListControl.cs: Add 2.0 stuffs.
8019 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8021 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
8022 Refresh is overkill for just about every repaint request.
8024 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8026 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8027 so remove my custom Get method and fix the property getter.
8029 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8031 * Label.cs: DefaultMargin for 2.0.
8033 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8035 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
8036 reported issue where other controls with mnemonics would steal strokes
8037 from a selected ComboBox.
8039 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8041 * ScrollOrientation.cs: Make internal for 1.1.
8042 * ScrollEventArgs.cs: Add 2.0 stuffs.
8044 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
8046 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8047 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8048 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8050 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8052 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8054 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8056 * ListView.cs: Implement the so-incredibly broken 2.0
8057 VirtualItemsSelectionRangeChanged event.
8059 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8061 * ListView.cs: When enter is pressed and selection is non empty,
8062 an OnItemActivate event must be fired.
8064 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8066 * ListView.cs: Store the FocusedItem information as an
8067 int instead of a ListViewItem (needed by VirtualMode).
8068 Update the calls to SetFocusedItem to pass an index instead of
8070 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8071 the Focused state from the owner ListView.
8073 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8075 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8076 property. Also, invalidate previous focused item in the mentioned
8077 property (match .Net).
8079 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8081 * ListView.cs: Implement 2.0 FocusedItem property setter.
8083 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8085 * ListView.cs: Implement 2.0 TopItem property setter.
8087 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
8089 * StatusStrip.cs: The default renderer is System.
8090 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
8091 if the user specifies it.
8092 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8093 if we are ManagerRenderMode.
8094 * ToolStripMenuItem.cs: Calculate our text color better.
8095 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8096 from Professional to the base class based off working with the System renderer.
8097 * ToolStripSystemRenderer.cs: Added.
8099 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8101 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8103 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
8105 * ToolTip.cs: Implement 2.0 Tag property.
8107 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8109 * ListView.cs: Implement 2.0 HitTest methods.
8111 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8113 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8114 item is under the pointer or not (sugar). Also remove the TODO
8115 regarding to the cursor changes in OneClick activation.
8116 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8117 the subitems use the parent's HotFont if UseItemStyleForSubItems is
8118 true; otherwise don't show the underline style.
8120 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8122 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8123 the code to retrieve the item at position only one time. Also
8124 change cursor when Activation is ItemActivation.OneClick as well
8125 as invalidate the item if HotTracking is true (to show/hide the
8126 underline style). Add an internal HotItemIndex property to retrieve
8127 the current hot item's index.
8128 * ListViewItem.cs: Add an internal HotFont property to cache the
8129 font used when HotTracking is true and the pointer moves within the
8131 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8132 HotFont depending on the hot state of the item.
8134 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8136 * ListView.cs: Implement 2.0 HotTracking property.
8138 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8140 * ToolStripControlHost.cs: If our hosted control never got created,
8141 don't try to dispose it. [Fixes bug #81909]
8143 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8145 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8147 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8149 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
8151 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8153 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
8155 * DrawListViewColumnHeaderEventArgs.cs:
8156 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8157 using the DrawText () methods.
8159 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
8161 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8162 background which got erased in my changes yesterday.
8164 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8166 * ListViewItem.cs: Actually set bounds for subitems in Details view
8168 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8169 can invoke from the owner draw routines if we need it. Also, add
8170 support for Owner draw in Details view.
8172 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8174 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8175 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8176 ShowImageMargin setting, properly align text in a ToolStripLabel
8177 hosted on a ToolStripDropDown.
8179 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8181 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8182 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8184 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8186 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8188 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8190 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8191 location to match ToolStripMenuItems.
8193 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8195 * DrawListViewColumnHeaderEventArgs.cs:
8196 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8197 column headers in ListView.
8199 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8201 * UserControl.cs: Implement AutoSize.
8203 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8205 * DrawListViewItemEventArgs.cs:
8207 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8210 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8212 * ToolStripDropDownItemAccessibleObject.cs: Added.
8213 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8214 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8215 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8216 ToolStripTextBox.cs: corcompare work.
8218 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8220 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8221 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8222 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8225 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8227 * OSFeature.cs: Add IsPresent.
8228 * PrintPreviewControl.cs: Add RightToLeft.
8229 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8230 * SplitterPanel.cs: Add AutoSizeMode.
8232 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8234 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8235 * MdiClient.cs: Add 2.0 ScaleControl.
8236 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8237 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8239 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8241 * Form.cs: Implement some scaling methods, stub some RTL methods,
8244 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8246 * Control.cs: corcompare work.
8247 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8249 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8251 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8252 ControlPaint 2.0 stuffs.
8254 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8256 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8258 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8260 * UpDownBase.cs: Add 2.0 stuffs.
8262 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8264 * NumericUpDown.cs: Add 2.0 stuffs.
8266 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8268 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8270 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8272 * ErrorProvider.cs: Implement 2.0 stuffs.
8274 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8276 * DomainUpDown.cs: Implement 2.0 stuffs.
8278 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8280 * CheckedListBox.cs: Fix RefreshItems signature.
8282 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8284 * PictureBox.cs: Implement 2.0 stuffs.
8286 2007-06-12 Andreia Gaita <avidigal@novell.com>
8288 * TabControl.cs: Check if there are tabpages before checking
8289 the selected index - fix #81802 (font changes raise a ResizeTabs
8290 call on controls.add, which blew up nicely with no tabpages)
8292 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8295 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8297 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8300 * ListViewItem.cs: In VirtualMode the selection information
8301 resides in the ListView, rather than in the Items. Also, throw
8302 InvalidOperationExceptions when VirtualMode is being used and
8303 CheckedItemCollection is accessed.
8305 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8307 * ComboBox.cs: Add ScaleControl.
8309 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8311 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8313 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8315 * GroupBox.cs: Add 2.0 stuffs.
8317 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8319 * Panel.cs: Add autosize properties/event.
8321 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8324 - When we remove a control, remove it from the collection before performing the layout.
8325 - Setup an internal property for explicit_bounds.
8326 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8327 - Perform a layout when we set a new AutoSizeMode.
8329 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8331 * ScrollableControl.cs: Add 2.0 stuffs.
8333 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8335 * ScrollBar.cs: Add 2.0 stuffs.
8337 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8339 * Splitter.cs: Add 2.0 stuffs.
8341 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8343 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8344 to have BindingContext simply use base implementation.
8346 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8348 * ColumnHeader.cs: corcompare fix.
8350 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8352 * Button.cs: corcompare fixes.
8353 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8355 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8357 * Button.cs: Override GetPreferredSizeCore.
8358 * ButtonBase.cs: PerformLayout after changing properties that can affect
8359 AutoSize. Simplify some mouse/keyboard code.
8360 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8361 * MouseEventArgs.cs: Make Location internal for 1.1.
8362 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8363 * Theme.cs: Add CalculateButtonAutoSize.
8364 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8366 2007-06-05 Miguel de Icaza <miguel@novell.com>
8368 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8370 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8372 * ListViewItem.cs: We can't cache Bounds in VirtualMode
8373 since we can get different item instances every time we retrieve it.
8375 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8377 * ListView.cs: Work around for #81602, since an unkown an pretty
8378 infrequent condition appears only in some systems (old linux boxes, it
8381 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8383 * Button.cs: Completely reformat and a little refactor to bring
8384 this closer to Mono circa 2007.
8386 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8388 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8389 to be ButtonBase.Invalidate.
8391 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8393 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
8395 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8397 * ButtonBase.cs: Completely reformat and a little refactor to bring
8398 this closer to Mono circa 2007.
8400 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
8402 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8403 values for autosize. Fixes #80137.
8405 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8407 * Control.cs: Don't perform layout when AutoSize changes.
8408 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
8409 directly when autosizing, use SetBounds with BoundsSpecified.None.
8410 Fixes unit tests my last commit broke.
8412 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8414 * Control.cs: Perform layout when AutoSize changes.
8415 * Form.cs: Implement AutoSizing.
8417 2007-06-01 Chris Toshok <toshok@ximian.com>
8419 * DataGrid.cs: remove the XXX'ed check at the top of
8420 ProcessGridKey. fixes #80464.
8422 2007-06-01 Chris Toshok <toshok@ximian.com>
8424 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8425 adding idempotent (add/remove in Edit()), and also make sure we
8426 don't add it until after we set the text, so it's not tripped in
8427 Edit(). Fixes unit test regression.
8429 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8431 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8432 change is user explicit, not when the layout engine moves stuff. Fixes
8433 anchoring to bottom and right. [Fixes bug #81790]
8435 2007-06-01 Andreia Gaita <avidigal@novell.com>
8437 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8439 2007-06-01 Andreia Gaita <avidigal@novell.com>
8441 * ContainerControl.cs:
8442 Fire enter event for common ancestor if it is not a ContainerControl.
8443 Send focus to the active_control and not the 'value', the active
8444 control might have been changed in one of the events fired.
8445 Definitely fixes #80159.
8447 2007-06-01 Andreia Gaita <avidigal@novell.com>
8449 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8451 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8453 * PropertyGrid.cs: Anchor the help description to the bottom of the
8454 help panel and refactor SelectGridItem into a
8455 SelectGridItemInternal that can be set to null (and update it to
8456 clear the help texts when it is set to null). Set root item to null
8457 when there's no SelectedObject. Fixes #80438.
8458 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8459 when we're recalculating after a resize (only).
8461 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8463 * ListView.cs: Implement 2.0 RedrawItems method.
8465 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8467 * ListControl.cs: Disconnect PositionChanged and ItemChanged
8468 handlers from previous data manager when DataSource is set to
8471 2007-05-31 Jackson Harper <jackson@ximian.com>
8473 * TextBoxBase.cs: These seem to be the correct values.
8475 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
8477 * FileDialog.cs: When close dialog with ok set filterindex using combobox
8478 value. Fixes #81784.
8480 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
8482 * Control.cs: Implement 2.0 scaling methods.
8484 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8486 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8487 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8490 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8492 * ProgressBar.cs: Implemented missing 2.0 members.
8494 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8496 * Control.cs: Corcompare issues.
8497 * MessageBox.cs: Implemented missing 2.0 functions.
8499 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8501 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8502 Implemented more 2.0 members.
8504 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8506 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8507 null (strange, but it seems to happen when running unit tests).
8509 2007-05-30 Andreia Gaita <avidigal@novell.com>
8511 * ContainerControl.cs: Set active_control even earlier, before
8512 firing any events, and undo it if validation returns false.
8514 2007-05-30 Andreia Gaita <avidigal@novell.com>
8516 * ContainerControl.cs: Raise Validation and Enter/Leave events
8517 even if there is no Form and set active_control earlier, just
8518 before firing Enter events (toshok's patches). Fixes #80647.
8520 2007-05-30 Jackson Harper <jackson@ximian.com>
8522 * TextControl.cs: Redid the pageup/pagedown a little to simplify
8523 things and fix bug #81311.
8525 2007-05-30 Jackson Harper <jackson@ximian.com>
8527 * X11Dnd.cs: Now that we have our own event loop, we need to
8528 cancel when we get a mouseup but it won't be accepted.
8530 2007-05-30 Chris Toshok <toshok@ximian.com>
8532 * DataGrid.cs (set_CurrentCell): guard against negative
8535 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8536 array index syntax instead of looping over the property names.
8538 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8539 and set IsInEditOrNavigateMode to false there.
8541 2007-05-30 Jackson Harper <jackson@ximian.com>
8543 * TreeView.cs: Make sure we don't get a bad visible order when
8544 setting to the top node. Fixes some misc crashing in
8547 2007-05-30 Andreia Gaita <avidigal@novell.com>
8549 * UserControl.cs: Add 2.0 AutoSizeMode
8551 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8553 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8555 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8557 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8558 lines. Fixes #80285.
8560 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8562 * DataGridColumnStyle.cs: Add char trimming column header text format.
8564 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8566 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
8569 2007-05-29 Jackson Harper <jackson@ximian.com>
8571 * TreeNode.cs: Fix off by one on calculating whether or not a node
8574 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
8576 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8577 * ScrollableControl.cs: Force an UpdateDistances when we move the
8581 2007-05-29 Andreia Gaita <avidigal@novell.com>
8583 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8584 update the page setup screen.
8586 2007-05-29 Andreia Gaita <avidigal@novell.com>
8588 * PageSetupDialog.cs: Fix landscape mode.
8590 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8592 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8593 IconSizeHorizontalSpacing.
8595 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8597 * ListView.cs: The declaration of prev_tooltip_item should be inside
8598 a NET_2_0 conditional (avoid a warning).
8600 2007-05-28 Andreia Gaita <avidigal@novell.com>
8602 * PageSetupDialog.cs: Implement PrintPreview control to display
8603 the preview thumbnail. Change unit conversion to use
8604 PrinterUnitConvert methods.
8606 Note: there is a huge bug in ms.net where the default margins are
8607 interpreted as centimeters (?), when in fact they are set in inches. When
8608 loading the page setup dialog initially (ms.net), the default margins
8609 are set to 1 inch, and the dialog shows them with value 10, when in fact
8610 it should be 25 (properly converted). Our dialog doesn't have this bug.
8612 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
8614 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8616 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8619 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8622 2007-05-28 Andreia Gaita <avidigal@novell.com>
8624 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8625 an IntPtr on csc (it builds fine on mcs, could it be a compiler
8626 bug?), convert the ptr to Int32 first.
8628 2007-05-28 Jackson Harper <jackson@ximian.com>
8630 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8631 recieved, we will exit the dnd tracking loop.
8633 2007-05-28 Jackson Harper <jackson@ximian.com>
8635 * X11Dnd.cs: Keep tracking until the xdnd finished event is
8636 recieved. TODO: I should probably stick a timer on the dropped
8637 event, and finish the drag if the XDND Finished event never shows
8638 (because some apps don't seem to send it).
8640 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
8642 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8645 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8647 * MonthCalendar.cs: Only mark the keypresses we actually handle as
8650 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8652 * MonthCalendar.cs: Set the size after initializing all the relevant
8653 variables. Fixes #81742.
8655 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8657 * KeyEventArgs.cs: Fix typo.
8659 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
8661 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8662 to match MS. Fixed MinDate to only accept value less than or equal
8663 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8664 Removed TODO's that are now verified by unit tests.
8666 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
8668 * TreeNodeCollection.cs: Minor corrections to exceptions to match
8671 2007-05-25 Jackson Harper <jackson@ximian.com>
8673 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8674 it's own message loop.
8675 * XplatUIX11.cs: Remove some of the dnd hooks
8677 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
8679 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8680 instead of MinimizedWindowSize.
8682 2007-05-25 Jackson Harper <jackson@ximian.com>
8684 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8686 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8688 * KeyEventArgs.cs: Added SuppressKeyPress.
8689 * Control.cs: Added support for SuppressKeyPress.
8691 2007-05-24 Andreia Gaita <avidigal@novell.com>
8693 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8694 problems with PieChart. suppress_validation should not be a counter,
8695 if there are several BeginInit calls, the first EndInit will
8696 activate validation. Fix exceptions thrown by set_Value.
8697 * UpDownBase.cs: ValidateText only if it's the user editing it.
8699 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8701 * ListControl.cs: FilterItemOnProperty should return the filtered
8702 item proeprty even if DataSource is null. The same applies for
8703 GetItemText. Fixes #80427.
8705 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8707 * Control.cs: If a control doesn't have a parent when it's Dock is
8708 set, but it has children, it needs to do a layout. Fixes some nested
8709 controls issues. [Fixes bug #81199]
8711 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8713 * ComboBox.cs: If there are few items in the drop down list, make it
8714 the exact size the items need, no bigger. Fixes #81612.
8716 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8718 * Application.cs: When we have captured the keyboard for a menu,
8719 check for mouse down events in case we need to close the menu.
8720 * Control.cs, Form.cs: Remove mouse down checks for menus.
8722 2007-05-24 Jackson Harper <jackson@ximian.com>
8724 * TextControl.cs: Handle tabs in non multiline mode a little
8727 2007-05-24 Jackson Harper <jackson@ximian.com>
8729 * TextControl.cs: We need to manually break apart tabbed text and
8730 move the tabs, since the system.drawing tabbing mechanism relies
8732 * TextBoxBase.cs: Move the caret properly when the user enters a
8735 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8737 * ContainerControl.cs: Don't check CanSelect before calling
8739 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
8740 release a KeyboardActive on click if it's not ours.
8742 2007-05-23 Andreia Gaita <avidigal@novell.com>
8744 * ColumnHeader.cs: Add TypeConverter
8746 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8748 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8750 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8752 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8754 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8756 * LinkLabel.cs: Implement public Padding property.
8758 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8760 * LinkLabel.cs: Implement public FlatStyle.
8762 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
8764 * Control.cs: Apply patch from George to call parent.PerformLayout
8765 when Visible is changed. [Fixes bugs #81118, 81718]
8767 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8769 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8771 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8773 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8775 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8777 * ContextMenu.cs: Implement Collapse.
8779 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8781 * ToolBarButton.cs: Implement Name.
8783 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
8785 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8786 use current_item, it prevents some NRE. Fixes #81675.
8788 2007-05-22 Andreia Gaita <avidigal@novell.com>
8790 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8791 without updating the text.
8793 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
8795 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8796 without calling DeleteObject. [Should fix bug #81709]
8798 2007-05-22 Jackson Harper <jackson@ximian.com>
8800 * RichTextBox.cs: Set the line endings correctly, when flushing
8803 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
8805 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8808 2007-05-22 Jackson Harper <jackson@ximian.com>
8810 * TreeView.cs: Setting top with a null node should set to the very
8813 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8815 * Form.cs: ShowDialog: destroy the handle when message loop is
8816 finished, matches MS behaviour. Refactor parts of WmClose into
8817 RaiseCloseEvents, that only raises events if they haven't already
8818 been raised. Fixes #81688 and #81521.
8819 * Application.cs: Don't call close on the form when exiting a modal
8820 loop, it will raise all the (Form)Closed/Closing events again if
8821 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8822 which doesn'r raise any events it they have been raised before.
8824 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
8826 * Control.cs: Add OnPrint.
8827 * ToolStrip.cs: Add GetChildAtPoint.
8828 * ToolStripContainer.cs: Add OnRightToLeftChanged.
8829 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8831 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
8833 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
8835 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8837 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8838 isn't visible anymore. Fixes #81651.
8840 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8842 * Control.cs: WmShowWindow: Update children's z-order after setting
8843 their parent. SetParent may show the window, thereby corrupting
8844 z-order, since the window will be shown on top.
8845 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8846 multiple (and redundant) WM_SHOWWINDOW messages.
8847 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8848 event has already been raised.
8849 * Form.cs: Change is_changing_visible_state to a counter, since
8850 SetVisibleCore can be called recursively. CreateHandle: when
8851 creating mdi children, send (De)Activated events.
8852 * MdiClient.cs: Update use of is_changing_visible_state.
8853 * Application.cs: OnThreadException: Surround exception handling with
8854 try/finally to ensure we always reset the error-handling state
8857 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8859 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
8862 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8864 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
8865 SmallIcon views, now that we have a standarized horizontal spacing.
8867 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
8868 4, just like the other views (Match .Net).
8870 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
8872 * Control.cs: Delay calculating anchor distances until we actually layout.
8873 Always query the WM for the actual size and location it put us at instead of
8874 only when we send negative values.
8875 [Fixes bugs #81694, 81695]
8877 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8879 * Application.cs: Avoid a possible stack overflow when trying to exit
8882 2007-05-19 Marek Safar <marek.safar@gmail.com>
8884 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
8887 2007-05-19 Andreia Gaita <avidigal@novell.com>
8889 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
8890 * NumericUpDownAcceleration.cs,
8891 NumericUpDownAccelerationCollection.cs: Added 2.0
8894 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
8896 * RichTextBox.cs: Recalculate the document after the ScrollBars
8897 property is changed. Fixes bug #81681.
8899 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
8901 * DataObject.cs: Implement 2.0 methods.
8903 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8905 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
8906 in the center of the checkbox, not in the left-top corner.
8909 2007-05-18 Jackson Harper <jackson@ximian.com>
8911 * RichTextBox.cs: Recalculate the document after the scrollbars
8912 property is changed.
8913 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
8916 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8918 * CreateParams.cs: Make HasWindowManager marginally faster.
8919 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
8920 into Hwnd so that other drivers can use it as well.
8921 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
8922 the default location from Hwnd. Fixes MDI client windows always
8923 showing up at (0,0) in Windows (Win32 won't set the default
8924 location since the window styles aren't correct).
8926 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
8928 * TreeView.cs: Modified DoubleBuffered to just use the base
8931 2007-05-18 Jackson Harper <jackson@ximian.com>
8933 * TreeView.cs: Set the top node to the last child node when
8935 - When we get focus, if there is no selected node, use the top
8938 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
8940 * KeysConverter.cs: Add CanConvertTo.
8941 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8942 * LinkConverter.cs: Added.
8944 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8946 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8947 it prevents error when file dont have write access. Fixes #81669 and #81667.
8949 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8951 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
8952 button text. Fixes #79640.
8954 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8956 * Control.cs: According to MSDN controls created in the designer theres
8957 keyboard accelerators visible by default. So included check for design
8958 in ShowKeyboardCuesInternal.
8960 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8962 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
8965 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8967 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
8968 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
8970 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
8972 * Control.cs: Finish implementation of UI State using WmChangeUIState
8973 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
8974 in some controls to check for show_keyboard_cues to draw accell keys "_".
8976 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8978 * ListBox.cs: When calculating the horizontal scrollbar
8979 in single column mode, don't use values less than 0 for
8980 Maximum. Fixes #81474.
8982 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8984 * ListBox.cs: Throw the some missing exceptions in
8985 ListBox.ObjectCollection methods.
8987 2007-05-17 Jackson Harper <jackson@ximian.com>
8989 * TextBoxBase.cs: Recalculate the document when the word wrap
8990 value has changed. This fixes 81488.
8992 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
8994 * Clipboard.cs: Implement missing GetText overload.
8996 2007-05-17 Chris Toshok <toshok@ximian.com>
8998 * Control.cs (CheckDataBindings): remove the binding_context arg
9001 * CurrencyManager.cs (OnItemChanged): fix this now that
9002 BindingManagerBase is fixed. also remove the comment telling where
9003 the fix should go. We set transfering_data to true/false around
9004 the call to PushData to keep UpdateIsBinding from being called.
9005 (ListChangedHandler): remove the extra OnMetaDataChanged call for
9006 PropertyDescriptorAdded in the 1.1 case. The extra call is
9007 actually generated by System.Data generating 2 metadata changed
9008 events of its own per column add. The fix should go there. Add a
9009 comment to that affect in our test's Assert.Ignore.
9011 * BindingManagerBase.cs: Rework PullData and PushData slightly.
9012 we keep a boolean flag (transfering_data) that keeps us from
9013 calling UpdateIsBinding multiple times if we re-enter either of
9016 * ControlBindingsCollection.cs (AddCore): remove the
9017 binding_context arg to binding.Check.
9019 * Binding.cs (IsBinding): don't check if we're binding here, just
9020 return our cached value. we update it in UpdateIsBinding.
9021 (Check): don't take the binding_context arg, we'll just use our
9022 control's. Also, for some reason MS doesn't use the data member
9023 field when getting the bindingmanager for this binding. it just
9024 uses the datasource. Make this method callable multiple times,
9025 and only do the is_null_desc stuff if manager.Position != -1 (so
9026 we don't get an exception accessing manager.Current).
9027 (UpdateIsBinding): move the code from IsBinding here.
9028 (PositionChangedHandler): call Check here to we can initialize
9029 things that require a non- -1 position.
9031 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9033 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9036 2007-05-17 Andreia Gaita <avidigal@novell.com>
9038 * TabControl.cs: Add 2.0 methods and events, including
9039 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9040 * TabPage.cs: Add 2.0 methods
9042 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9044 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9045 keyboard_cues is properly handled by message method.
9047 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9049 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9051 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9053 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9055 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
9058 - WmUpdateUIState added to handle state changes, it make call to
9059 OnChangeUICues event.
9060 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9063 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
9065 * ImageKeyConverter.cs: Added.
9066 * TreeViewImageKeyConverter.cs: Added.
9068 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9070 * ToolTips.cs: Update Text if SetToolTip is called for a control
9071 already showing the tooltip, as well as restarting its timer; show
9072 tooltip if we are inside the control bounds by the time of calling
9073 SetToolTip. Inside ShowTooltip remove the check to not show the
9074 tooltip again for the active control (it is allowed by .Net to
9075 show the tooltip on the same control multiple times).
9077 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9079 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9081 2007-05-16 Andreia Gaita <avidigal@novell.com>
9083 * ContainerControl.cs: only process tab key if there are no
9084 modifier keys present, otherwise the control does the
9085 tab processing, if it needs to. Fixes #81622
9086 * TabControl.cs: Fixes calculation for which tab to select on
9089 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9091 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9093 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
9095 * Control.cs: Make IsInputCharInternal to allow controls to
9096 override it and still match MS API.
9097 * TextBoxBase.cs: Override IsInputCharInternal and always
9101 2007-05-15 Jackson Harper <jackson@ximian.com>
9103 * TextBox.cs: Disable some of the menu options when using a
9106 2007-05-15 Jackson Harper <jackson@ximian.com>
9110 * RichTextBox.cs: Some new 2.0 methods
9112 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
9114 * FileDialog.cs: On 1.0 profile, do not support multidotted
9117 2007-05-14 Jackson Harper <jackson@ximian.com>
9119 * TextBoxBase.cs: Implement some of the new 2.0 methods.
9120 * RichTextBox.cs: We need to override these methods on 2.0.
9121 * MaskedTextBox.cs: These are implemented now
9122 * TextControl.cs: This was off by one.
9124 2007-05-14 Jackson Harper <jackson@ximian.com>
9126 * TextControl.cs: Because the line endings are including in the
9127 text, we don't need to add them in anymore.
9129 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9131 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9132 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9134 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9136 * ToolBar.cs: Adjust size to default size when button theres no text and
9137 image, it fixes remaining issues from #81524.
9139 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9142 - When not flat call redraw to recalculate sizes on creare handle to match
9144 - Revert 77220 because it causes some regressions in toobar
9147 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9149 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9150 now actually enters a usable state.
9152 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9154 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9155 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9158 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9160 * ToolBar.cs: Save default_size on create handle to use later for buttons
9161 without text, needed to mimic win32 behavior.
9163 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9165 * ToolBar.cs: Fix button layour to best fit width or height according to
9166 vertical or not. Fixes #81524.
9168 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9170 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9171 toolbar size info because different styles theres different sizes.
9174 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9176 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9177 if we are using checkboxes, checked is true, and we have less
9178 than two images in StateImageList; for the 1.1 in the same scenario
9179 draw the first image if we have at least one image in StateImageList.
9180 Fixes part of #81191.
9182 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9184 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9185 the owner's Items collection on merge.
9187 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9189 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9190 * ToolStripItemCollection.cs: Lots of fixes to when events get called
9191 and parent/owner gets changed based on gert's unit tests.
9193 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9195 * MaskedTextBox.cs: Started implementing parts of it.
9197 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9199 * ListView.cs: When clicking the checkbox on the items
9200 take into account the double clicks even if we have only
9201 one image in StateImageList (only for 1.0/1.1). Also
9202 generate an extra change of checked state when we receive
9203 the second click on checkbox (match .Net behaviour).
9204 Fixes part of #81191.
9206 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9208 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9210 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9212 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9213 even if OnLoad is overriden and base.OnLoad is not called.
9216 2007-05-10 Andreia Gaita <avidigal@novell.com>
9218 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
9219 shame. (I blame my ever-persisting and annoying cold)
9221 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9223 * ListView.cs: Don't eat navigation keys. Let them flow through to
9224 KeyDown/KeyPress routines. [Fixes bug #81569]
9226 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9228 * ListView.cs: When handling keys for selecting the item based off
9229 keyboard input, do not consider keys pressed with Alt or Control. Also,
9230 correctly handle keys when the Shift key is down. [Fixes bug #81578]
9232 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9234 * Control.cs: When using UseWaitCursor, we have to store the requested
9235 Cursor to use when UseWaitCursor is turned off.
9237 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9239 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
9241 * Application.cs: Use PreProcessControlMessage instead of
9243 * PreProcessControlMessage.cs: Make internal for 1.1.
9245 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9247 * Control.cs: Add InternalContains focus property, which hast the same
9248 functionality of ContainsFocus, but also including implicit controls.
9249 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9250 since we need to know if the focus is contained in our implicit
9251 ItemControl when calculating Layout. Fixes part of #80888.
9253 2007-05-08 Everaldo Canuto <everaldo@simios.org>
9255 * ToolTip.cs: Remove center form string alignment as it must be align to
9258 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
9260 * ToolStripItemCollection.cs: Set the new item's parent and owner
9261 in Insert like we do in Add. [Fixes bug #81568]
9263 2007-05-08 Jackson Harper <jackson@ximian.com>
9265 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9266 - Off by one error in SetTop
9267 - Disable DoubeBuffering
9269 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9271 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9272 control as much as necessary in order to make it entirely visible,
9273 instead of centering the control in the container (matches MS
9274 behaviour). CalculateCanvasSize: we need to take the current scroll
9275 position into account when calculating the maximum canvas,
9276 otherwise the following scenario will fail: resize so that the
9277 scrollbars appear, use the scrollbars to scroll, resize again
9278 smaller, and now the canvas size is too small. Recalculate: when
9279 showing scrollbars make sure they start off at 0, and try to scroll
9280 the active control into view. Fixes #79540. HandleScrollBar: don't
9281 scroll anywhere if the scrollbar isn't visible.
9283 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9285 * ListView.cs: When focus changed, call Layout/Invalidate
9286 in the focused item to update the selected state (should show
9287 entire label when ListView is focused, and a part of it if is not).
9288 * ListViewItem.cs: When doing layout for LargeIcon, take into account
9289 for displaying the entire label not only the Focused state of the
9290 item, but also the Focused state of the ListView (match .Net
9293 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9295 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9296 Implement UseWaitCursor.
9298 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9299 Applying contributed patch from Sergey Volk.
9301 * Clipboard.cs: Implement SetDataObject retry logic and new overload
9303 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9305 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9307 * Control.cs: Implement DrawToBitmap.
9309 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9310 Applying contributed patch from Stefan Noack.
9312 * Control.cs: Add [Get|Set]AutoSizeMode.
9314 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9316 * MdiClient.cs: Unmerge menus when the last child is closed.
9318 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9320 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9321 * ToolStripManager.cs: Call Merge on DropDowns.
9324 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9326 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9328 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9329 visibility. We can't create forms visible, since we have to set the
9330 owner before making the form visible (otherwise Win32 will do
9331 strange things with task bar icons). The problem is that we set the
9332 internal is_visible to true before creating the control, so
9333 is_changing_visible_state is the only way of determining if we're
9334 in the process of creating the form due to setting Visible=true -
9335 this works because SetVisibleCore explicitly makes the form
9336 visibile afterwards anyways. Fixes #80775.
9338 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9340 * ThemeWin32Classic.cs: When drawing ListViewItems,
9341 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9342 or LargeIcon _and_ item is not focused (match .Net behaviour).
9344 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9346 * Control.cs, Form.cs: Fix some obsolete method warnings.
9348 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9350 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9351 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9353 2007-05-04 Andreia Gaita <avidigal@novell.com>
9355 * ContainerControl.cs: Fix active_control attribution when going
9356 up the parent chain so that the first parent container gets the control
9357 and the rest of the parent containers get the child containers (skips
9358 non-containers). Fixes #80729
9360 2007-05-04 Randolph Chung <tausq@debian.org>
9362 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9365 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9367 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9368 takes a size parameter, since the CreateParam's size isn't true for
9369 minimized forms. Fixes #81518,
9371 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9373 * Form.cs: Add OnDeactivateInternal.
9374 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9376 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9378 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9379 accessing the parent. Fixes #81508.
9381 2007-05-03 Chris Toshok <toshok@ximian.com>
9383 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9384 2.0 block, pass listposition + 1 to ChangeRecordState when a row
9385 was added before the current listposition. Fixes the
9386 TestInsertRowBeforeCurrent unit test.
9388 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
9390 * Application.cs: Add RaiseIdle.
9391 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9392 XplatUIX11.cs: Implement RaiseIdle.
9394 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
9395 corcompare work: N - Z
9399 * ScrollableControl.cs
9403 * SystemInformation.cs
9405 * TableLayoutControlCollection.cs
9406 * TableLayoutPanel.cs
9411 * ToolStripComboBox.cs
9412 * ToolStripContainer.cs
9413 * ToolStripContentPanel.cs
9414 * ToolStripDropDown.cs
9415 * ToolStripDropDownItem.cs
9416 * ToolStripDropDownMenu.cs
9418 * ToolStripItemCollection.cs
9419 * ToolStripMenuItem.cs
9421 * ToolStripSplitButton.cs
9424 * TreeNodeCollection.cs
9425 * TreeNodeMouseHoverEventArgs.cs
9428 2007-05-01 Everaldo Canuto <everaldo@simios.org>
9430 * ContextMenu.cs: Add public method Show with alignment property to 2.0
9431 stuff. Thanks aatdark for the patch.
9433 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9435 * GridItem.cs: Implement 2.0 Tag property.
9437 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
9439 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9440 count instead of Nodes.Length. [Fixes bug #81448]
9442 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9444 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9447 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9448 corcompare work: A - M
9449 * BindingNavigator.cs
9454 * FlowLayoutPanel.cs
9460 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9462 * Application.cs: Give toolstrips a chance to process mnemonics.
9463 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9464 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9465 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9467 2007-05-01 Jackson Harper <jackson@ximian.com>
9469 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9471 - Don't set the BoundsSpecified
9473 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9475 * Application.cs: When using the toolstrip shortcut mechanism, allow the
9476 message to pass through to a regular control if it hosted by a toolstrip.
9477 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9478 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9480 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9482 * TextRenderer.cs: Use the flags argument when using the MeasureString
9485 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9487 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9488 the MDI menu item. [Fixes bug #81483]
9490 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
9492 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9493 string. When setting Name to null, use zero-length string instead.
9495 2007-04-29 Andreia Gaita <avidigal@novell.com>
9497 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
9498 DeselectTab). Implement missing 2.0 TabPageCollection methods
9499 (Add, ContainsKey, RemoveByKey, IndexOfKey)
9501 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
9503 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9505 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
9507 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9508 Fixes bug #81479. Include details of exception when LoadFile fails.
9510 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
9512 * DrawListViewSubItemEventArgs.cs: Added missing setter
9514 2007-04-27 Andreia Gaita <avidigal@novell.com>
9516 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
9517 Hide methods (not complete). Implement missing 2.0 OnPopup event.
9519 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9521 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9522 removed in ly last commit (it was breaking the Label edit feature).
9524 * ThemeWin32Classic.cs: When drawing a ListViewItem use
9525 StringAlignment.Near for LineAlignment (match .Net).
9527 2007-04-27 Andreia Gaita <avidigal@novell.com>
9529 * TabControl.cs: Change SetTab so it adds the tabpage to the list
9530 of controls if it isn't already there - was blowing up when doing
9531 tabcontrol.TabPages[i]=new TabPage().
9532 SetTab now does a replace by removing the page at the index.
9533 Add a new InsertTab method that inserts a page in a given index
9534 instead of replacing.
9535 Implements TabPageCollection.Insert(int, TabPage).
9537 2007-04-27 Chris Toshok <toshok@ximian.com>
9539 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9540 internal handler that can be invoked from our subclasses.) Also,
9541 add a comment to PushData about how we need to fix it.
9543 * CurrencyManager.cs: tons of changes here. trying to get things
9544 matching the behavior of .net wrt event orders (ItemChanged,
9545 CurrentChanged, PositionChanged.) I've implemented a private .net
9546 symbol (ChangeRecordState) that appears in stack traces because
9547 it's actually easier to do this than to effective inline all its
9548 various behaviors at every call site.
9550 * RelatedPropertyManager.cs: guard against an exception here by
9551 not using parent.Current if the position is set to -1 (if the
9552 parent datasource is cleared, for instance).
9554 * Binding.cs: don't parse data in PushData (this might be wrong,
9555 but it jives with MS's behavior.) Also, don't call PushData when
9556 we get a CurrentChanged event.
9558 2007-04-27 Andreia Gaita <avidigal@novell.com>
9562 WebBrowserSiteBase.cs,
9563 HtmlDocument.cs: Added stubbed out classes, no real implementations
9566 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9568 * MainMenu.cs: In draw method without parameters call draw method with
9569 PaintEvent, another one (just rect) adjust rectangle and we dont need it
9570 as Rect property is already adjusted. Fixes #80694.
9572 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
9574 * Application.cs: Need to handle keyboard menu deselection here.
9575 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9576 navigation, allowing keyboard to work on X11.
9577 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9579 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9581 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9582 menu bar. It fixes some drawing issues in menu bar.
9584 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9586 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
9587 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9588 when <alt> key is pressed.
9590 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9592 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
9593 example just set visible to false and make this prevent from other problems.
9594 In SystrayAdd always remove pending expose. Fixes #81072.
9596 2007-04-26 Marek Safar <marek.safar@gmail.com>
9598 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9601 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9603 * ListView.cs: Added three missing 2.0 events and corresponding
9604 EventHandlers. Added the OwnerDraw property.
9605 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9607 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9609 * DrawListViewItemEventArgs.cs
9610 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9612 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9614 * TextControl.cs: Fixed typo in constructor
9616 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
9618 * Application.cs: Create a shortcut path so that currently selected
9619 MenuStrips can intercept keyboard events without having focus.
9620 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9621 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9622 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9623 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
9624 generate WM_SYSCOMMAND message in X11 for other platforms.
9625 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9626 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9627 * ToolStripSplitButton.cs: Add DefaultItem property.
9629 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9631 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9632 fixes some menu draw problem on Windows with border diferent from default
9633 it also fixes #81403.
9635 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9637 * Form.cs: Refactor WndProc into separate methods, just like Control is
9640 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9642 * Control.cs: set_Text: move the call to the driver into a seperate
9643 virtual method so that Form can override it.
9644 * MaskedTextBox.cs: Corcompare fixes.
9645 * Form.cs: Override UpdateWindowText and only update the styles if the
9646 form has been shown (fixes #81405).
9648 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
9650 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9651 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9652 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
9653 the form lost focus or another control was clicked.
9655 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
9657 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9660 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9662 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9663 DrawListViewItemEventHandler.cs,
9664 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9666 * X11Structs.cs: More ToString implementation.
9668 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
9670 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9671 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9673 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9675 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9677 * FormCollection.cs: Don't add a form if it's already in the
9679 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9680 according to behaviour and MSDN. The ownerWin32 is the active
9681 window at the moment when we call ShowDialog, not the context's
9682 main form (the context's main form may open another form that opens
9683 a form with ShowDialog, the win32 owner is the second form). Add
9684 and remove forms to the Application.OpenForms in other places to
9685 better match MS behaviour. Add an IsActive property that raises
9686 On(de)Activated only if the active state has changed (we were
9687 raising OnDeactivated before OnActivated while creating forms).
9688 * Application.cs: Refactor Enabling/Disabling of windows for modal
9689 dialog loops out to separate methods, and restore the thread
9690 context when we quit the method. Fixes #81407.
9692 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9694 * ListView.cs: In ItemControl.HandleClicks, also fire
9695 2.0 MouseClick or MouseDoubleClick events on the parent,
9696 not only the Click/DoubleClick events.
9698 2007-04-24 Andreia Gaita <avidigal@novell.com>
9700 * TableLayoutSettings.cs:
9701 - Added a GetControls method and a support structure to help the
9702 TypeConverter to enumerate the controls for serialization.
9703 - Added a new serialization constructor.
9704 - Added a isSerialized flag initialized to true on the
9705 serialization constructor so that the TableLayoutPanel.LayoutSettings
9706 setter does not throw the designed NotSupportedOperation exception
9707 when the object is built through deserialization.
9708 - Implemented GetObjectData
9710 * TableLayoutPanel.cs: Added check on LayoutSettings.
9712 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9714 * ListView.cs: Report Click and DoubleClick events to the parent
9715 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9716 from breaking the click count state when using dialog forms (Control
9717 reports the clicks in a similar fashion). In the previous behaviour
9718 the last WM_LBUTTONUP message in a double click was sent to the
9719 ListView's form, instead of the ListView, which was breaking the click
9720 count for it. Fixes #80387.
9722 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
9724 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9726 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
9728 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
9729 us from created dropdowns for menu items that do not have subitems.
9730 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9731 Check HasDropDownItems before calling DropDown so a dropdown will not be
9732 created if it isn't needed.
9734 2007-04-24 Jackson Harper <jackson@ximian.com>
9736 * TreeView.cs: Set the first node to the selected node when we get
9737 focus if there is no selected node.
9739 2007-04-24 Andreia Gaita <avidigal@novell.com>
9741 * MimeIcon.cs: remove using blocks so that image streams are
9742 not disposed of. Fixes #80151
9744 2007-04-24 Jackson Harper <jackson@ximian.com>
9746 * TextBoxBase.cs: Fixup the height of textboxes when the control
9749 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
9751 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
9752 for each ToolStripItem when the parent's RightToLeftChanged is called.
9754 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9756 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9758 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9759 property, so that the setter can be overriden too.
9760 * TextBox.cs: Change GetContextMenuInternal() to use
9761 ContextMenuInternal.
9763 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9765 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9768 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9770 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9773 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9775 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9776 avoid duplicate work. Mostily skeleton code, it's not working at
9779 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
9781 * NotifyIcon.cs : stub for MouseClick event
9782 * Application.cs: stub for SetUnhandledExceptionMode
9784 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
9786 * BindingNavigator.cs : Initial (partial) implementation
9788 2007-04-23 Jackson Harper <jackson@ximian.com>
9790 * TreeView.cs: Do not create the treeview's handle when setting
9791 the scroll position.
9792 - ExpandAll needs to compute the scrollbars so it knows which
9793 position to set the bar too.
9795 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9797 2007-04-23 Jackson Harper <jackson@ximian.com>
9799 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9802 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
9804 * ToolStripItem.cs: Make GetImageSize internal.
9805 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9806 need to draw an item. Fixes a reported issue where images on menus
9807 that were not 16x16 were drawing incorrectly.
9809 2007-04-21 Miguel de Icaza <miguel@novell.com>
9811 * Padding.cs: Use the converter, fixes the resgen2 issue with
9814 2007-04-21 Jackson Harper <jackson@ximian.com>
9816 * TreeView.cs: Dont try to unhighlight the selected node if there
9817 isn't a selected node.
9819 2007-04-21 Jackson Harper <jackson@ximian.com>
9825 * TreeView.cs: Use the InternalBorderStyle property to set the
9826 initial border style, this forces the client rectangle to be sized
9829 2007-04-20 Jackson Harper <jackson@ximian.com>
9831 * TreeView.cs: Simplify scrolling to the last node after expanding
9833 - Fix some off by ones with setting the bottom.
9835 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
9837 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9838 that. We were incorrectly doing it the other way around. Also,
9839 update ClientSize if we change the BorderStyle before the control
9842 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
9844 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9845 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9846 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9847 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9848 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9849 Caption to CaptionHeight.
9850 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9851 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9852 and FixedFrameBorderSize to return value from current XplatUI driver.
9853 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9854 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9855 and FixedFrameBorderSize using win32 API. Renamed Caption to
9857 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9858 * SystemInformation.cs: Fixed typo in BorderSize.
9860 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
9862 * XplatUI.cs: Added MenuAccessKeysUnderlined.
9863 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
9864 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
9866 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
9867 value from XplatUI driver.
9868 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
9869 SystemParametersInfo.
9870 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
9872 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
9875 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9877 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
9879 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9881 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
9883 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
9885 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
9886 MenuStrips that contain ToolStripSeparators.
9888 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9890 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
9891 DefineStdCursorBitmap.
9892 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
9893 has been created off a standard cursor. This is used to get a
9894 bitmap of the standard cursor when Draw or DrawStretched is called
9895 in order to draw the cursor.
9896 * X11Structs.cs: Added XcursorImage and XcursorImages.
9897 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
9898 DefineStdCursorBitmap.
9899 * Cursors.cs: Update all relevant creations of Cursor to use the new
9900 internal constructor.
9902 2007-04-19 Jackson Harper <jackson@ximian.com>
9904 * TextBox.cs: Move the has_been_focused into the base control, so
9905 some of the text adding methods can manipulate it (probably time
9906 for a better name for this flag too).
9907 - Call a new version of selectall that doesn't scroll
9908 * TextBoxBase.cs: When we append text, if the document is empty,
9909 don't scroll. If the document has text already, we scroll to the
9910 end of the appended text.
9911 - When the text is changed, we reset the has_been_focused, so the
9912 next time the control gets focused, all the text is selected.
9914 2007-04-19 Jackson Harper <jackson@ximian.com>
9916 * TextControl.cs: Move the margins to the document, add a method
9917 so the margin sizes can be updated.
9918 * TextBoxBase.cs: When the border style is changed, update the
9921 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
9923 * Control.cs: Respect DefaultPadding.
9924 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
9925 padding into account.
9926 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
9928 2007-04-19 Jackson Harper <jackson@ximian.com>
9930 * TextControl.cs: Oops, we need to use the ClientRect not the
9933 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9935 * ListView.cs: In ItemControl.ItemsMouseDown, take into
9936 account the double clicks when CheckBoxes are used and
9937 the pointer is inside the checkbox. Fixes part of #81191.
9939 2007-04-18 Jackson Harper <jackson@ximian.com>
9941 * TextControl.cs: Pressing the end key shouldn't move the caret
9942 past the line ending.
9943 * TextBoxBase.cs: We can still delete if we are in the line
9944 ending and the combine will just kill the existing line ending.
9946 2007-04-18 Jackson Harper <jackson@ximian.com>
9948 * TextControl.cs: We can't move lines, then invalidate their
9949 bounds, we need to get the old bounds and combine that with the
9951 * TextBoxBase.cs: Before combining two lines for a delete, we need
9952 to invalidate the area of the old line, since that will be moved
9953 in the combine operation.
9955 2007-04-18 Everaldo Canuto <everaldo@simios.org>
9957 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
9958 with transparent background. Fixes #80482.
9960 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
9962 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
9963 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
9966 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
9968 * CreateParams.cs: Add a couple of helper methods and do a less string
9969 concatenation in ToString.
9970 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
9971 overload that takes a Control parameter, since this method may be
9972 called before a control is assigned to the hwnd (from
9973 CreateWindow), and update CreateWindow to use the new overload. In
9974 GetMenuOrigin subtract the title bar from the y position if the
9975 form has a window manager (since we're painting it and not X).
9976 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
9977 CreateParams to calculate the origin (since border sizes may vary).
9978 In ScreenToMenu only subtract the title height if we actually have
9980 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
9981 mdi children never have menus of themselves.
9982 * InternalWindowManager.cs: Implement menu handling like form does.
9983 Added GetMenuOrigin to calculate the menu origin, can't use the
9984 CreateParams from the form like normally since it's lying.
9985 * Hwnd.cs: Implement GetBorderSize better (in the sense more
9986 windows-like) and add Inflate and comparison operators to the
9987 Borders type. When calculating MenuOrigin and it's a form with a
9988 window manager, use the window manager to calculate it.
9990 2007-04-17 Chris Toshok <toshok@ximian.com>
9992 * Control.cs (CreateControl): turns out in 2.0 we don't need this
9993 OnBindingContextChanged thing here. It's only generated from
9994 ContainerControl.OnCreateControl. Fixes a newly written unit test
9995 - BindingTest.BindingContextChangedTest4.
9997 2007-04-17 Jackson Harper <jackson@ximian.com>
9999 * ScrollBar.cs: When setting values, make sure the current
10000 position stays within the new values range.
10002 2007-04-17 Chris Toshok <toshok@ximian.com>
10004 * Control.cs (CreateControl): talk about a bizarre corner case.
10005 Don't emit OnBindingContextChanged here if we're a parentless
10006 control (i.e. if we're a form.). Fixes
10007 BindingTest.BindingContextChangedTest2.
10009 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10011 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
10012 from win32. Fixes #81255.
10014 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10016 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10017 already present in CalculateButtonTextAndImageLayout.
10019 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10021 * XplatUIX11.cs: When setting min/max size for a window we need to
10022 translate the coordinates to x coordinates. Create an overload of
10023 SetWindowMinMax that takes a CreateParams handling this, and change
10024 SetWMStyles to call this function (can't use Control.FromHandle in
10025 the SetWindowMinMax to get the control/CreateParams from the handle
10026 because the handle might not have been assigned to the control
10027 yet). Fixes #81371.
10029 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10031 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10032 if StateImageList is non-null and it has less than two items (match MS
10033 behaviour). Also, in HandleNavKeys handle the Space key, calling
10034 the new ToggleItemsCheckState method, which tries to change the
10035 checked state of the selected items. Fixes part of #81191.
10037 2007-04-16 Jackson Harper <jackson@ximian.com>
10039 * RichTextBox.cs: namespace cleanup.
10041 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10043 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10045 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10048 * Control.cs: Call invalidate in set_Region.
10050 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10051 it dont works here.
10053 2007-04-16 Jackson Harper <jackson@ximian.com>
10055 * TextBoxBase.cs: When enter is pressed, we need to update all
10056 lines below the current.
10058 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
10060 * MdiClient.cs: Implement implicit menu merging for MDI
10061 children. When a child form is active, if it has a menustrip
10062 and the parent form has a MainMenuStrip, automatically merge
10065 2007-04-15 Andreia Gaita <avidigal@novell.com>
10067 * TabControl.cs: Refactored sizing methods to not repeat
10068 code all over the place. Tab bounds are now calculated
10069 as if alignment is top and single line, and only when
10070 setting the bounds are the positions adjusted according
10071 to alignment. Replaced hardcoded positions, spacings and
10072 paddings by getting the values the ThemeEngine.
10075 * Theme.cs: Change TabControl properties and methods so
10076 that all start with TabControl*. Added more properties
10077 to help remove hardcoded values on tabcontrol.
10078 Add CPDrawBorder3D declaration so the Theming classes
10081 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10083 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10084 on the Theming namespace, and call the appropriate methods here.
10085 Change CPDrawBorder3D to public.
10087 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10089 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10090 the control after firing the OnMouseUp event, instead of sending
10091 the message before the mentioned event. This is so we can match the
10092 MS behaviour. Fixes part of #80385.
10094 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10096 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10097 RightToLeft property.
10099 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10101 * ToolStrip.cs: Add properties and internal methods to support merging.
10102 * ToolStripItem.cs: Add MergeAction and MergeIndex.
10103 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10104 not trigger reparenting or layouts.
10105 * ToolStripManager.cs: Add Merge and RevertMerge methods.
10106 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10107 is hosting the overflow menu.
10109 2007-04-13 Jackson Harper <jackson@ximian.com>
10111 * TextControl.cs: Set the line ending correctly for the first
10114 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
10116 * Theme.cs: Update GetMethod to get the new definition for
10117 KnownColors.Update (and fix theme color updates).
10119 2007-04-12 Everaldo Canuto <everaldo@simios.org>
10121 * MessageBox.cs: Fix some test and button position.
10123 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10125 * Form.cs: Consider the implicit controls in
10126 GetRealChildAtPoint. We need it since this method
10127 is called on Form when handling the some messages in
10128 WndProc, and need to consider those implicit ones too.
10131 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
10133 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10134 if there are no ShortcutKeys set.
10135 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10136 set, use it when painting.
10138 2007-04-12 Jackson Harper <jackson@ximian.com>
10140 * TextControl.cs: Fix some off-by-one issues in line duplication
10141 and insertion in the undo manager. Also, overwrite the first tag
10142 of a line on insert, if it is just a zero lengthed tag. This
10143 prevents us from getting an extra stranded tag at the beginning of
10146 2007-04-11 Everaldo Canuto <everaldo@simios.org>
10148 * Label.cs: Remove check for handle created in CalcAutoSize, we need
10149 to calculated proper size including when handle was not created yet.
10151 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10153 * MdiWindowManager.cs: When moving a form, allow the form to be moved
10154 when the mouse is outside of it's parent's client rectangle. Fixes
10155 #79982 (take 3, part 2).
10157 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10159 * X11Structs.cs: Add a few ToString() overrides.
10160 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10161 the window location in a window-manager independent way. Reworked
10162 FrameExtents, it now actually works. Reworked AddConfigureNotify
10163 and ReparentNotify handling to use GetTopLevelWindowLocation
10164 instead of the earlier, more hacky solution. Reworked SetWMStyles,
10165 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10166 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10167 for all other windows (fixes #81281 part 1), a toolwindow is hidden
10168 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10169 and generally refactored to do as few calculations as possible
10172 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
10174 * Theme.cs: Change "reflective-contract" between MWF and SD to
10175 minimize # of calls, avoid Color serialization and avoid updating
10176 every "known colors" each time a single one is updated.
10178 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10180 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10181 when not readonly and the text is explicitly set. Code style updates.
10182 * DataGridTableStyle.cs: Removed extra line.
10183 * DataGrid.cs: Code style updates. Removed extra whitespace.
10184 * DataGridColumnStyle.cs: Code style updates. Removed extra
10187 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10189 * XplatUIX11.cs: Added comment that "fixes" #80021.
10191 2007-04-09 Jackson Harper <jackson@ximian.com>
10193 * TextControl.cs: We don't need this -1 on the line count anymore.
10195 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10197 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10198 entered value to underlying type, and convert it back to a string to
10199 apply formatting. Modified GetFormattedValue to use TypeConverter
10202 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
10204 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10205 Use SubItems property when we want to ensure there's at least one
10206 subitem. Modified SubItems property to ensure there's always at least
10207 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10208 the NRE's reported by MS.
10210 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
10212 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10213 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10214 Spaces to tabs. Removed extra tabs.
10216 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
10218 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10219 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
10221 2007-04-06 Jackson Harper <jackson@ximian.com>
10223 * TextBoxBase.cs: When a delete removes a line, recalculate all
10224 lines below that line (they need to get offsets setup correctly)
10227 2007-04-05 Jackson Harper <jackson@ximian.com>
10229 * TextControl.cs: We need to invalidate across the width of the
10230 document when we are invalidating multiple lines.
10231 * TextBoxBase.cs: Don't delete into the line ending.
10233 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10235 * ListView.cs: Restore the check for the MouseHover event
10236 in ListView. It looks like the ListView fires more than one MouseHover
10237 event when HoverSelection is true _only_ in weird-corner scenarios, but
10238 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10241 2007-04-05 Mike Kestner <mkestner@novell.com>
10243 * ListView.cs : raise MouseDown before updating selection.
10244 [Fixes #80373 tab 1&3]
10246 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10248 * ToolStripRenderer.cs: Add static method to mirror image.
10249 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10250 and RightToLeftAutoMirrorImage.
10251 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10253 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10255 * ToolStripSplitStackLayout.cs: Support Alignment property.
10256 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10258 2007-04-05 Jackson Harper <jackson@ximian.com>
10260 * TextControl.cs: Move around the line endings when crossing line
10262 - When combining lines, strip the ending text off the first line.
10264 2007-04-05 Jackson Harper <jackson@ximian.com>
10267 * TextBoxBase.cs: Try to never move the cursor into the line
10270 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10272 * ToolStripItem.cs: Make sure we aren't firing mouse events when
10273 the item is disabled. Also add a few missing methods.
10275 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10277 * ListView.cs: We don't need the MouseEnter/MouseLeave check
10278 to fire just one MouseHover event when HoverSelection is true, since
10279 .Net does fire more than one MouseHover event in that scenario. Also,
10280 fix the selection in HoverSelection, by invoking UpdateMultiSelect
10281 if MultiSelect is true, instead of only setting ListViewItem.Selected.
10282 Finally, we need to reset the Hover logic in MouseMove, even when we
10283 don't have a selected item.
10285 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10287 * ToolStrip.cs: Add several missing methods, properties, and events.
10289 2007-04-04 Chris Toshok <toshok@ximian.com>
10291 * DataGridTextBoxColumn.cs: set the bounds of the text box to
10292 (0,0,0,0) in Commit, as MS does.
10294 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10295 make sure we set CurrentRow on a row header click *before* calling
10296 Select. This moves the current cell (and the textbox) to the new
10297 row. The call to Select then hides the textbox, giving us the
10298 correct behavior. Fixes #80362.
10300 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10301 (ListChangedHandler): reorder the position/current changed events,
10302 and call UpdateIsBinding in the ItemAdded case.
10304 * GridColumnStylesCollection.cs: add some columns events, one of
10305 which raises the CollectionChanged event.
10307 2007-04-04 Jackson Harper <jackson@ximian.com>
10309 * TextControl.cs: When we delete multiple selection lines
10310 invalidate the selection area, don't need to do that for single
10311 lines because the final update view will handle it.
10313 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10315 * Control.cs: When we CreateControl, we need to also create all of the
10316 control's children. The child's OnLoad must also fire before the parent's
10317 OnLoad. Fixes the toolbox size in PDN.
10319 2007-04-04 Jackson Harper <jackson@ximian.com>
10321 * TextBoxBase.cs: When the user presses enter, insert a line
10322 ending into the text. (Maybe this would be a good spot for
10323 Environment.NewLine).
10324 * TextControl.cs: Remove undo manager hack, line endings get
10325 inserted properly now.
10327 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10330 - Remove unneeded parameters in UpdateCursor.
10331 - Fix UpdateCursor to check if menu is active.
10332 - Call UpdateCursor when menu deactivate my click.
10333 [Fixes remaining issues from #80410]
10335 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10337 * Control.cs: GetRealChildAtPoint method added, it make an
10338 recursive child control search for the point.
10340 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10343 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10345 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10347 * Form.cs: Fix mouse position when send back mouse event after closes
10350 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10352 * Form.cs: Simplify the BUTTONDOWN for active tracker.
10354 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10356 * Control.cs: Fix an issue where if a user resized a control inside
10357 a sizing method like OnResize, we would overwrite their explicit
10358 value. Also, only call DefaultSize once in the constructor instead
10359 of 4 times. Also, do not call SetBoundsCore from SetBounds if
10360 nothing actually changed.
10362 2007-04-03 Jackson Harper <jackson@ximian.com>
10364 * TextControl.cs: Don't attempt to copy text for lines with no
10365 text in them (technically this shouldn't happen, but we aren't
10366 always inserting line endings when we should be).
10368 2007-04-03 Jackson Harper <jackson@ximian.com>
10370 * TextBoxBase.cs: Calculate the scrollbars before calculating the
10371 document, because this sets some of the document size properties
10374 2007-04-03 Jackson Harper <jackson@ximian.com>
10376 * TextBoxBase.cs: We need to calculate maximums even if this is
10377 not a multiline control, because the maxs are used for scrolling.
10378 - Display the caret after doing a page up/down, we need to
10379 manually display it because a proper CaretMoved event isn't
10380 triggered (this is because of the way the math is done to
10381 determine how far to scroll).
10383 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10385 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10386 (ToolBar was relying on SetBoundsCore to default the values sent
10387 base off of BoundsSpecified.)
10389 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10391 * DateTimePicker.cs: Change Text so that when a null value or empty
10392 string is assigned to the test we always raise ValueChanged and
10393 TextChanged (earlier implementation would only raise ValueChanged
10394 if the current date value was different from DateTime.Now).
10396 2007-04-03 Andreia Gaita <avidigal@novell.com>
10398 * ButtonBase: Call update after invalidation, fixes #80194
10400 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10402 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10405 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10407 * XplatUIX11.cs: SetWMStyles: If the control is a form with
10408 FormBorderStyle = None, don't give the window any decorations.
10411 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10413 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10414 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10415 to check for is a mix of several styles (such as WS_CAPTION for
10417 * Control.cs: Don't paint an area bigger than the client area when
10418 painting the background colour. Add an internal GetCreateParams.
10419 Update calls to XplatUI.CalculateWindowRect due to API change.
10420 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10421 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10422 the size if it hasn't been handled by any windows. When creating
10423 and moving windows, X wants the location of the entire window, but
10424 the size of the client window, so add
10425 TranslateClientRectangleToXClientRectangle,
10426 TranslateWindowSizeToXWindowSIze and
10427 TranslatedXWindowSizeToWindowSize to cope with this, and call them
10428 before every window creation and move. Update CalculateWIndowRect
10429 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10430 In AddConfigureNotify don't do anything if the hwnd is a zombie
10431 (fixes the BadWindow we were getting while running the tests),
10432 always calculate the offsets when it's a parentless window, not
10433 only when reparented, and translate the window size, since we're
10434 getting the client size of the whole window, excluding entire
10436 * Theme.cs: Added BorderSizableSize.
10437 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10438 anymore. Update calls to XplatUI.CalculateWindowRect due to API
10440 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10441 change. Fake the window styles here instead of in XplatUIWin32 so
10442 that all back-ends get the same window styles (and it's Form that's
10443 deciding when to use wm, not the Win32 backend anyways)
10444 * Hwnd.cs: Completely reworked GetWindowRectangle and
10445 GetClientRectangle - they are now passed a CreateParams and they
10446 only use Style and ExStyle to determine the rectangles (they should
10447 now work just like Win32AdjustWindowRectEx - though quite a few
10448 special cases are probably missing). They should also be 100%
10449 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10450 == rect), and all numbers (borders, menu sizes) are taken from the
10451 current theme. Added a GetBorders helper function that will return
10452 the borders for any given CreateParams (including captions and
10453 menus), and GetBorderSize that returns the given border size only.
10454 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10455 Hwnd.GetClientRectangle.
10457 2007-04-02 Chris Toshok <toshok@ximian.com>
10459 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10460 logic between the values we present to the user and the values
10461 which are stored in the column's property. Also, don't call
10462 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10464 2007-04-02 Jackson Harper <jackson@ximian.com>
10466 * TextBoxBase.cs: Scroll faster!
10468 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10470 * StatusStrip.cs: Layout fixes for PDN.
10471 * ToolStrip.cs: Set item's available to true, and placement to main when
10473 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10474 changing in setter before doing any work, add InternalVisible.
10475 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10476 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10479 2007-04-02 Jackson Harper <jackson@ximian.com>
10481 * TextBox.cs: LBUTTON does not make the textbox select all of it's
10484 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10486 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10487 Makes ToolStripComboBoxes show up again.
10489 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10491 * ListView.cs: Add a hover_pending field in ListView
10492 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10493 cycle (we are resetting the MouseHover logic in XplatUI
10494 to handle HoverSelection). Fixes #80429.
10496 2007-04-02 Jackson Harper <jackson@ximian.com>
10498 * TextControl.cs: Make sure the attributes get set on the last
10500 - Still have to do the end tag if we have stepped all the ways to
10503 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
10505 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10506 on an internal libgdiplus call when the information is already
10507 available via the public API.
10509 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10511 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10512 control is removed from a control collecftion.
10513 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10514 Fixes FormPropertyTest (failed on rare occasions).
10515 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10516 of Win32SetParent (when changing from no parent to a parent it
10517 might add the new parent's location in screen coordinates to this
10518 window's location).
10519 * Form.cs: Rework ChangingParent once again, now the handle is
10520 recreated whenever a FormWindowManager is added or removed (that is
10521 whenever a normal form is parented or abandoned). Also change
10522 CreateParams so that all non-toplevel windows always get the
10523 specified sice (StartupPosition is never considered for
10524 non-TopLevel forms).
10525 * ContainerControl.cs: Add ChildControlRemoved, the container control
10526 needs to be notified when a control is removed from it's
10527 collection, in the case the removed control is the active control.
10529 2007-04-02 Jackson Harper <jackson@ximian.com>
10531 * RichTextBox.cs: Use the new methods for setting the font and
10532 color, these methods set the specified attribute without
10533 overriding the other attributes.
10535 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10537 * ToolStripPanel.cs: Fixes for better layouts in PDN.
10539 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
10541 * TextBox.cs: Added internal ChangeBackColor method to special-case
10542 Color.Empty. Added check for invalid ScrollBars value.
10543 * TextBoxBase.cs: Added internal ChangeBackColor method.
10544 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10545 internal ChangeBackColor method to special-case Color.Empty. Added
10546 check for invalid ScrollBars value.
10548 2007-03-30 Everaldo Canuto <everaldo@simios.org>
10550 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10552 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10554 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10555 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10556 [Based on submitted patch from Olivier Duff.]
10558 2007-03-30 Jackson Harper <jackson@ximian.com>
10560 * TextBox.cs: Only select all on initial focus if the user has not
10561 specified a selection area.
10563 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10565 * UserControl.cs: Override CreateParams.
10567 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10571 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10572 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10573 check for is a mix of several styles (such as WS_CAPTION for instance).
10574 * Control.cs: Don't paint an area bigger than the client area when painting
10575 the background colour. Add an internal GetCreateParams. Update calls to
10576 XplatUI.CalculateWindowRect due to API change.
10577 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10578 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10579 hasn't been handled by any windows. When creating and moving windows, X
10580 wants the location of the entire window, but the size of the client
10581 window, so add TranslateClientRectangleToXClientRectangle,
10582 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10583 to cope with this, and call them before every window creation and move.
10584 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10585 removing DeriveStyles). In AddConfigureNotify don't do anything if the
10586 hwnd is a zombie (fixes the BadWindow we were getting while running the
10587 tests), always calculate the offsets when it's a parentless window, not
10588 only when reparented, and translate the window size, since we're getting
10589 the client size of the whole window, excluding entire window.
10590 * Theme.cs: Added BorderSizableSize.
10591 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10592 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10593 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10594 Fake the window styles here instead of in XplatUIWin32 so that all
10595 back-ends get the same window styles (and it's Form that's deciding when
10596 to use wm, not the Win32 backend anyways)
10597 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10598 they are now passed a CreateParams and they only use Style and ExStyle
10599 to determine the rectangles (they should now work just like
10600 Win32AdjustWindowRectEx - though quite a few special cases are probably
10601 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10602 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10603 sizes) are taken from the current theme. Added a GetBorders helper
10604 function that will return the borders for any given CreateParams
10605 (including captions and menus), and GetBorderSize that returns the given
10607 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10608 Hwnd.GetClientRectangle.
10610 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10612 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10613 layout of the mdi children is handled by CreateParams. Fixes
10616 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10618 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10621 * Form.cs: When active tracker mouse down is not processed, send event
10622 back to control inside mouse position. [Fixes #81227]
10624 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
10626 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10627 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10628 stealing focus from the active form on Windows. (Control will be made
10629 visible in ShowWindow.)
10631 2007-03-29 Mike Kestner <mkestner@novell.com>
10633 * ImageList.cs : add internal Changed event.
10634 * ListView.cs : hook up to StateImageList.Changed to perform
10635 invalidations when the the state icon list changes. [Fixes #81191]
10637 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
10639 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10640 to prevent tooltips from stealing focus from the active form on Windows.
10642 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10644 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
10646 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10648 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10650 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10653 2007-03-29 Jackson Harper <jackson@ximian.com>
10655 * TextControl.cs: When deleting text from non multiline textboxes,
10656 we need to update the entire document, because line offsets will
10659 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10661 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10662 added to theme, now we can create themes that uses diferent notify engines
10663 like notification-daemon from galago project or growl for Mac OS.
10665 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10667 * NotifyIcon.cs: Prevent Balloon to show in task bar.
10669 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10671 * XplatUIX11.cs: Prevent system to open more than one balloon.
10673 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10674 some compiler warning messages.
10676 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10680 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10682 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
10683 implemented, this methods is used by NotifyIcon.BalloonWindow class.
10685 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
10688 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10690 * ListViewItem.cs: Forgot to make Invalidate internal.
10692 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10694 * ListView.cs: Add a InvalidateSelection method to
10695 invalidate methods which are currently selected, and call
10696 it when setting FullRowSelect and HideSelection, instead of
10699 2007-03-28 Chris Toshok <toshok@ximian.com>
10701 * XplatUIX11.cs (UnmapWindow): reindent this block.
10703 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10704 the selection_start if we're moving the selection (that is, not
10705 extending it). Fixes bug #80461.
10707 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10709 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10710 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10711 create private ControlCollection.
10713 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10715 * Control.cs: We need to call OnVisibleChanged for our implicit
10716 children as well as our normal children. Fixes scrollbars in
10717 comboboxes not showing up.
10719 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10721 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10722 the check for IsHandleCreated first. The check in CreateHandle is not
10723 good enough because CreateHandle can be overriden, and the override
10724 should not be called if the handle is already created.
10726 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10728 * ToolStrip.cs: Remove MonoTODO for tooltips.
10729 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10730 * ToolStripContainer.cs: Add custom ControlCollection class.
10731 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10732 * ToolStripDropDown.cs: Add some missing properties/methods.
10733 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10734 * ToolStripItem.cs: Remove MonoTODO for tooltips.
10735 * ToolStripManager.cs: Add IsShortcutDefined.
10736 * ToolStripOverflow.cs: Override LayoutEngine.
10737 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10738 * ToolStripSeparator.cs: Add ImageKey.
10740 2007-03-28 Jackson Harper <jackson@ximian.com>
10742 * TextControl.cs: If a char delete removes a line ending, we need
10743 to update the ending style.
10744 - Make sure the line ending calcs get called.
10746 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10748 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10749 it was making the new code not work. Fixed a typo in the new code
10750 as well. Fixes #79826.
10752 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10755 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10756 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10757 - SystrayBalloon method implemented.
10758 [Add support for notifyicon balloon on win32, #79149]
10760 2007-03-27 Mike Kestner <mkestner@novell.com>
10762 * ThemeWin32Classic.cs : update StateImageList selection to mirror
10763 the ms behavior when only one image is added to the list.
10766 2007-03-27 Jackson Harper <jackson@ximian.com>
10768 * TextControl.cs: Improvements to non multiline line ending
10771 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10773 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
10775 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10778 - Balloon message handling added.
10779 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
10781 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10782 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
10783 to SystrayBalloon to me like other Systray method, also a
10784 handle parameter added.
10786 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10788 * ListView.cs: Show scrollbars even when items.Count == 0
10789 but the columns Width is bigger than the ListView.Width.
10790 Also, when columns.Count == 0 set layout_wd and layout_ht
10791 to the ClientRectangle values, so we don't show any scrollbar
10794 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10796 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10798 2007-03-27 Jackson Harper <jackson@ximian.com>
10800 * RichTextBox.cs: The RTF library decodes the text properly for us
10803 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10805 * ListView.cs: Display HeaderControl even when columns.Count == 0.
10806 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10807 ListView header (HeaderControl), instead of Control.BackColor.
10809 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
10811 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10812 Fixes tab control issues where controls would not show up because they
10813 never received their OnVisibleChanged call.
10815 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10817 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10820 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
10822 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10823 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10824 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10825 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
10826 the handle. Fix WindowState by using the internal variable until we are
10827 sure that we've been shown.
10828 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10832 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
10834 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10835 (at least borders). Fixes #79386 on Linux (with a small difference
10836 in behaviour: when trying to resize a caption-less window metacity
10837 shows the sysmenu. Resizing is still possible though).
10838 * XplatUIWin32.cs: When setting window styles send request an extra
10839 WM_NCCALCSIZE when it's a form without title (due to no text and no
10840 caption), since Win32 seems to calculate it wrong the first time we
10841 get the message, though the second time things work as they should.
10842 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10843 newly reparented window might show up unparented. Update
10844 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10845 there's no title text. Fixes #79386.
10847 2007-03-27 Mike Kestner <mkestner@novell.com>
10849 * ListBox.cs : don't perform invalidations if the handle hasn't been
10850 created. [Fixes #80753]
10852 2007-03-27 Mike Kestner <mkestner@novell.com>
10854 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10857 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10859 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
10860 needed to implement Balloon.
10862 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10864 * ListViewItem.cs: In the constructors that take
10865 an array of strings, don't use ListViewSubItemCollection.AddRange
10866 method to add items, since we need to have a different behaviour (in
10867 the constructors we add an item for each null string, opposed to
10868 the behaviour of AddRange, which adds nothing).
10870 2007-03-26 Andreia Gaita <avidigal@novell.com>
10872 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
10874 2007-03-26 Jackson Harper <jackson@ximian.com>
10876 * TextControl.cs: Draw and measure line endings when in non
10878 - When searching the text, count the end of the last line as a
10881 2007-03-26 Jackson Harper <jackson@ximian.com>
10883 * RichTextBox.cs: The selection_start and selection_end don't
10884 really track the correct tags for the selection. So we'll manually
10885 compute the correct tag here.
10887 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10889 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
10890 and Continuous styles. Fixes #79469.
10892 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
10894 * ToolStrip.cs: Implement Tooltips.
10895 * ToolStripItem.cs: Create internal method for determining tooltip.
10897 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
10899 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
10901 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10903 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
10904 it prevents a problem thak keeps icon visible after application
10907 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10909 * NotifyIcon.cs: Balloon properties and methods created.
10911 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10912 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
10914 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
10916 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
10918 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
10920 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
10921 parameter indicates which aspects were explicit/user-set.
10922 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
10924 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
10926 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
10927 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
10928 SmallChange, and Value (2.0).
10929 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
10931 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10933 * ListView.cs: Always set item_control.Width in LayoutDetails
10934 if View is Details. Setting it later in CalculateScrollBars
10935 in a not-so-corner scenario (the sum of columns width is
10936 not bigger than the ListView width when handle is created, and then
10937 that sum gets bigger by increasing the width of the columns)
10938 causes a very weird recursion path (which shouldn't be happening,
10939 since header_control sets it in CalculateScrollBars too). This bug
10940 appeared after Chris' fixes for handle created issues, so probably
10941 it's related to some handle-creation time.
10943 2007-03-23 Chris Toshok <toshok@ximian.com>
10945 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10946 case where there's an add row, just so we don't end up in a case
10947 where it's not displayed (this happens when the row is partially
10948 obscured). Fixes bug #79574.
10950 2007-03-23 Jackson Harper <jackson@ximian.com>
10954 * RichTextBox.cs: Preserve line endings in the lines text buffer,
10955 also added an enum that represents the line ending type.
10957 2007-03-23 Andreia Gaita <avidigal@novell.com>
10959 * NumericUpDown.cs: Fix logic so Text and Value properties are not
10960 messed with in every method call, but only from DownButton,
10961 UpButton, UpdateEditText() and ValidateText. Fixes #80346
10963 2007-03-23 Chris Toshok <toshok@ximian.com>
10965 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
10966 format objects if the format spec is "". Fixes bug #80889.
10968 2007-03-22 Miguel de Icaza <miguel@novell.com>
10970 * ToolStripPanel.cs (Join): added stubs to build PDN3
10972 * Control.cs (AutoScrollOffset): Add.
10974 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
10975 property, its only implemented for Win32, on X11 it defaults to
10976 some hardcoded value.
10978 * ToolStripItem.cs (AllowDrop): Add property
10980 2007-03-22 Mike Kestner <mkestner@novell.com>
10982 * ListView.cs : in FullRowSelect Details mode, only enable box
10983 selection if the user clicks over the "item" column outside of the
10984 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
10986 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10988 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
10989 handle is not created yet.
10990 * Form.cs: Select: Don't call CreateHandle if the handle is already
10991 created, avoids a stack overflow on Windows when we are recreating
10993 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
10994 they are made visible, and override AfterTopMostControl to keep
10995 them on top when other controls are brought to front.
10996 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
10997 or force_*scroll_visible is true (old implementation always shows
10998 scrollbars when needed, no matter what auto_scroll was set to).
10999 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11000 IsHandleCreated check.
11002 2007-03-22 Andreia Gaita <avidigal@novell.com>
11004 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11005 row or col separator.
11006 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11008 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11010 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11012 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11014 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11015 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
11016 every time. Fixes #80410.
11018 2007-03-22 Chris Toshok <toshok@ximian.com>
11020 * BindingSource.cs (AddNew): partially implement.
11022 remove a couple of NotImplementedException's
11023 to get bug #81148 closed.
11025 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11030 - UpdateCursor method added to update the screen cursor.
11031 - GetAvailableCursor method added to return cursor for enabled tree,
11032 it searches for cursor on control and it's parent's for enabled control.
11033 - Call UpdateCursor method on setter of Cursor property.
11034 - On setter of Enabled call UpdateCursor when it is false, we need to
11035 change cursor to normal (or to this parent cursor) because cursor
11036 setting theres no effect to disabled controls.
11037 - Some minor source changes to follow the coding style guidelines.
11039 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
11042 2007-03-22 Chris Toshok <toshok@ximian.com>
11044 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11047 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11049 * XplatUIX11.cs: Implement default locations for forms.
11050 * Form.cs: Completely rework startup location for forms. Fixes #79964.
11051 * Hwnd.cs: Add previous_child_startup_location (to track the current
11052 startup location for any child forms of the current form) and
11053 previous_main_startup_location (to track the startup location for
11054 the current toplevel form).
11056 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11058 * Control.cs: Don't trigger a layout if an implicit control is added
11059 that isn't visible. Also, don't notify the owner when an implicit control
11060 is added. (Owners shouldn't even know about their implicit controls.)
11062 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11064 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11065 to save some re-layouts.
11067 2007-03-21 Everaldo Canuto <everaldo@simios.org>
11069 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11072 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11074 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11075 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11077 2007-03-21 Mike Kestner <mkestner@novell.com>
11079 * ListView.cs : disable selection update for non-left button clicks
11080 with mods and over selected items. [Fixes #80524]
11082 2007-03-20 Jackson Harper <jackson@ximian.com>
11085 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11088 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11090 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11091 very probably a more complicated calculation there. Update the
11092 textbox' ForeColor and BackColor when the ComboBox' colors are
11093 changed. Change the border change in LayoutComboBox to only affect
11094 the textbox, not all the calculations there. Seems to fix most of
11097 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11099 * ComboBox.cs: Handle Home and End keys as well as all combinations of
11100 modifiers + navigation keys as input keys, enables advanced text
11101 selection in the combobox (like Shift+Left Arrow for instance).
11102 ComboTextBox now overrides Focused and returns whatever
11103 ComboBox.Focused returns, since it really should be focused
11104 whenever the ComboBox is. Fixes #80795. Also make the border around
11105 the text box one pixel bigger, as mentioned in #79436.
11107 2007-03-20 Jackson Harper <jackson@ximian.com>
11109 * TreeView.cs: Don't offset the images, this was causing some
11110 artifacts when expanding/collapsing with images that were the
11111 exact height of the treenode.
11113 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11115 * TrackBar.cs: Query the theme for the correct value when the mouse
11116 moves and the thumb is pressed.
11117 * Theme.cs: Added TrackBarValueFromMousePosition
11118 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11119 implementation was updating the trackbar value when drawing, now
11120 the drawing methods only draw. Fixes #80900. Refactored the
11121 calculations out to TrackBarValueFromMousePosition and
11122 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11123 according to the mouse position whenever it wants to. Changed the
11124 light coloured pen when drawing the thumb from ControlLight to
11125 ControlLightLight, because the ControlLight is the same colour as
11126 the background so the 3D effect is lost.
11128 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11130 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11131 defined. Fixes #80784.
11133 2007-03-20 Marek Habersack <mhabersack@novell.com>
11135 * ContextMenuStrip.cs: align with the change introduced in
11138 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11140 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
11141 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
11144 2007-03-19 Chris Toshok <toshok@ximian.com>
11146 * Control.cs (WmPaint): don't make use of the Handle property
11147 after an event is emitted, as the user could have closed the
11148 form/destroyed the control. Store the Handle in a local variable
11149 and make use of that. Fixes bug #80768.
11151 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11153 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11154 behavior in X11 environments.
11156 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11158 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11159 because on setter of topmost we dont call SetTopmost when handle is not
11162 2007-03-20 Jackson Harper <jackson@ximian.com>
11164 * TextControl.cs: Need to use SelectionLength () not
11165 selection_length, since that var is reset to -1.
11166 - Draw the caret when we don't have focus.
11167 * TextBox.cs: The selectall actually doesn't occur until the first
11169 * TextBoxBase.cs: Need to update the caret position after a
11172 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11174 * ListView.cs: Enable scrolling when using Tile view.
11176 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11180 * XplatUIDriver.cs: Abstract SetOwner method created.
11182 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
11183 must be implemented and was masked as todo.
11185 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
11188 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
11189 cheking for null owner to remove transient. The SetTopmost will be change
11192 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11193 SetTopmost. Now owned forms will work properly in win32 and X11.
11195 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11197 * MdiWindowManager.cs: Update function name.
11198 * Form.cs: After closing a form MdiParent is always null.
11199 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11200 better what it should do: necessary book-keeping when the form is
11201 closed, it should not close the form itself.
11203 2007-03-19 Andreia Gaita <avidigal@novell.com>
11205 * ListViewItem.cs: Fix back and fore color. The subitems only
11206 use their own colors if they are set, otherwise use the listview's
11207 colors. Don't set default colors on constructor for subitem.
11210 2007-03-19 Mike Kestner <mkestner@novell.com>
11212 * ListView.cs : make box selection for Details views with
11213 FullRowSelect conform to MS behavior when clicking in the "item"
11214 column and clicking outside the defined columns.
11215 [Fixes case 5-6 of #80374]
11217 2007-03-19 Chris Toshok <toshok@ximian.com>
11219 * ScrollableControl.cs: create the controls from within the ctor,
11220 but don't actually add them until our handle is created. this
11221 fixes a NRE possibility jpobst found (if you override OnLayout in
11222 a subclass, it's called before your ctor). Also, add a
11223 IsHandleCreated guard to UpdateSizeGripVisibility as well.
11225 2007-03-19 Jackson Harper <jackson@ximian.com>
11227 * TextBox.cs: Reduce the amount of invalidation we do.
11228 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11229 some of them are true by default on MS.
11230 - Add some functions to reduce the amount of invalidates we do.
11231 * TextControl.cs: Less invalidation.
11233 2007-03-19 Chris Toshok <toshok@ximian.com>
11235 [ Fixes #81773, and *seems* to fix #81553 as well ]
11237 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11238 AccumulateDestroyedHandles. We need to do it *after* we send
11239 WM_DESTROY, as the user's code can access Control.Handle in
11240 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
11241 move the WM_DESTROY/zombie handling to before the call to
11242 XDestroyWindow. For some reason without this ordering
11243 FormTest.RecreateHandle hangs. This ordering is semantically
11244 equivalent, however, as XDestroyWindow is async anyway.
11246 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
11248 * RichTextBox.cs: Reset backcolor_set after setting default.
11250 2007-03-19 Chris Toshok <toshok@ximian.com>
11252 * ScrollableControl.cs: the scroll position should not effect the
11253 canvas size. commit patch from georgegiolfan@yahoo.com, which
11254 fixes some really bizarre behavior on resizing. Fixes bug #80778.
11256 2007-03-19 Chris Toshok <toshok@ximian.com>
11258 * ScrollableControl.cs: clean this up a bit. create the
11259 scrollbars in the ctor and just show/hide them as needed. Also,
11260 make hscroll_visible/vscroll_visible internal to Recalculate, and
11261 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11262 everywhere else. This seems to fix the scrollbars appearing
11263 beneath the content for me (i have *no* idea why that is,
11266 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11268 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
11269 some redundacy for stuff in Anchor and Dock that base will take care of.
11272 2007-03-19 Mike Kestner <mkestner@novell.com>
11274 * ListView.cs : make box selection for Details views without
11275 FullRowSelect dependent on the text bounds, not item bounds.
11276 * ListViewItem.cs : add an internal property to obtain the TextBounds
11277 in Details view. [Fixes case 1-4 of #80374]
11279 2007-03-19 Andreia Gaita <avidigal@novell.com>
11281 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11282 we're < 2.0. #78448 && #80316
11284 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11286 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11287 have the same style available as the previously selected one. Also,
11288 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
11290 2007-03-19 Jackson Harper <jackson@ximian.com>
11292 * TextControl.cs: Add an alignment property that all new lines
11294 - Make sure to use the align shift when calculating the line's X
11296 * TextBox.cs: Set the alignment on the document as well as on all
11297 the document lines.
11299 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11301 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11302 throw if setting the parent of an mdichild that already has an
11303 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11304 AssemblyProductAttribute in the assembly, use the type's namespace (as
11305 MS seems to do). CreateControl: don't create the handle if the control
11306 is not visible (according to MS behaviour and spec). SetTopLevel: Only
11307 create handle if the control is not a form. Change FocusInternal to
11308 virtual so that it can be overriden by Form.
11309 * TextBox.cs: Update call to FocusInternal.
11310 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11311 form is not a toplevel form when it's a mdi child, so update is_toplevel
11312 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11313 hasn't been created. Show (IWin32Window): Don't allow this overload for
11314 toplevel windows. CenterToParent/CenterToScreen/Select: create the
11315 handle as MS does. SetVisibleCore: if called on a MdiChild and the
11316 parent isn't visible yet, save the visibility and restore it when the
11317 parent is made visible.
11318 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11319 methods, since the visibility of the scrollbars can be changed from
11320 several places, not only from AutoScroll.
11323 2007-03-19 Jackson Harper <jackson@ximian.com>
11325 * RichTextBox.cs: Enable shortcuts by default.
11326 * TextBoxBase.cs: Add conditional shortcuts.
11328 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11330 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
11332 2007-03-19 Chris Toshok <toshok@ximian.com>
11334 [ Fixes bug #80604]
11336 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11337 swallow the message we're waiting on, instead of delivering it, as
11338 this is only used for the WM_SHOWWINDOW raised from
11339 MapWindow/UnmapWindow, and the message needs to be generated
11340 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11341 before doing the Map/Unmap. Also make sure that the Hwnd is still
11342 alive after the message has been handled.
11344 *before* the window is shown.
11346 * Control.cs (CreateControl): guard a few more things inside the
11347 if (!is_created) block, as we might end up being called again -
11349 (WmShowWindow): call CreateControl if we're showing the control.
11351 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11353 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11354 controls without a handle if they have any parent with a handle. In
11355 Dispose add a check whether the handle is created or not before
11356 calling BeginInvoke, this removes the need of the extra disposing
11357 parameter (which was bogus anyway since it didn't prevent the
11358 invoke from happening, it only skipped the check for an existing
11359 handle, meaning that the invoke would call on an inexistent
11362 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11364 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11365 appears in taskbar.
11367 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11370 - Fixed a problem that dont show help button for messages with 3 buttons.
11371 - Refactory button size and position calculations, now dont use fixed
11372 values, also fixed button sizes (#80043) and form's border space.
11373 - AddButton method created, now all other AddButton methods call this one.
11374 - Some other source code cosmetic changes.
11376 2007-03-18 Jackson Harper <jackson@ximian.com>
11378 * RichTextBox.cs: Don't do this all fonts must match check if
11379 there is only one char selected.
11381 2007-03-18 Jackson Harper <jackson@ximian.com>
11383 * TreeView.cs: ScrollWindow works properly now, so we don't need
11384 to screw around with the scroll area. This fixes some artifacts
11385 when expanding and collapsing.
11387 2007-03-18 Jackson Harper <jackson@ximian.com>
11389 * TextBoxBase.cs: Allow updating the selection position when the
11390 cursor is outside the textarea, but we have a capture.
11391 * TextControl.cs: A special case for when the cursor is outside
11392 the bounds of the TB.
11394 2007-03-18 Jackson Harper <jackson@ximian.com>
11396 * TextBoxBase.cs: Remove image pasting code for now. There is no
11397 way to get an image on the clipboard right now anyways.
11399 * RichTextBox.cs: Use the new RTF Picture class for pictures.
11401 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11404 - Set window properties in constructor intead of on CreateParams.
11405 - Remove topmost from Window ExStyle.
11406 - Set ShowInTaskbar to false.
11407 - Set form border to FixedDialog.
11408 - Some cosmetic changes and remove unneeded comments.
11409 - It fixes itens 2,3 and 4 of bug #80043.
11411 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
11413 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11414 none was explicitly set. Fixes part of bug #79949.
11416 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11418 * ToolStripComboBox.cs: Add AutoComplete*.
11420 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11422 * ToolStripComboBox.cs: Add FlatStyle.
11424 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11426 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11427 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11429 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11431 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11432 CheckBox.cs, RadioButton.cs, BindingSource.cs,
11433 DataGridColumnStyle.cs: Remove warnings.
11435 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11437 * Menu.cs: MergeMenu: Check menu argument for null before looping over
11439 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11440 visibility of mdi child forms. FormSizeChangedHandler: update the
11441 maximized size if size has changed while maximized.
11442 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11443 creating the handle.
11444 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11445 avoid creating the handle if not created.
11446 * XplatUI.cs: Update debug output.
11447 * XplatUIStructs.cs: Added ToString's for a couple of structs.
11449 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11451 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11453 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
11454 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11455 Implement keyboard shortcuts.
11457 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11459 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11460 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
11461 ColorDialog and all derived classes.
11463 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11465 [ Fixes bug #79828 ]
11468 - Rename ToolBarButtonInfor to ToolBarItem.
11469 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11470 - Maintain an array of ToolBarItem, used instead of ToolBarButton
11471 collection to be able add same button more than one time on a toolbar.
11472 - Refactory all properties and methods to use ToolBarItem.
11474 * ToolBarButton.cs:
11475 - Remove all propeties and methods that is now in ToolBarItem.
11476 - Rectangle propery now gets the rectangle from first ToolBarItem to
11477 mimic win32 behavior.
11478 - Size calculation and layout methods also removed.
11480 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11481 ToolBarItem instead of ToolBarButton to right drawing buttons when
11482 same button/separator was added more than one time to ToolBar.
11484 * ThemeNice.cs: Same as above.
11486 2007-03-15 Andreia Gaita <avidigal@novell.com>
11488 * XplatUIX11.cs: Fire extra MouseMove events right after
11489 MouseDown and MouseUp, emulating win32's <censored> behaviour
11490 for apps that rely on it.
11492 2007-03-15 Jackson Harper <jackson@ximian.com>
11495 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11496 it is drawn on the controls client window and there is no NC
11498 - Set the background color to gray on 2.0 when we are readonly.
11500 2007-03-15 Chris Toshok <toshok@ximian.com>
11502 [ Fixes bug #81144 ]
11504 * XplatUIX11.cs: implement VirtualScreen independently of
11505 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11508 2007-03-15 Chris Toshok <toshok@ximian.com>
11510 * Hwnd.cs: add an internal field for the cached_window_state.
11512 * XplatUIX11.cs: cache the window state, invalidating the cache
11513 (and thus re-querying the X server) only when we see an update to
11514 the _NET_WM_STATE property.
11516 2007-03-15 Chris Toshok <toshok@ximian.com>
11518 * BindingSource.cs: get a lot of the unit tests working.
11520 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11522 * Control.cs: Modify UpdateStyles to store distances when bounds >=
11523 0 instead of just bounds > 0. [Fixes bug #80912]
11525 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11527 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11530 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
11532 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11533 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11534 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11535 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11537 2007-03-15 Chris Toshok <toshok@ximian.com>
11541 * Control.cs: add Ivan's fix for 81101, with a slight modification
11542 - you can set control.Target to null.
11544 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
11546 * ToolStripItem.cs: If our OwnerItem is null, we can't use
11547 HideDropDown, use Hide instead to prevent an NRE.
11550 2007-03-14 Jackson Harper <jackson@ximian.com>
11552 * TextBoxBase.cs: Mess with the creation stuff a little. We need
11553 to calculate the document before the handle is created, in some
11554 cases. (Actually just one case).
11556 2007-03-14 Jackson Harper <jackson@ximian.com>
11558 * TextBoxBase.cs: Need to display the caret after letting the base
11559 wndproc handle the focus methods, because the caret display
11560 methods check the focus state.
11561 - Try to display the caret after updating it's position with SelectWord.
11562 - Don't need to do an immediate update on this recalc, since there
11563 will be an invalidate anyways.
11565 2007-03-14 Jackson Harper <jackson@ximian.com>
11567 * TreeView.cs: Some workarounds so that we can match event order a
11570 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
11572 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11573 #80803. Avoid NullReferenceException when Control does not have
11574 parent. Fixed different blinkstyle issues. Only subscribe to Tick
11575 event a single time. Only draw error icon when control is created and
11576 visible. Fixes failing unit tests.
11578 2007-03-14 Andreia Gaita <avidigal@novell.com>
11580 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11581 Selecting events. Fire Leave and Enter events when changing tabs.
11583 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
11585 * TreeView.cs: Add TreeViewNodeSorter.
11586 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11588 2007-03-14 Chris Toshok <toshok@ximian.com>
11590 * Form.cs: go ahead and remove the RecreateHandles that jpobst
11591 removed earlier and I had him add back it. It turns out metacity
11592 *does* in fact handle the MOTIF_WM_HINTS property changing, it
11593 just doesn't redraw the window titlebar until you resize the
11594 window. This also means we aren't recreating the entire window
11595 hierarchy on X when you change this property. And it looks better
11598 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11601 * ListView.cs: Collecting selection information
11602 is now done in SelectedIndexCollection rather than in
11603 SelectedListViewItemCollection. This is done so we can
11604 have the selection information code in one single place
11605 (virtual mode selection information entirely depends on
11606 SelectedIndexCollection).
11608 2007-03-13 Miguel de Icaza <miguel@novell.com>
11610 * ErrorProvider.cs: Add stubs for ISupportInitialize
11612 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11614 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11615 in the right order with the right values, from the Checked property,
11616 just as MS does (instead of triggering them from ListView).
11618 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11620 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11622 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
11623 the correct handler in OnItemCheck method (ItemCheckEventHandler
11624 instead of EventHandler). This used to throw an InvalidCastException.
11626 2007-03-13 Jackson Harper <jackson@ximian.com>
11628 * TextBoxBase.cs: Calculate the document before the handle is
11629 created, so there isn't an extra invalidate called.
11631 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
11633 * Form.cs: Don't set owner in ShowDialog until we are sure
11634 that we aren't going to throw an exception. [Fixes bug #80773]
11636 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
11638 * TreeView.cs: Make it compile.
11640 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11642 * Control.cs: Another place we don't call SizeFromClientSize.
11643 * Form.cs: Another place we don't call SizeFromClientSize.
11646 2007-03-12 Jackson Harper <jackson@ximian.com>
11648 * TreeView.cs: Basically emulating some strangness here with
11649 exanding nodes and setting node positions when windows aren't
11651 - Also attempting to walk the node tree less than previously, and
11652 just use visible order calculations for determining offsets.
11653 - oops made scrolling backwards.
11654 * TreeNode.cs: We need to start nodes with a zero visible order,
11655 because the order calcs are based on the first nodes order.
11657 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11659 * Form.cs: Don't exit the program if RecreateHandle is called on
11662 2007-03-12 Chris Toshok <toshok@ximian.com>
11664 * XEventQueue.cs: remove the use of PostQuitState.
11666 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
11667 WM_QUIT message in GetMessage, return false (and if we're in the
11668 nested WaitForHwndMessage, repost the WM_QUIT message).
11670 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11672 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11673 or the MaximizeBox properties. [Part of bug #80640]
11675 2007-03-12 Everaldo Canuto <everaldo@simios.org>
11677 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11680 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11682 * ToolStripItem.cs: Fix some tests I broke by checking Visible
11683 instead of visible.
11685 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
11687 * FileDialog.cs: Use text of File name combobox to determine what
11688 files the user selected. Added tokenizer to parse the file names.
11691 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11693 * Control.cs: We can't call SizeFromClientSize in the constructor,
11694 but we still need to do the same work, so make an internal version.
11697 2007-03-12 Jackson Harper <jackson@ximian.com>
11701 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11704 2007-03-12 Jackson Harper <jackson@ximian.com>
11706 * TextBoxBase.cs: Now that the handles are being created a little
11707 later, we need to make sure that the document is recalculated when
11708 the handle is created.
11710 2007-03-11 Everaldo Canuto <everaldo@simios.org>
11712 * Theme.cs: GetLinkFont abstract method added.
11715 - Remove CalcTrimRectangle, no longer needed.
11716 - Factor also remove, position issues must be fixed in libgdiplus.
11717 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11718 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
11719 care about font used to draw links.
11720 - Set TabStop to true when control is "Selectable", control is selectable
11721 when have one or more links. Fixes #80501 (test case is also added).
11722 - Set the LinkArea values after links change, LinkArea values must be
11723 based in first link position and size, a test case was created.
11724 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
11725 the attribute must be true LinkArea.Length > 0. The same was applied to
11728 * ThemeWin32Classic.cs:
11729 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
11731 - Use CPDrawStringDisabled to draw disabled text instead of hard code
11733 - Draw focus rectangle for every parts focused, including parts that
11734 is on another line, its because regions returns various rectangles
11735 and not only one. Needed to mimic W32 look.
11736 - Uses Graphics.Clip to delimite region painted, it mean that now
11737 complete text is passed to DrawString, with this we solve layout
11738 issues without create another text renderer.
11739 - Uses Region.Intersect to fix some flickers problems, now only needed
11740 parts will redrawed.
11741 - This changes fixes #79614 and some other unreported issues, on Linux
11742 some layout problems still remain, the problem is under
11743 MeasureCharacterRanges but it is an libgdiplus bug.
11745 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
11747 * TextBox.cs: Set for foreground color.
11748 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11749 this is already done in Control.
11751 2007-03-10 Jackson Harper <jackson@ximian.com>
11753 * TextBox.cs: Set the background color, but reset the
11754 backcolor_set flag which is just for the user setting the
11757 2007-03-09 Chris Toshok <toshok@ximian.com>
11759 * Control.cs: really remove the call to XplatUI.SetVisible from
11760 CreateHandle(), like I said I did when I merged the branch.
11762 * BindingSource.cs: implement some more of this stuff.
11764 2007-03-09 Jackson Harper <jackson@ximian.com>
11766 * TextBox.cs: Don't explicitly set our background colors.
11768 * TextBoxBase.cs: Draw readonly text.
11769 - Need to invalidate when backcolor or readonly are changed.
11771 2007-03-09 Jackson Harper <jackson@ximian.com>
11773 * TextBoxBase.cs: Don't set the forecolor until the handle is
11775 - Do not raise OnPaint, and removed some old debug code.
11777 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
11779 * ScrollableControl.cs: Fix mouse wheel scrolling.
11781 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
11783 * Control.cs: Wire up MouseDoubleClick event.
11785 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
11787 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11789 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11790 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11791 item is added. This logic was moved to ToolStrip.OnItemAdded.
11794 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11796 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11798 2007-03-08 Jackson Harper <jackson@ximian.com>
11800 * TreeView.cs: Show the correct image for selected node (this used
11801 to work, not sure how the code got deleted). Also implemented 2.0 feature
11804 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11807 * ListViewItem.cs: Cache index in items when retrieving them
11810 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11812 * ToolStripItem.cs: Don't return the explicit_size if we are using
11813 AutoSize. Fixes invalidation issue when user has explicitly set a
11814 size and has AutoSize = true.
11816 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11818 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11820 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11822 * DataGridView.cs: Remove event handler from DataView when a
11823 DataTable is used as DataSource.
11825 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11827 * Control.cs: Create internal setter for client_size to allow it to be
11828 set without triggering resizing code.
11829 * Form.cs: Calculate client_size in constructor, only change client_size
11830 in FormBorderStyle property if Handle has been created.
11831 [Fixes #80574, #80791]
11833 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
11835 * SystemInformation.cs: Add TerminalServerSession.
11837 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11839 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11842 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11844 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11845 Handle before we were supposed to. Now checks ActivateOnShow property
11847 * Control.cs: Add internal ActivateOnShow property.
11848 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11849 for ActivateOnShow.
11850 * Hwnd.cs Remove no longer needed no_activate field.
11852 2007-03-07 Jackson Harper <jackson@ximian.com>
11854 * TreeView.cs: Implement owner draw tree nodes. And a couple more
11856 * DrawTreeNodeEventHandler.cs: Add
11857 * DrawTreeNodeEventArgs.cs: Correct default value.
11859 2007-03-07 Chris Toshok <toshok@ximian.com>
11861 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
11862 to be called before NativeWindow.WndProc. Put the HwndCreating
11863 magic there to hook up our Hwnd's to handles.
11865 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
11867 * DataGridView.cs: Comment out debug code.
11869 2007-03-07 Chris Toshok <toshok@ximian.com>
11871 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
11872 to make the rest of the world happy]
11874 * Control.cs (CreateHandle): there's no need to call
11875 XplatUI.SetVisible here, it's effectively done by
11876 XplatUI.CreateWindow on X now, and always was on windows.
11878 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
11879 shortcircuit out of the loop if we have a message loop running on
11882 [Changelog from merge]
11884 2007-03-05 Chris Toshok <toshok@ximian.com>
11886 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
11887 causes handle creation.
11889 2007-02-28 Chris Toshok <toshok@ximian.com>
11891 * ApplicationContext.cs: Add a flag to make sure we only raise the
11892 ThreadExit event once (ExitThreadCore can be indirectly called
11893 from a few places.) I don't like the additional flag, but it
11894 makes the event ordering/count correct.
11896 * Application.cs (MWFThread.LoopCount): don't use an enumerator
11897 without locking the collection. An enumerator doesn't give us any
11898 protection from modification anyway. Lock the thread hash and
11899 replace the complicated enumerator loop with a foreach.
11900 (Application.CloseForms): make internal so it can be called from
11901 ApplicationContext. This should probably be moved to MWFThread.
11902 (Application.ExitThread): don't call MWFThread.Current.Exit()
11903 here. just call XplatUI.PostQuitMessage. We'll exit the thread
11904 when the runloop exits (in response to WM_QUIT.)
11905 (Application.RunLoop): add a comment (and check) for
11906 context.MainForm being null after setting context.MainForm.Visible
11907 = true. This is because you're perfectly free to dispose of a
11908 form in VisibilityChanged. Chalk this up to another case where we
11909 need to synchronously generate WM_ACTIVATE from Control.Show.
11910 Also, add handling for WM_QUIT here so we'll exit the loop.
11912 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
11913 fact that we don't wait if we're only unmapping the whole_window
11914 makes me a bit nervous, but it doesn't seem to cause any problems
11917 also, add a comment about the stupid, broken and wrong resetting
11918 of PostQuitState to false in GetMessage().
11920 In PostQuitMessage, we need to add a WM_QUIT message to the
11921 thread's queue. We use the FosterParent to get the right
11924 Lastly, in SetVisible, we need to unmap both windows, since the
11925 waiting only happens when we're unmapping the client window. So
11926 now, the *only* time we unmap just the whole_window is in the hack
11927 for resizing a control to 0,0.
11929 2007-02-21 Chris Toshok <toshok@ximian.com>
11931 * Application.cs (CloseForms): rewrite this so that we don't
11932 modify the list while we're traversing it.
11934 2007-02-20 Chris Toshok <toshok@ximian.com>
11936 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11937 of OnHandleCreated.
11938 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11939 handle is created. otherwise we'll create it here.
11940 (VerticalScrollEvent): same here.
11942 * Application.cs (CloseForms): call Form.Dispose, don't post
11945 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11946 here. Application should Dispose() of the Form's.
11948 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11949 WM_DESTROY as well.
11950 (MapWindow,UnmapWindow): only actually do the waiting for
11951 SHOWWINDOW if the control we're dealing with is a Form.
11952 (CreateWindow): if the control isn't a form, SendMessage
11953 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
11955 * Control.cs (SetVisibleCore): always use is_visible here, not
11956 value. If we use value, we can end up re-setting something
11957 visible if, for instance, you do Control.Hide() in a delegate
11958 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
11960 2007-02-20 Chris Toshok <toshok@ximian.com>
11962 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
11963 the message we need. PeekMessage returning false should not be a
11964 condition under which we exit the loop.
11966 2007-02-15 Chris Toshok <toshok@ximian.com>
11968 * Control.cs (Refresh): only refresh if we've got a handle and are
11970 (CreateAccessibilityInstance): CreateControl() here.
11971 (UpdateChildrenZOrder): complicate the code loop even more by
11972 taking into account controls that haven't had their handle
11973 created, and those that aren't visible. But on the flip side,
11974 simplify the code by splitting it into two loops. one which
11975 builds up the list of child controls we're interested in, and the
11976 other that sets the z order of those children.
11978 2007-02-14 Chris Toshok <toshok@ximian.com>
11980 * Control.cs: Control.AccessibilityObject causes the control to be
11981 created, not just the handle.
11983 2007-02-14 Chris Toshok <toshok@ximian.com>
11985 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
11986 problem on X where a window might have its handle created (and be
11987 visible) while the window is unmapped. calling XConfigureWindow
11988 on an unmapped window is bad, and generates X errors.
11990 2007-02-13 Chris Toshok <toshok@ximian.com>
11992 * Control.cs (CreateHandle): don't loop over our children setting
11993 their parent here. do it when in WndProc when we're shown.
11994 (UpdateChildrenZOrder): make this internal so we can call it from
11996 (WndProc): for WM_SHOWWINDOW, reparent the child control after
11997 creating its handle. Also, remove the calls to PerformLayout from
11998 here. they're done in ScrollableControl.OnVisibleChanged. Also,
11999 OnVisibleChanged only seems to be called directly here for the
12000 toplevel control. It's propagated down the window hierarchy by
12001 calls to child.OnParentVisibleChanged.
12002 (OnVisibleChanged): don't do layout here - it's done (oddly
12003 enough, according to a glance at stack traces on ms.net..) in
12006 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12007 z order of our children before calling PerformLayout.
12009 2007-02-12 Chris Toshok <toshok@ximian.com>
12011 [big change, fixes #80020]
12013 * AccessibleObject.cs: we need to make owner internal again to fix
12014 some of ControlAccessibleObject.
12016 * Control.cs: lots of changes here. add support for WM_CREATE,
12017 for which we generate OnHandleCreated. Remove the OnHandleCreated
12018 call from CreateHandle. Also add support for WM_SHOWWINDOW where
12019 we create child controls. leave the MonoTODO's for the
12020 accessibility calls, but fix the exceptions so the tests pass.
12022 Add the InvalidOperationExceptions to Invoke methods, and remove a
12023 couple of InvokeInternal methods we aren't using.
12025 Also, add a couple of CreateHandle calls in places where we know
12026 the handles are being created but our code doesn't reference
12029 Make SetVisibleCore call OnVisibleChange if the handle isn't
12030 created. If the handle is created, we rely on XplatUI.SetVisible
12031 generating the event synchronously.
12033 Lastly, make sure we don't use this.Handle inside CreateHandle,
12034 because we can call back into client (and that code can dispose of
12037 * XplatUIStructs.cs: misc/cleanup.
12039 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12040 although we don't populate the wParam properly.
12041 (CreateWindow): generate WM_CREATE.
12042 (MapWindow,UnmapWindow): make these calls synchronous, at great
12043 performance expense (particularly in the unmap case), to match
12046 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12048 (set_MdiParent): don't recreate the handle unless it's been
12051 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12054 * NativeWindow.cs: this is probably the weirdest part of the
12055 patch. We need a way to link up the window being created to the
12056 WM_CREATE message. Since we can only be creating one window at a
12057 time on a given thread, we keep track of a per-thread reference so
12058 we can dispatch it properly. We also need to keep track of the
12059 Hwnd currently being created so that the win32 backend doesn't
12062 * XplatUIWin32.cs: a similar change to the one we made in
12065 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12067 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12068 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12069 to draw the menu shortcut string.
12071 2007-03-07 Jackson Harper <jackson@ximian.com>
12073 * TreeNode.cs: Add the 2.0 collapse method.
12075 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12077 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12079 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12081 * DataGridView.cs: Change DataSource will clear column and row
12082 lists. Call Invalidate() to reflect DataSource change.
12084 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12086 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12087 and a new row is added to it.
12089 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12091 * DataGridView.cs: Add columns when DataSource is en empty list but
12092 is a System.Data.DataView (from a System.Data.DataTable).
12094 2007-03-06 Andreia Gaita <avidigal@novell.com>
12096 * Label.cs: Implement AutoEllipsis (2.0)
12098 2007-03-06 Jackson Harper <jackson@ximian.com>
12100 * TreeView.cs: Implement 2.0 TopNode setter property.
12101 - Use a local var instead of the skipped_nodes field for computing
12102 how many nodes to skip. Otherwise we won't scroll because the
12103 valuechanged handler checks if skipped_nodes is equal to the new
12105 - Implement 2.0 Sort method.
12106 - Add useless 2.0 DoubleBuffer property
12107 - Implement 2.0 LineColors property. Lets you change the color of
12108 the lines in the tree. Terribly useful for creating non cohesive
12110 - Implement 2.0 image key feature.
12112 2007-03-06 Jackson Harper <jackson@ximian.com>
12114 * TreeView.cs: We can't get the bounds of the nodes before raising
12115 the AfterSelect event, because that event could change the node's
12116 bounds (scrolling, font change, etc).
12118 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12120 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12121 * Form.cs: Don't recreate handle when creating FormWindowManager, just
12122 update window styles. In CreateParams us VisibleInternal instead of
12123 VIsible to get the actual visible flag set for this form.
12124 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12125 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12126 handle the case when the form is already maximized, in which case
12127 it should be restored. Fixes #81043.
12129 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12131 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12133 2007-03-05 Jackson Harper <jackson@ximian.com>
12135 * TreeViewHitTestInfo.cs: implement.
12137 2007-03-05 Jackson Harper <jackson@ximian.com>
12139 * InternalWindowManager.cs: class status fix.
12141 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
12143 * InternalWindowManager.cs: All windows that have a parent
12144 are confined to their parent when they're being moved.
12147 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
12149 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12150 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12152 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12154 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12155 buttons invisible before deciding which ones should be visible
12156 (fixes minimize/maximize buttons showing up in toolwindows). Remove
12157 an unused variable.
12158 * InternalWindowManager.cs: Remove warning.
12160 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12162 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12163 to throw an InvalidOperationException is virtual mode is being used.
12165 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12167 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12168 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12169 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12170 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12171 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12172 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12174 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12176 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12177 driver.KeyboardDelay from XplatUI.KeyboardDelay
12178 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12179 (patch by Sergey Volk)
12181 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12183 * ToolWindowManager.cs: Added, contains logic for
12185 * CreateParams.cs: Add a few helper methods and an
12186 internal variable to know which control the CreateParams belongs
12188 * Control.cs: Call Form.ChangingParent when the
12189 parent is about to be changed.
12190 * XplatUIX11.cs: DeriveStyles (): Set
12191 caption_height for all windows that have captions and are children.
12192 Update to use ToolWindowManager instead of InternalWindowManager
12194 * XplatUIWin32.cs: Set fake window styles for all
12195 windows that have window managers.
12196 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12197 now duplicated for mdi windows when they are
12198 maximized, first for the buttons the window itself has, then for
12199 the buttons that appear in the menu bar. Makes things a little
12200 easier). Updated UpdateWindowDecorations, SetWindowState and the
12201 mouse eventhandlers accordingly.
12202 * Form.cs: Add ChangingParent (), contains the
12203 logic of what should happen when the parent changes. In MdiParent
12204 don't set things that ChangingParent () is doing. When handling
12205 WM_CLOSE, we can close the form if there are any other modal forms
12206 and the current form is a descendent of the modal form.
12207 * InternalWindowManager.cs: A lot of refactoring,
12208 the title buttons are now extracted to a separate container class
12209 that takes care of all button code (clicks, tooltips, etc). Moved
12210 Iconic|Maximized|Normal Bounds properties to this class from
12211 MdiWindowManager, so that the window state logic can succeed for
12212 other than mdi wm's. Implemented general window state change logic.
12213 Moved CreateButtons to ThemeWin32Classic, since the theme might
12214 override which buttons are available when as well as the exact
12216 * FormWindowManager.cs: Added, contains logic for
12218 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12219 which buttons go where (and if they are at all visible).
12220 Removed special handling of maximized windows, since they aren't special.
12221 In DrawManagedWindowDecorations don't try to draw the text if it is
12223 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
12224 use whatever the wm gives us.
12226 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12228 * ButtonBase.cs: Add 2.0 properties.
12229 * Button.cs: Override Draw for 2.0.
12230 * Control.cs: Add Entered and Selected properties.
12231 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12232 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12233 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12235 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12237 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12239 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
12241 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12243 * XplatUIWin32.cs: Register a new class with Windows each time we get
12244 a new ClassStyle. [Fixes bugs #79432, #80817]
12245 * Controls.cs: Set the correct ClassStyle in CreateParams.
12246 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12248 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
12250 * ListView.cs: Add fireEvent argument to ReorderColumn since the
12251 ColumnReordered event must not be signaled when modifying DisplayIndex
12252 of a ColumnHeader. Added internal ReorderColumns method which takes
12253 care of drawing, and updating the internal DisplayIndex of the
12254 ColumnHeader. Added AddColumn method which is invoked from
12255 ColumnHeaderCollection when adding or inserting columns, and which
12256 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12257 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12258 Recalculated dispay indices after removing a ColumnHeader.
12259 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12260 match MS. Allows last display index to be returned after ListView
12261 is disposed. Update actual location of ColumnHeader when DisplayIndex
12264 2007-03-01 Everaldo Canuto <everaldo@simios.org>
12266 * LinkLabel.cs: Improve CalcTrimRectangle.
12268 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12270 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12272 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12273 get rectangle as a result value.
12275 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12277 * LinkLabel.cs: Theres some diferences between rectangle return from
12278 MeasureCharacterRanges and the area used for DrawString to fix this
12279 CalcMeasurementFactor method was created, it calcules the diferences
12280 to be use later to adjust rectangle in draw operations. Fixes #80473.
12282 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12283 to adjust draw rectangle.
12285 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12287 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12288 text and some other changes to reduce and optimize source code.
12290 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12292 * RadioButton.cs: Implement 2.0 event.
12293 * RelatedImageListAttribute.cs: Implement new class.
12295 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12297 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12299 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12301 * CheckBox.cs: Implement 2.0 functionality.
12303 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12305 * ListView.cs: Refactor Add and AddRange methods of
12306 ListViewItemCollection, to not update the ListView
12307 everytime an item is added in AddRange. Also move the update
12308 code to a new CollectionChanged method, and call it
12309 from other methods that need it as well (this should also fix some
12310 bugs when Sorting is used).
12312 2007-02-27 Jackson Harper <jackson@ximian.com>
12314 * TextControl.cs: Try to never let the caret stay in a non-text
12316 * TextBoxBase.cs: Update the caret.
12318 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
12320 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12321 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12322 delete POINT structure, duplicate of one in XplatUIStructs.
12323 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12325 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
12327 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12328 edit box since otherwise the Label would immediately be set (even if
12329 the user did not modify the label). In OnKeyDown set Handled to true
12330 if Return or Escape was pressed. In ColumnHeaderCollection unlink
12331 columns that are to be removed. In ListViewItemCollection unlink items
12332 that are to be removed.
12334 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
12336 * TextRenderer.cs: If we set a GDI clip region, we need to clear
12337 it when we are done. [Fixes bug #80949]
12339 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12341 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12343 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12345 * ListView.cs: I forgot to commit the changes for ListView
12346 in my previous patch.
12348 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12350 * Clipboard.cs: Partially implement an overload of SetDataObject.
12351 * Form.cs: Implement ShowWithoutActivation.
12352 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12354 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12356 This is a first set of changes to make the Virtual mode works,
12357 by avoiding the retrieval of ListViewItem instances until
12360 * ListView.cs: Store item position in the ListView instead of the
12361 ListViewItem, this way we don't request the Bounds property of
12362 ListViewItem inside the ListView calculations, as well as cache the item
12363 size in item_size field. Store indexes instead of ListViewItem
12364 instances in the matrix used by icon view. Add a ItemMatrixLocation
12365 struct to hold the row and col info of the matrix info.
12367 * ListViewItem.cs: Don't store the location anymore, and only cache
12368 the rectangles for GetBounds. Use the ListView.GetItemLocation
12369 method to retrieve the actual location.
12371 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12373 * TextRenderer.cs: Add clipping support, thanks to George.
12376 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12378 * ListViewItem.cs: Cancel label edit when item is removed from
12380 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12381 event before the edit textbox is displayed. Added CancelEdit method
12382 which is used end to editing while ignoring the value set by the
12383 user. In EndEdit, set focus to ListView to avoid losing focus to
12384 other controls. In ListViewItemCollection.Clear, cancel editing of
12385 any of the items. In Remove, cancel editing of item being removed.
12386 Avoid udplicate code by modifing RemoveAt to invoke Remove.
12388 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12390 * FileDialog.cs: Update FSEntry when move is successful. Fixes
12393 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12395 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
12396 compatible with non X11 systems. Fixes #80901.
12398 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12400 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12401 whether the item should be unselected and reselect. We do no want this
12402 when we're starting to edit the label. Do not fire the
12403 SelectedIndexChanged event from ListView when its already been fired
12404 by modifying ListViewItem.Selected. Fixes bug #80943.
12406 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12408 * TextRenderer.cs: Previos commit logic was backwards.
12410 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12412 * TextRenderer.cs: Don't add padding on MeasureText if we were
12413 sent the NoPadding flag.
12415 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12417 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12418 after DrawButton. To prevent image overlaps button borders SetClip and
12419 ResetClip added before and after draw image. Fixes #79129.
12421 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12423 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
12424 window size, it fix problem when you run under win32 that theres
12425 Size diferent than ClientSize. Also fix controls size and positions
12426 to mimic Win32. Fixes #80837.
12428 2007-02-22 Everaldo Canuto <everaldo@simios.org>
12430 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
12431 menu area to fix some problems for non X11 systems. Fixes #80613.
12433 2007-02-22 Jackson Harper <jackson@ximian.com>
12435 * TreeNode.cs: When a node is expanded, set its is_expanded flag
12436 even if it doesn't have any children.
12438 2007-02-22 Jackson Harper <jackson@ximian.com>
12440 * TreeView.cs: Calculate the top node 'on the fly', this
12441 eliminates issues where you need to click on the tree before
12442 scrolling it to get the top node computed correctly.
12443 * TreeNodeCollection.cs: We don't need to mess with the top node
12446 2007-02-22 Jackson Harper <jackson@ximian.com>
12448 * DataGridViewRow.cs: Fix typo so height can actually be set.
12449 Patch by Peter Grimm.
12451 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12453 * FileDialog.cs: Fixed support for renaming files and directories.
12454 * ListView.cs: Do not lose focus when edit is canceled. Process
12455 Escape as regular key (to prevent closing of dialogs).
12457 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12459 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12460 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12462 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12464 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12465 did not modify label.
12466 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12467 modified the text. Reset Label when user presses Escape in edit mode.
12468 Move focus to ListView after having cancelled or finished editing the
12471 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
12473 * ComboBox.cs: Removed unnecessary initializations. Marked items field
12474 private. Clear textbox when Text is set to null and SelectedIndex is
12476 * FileDialog.cs: Removed unnecessary initializations. Removed
12477 workarounds for ComboBox bugs that are now fixed. Modified
12478 DefaultExt, InitialDirectory and Title property to change null to
12479 zero-length string in getters. Avoid directly accessing fields.
12481 2007-02-20 Jackson Harper <jackson@ximian.com>
12483 * TextControl.cs: Remove RecalAlignments call, that was some
12484 debugging leftovers.
12485 - Don't use the line indent when we shouldn't.
12486 * RichTextBox.cs: Add support for paragraph left indents.
12488 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12490 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12491 Seems like the class status pages doesn't catch params differences.
12493 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12495 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12497 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12499 * ComboBox.cs: Setting Text should have no effect if item text of
12500 selected item exactly matches value. First lookup text using
12501 case-sensitive comparison, and fallback to case-insensitive comparison.
12502 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
12503 allow startIndex to be last index. Changed ArgumentOutOfRangeException
12504 paramname to match MS. Restart from first item if string is not found
12505 after startIndex. Fixed paramname of ArgumentNullException that is
12506 thrown for null value in ObjectCollection.Contains.
12508 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12510 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12512 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12514 * ListControl.cs: In SelectedValue use value.Equals to compare for
12515 equality instead of ==, otherwise it will fail for strings.
12518 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12520 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12521 since the caret won't show up unless ShowSelection is true.
12524 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12526 * Application.cs: When disabling all forms but the main form, do not
12527 disable any descendants of the main form (such as mdi children or
12528 other parented forms). Fixes #80822 on Windows.
12529 * Form.cs: If we have a parent, set the WS_CHILD style.
12530 * Control.cs: Update the window styles if the control whose parent has
12531 changed is a form (the WS_CHILD style has to be switched).
12533 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12535 * XplatUIStructs.cs: MsgUIState structure added.
12537 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12539 * FileDialog.cs: Removed need for separate fileName field. On 2.0
12540 profile, do not check filename(s) for illegal character if filename(s)
12541 were set non-interactively but always check on 1.0 profile. Fixed NRE
12542 in DefaultExt and only strip off first leading dot. Improve exception
12543 message when invalid Filter is set. Do not ignore InitialDirectory if
12544 it does no exist. Store specified Title, and if empty use default
12545 title (depending on type of dialog). Added an internal DialogTitle
12546 property for retrieving dialog title. Fixed logic of displayed dir to
12547 more closely match MS. Avoid setting ComboBox.Text to a zero-length
12548 string as its buggy.
12549 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12550 FileName is a zero-length string (it can never be null). Override
12551 DialogTitle property to set default title of dialog box.
12552 * SaveFileDialog.cs: Override DialogTitle property to set default
12553 title of dialog box.
12555 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12557 * FileDialog.cs: Modify default text of filename and filetype labels
12558 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12559 after we've updated the SelectedIndex. Fixes part of bug #80887.
12560 * SaveFileDialog.cs: Set text of filetype label.
12562 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12564 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12565 label field. Needed by latest Jackson's fixes for ListView.
12567 2007-02-16 Andreia Gaita <avidigal@novell.com>
12569 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
12570 print preview images.
12572 2007-02-16 Jackson Harper <jackson@ximian.com>
12574 * ListView.cs: Make AfterLabelEdit work correctly.
12575 * FileDialog.cs: After changing the name of the folder, we have to
12576 make sure that it is created, or that we pop up an error because
12579 2007-02-16 Jackson Harper <jackson@ximian.com>
12581 * X11Dnd.cs: Implement aliases on mime handlers, so things like
12582 System.String are mapped to text.
12583 - Handle dataobjects, getting all the possible formats out of them
12584 - We dont need the drag event args before we give feedback. This
12585 allows feedback cursors to be immediate before selections have
12588 2007-02-16 Jackson Harper <jackson@ximian.com>
12590 * TextBoxBase.cs: Modified the method for inserting images to
12591 taking a line and position instead of tag and position.
12592 * RichTextBox.cs: Handle PngBlip data by inserting the png image
12594 * TextControl.cs: Allow images to be inserted as the first tag of
12596 - Fix some off by one issues when we assume the first tag is a
12597 text tag, not an image tag.
12599 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12601 * ListView.cs: Set focus to ListView when ItemControl gets a
12602 WM_RBUTTONDOWN message, to mimic .Net behaviour.
12603 Fixes part of #80467.
12605 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12607 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12608 validate Text input (if null or empty string reset Value to default
12609 value). Fixes #80830.
12611 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12613 * ListView.cs: Set owner as null for columns and items when
12614 Dispose is invoked. Fixes #80607.
12616 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
12618 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12619 showing DropDowns, don't show a Grip when doing Flow layout.
12620 [This fixes the toolbox in PDN 2.72.]
12621 * ToolStripItem.cs: Add Anchor property and some internal properties to
12622 reduces needed changes to FlowLayout.
12623 * ToolStripOverflow.cs: Remove unused variable.
12624 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12625 use it in the layout calculations.
12627 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12629 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12630 reported in #79640.
12632 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12635 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12637 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
12638 MeasureString format, it can make button very large in some cases, it is
12639 strange but is what win32 do.
12641 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12643 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
12646 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12647 rendering, the value is based on MenuAccessKeysUnderlined.
12649 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12651 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12654 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12656 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12657 and use MenuAccessKeysUnderlined instead.
12659 2007-02-13 Andreia Gaita <avidigal@novell.com>
12661 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12662 A selected control would not get a Focus call if:
12663 - the default active control of the container is the same as
12664 the one that was selected
12665 - we are switching from one container to another
12666 Under these conditions, the container being selected already has
12667 an active_control, which is the same as the one being activated,
12668 so set_ActiveControl would always return and not send the Focus
12669 call. Fix to check if the currently active control of the container
12670 is actually focused.
12672 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
12674 * StatusStrip.cs: Implement the spring layout.
12675 * ToolStripControlHost.cs: Make sure the hosted control's visibility
12676 always matches the host.
12677 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12678 and TextAfterImage.
12680 2007-02-13 Andreia Gaita <avidigal@novell.com>
12682 * Control.cs: Code reorganization only.
12683 - Reorganize the WndProc cases so that each case has it's own handling method,
12684 to help with the no-line-numbering stack traces.
12685 - Formatting changes (it's vstudio's fault, really :p)
12687 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12689 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12690 Thread.CurrentUICulture to match DateTimePicker's (and MS)
12693 2007-02-12 Jackson Harper <jackson@ximian.com>
12696 * TextBox.cs: By default we have a non multiline document
12697 - use the multiline property instead of the internal variable
12698 * TextBoxBase.cs: Treat multiline and non multiline the same in
12700 - Use the documents multiline flag instead of tracking it ourself
12701 * TextControl.cs: Attempt at getting multiline to match MS
12702 behavior. Lines now track an offset, which is either their X or Y
12703 offset depending on whether or not we are in multiline mode.
12704 - Update all the methods to understand that lines have an X value.
12705 - Fix crash in Undo::Duplicate when empty lines are deleted.
12707 2007-02-12 Everaldo Canuto <everaldo@simios.org>
12709 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
12710 code moved to properties PreferredHeight and PreferredWidth. It solve the
12711 all problems when preferred sizes must be recalculated. Fixes #80801.
12713 2007-02-12 Everaldo Canuto <everaldo@simios.org>
12715 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12716 font height when compatible_text_rendering is false. Partially fix #80801.
12718 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12720 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12722 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12724 * Form.cs: Improved exception messages in ShowDialog.
12726 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12728 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12729 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12730 if not set. Fixes bug #80764. Avoid accessing current_settings field
12733 2007-02-08 Everaldo Canuto <everaldo@simios.org>
12735 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12738 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12739 public in 2.0 and for easy maintenance and dont break compatibility it is
12742 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12744 * ToolStripItem.cs: Implement using images from ImageList.
12746 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12748 * DateTimePicker.cs: Change default date-formatting culture from
12749 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12750 seems to be the way MS does it.
12752 2007-02-08 Andreia Gaita <avidigal@novell.com>
12754 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
12755 (the 6 was cut off on the right side)
12757 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12759 * Form.cs: Tell MenuStrips to close when the form is clicked.
12760 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
12761 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12762 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12763 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
12764 support for Overflow, where items that do not fit are automatically
12765 reparented to a drop down menu.
12766 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12767 Also: fixes bug #80747.
12769 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12771 * ComboBox.cs: Remove warning (unused code).
12772 * ScrollableControl.cs: Remove warning for 1.1 profile.
12774 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12776 * Form.cs: Remove a warning.
12778 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12780 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12781 'g' specifier, not documented anywhere, but seems to always show up
12782 as a single space (might have something to do with the DateTime 'g'
12783 specifier, which is the era format, but since DateTimePicker can't
12784 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12785 won't crash if the format has an unmatched quote. Now shows
12786 single-character formats correctly. Fixes #80744.
12788 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12790 * StatusStrip.cs: Stretch property needs to call base.Stretch,
12791 not this.Stretch to fix stack overflow. [Fixes bug #80760]
12793 2007-02-07 Chris Toshok <toshok@ximian.com>
12795 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12796 background color. it overwrites the background image we've
12797 already painted. Fixes #80599.
12799 2007-02-07 Chris Toshok <toshok@ximian.com>
12801 * DataGrid.cs: return immediately from Edit() when there are no
12802 columns. Fixes #80662.
12804 2007-02-07 Chris Toshok <toshok@ximian.com>
12806 * MessageBox.cs: fix #80625. don't always show the Help button in
12807 2.0. use the displayHelpButton parameter to determine if we
12808 should show it. Also, make the internal show_help field private.
12810 2007-02-07 Chris Toshok <toshok@ximian.com>
12812 * Control.cs (SetVisibleCore): check in the proposed patch for
12813 80604, and set is_visible before calling CreateControl.
12815 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
12817 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
12818 MonoInternalNote. This is added automagically by VS2005, so let's not crash
12821 2007-02-06 Everaldo Canuto <everaldo@simios.org>
12823 * MenuAPI.cs: hotkey_active internal field added, it is required because
12824 we need to know when hotkeys must be draw, before this change a keystate
12825 Navigating was used but we can have menu in navigating state without
12826 hotkeys. Fixes #80694.
12828 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12830 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12832 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12833 corresponding events and methods to be internal for 1.1 profile and
12834 public for 2.0 profile (required by SizeGrip).
12835 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12836 implicit control list). Don't set the size nor the location of the
12837 SizeGrip anymore as it's not needed.
12838 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12839 draw directly on the captured control (fixes #80656). Removed
12840 ShowGrip (it wasn't used anywhere), redraw (always true), added
12841 GetDefaultSize and GetDefaultRectangle to calculate defaults.
12842 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12843 be called from SizeGrip.
12845 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12847 * Timer.cs: Throw ArgumentException if Interval <= 0.
12849 2007-02-05 Jackson Harper <jackson@ximian.com>
12851 * TreeView.cs: We need to check scrollbar visibility when window
12852 visibility is updated, because non visible trees don't ever add
12854 * Cursor.cs: We want the override cursor to be reset to NULL when
12855 we set current cursor to the default cursor.
12857 2007-02-05 Jackson Harper <jackson@ximian.com>
12859 * TextControl.cs: Don't have crlfs when we are non multiline.
12860 - Consolidate the line position.
12862 2007-02-05 Jackson Harper <jackson@ximian.com>
12864 * X11Keyboard.cs: BACK+CTRL gets a special char code.
12866 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12868 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
12869 handling LeaveNotify->NotifyUngrab in order to send
12870 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
12871 after calling XUngrabPointer, so we call WindowUngrabbed directly
12872 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
12873 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
12874 MouseCaptureChanged correctly. Also create handles if changing
12875 Capture (matches MS behaviour).
12877 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12879 * SizeGrip.cs: Make the last change 2.0 only.
12881 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12883 * SizeGrip.cs: If resizing and the capture is lost, revert any size
12884 changes to initial size (fixes #80597).
12886 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12888 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
12890 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12892 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
12893 background) and only allow dragging if enabled. This way the
12894 sizegrip can be used to fill the open square that otherwise would
12895 have been shown in the bottom right corner of ScrollableControl
12896 when ScrollableControl is not suppose to support sizing.
12897 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
12898 sizegrip is shown and enabled, and hook up with necessary events.
12900 2007-02-01 Chris Toshok <toshok@ximian.com>
12902 * DataGridTextBoxColumn.cs: clean up the
12903 GetFormattedString/GetColumnValueAtRow combination of functions.
12904 Also fix UpdateUI, and the initial state of
12905 IsInEditOrNavigateMode.
12907 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
12908 aren't supposed to scroll the textbox here, we're supposed to
12909 scroll the datagrid.
12911 2007-02-01 Chris Toshok <toshok@ximian.com>
12913 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
12914 setting the position.
12916 2007-02-01 Chris Toshok <toshok@ximian.com>
12918 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
12919 here, since the most recent focus fixes keep us from generating
12920 the Leave event when our textbox gets focus.
12921 (Edit): we should be passing null for the column style's
12922 instantText parameter.
12924 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
12926 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
12927 raised. Fixes menu text/icons not showing up in PDN.
12929 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12931 * Control.cs: Remove code in constructor that makes every
12932 control with WS_CHILD set have initial location -1, -1.
12934 2007-01-31 Jackson Harper <jackson@ximian.com>
12936 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12938 * XplatUIX11.cs: Give teh keyboard to teh dnd.
12940 2007-01-31 Jackson Harper <jackson@ximian.com>
12942 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12943 - Remove some debug code.
12945 2007-01-31 Jackson Harper <jackson@ximian.com>
12947 * XplatUIX11.cs: If you set the override cursor during a grab, it
12948 should actually override the grab cursor. This comes into play
12949 when you are setting custom cursors in a DND feedback method.
12951 2007-01-31 Jackson Harper <jackson@ximian.com>
12953 * X11Dnd.cs: Add support for handling the QueryContinue and
12954 GiveFeedback events.
12955 - Cancel drag and drop actions when the escape key is clicked.
12956 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
12957 can handle the ESCAPE key.
12958 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
12959 done when dnd events are continued after the button is released.
12960 - Add a new helper method so that dnd can translate key events.
12962 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
12964 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
12965 make it more obvious what is happening.
12967 2007-01-30 Jackson Harper <jackson@ximian.com>
12969 * XplatUIX11.cs: Don't break when handling button release in drag
12970 and drop operations. We need that BUTTONUP message to get through
12971 so capture is released.
12972 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
12973 this is handled automatically when the mouse is down.
12975 2007-01-30 Jackson Harper <jackson@ximian.com>
12977 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
12978 is closed, so we need to make sure that we aren't changing the
12979 dialog result when the OK (Open or Save) button has been clicked
12980 and we are closing the window ourselves. Note we don't need to
12981 worry about the cache being written in this case, because it was
12982 already done in the previous FilOk call.
12984 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12986 * DateTimePicker.cs: Remove a warning.
12987 * ComboBox.cs: Remove a couple of warnings.
12989 2007-01-29 Chris Toshok <toshok@ximian.com>
12991 * XplatUIX11.cs: don't crash, and remove the icon if the user has
12992 set one, if SetIcon is passed a null icon.
12994 2007-01-29 Andreia Gaita <avidigal@novell.com>
12996 * TextBox.cs: Redraw when the password characters changes
12997 * TextControl.cs: Check if textbox has a password char and draw
12998 a line of password chars instead of the text in the line. LineTag gets
12999 an extra Draw() method which allows document.Draw to override the text
13000 that will be drawn. Removes 1024 char limitation on length of passworded
13003 2007-01-29 Jackson Harper <jackson@ximian.com>
13005 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
13006 single chars is not.
13008 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
13010 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13011 one pixel. Fix a StackOverflowException caused by an overload wrongly
13014 2007-01-26 Everaldo Canuto <everaldo@simios.org>
13016 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13017 also remove ProcessArrowKey and put the code inside ProcessKeys.
13019 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
13021 * PaddingConverter.cs: Added.
13023 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13025 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13026 ShowPanels is false (fixes #80600). Only draw up to 127 characters
13027 of text (fixes #80601). For panels clip the text to draw to the
13028 panel (fixes #80603).
13030 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13032 * ComboBox.cs: Fixed implementation of ResetText.
13034 2007-01-25 Jackson Harper <jackson@ximian.com>
13036 * TextControl.cs: For the last char of a line we need to use the
13037 line size, not that chars width, since it won't actually be
13038 computed since the right side of a char is based on the start of
13039 the left side of the next char, and the next char does not exist.
13041 2007-01-25 Chris Toshok <toshok@ximian.com>
13043 * Splitter.cs: fix the new unit tests, and reindent some switch
13046 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13048 * ComboBox.cs: Implemented 2.0 methods and events.
13049 * TextBoxBase.cs: Added OnTextUpdate, so that
13050 ComboBox.ComboTextBox can inform ComboBox of it.
13052 2007-01-25 Jackson Harper <jackson@ximian.com>
13054 * TextControl.cs: Respect ShowSelection when deciding whether or
13055 not to display the caret, this allows comboboxes to have carets
13056 when the combotextbox does not have focus.
13058 2007-01-25 Jackson Harper <jackson@ximian.com>
13060 * TextControl.cs: Add a Suspend/Resume for updating, basically the
13061 same as the Suspend/Resume for recalc, except this will do actual
13063 - New Undo manager, works much like the MS version.
13065 * TextBoxBase.cs: The Cut operation is undoable.
13067 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13069 * TextBoxBase.cs: Don't antialias text. Makes it look way better
13070 on Windows (no difference on Linux).
13072 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13074 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13075 we don't want to activate any windows. Fixes #79433.
13077 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
13079 - ButtonBase.cs: Fix capitalization of parameter: disposing.
13082 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
13085 - Move to using System.ComponentModel.EventHandlerList
13086 - Replace Refresh with Invalidate
13087 - Clear the mime filecache on closing
13088 - Some other memory reducing work. After beeing closed FD now uses
13089 only about 300 KB for the fdo mime stuff plus the memory of the
13091 * Mime.cs: Changed coding style and removed unnecessary commented
13092 code. Some more memory memory reducing work.
13094 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13096 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13097 a few other missing 2.0 properties.
13098 * Theme.cs: Added DrawFlatStyleComboBox.
13099 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13101 2007-01-24 Chris Toshok <toshok@ximian.com>
13103 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13104 wake_waiting flag, not just when there's data to be read. if we
13105 don't, then future wakeup's won't reach us and we'll be doomed to
13106 wait for the entire 1 second timeout forever (unless there are X
13109 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13111 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13112 until you pass Items.Count, not Items.Count - 1 like 1.1.
13114 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
13116 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13118 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13120 * ToolStripContainer.cs: The recent Dock fix exposed that I was
13121 adding the panels in the wrong order.
13123 2007-01-24 Jackson Harper <jackson@ximian.com>
13125 * TextBoxBase.cs: When we move the caret we also need to move the
13126 selection, this fixes some random crashing after doing select
13127 text, unselect, delete a char, paste.
13129 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13131 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13133 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13135 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13136 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
13137 * ToolBar.cs: Force redraw in BackgroundImageChanged.
13139 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13142 - Implement support for vertical toolbars. Fixes #80539;
13143 - Call LayoutToolBar when resize, it fix some other problems in layout.
13144 - Rename requested_height to requested_size, as we can have width on it
13145 when toolbar is vertical.
13146 - Create a private property "Vertical" that uses Dock to verify when
13147 toolbar is vertical or not.
13148 - Set ControlStyles when change Dock property.
13149 - Refactory in LayoutToolBar to have better variables names and to support
13151 - Fixes default value for ButtonSize when button count is equal zero, size
13152 must be (39, 36) test case writed.
13154 2007-01-23 Chris Toshok <toshok@ximian.com>
13156 * Control.cs: fix the checks so that they work correctly for mdi
13159 2007-01-23 Chris Toshok <toshok@ximian.com>
13161 * Control.cs: ControlCollection seems to have super-secret
13162 abstraction breaking knowledge of Mdi containers. allow MdiClient
13163 to add toplevel controls.
13165 2007-01-23 Chris Toshok <toshok@ximian.com>
13167 * Control.cs: throw an ArgumentException if a toplevel control is
13168 added to our control collection from ControlCollection.Add, as
13169 well as from ControlCollection.IList.Add. This fixes the
13170 ControlSetTopLevelTest.TestTopLevelAdd unit test.
13172 Also, in ControlCollection.IList.Add, don't through an
13173 ArgumentNullException, throw an ArgumentException, when value ==
13174 null. This matches MS.
13176 2007-01-23 Chris Toshok <toshok@ximian.com>
13178 * BindingSource.cs: initial, incomplete, implementation of
13181 2007-01-23 Jackson Harper <jackson@ximian.com>
13184 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13185 that I can fix a broken unit test (TextBoxTest::ClearUndo)
13187 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13189 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13191 2007-01-23 Andreia Gaita <avidigal@novell.com>
13193 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13194 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13195 IndexOfKey() for 2.0
13197 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13199 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13200 to prevent it from changing z-order.
13201 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13202 leave UI updates in MdiWindowManager.
13203 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13204 1 sized (NC handling goes weird on Linux otherwise).
13205 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13206 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13207 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13208 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13209 and SetWindowState(s) to allow for changing the size of an activated child
13210 before activating it (reduces a lot of flicker).
13212 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13214 * Form.cs: Changing FormBorderStyle has different semantics based
13215 on whether the Form is visible or not. If not visible, don't change
13216 the Size. But InvalidateNC needs to be called to force the window
13217 to pick up the changes and redraw itself. [Fixes bug #80574]
13219 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13222 * ContainerControl.cs: ProcessCmdKey.
13223 * ErrorProvider.cs: new constructor.
13224 * Form.cs: fix AutoValidateEvent compiler warning.
13225 * Label.cs: fix OnAutoSizeChanged compiler warning.
13226 * MenuStrip.cs: fix CanOverflow compiler warning.
13227 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13228 * TextBox.cs: Dispose.
13229 * ToolStrip.cs: CanOverflow, re-enable double buffering.
13230 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13231 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13232 * ToolStripItem.cs: Overflow, RightToLeft properties.
13234 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13236 * Form.cs: Move the layout of the main form to MdiWindowManager.
13237 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13238 do a layout of the main window to update MdiClient's client area to
13239 the right area. Fixes #80533. Remove the calculation of nc size,
13240 it was just wrong and the correct one is the same as for
13241 InternalWindowManager.
13243 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
13245 * Control.cs: Setting Anchor or Dock needs to reset the other
13246 to its default. [Fixes bug #80556]
13248 2007-01-20 Chris Toshok <toshok@ximian.com>
13250 * CheckedListBox.cs: class status changes.
13252 * ScrollableControl.cs: same.
13254 * RichTextBox.cs: same.
13256 * ContainerControl.cs: same.
13258 * ListView.cs: same.
13260 * NotifyIcon.cs: same.
13262 * MenuStrip.cs: same.
13264 * RadioButton.cs: same.
13266 * CheckBox.cs: same.
13268 * PrintPreviewDialog.cs: same.
13272 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
13274 * TreeNode.cs: Apply Alan's patch for Name property.
13276 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13278 * Form.cs: Implemented SizeGripStyle.
13279 * SizeGrip.cs: Check for minimum and maximum size for the
13280 control being resized and only resize if size has actually
13283 2007-01-19 Chris Toshok <toshok@ximian.com>
13285 * DataGridColumnStyle.cs: stop setting _readonly in the
13286 PropertyDescriptor setter. fixes a unit test failure.
13288 also, rename ParentReadOnly to TableStyleReadOnly, and have it
13289 just consult our table style (if we have one). We don't need to
13290 consult the datagrid readonly attribute because that's passed in
13291 as the _ro arg to Edit. this simplifies things a little.
13293 * DataGrid.cs: use CurrentColumn instead of
13294 current_cell.ColumnNumber just to simplify some of the code.
13296 switch the order of some things in the CurrentCell setter to keep
13297 the previous cell from getting a textbox again -
13298 EnsureCellVisibility causes scrolling to happen, which calls Edit.
13299 So we need to set the new cell before calling it.
13301 call Edit in OnEnter, as does Microsoft.
13303 also, make sure the current table style isn't the one we create
13304 initially when checking to see if it's different than the one
13305 we're setting it to in BindColumns (this fixes #80421).
13307 * GridTableStylesCollection.cs: table styles can have "" for a
13308 mapping name. part of the fix for #80421.
13310 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13311 Edit significantly.
13313 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13315 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13316 and less GDI object leaky-er.
13318 2007-01-18 Andreia Gaita <avidigal@novell.com>
13320 * LinkLabel.cs: Add opaque control style
13322 2007-01-18 Jackson Harper <jackson@ximian.com>
13324 * TextControl.cs: Calculate width properly.
13325 - Don't store the tag's X offset, this can be figured out very
13327 - When getting the caret tag make sure to get the last empty tag.
13329 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13331 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13334 * Control.cs: Color.Empty shouldn't count for previous transparent
13337 2007-01-18 Jackson Harper <jackson@ximian.com>
13341 * TextControl.cs: Starting to merge in some pieces of my older
13342 undo work. Basically just some slight cleanup of the undo API.
13344 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13346 * TrackBar.cs: Fix signature of RightToLeftLayout.
13347 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13348 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13349 * Application.cs: Implemented UseWaitCursor.
13351 2007-01-18 Jackson Harper <jackson@ximian.com>
13353 * TextControl.cs: We can't skip tags if any part of the tag is
13356 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13358 * ContainerControl.cs: Override OnLayout.
13360 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13362 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13364 * ContextMenuStrip.cs: Make sure context menu is shown on top of
13367 2007-01-18 Chris Toshok <toshok@ximian.com>
13369 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13370 (leftover from the container_selected days, I'd wager). fixes bug
13373 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13375 * Control.cs: Apply patch from George to fix the new testcase on
13376 bug #80451. We can't just check for Color.Transparent, we need
13377 to check if the back color's alpha channel is < 255.
13379 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13381 * Form.cs: Move setting show_icon = true to before the constructor
13382 so that the base constructor has that information when it calculates
13383 the form's size. Was causing forms to be (6, 6) bigger than they
13384 were supposed to be. Thanks for catching this Rolf!
13386 2007-01-18 Jackson Harper <jackson@ximian.com>
13388 * TextControl.cs: When replacing a selection we need to invalidate
13389 from the initial selection start, because selection start is moved
13390 to the end of the replacement.
13392 2007-01-18 Andreia Gaita <avidigal@novell.com>
13394 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13396 2007-01-18 Chris Toshok <toshok@ximian.com>
13398 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13401 2007-01-17 Everaldo Canuto <everaldo@simios.org>
13403 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
13404 layout methods and properties from ToolBarButton must be available
13405 into ToolBarButtonInfo.
13407 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13409 * Control.cs: If the control has a transparent background, we
13410 need to refresh it when it moves and when it's parent's background
13411 image changes. [Fixes bug #80451]
13413 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13415 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
13417 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13419 * XplatUIWin32.cs: Implement proper double buffering for Windows.
13420 [Fixes bug #80447, and probably speeds up things as well]
13422 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13424 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13425 * XplatUIWin32.cs: We need to recalculate NC size after changing
13426 window style to toolwindow (otherwise the client rectangle will be
13427 3 pixels to small for some reason).
13428 * MdiWindowManager.cs: Revert NC size calculations to match how
13429 they are calculated only based on window styles (to match
13430 Win32AdjustWindowRectEx, since otherwise when setting size or
13431 location, Control will call Win32AdjustWindowRectEx to update client
13432 size, which would provoke a paint, then we'd get a NCCALCSIZE and
13433 calculate a different value of client size causing another paint
13435 * InternalWindowManager.cs: When moving or resizing a window only
13436 update size or location if they actually changed.
13437 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13438 (seems to match Windows behaviour better). Cleaned up
13439 ManagedWindowDecorations to draw what's needed and nothing else
13440 (was drawing borders and lines where they shouldn't be)
13441 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13442 (style = 0xFFFF) and takes into account caption height when
13443 calculating window rectangle.
13445 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13447 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
13448 can be added to toolbar multiple times, we need to maintain a list of
13449 button information for each positions.
13451 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13453 * ToolBar.cs: Some small stetic changes.
13455 2007-01-16 Jackson Harper <jackson@ximian.com>
13457 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13458 that allow us to have nested recalc = false blocks.
13459 - Add paste support for images in the RichTextBox
13460 * RichTextBox.cs: flush the text after the color is changed, so
13461 the change takes effect.
13462 - Use SuspendRecalc
13463 - Some extra debugging info
13464 * TextControl.cs: Tags no longer track their length, it is just
13465 computed from the next tags length, this makes things a little
13466 simpler and reduces places that we have to track length changes.
13467 - Refactored the linetag class a little so we could make it
13468 a base class for different kinds of tags
13469 - Created a image tag, a tag that can have a single image inserted
13471 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13472 that we can call suspend multiple times.
13473 - Add some debugging methods
13475 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13477 * MdiClient.cs: Add ActivatePreviousChild for
13478 mdi child window navigation.
13479 * Form.cs: Use MdiClient.ActivateNextChild/
13480 ActivatePreviousChild instead of Form.SelectNextControl
13481 to select the next/previous child since
13482 SelectNextControl doesn't do it in the same order
13483 as mdi children should do it.
13485 2007-01-16 Chris Toshok <toshok@ximian.com>
13487 * Control.cs: remove container_selected field.
13489 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13491 * MdiClient.cs: Update main form's ActiveChild when
13492 updating keyboard focus for the mdi child.
13494 2007-01-16 Jonathan Pobst <jpobst@novell.com>
13496 * Control.cs: PreferredSize fix.
13498 * Form.cs: Add several 2.0 events, properties, and methods.
13500 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
13502 * Form.cs: Provide meaningful message when MdiParent is assigned a
13503 Form that is not an MdiContainer.
13505 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13507 * MdiClient.cs: Update main form's ActiveChild when
13508 activating a mdi child.
13510 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13512 * MdiWindowManager.cs: Fix NRE when merging menus and main form
13513 doesn't have a menu.
13515 * Form.cs: Request NCRecalc after creating a mdi child window.
13516 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
13517 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13519 * MdiClient.cs: Add new method SendFocusToActiveChild that either
13520 sends keyboard focus to the active child, or to the MdiClient
13521 if there are no child forms.
13523 2007-01-15 Chris Toshok <toshok@ximian.com>
13525 * ListView.cs: drop the *Internal overrides, just do our work in
13526 ItemControl's WndProc instead.
13528 * UpDownBase.cs: a few large changes. Fix up the Selectable state
13529 of the various controls, and forward the events properly (in the
13530 same manner as MS) from the textbox to the UpDown. Also the
13531 ActiveControl of the UpDownBase gets set properly now. Finally,
13532 we don't call UpdateEditText from the ctor. Fixes bug #79957.
13534 * NumericUpDown.cs: set Text in the ctor.
13536 * DomainUpDown.cs: call UpdateEditText in the ctor.
13538 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13539 so even a Selectable = false textbox can be focused if you click
13542 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
13543 just add their handling in their respective WndProc's. Also add
13544 an explicit FocusInternal method that doesn't consult CanFocus
13545 before calling Select(this).
13547 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13548 do our work in WndProc instead.
13550 * TabControl.cs: same.
13552 * ComboBox.cs: same.
13554 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13556 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13559 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13562 * ThemeWin32Classic.cs: Don't draw the item text outside
13563 item bounds in Details view, as well as use trimming.
13566 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13568 * Form.cs: Implement Form.ShowIcon.
13570 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13571 null, which when combined with the DlgModalFrame window style removes
13572 the icon from the title bar.
13574 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13576 * Control.cs: Call OnMouseClick after OnClick. (2.0)
13578 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13580 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13581 menu when mdi child windows theres a menu, uses insert to get icon
13582 at first position. Partially fix #80006.
13584 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13586 * Clipboard.cs: Implement 2.0 methods.
13588 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13590 * Menu.cs: Implement Insert method of MenuItemCollection class
13593 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13595 * ListView.cs: Implement 2.0 FindItemWithText method.
13597 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13599 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13600 to calculate menu bar size. Fixes #80290.
13602 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13604 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13606 2007-01-11 Chris Toshok <toshok@ximian.com>
13608 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13611 2007-01-11 Chris Toshok <toshok@ximian.com>
13613 * LinkLabel.cs: make sure to call base.Select in our Select method
13614 if it turns out we're going to be selected (i.e. if we have a link
13615 that is going to receive focus). That way our container's
13616 ActiveControl is updated properly.
13618 2007-01-11 Chris Toshok <toshok@ximian.com>
13620 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13621 they have 1 or more links. this fixes the crash gert reported.
13623 2007-01-11 Andreia Gaita <avidigal@novell.com>
13625 * ContainerControl.cs: Remove ContainerSelected flag, not needed
13628 * Control.cs (Controls.Add): Check if control to be added to the collection
13629 is a top level control, and throw an ArgumentException if it is.
13630 Remove ContainerSelectedFlag, not needed anymore.
13632 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13633 top most control doesn't activate the form. This fixes a problem in the
13634 MessageBox, where the default button wouldn't get focus because the form
13635 was activated before being Loaded - when the Owner is set, SetTopMost is
13636 called, and it would activate it.
13638 2007-01-11 Jonathan Pobst <jpobst@novell.com>
13640 * Button.cs: When clicked and setting the parent form's DialogResult,
13641 use FindForm instead of Parent, since parent could be a container
13642 control and not the Form. Fixes bug #80495.
13644 2007-01-10 Chris Toshok <toshok@ximian.com>
13646 * Form.cs: move the call to SendControlFocus into the same
13649 2007-01-10 Chris Toshok <toshok@ximian.com>
13651 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13652 It breaks in the face of the new ActiveControl stuff, and should
13655 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13656 activecontrol's focus if it's not already set, after we set
13657 ActiveControl, but before we call OnActivated. Re-fixes #79667
13658 after the previous focus/active control fixes regressed it.
13660 * Control.cs: reindent some code.
13662 2007-01-10 Chris Toshok <toshok@ximian.com>
13664 * Splitter.cs: clearing some outstanding changes from my tree.
13665 Replace all accesses (not writes) to the internal dock_style field
13666 with the Dock property.
13668 2007-01-10 Chris Toshok <toshok@ximian.com>
13670 * Control.cs: make FireEnter, FireLeave, FireValidating, and
13671 FireValidated virtual.
13673 * Form.cs: override and don't chain up calls to FireEnter and
13676 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13678 * ListView.cs: Add more text padding space when using
13679 auto resize for columns (the previous value didn't work fine).
13681 * ThemeWin32Classic.cs: Update text position inside columns,
13682 to match the appeareance of .Net.
13684 * ColumnHeader.cs: When using auto resize, only the Width should
13685 depend on the sub items, not the Height. Also, set width after
13686 auto resizing (the value of Width should never remain as -1 or -2).
13688 2007-01-10 Chris Toshok <toshok@ximian.com>
13690 * Application.cs: fix compilation errors when debug is enabled.
13692 2007-01-10 Chris Toshok <toshok@ximian.com>
13694 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13695 add some nice ascii art pictures and explanation of the process).
13696 (GetMostDeeplyNestedActiveControl): new utility function we need
13697 because our ActiveControl can refer to a child container with its
13700 * Form.cs (OnActivated): remove the call to SelectActiveControl
13701 from here, since you can override this method and not chain up,
13702 and winforms still sets the active control.
13703 (OnCreateControl): also remove the unnecessary SelectActiveControl
13705 (WndProc): it's actually called from the WM_ACTIVATE block, just
13706 before calling OnActivated.
13708 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13709 inside the else. the ActiveControl setter will end up setting
13710 focus on @control. This keeps us from setting it again (and
13711 generating an extra LostFocus/GotFocus pair).
13712 (Select (bool, bool)): reindent.
13714 2007-01-10 Jonathan Pobst <jpobst@novell.com>
13716 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13717 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13718 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13719 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13720 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13721 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13722 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13723 ToolStripTextBox.cs: Another wave of corcompare work.
13725 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13727 * ColumnHeader.cs: Implement 2.0 AutoResize method using
13728 the Width property.
13730 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13731 methods by callling Column.AutoResize method on columns.
13733 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
13735 * Control.cs: Provide proper implementations of PreferredSize
13736 and GetPreferredSize (2.0).
13738 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
13740 * Form.cs: Remove one character (!) to make my previous OnClosing
13741 stuff work for modal windows like MessageBox.
13743 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13746 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13747 ListView.Columns to get the last displayed column. Fixes #80452.
13749 2007-01-09 Everaldo Canuto <everaldo@simios.org>
13751 * Label.cs, LinkLabel.cs: Source code identation fixes.
13753 2007-01-08 Everaldo Canuto <everaldo@simios.org>
13755 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13756 we dont need to invalidate only borders because when we invalidate four
13757 border lines the invalidate's generates a complete redraw of button,
13758 because it now invalidate a complete rect some other redraws operations
13759 are fixed. Fixes #80196.
13761 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13762 Remove ToolBarInvalidateEntireButton as it is not used.
13764 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
13766 * Form.cs: Make sure that both OnClosing and OnFormClosing are
13767 called for 2.0 profile.
13768 * CloseReason.cs: Make class internal for 1.1.
13770 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
13772 * ToolStripManager.cs: Implement FindToolStrip functionality.
13773 * ToolStrip.cs: Register and unregister with ToolStripManager.
13775 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
13777 * Control.cs: This was messy. 2.0 moves much of ControlCollection
13778 to ArrangedElementCollection. Implemented this with as few #if's as
13779 possible (which is still too many).
13781 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
13783 * Control.cs: Implement SizeFromClientSize() [2.0].
13785 2007-01-07 Everaldo Canuto <everaldo@simios.org>
13787 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13788 use Theme.BorderSize to calculate area instead of static value 1,
13789 by the way use new BorderStaticSize instead Border3DSize when
13790 border_static is true. Fixes #79537.
13792 * XplatUIOSX.cs: Fix call to GetClientRectangle.
13794 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13797 2007-01-06 Everaldo Canuto <everaldo@simios.org>
13799 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13801 2007-01-06 Everaldo Canuto <everaldo@simios.org>
13803 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13804 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13807 - border_static field added, it will used to define when a control
13808 theres 3D border but it must be static (thin).
13809 - In GetWindowRectangle use Theme.BorderSize to calculate area
13810 instead of static value 1, by the way use new BorderStaticSize instead
13811 Border3DSize when border_static is true.
13813 * XplatUIX11.cs, XplatUIOSX.cs:
13814 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13816 * Theme.cs: BorderStaticSize field added.
13818 2007-01-05 Everaldo Canuto <everaldo@simios.org>
13820 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13822 2007-01-05 Everaldo Canuto <everaldo@simios.org>
13824 * Control.cs: Under InternalBorderStyle call RecreateHangle to
13825 mimic same behavior than win32 that set border only in CreateParams,
13826 it fix problems under CreateParams overrides. Fix #79442 and partial
13829 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13830 of thi control you must call recreate handle.
13832 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13833 need to do anything as RecreateHangle will take care about borders.
13835 2007-01-05 Mike Kestner <mkestner@novell.com>
13837 * ListView.cs: hack to eliminate Lost/Got focus notifications on
13838 cycles between the ItemControl and parent. Fixes #80388.
13840 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
13842 * Control.cs: Lazy init layout engine. Do not directly use
13843 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13845 2007-01-05 Chris Toshok <toshok@ximian.com>
13847 * DataGrid.cs: don't forceably rebind columns in SetDataSource
13848 unless our list manager has changed (i.e. unless we have reason to
13849 believe our columns have changed). Fixes #80422.
13851 also, disable the call do BindColumns in
13852 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
13853 1.1 the event isn't raised in response to a column addition on a
13856 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
13858 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13859 that inheritors can not call it if they choose. Fixes bug #80456.
13861 2007-01-05 Andreia Gaita <avidigal@novell.com>
13863 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
13864 doesn't blow up with a null exception on marshalling.
13866 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
13868 * Control.cs: Implement several 2.0 protected properties and methods.
13869 Ensure that all necessary events are being called when properties
13872 2007-01-05 Mike Kestner <mkestner@novell.com>
13874 * ListView.cs: implement PgUp/PgDn for Details view. Also
13875 fixes First/LastVisibleIndex to use the item_control.ClientRect
13876 instead of the parent control. Fixes #80378.
13878 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
13880 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
13881 determine whether to use yard-pound or not (bug #78399).
13883 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
13885 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
13886 problems. So it is time to bring back the old popupbutton colors.
13888 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13891 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
13892 property by using the internal information of the
13893 columns order in ListView.
13895 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
13897 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
13898 Add 2.0 Tag properties.
13900 * LinkArea.cs: Add 2.0 ToString method.
13902 2007-01-03 Chris Toshok <toshok@ximian.com>
13904 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
13905 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
13906 when we're editing, which fixes #80047.
13908 2007-01-03 Chris Toshok <toshok@ximian.com>
13910 * Form.cs: apply patch contributed by Dominik Seichter. fixes
13913 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
13915 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
13916 property and implementation.
13918 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
13919 for MdiWindowListItem property.
13921 * ToolStripDropDown.cs: Don't consider hidden menu items while
13922 laying out the menu.
13924 2007-01-03 Andreia Gaita <avidigal@novell.com>
13926 * SendKeys.cs: window handle is not needed in win32, so just
13927 get the active window for X after parsing keys and don't use
13928 it when building the message; it is passed by parameter to the
13929 Xplat method and used there to build the message instead. Also,
13930 wait for events to be processed on SendWait, as opposed to Send,
13931 which doesn't wait :) Playing with threads and Send() completely
13932 hangs on ms.net, only SendWait() works.
13935 X11Display.cs: Check for valid window handle.
13937 2007-01-03 Jackson Harper <jackson@ximian.com>
13939 * TextControl.cs: Need to prevent wrap calculations when replacing
13940 text (this was there before i removed it accidently).
13941 - Don't update the cursor during the positioning, just set it to
13942 selection_start at the end of the operaion.
13944 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13947 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13949 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13951 * MonthCalendar.cs: Added Click and DoubleClick events again,
13952 but this time they only hide Control's Click and DoubleClick.
13954 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
13956 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
13957 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
13959 2007-01-02 Jackson Harper <jackson@ximian.com>
13961 * TextBoxBase.cs: We move the caret with the split now, so we
13962 don't need to explicitly move the caret after splitting. This
13963 fixes the caret bumping down an extra line on Enter.
13965 2007-01-02 Miguel de Icaza <miguel@novell.com>
13967 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
13970 * ScrollableControl.cs: Add Scroll event.
13972 2007-01-02 Mike Kestner <mkestner@novell.com>
13974 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
13975 to fix all hdr height padding codepaths. Fixes #80207.
13977 2007-01-02 Chris Toshok <toshok@ximian.com>
13979 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
13980 setting it to the Control defaults anyway, and it being after the
13981 Dock set was screwing up layout.
13982 (set_Dock): don't short circuit out of setting base.Dock. Also,
13983 no need to call UpdateStatusBar here, as it'll be re-layed out if
13986 2007-01-02 Mike Kestner <mkestner@novell.com>
13988 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
13989 to header height for width == -1. Fixes the rest of #80207.
13991 2007-01-02 Mike Kestner <mkestner@novell.com>
13993 * ListView.cs: rework the mouse event forwarding everaldo added
13994 to translate the coordinates to the parent control not
13995 raise the parent events until after we've done our work. Hover
13996 needs more work, in the case where HoverSelection is on, because
13997 the item control receives more than one MouseHover per Enter
13998 event, so we need to ensure only the "first" hover gets forwarded.
13999 Opening a minor bug for that.
14001 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
14003 * CheckedListBox.cs: Fixed SelectionMode to match MS.
14004 * ListControl.cs: Implemented AllowSelection property. Removed extra
14006 * ListBox.cs: Implemented AllowSelection property.
14008 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14010 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14011 SelectedItem, it prevent for errors when you must disable item
14012 before perform click. Fixes #80409.
14014 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14016 * MenuAPI.cs: Prevent second level and beyond submenus to close
14017 until first level when move out side of popup.
14019 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14022 - Down submenu positin in three pixels.
14023 - Closes sub menu when mouse leaves from menu. Fixes #80402.
14025 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14027 * ThemeWin32Classic.cs:
14028 - Fix popup menu size adding one pixel on the top.
14029 - Down menu item border from two to one to mimic Win32.
14030 - Some source identation fixes.
14032 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14034 * ThemeWin32Classic.cs: Use float numbers to calculate size and
14035 position of menu arrows, it fix wrong arrow size.
14037 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14039 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14040 instead of line, it simplify draw operation and fix it using 3D
14041 borders to mimic Win32.
14043 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
14045 * StatusStrip.cs: Add implementation of the sizing grip.
14047 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14048 StatusStrip rendering.
14050 2006-12-31 Chris Toshok <toshok@ximian.com>
14052 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
14053 override the layout style (anchor/dock) of the control. assign to
14054 Dock instead. Fixes bug #80416.
14056 * ToolStrip.cs: same.
14058 2006-12-31 Andreia Gaita <avidigal@novell.com>
14060 * ContainerControl.cs: Use ContainerSelected flag to check if
14061 a Container is directly selected, or if Select is called on a
14062 non-container. If a container is directly selected, focus events
14063 should not be raised.
14064 Apply #80411 patch to throw exception on set_ActiveControl if
14065 control is the same as the current one.
14067 * Control.cs: Use ContainerSelected flag (see above).
14068 Add invalidation check to raise event but not invalidate if
14070 Apply #80411 patch.
14073 2006-12-31 Everaldo Canuto <everaldo@simios.org>
14075 * MenuAPI.cs: After click, dont close popup menu when menu is
14076 ContextMenu. Fixes #80399.
14078 2006-12-30 Chris Toshok <toshok@ximian.com>
14080 * ContainerControl.cs: make sure we throw the exception if the
14081 container control doesn't contain the control we're setting
14084 2006-12-30 Chris Toshok <toshok@ximian.com>
14086 * Control.cs (SetTopLevel): fix the exception raised by
14087 SetTopLevel for child controls.
14088 (set_Anchor): call UpdateDistances when setting the anchor type.
14089 This fixes bug #80336.
14091 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14093 * Theme.cs: For now, revert back to 8pt font.
14095 2006-12-29 Everaldo Canuto <everaldo@simios.org>
14097 * MenuAPI.cs: Set popup as active when open a ContextMenu.
14100 2006-12-29 Chris Toshok <toshok@ximian.com>
14102 * Control.cs: reorder the code in OnResize to give the same event
14105 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14107 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14108 TileHorizontally and TileVertically.
14110 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
14112 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14113 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14114 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14115 Corrected copyright and email adress.
14117 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14119 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14120 of Exception in FullPath property if no TreeView is associated with
14123 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14125 * Theme.cs: Marked default_font as private, and initialize it in ctor
14126 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14128 * ThemeGtk.cs: Removed default_font intialization.
14129 * ThemeWin32Classic.cs: Removed default_font initialization.
14131 2006-12-28 Chris Toshok <toshok@ximian.com>
14133 * Control.cs: fix a couple of place where we were creating handles
14134 more aggressively than we should be. Fixes ControlRefresh unit
14137 2006-12-28 Chris Toshok <toshok@ximian.com>
14139 * Control.cs: contrary to what the comment said, Control.Dock does
14140 not supercede Control.Anchor - the last one you assign to decides
14141 the layout behavior. so we need to keep track of which was the
14142 last set. Also, fix some of the affected property arguments in
14143 PerformLayout calls, and remove an redundant parent.PerformLayout
14146 Add a VisibleInternal property, which returns is_visible. We
14147 can/should get rid of all the usage of this field elsewhere.
14149 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14151 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14152 control style, not DoubleBuffer. Added UseDoubleBuffering property
14153 that indicates whether doublebuffering is enabled and supported.
14154 (comment from and code based on Gert Driesen's patch in #80324).
14157 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14159 * Control.cs: Fixed a NRE.
14161 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14163 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14166 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14168 * Control.cs: Rewrote double buffering, now a seperate
14169 class handles all the buffering, no Graphics is disposed of
14170 until the painting is finished (earlier implementation
14171 would crash if the control was resized in the OnPaint,
14172 since it would cause the double buffer to be recreated
14173 and the old one disposed), a separate Graphics is
14174 created for every paint (MS behaviour and anyways the state
14175 of the Graphics would have to be saved and restored otherwise)
14177 * XplatUIDriver.cs:
14179 * XplatUI.cs: Added and implemented GetOffscreenGraphics
14180 so that we can get the graphics for the back buffer without
14181 having to create a new one and remove the offscreen_dc parameter
14182 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14184 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14186 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14187 Also make virtual all the key-related methods.
14189 * ListViewItem.cs: Make virtual the key related methods for
14190 ListViewSubItemCollection.
14192 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14196 * ThemeWin32Classic.cs:
14197 * Theme.cs: Initial support for Tile view in ListView,
14198 as well as the implementation of the required bits for it (Item
14201 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14203 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14204 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14205 Provide useful exception messages.
14207 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14209 * TrackBar.cs: Remove a warning.
14210 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14211 when used by DateTimePicker, fixes #80287. This also requires that
14212 MonthCalendar implements it's own drawing for the yearly updown control,
14213 otherwise the Capture tracking would be too complicated. Removed the Click
14214 and DoubleClick events (according to comments they were hiding the base class
14215 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14216 raise these events, not that they cannot be raised. It is possible to raise
14217 them by calling OnClick and OnDoubleClick). Added two internal fields in
14218 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14219 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14220 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14221 event, no longer needed.
14223 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14225 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14226 true if new value differs from current value.
14228 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14230 * Control.cs: ControlCollection.Count must be public. Fixed build of
14233 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14235 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14237 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14239 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14241 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14243 * Control.cs: Invalidates control including when Width and Height is
14244 equal zero or is not visible, only Paint event must be care about
14245 this. Fixes #79913.
14247 2006-12-26 Chris Toshok <toshok@ximian.com>
14249 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14250 more corcompare work.
14252 * DataGridView.cs: fix compiler warning.
14254 * ColumnHeader.cs: some corcompare work, and also take the
14255 opportunity to make the internal fields private.
14257 * ListView.cs: fix the fallout from the above field change.
14259 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14261 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14262 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14263 ToolStripTextBox.cs: Fixes to events and corcompare.
14265 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14267 * ListView.cs: Call owner.OnMousexx event to propagate events from
14268 item to ListView. Fixes #80367.
14270 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14272 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14273 if value is less than one. ItemHeight should not be set to a value
14274 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
14275 Removed extra tabs.
14277 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14279 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14280 * ToolStripStatusLabel.cs: Add Spring for Moma.
14282 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14284 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14285 Fixed code formatting. Removed debug code.
14286 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14288 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14290 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14291 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14292 ArgumentOutOfRangeException if ColumnCount is negative. In
14293 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14294 less than 4 or higher than 32768.
14295 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14296 Fixed FormatProvider to return CurrentCulture unless explicitly set.
14297 Fixed IsFormatProviderDefault to return true if FormatProvider has
14298 not been explicitly set.
14300 2006-12-25 Chris Toshok <toshok@ximian.com>
14302 * Application.cs: add a couple of 2.0 events.
14304 2006-12-25 Chris Toshok <toshok@ximian.com>
14306 * Control.cs: fix compiler warning.
14308 * AxHost.cs: corcompare fixes.
14310 * ApplicationContext.cs: corcompare fixes.
14312 2006-12-25 Chris Toshok <toshok@ximian.com>
14314 * Control.cs: only update dist_right/dist_bottom if the
14315 width/height is > 0. this fixes anchored controls being resized
14316 smaller until they disappear and then resized larger again.
14318 2006-12-25 Chris Toshok <toshok@ximian.com>
14320 * Control.cs: a couple of changes. Remove dist_left and dist_top,
14321 since they're nothing more than X/Left and Y/Top, respectively.
14323 Also, move back to a per-control Bitmap/Graphics for
14324 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14325 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
14328 2006-12-25 Miguel de Icaza <miguel@novell.com>
14330 * MessageBox.cs: Implemented overload that takes a new "bool
14331 displayHelpButton" by adding a new internal field "show_help".
14332 When clicked this will raise the HelpRequested on the owner or the
14335 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14336 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14338 * ListView.cs: Add support ColumnWidthChanged and
14339 ColumnWidthChanging.
14341 Add support for ColumnReordered event.
14342 (ReorderColumn): Add NET_2_0 specific support for cancelling the
14345 Very nice codebase!
14347 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14349 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14351 2006-12-24 Chris Toshok <toshok@ximian.com>
14353 * GridTablesFactory.cs: 2.0 corcompare work.
14355 * ToolStripContainer.cs: add "override" to
14356 ContextMenuStripChanged, and remove the local event object.
14358 * ToolStripDropDown.cs: same with a couple properties.
14360 * ToolStripPanel.cs: same with AutoSizeChanged event.
14362 * TextBoxBase.cs: add "override" to AutoSizeChanged.
14364 * Form.cs: add the remaining 2.0 events, and do some corcompare
14367 * DateTimePicker.cs: add "new" to padding.
14369 * ButtonBase.cs: use Control's use_compatible_text_rendering.
14371 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14373 * DataGridView.cs: PaddingChanged is overridden.
14375 2006-12-24 Chris Toshok <toshok@ximian.com>
14377 * Control.cs: corecompare work here too.
14379 * DataGridViewElement.cs, DataGridView.cs,
14380 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14381 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14382 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14383 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14386 2006-12-24 Miguel de Icaza <miguel@novell.com>
14388 * Control.cs: Switched the error message on the console for a
14389 todo. A review of the code will have to cope with this anyways
14390 (since its a large feature, it is in our radar) and it was
14391 producing too much output when running PDN.
14393 * ToolStripComboBox.cs: Set the text when the SelectedIndex
14394 changes. Applications depend on this (PDN 2.72)
14396 2006-12-23 Chris Toshok <toshok@ximian.com>
14398 * TableLayoutSettings.cs: finish up the corcompare work for this
14401 2006-12-23 Chris Toshok <toshok@ximian.com>
14403 * Control.cs: make SetImplicitBounds internal, do some futzing
14404 with LayoutEngine so that it's available in 1.1, and remove the
14405 entire duplicated code mess from PerformLayout. Use
14406 System.Windows.Forms.Layout.DefaultLayout instead.
14408 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14410 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14412 * Form.cs: Add MainMenuStrip property.
14414 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14416 * Control.cs: Add ContextMenuStrip property and implementation.
14417 Fix ContextMenu implementation to show menu centered on control when
14418 activated using the keyboard instead of showing at screen (0,0).
14420 * ToolStripDropDown.cs: Fix needed overload of Show ().
14422 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14424 * Menu.cs: Name property added for 2.0 profile.
14426 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14428 * Menu.cs: Update information about FindMenuItem, method to be
14431 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14433 * MenuAPI.cs: When deselect items deselect also selected subitems.
14435 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14437 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14438 FindSubItemByCoord to found itens that is not active, also an
14439 cheking added to FindSubItemByCoord to search for items only
14440 in visible popup windows. Fixes #80274.
14442 2006-12-22 Everaldo Canuto <everaldo@simios.org>
14444 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14445 internal property, it be care about change ExStyle.
14447 2006-12-22 Andreia Gaita <avidigal@novell.com>
14449 * ContainerControl.cs: set activeControl for parent forms up the
14450 tree when the new activecontrol is a container.
14451 When validating the active control, if it is a container, also
14452 raise up the validation for it's active control. Fixes #80280
14454 * Control.cs: Add internal property flag and check to prevent
14455 Focus events from getting raised when Select() is called for
14456 a ContainerControl. There are still too many focus events being
14457 raised at the moment though.
14458 Cleaned up the code a bit.
14460 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14462 * Control.cs: Added all missing 2.0 events.and
14463 fixed a couple of corcompare issues.
14464 * TrackBar.cs: Implemented missing 2.0 bits.
14465 * MonthCalendar.cs,
14466 * DateTimePicker.cs,
14467 * MdiClient.cs: Fixed some corcompare issues.
14469 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14471 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14472 SplitterPanel.cs: corecompare work.
14474 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14476 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14477 Clean up warnings for BackgroundImageChanged and PaddingChanged
14478 events now that they are implemented in Control.cs.
14480 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14482 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14484 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14485 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14486 of TableLayoutPanel and supporting cast.
14488 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
14491 - GrabWindow now confines the mouse pointer to the confine window.
14492 - Added Win32ClipCursor and Win32GetClipCursor.
14495 - Added CaptureWithConfine to be able to capture and confine
14498 * InternalWindowManager.cs:
14499 - Call CaptureWithConfine instead of Capture if we're an
14500 MdiChild (fixes #79982).
14502 2006-12-21 Chris Toshok <toshok@ximian.com>
14504 * DataGrid.cs: guard against the initial state of selection, where
14505 selection_start == -1. make sure we only select from index >= 0.
14508 2006-12-21 Chris Toshok <toshok@ximian.com>
14510 * Control.cs: we don't need to be so draconian with
14511 UpdateDistances, and we thusly don't need to call it before
14512 calling PerformLayout in ResumeLayout. Fixes bug #80289.
14514 2006-12-21 Daniel Nauck <dna@mono-project.de>
14517 TextBox.cs: Implemented AutoComplete properties.
14519 2006-12-20 Chris Toshok <toshok@ximian.com>
14521 * DataGridView*.cs: some corecompare work.
14523 2006-12-20 Jackson Harper <jackson@ximian.com>
14525 * XplatUIX11.cs: We need to hide the caret when deleting it,
14526 otherwise you get carets left lying around everywhere.
14527 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
14528 prevents getting some weird half drawn caret tracers when
14530 * TextControl.cs: Attempt to reduce the number of times we need to
14531 recreate the caret.
14533 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
14535 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14537 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14539 * DateTimePicker.cs:
14540 - Implemented missing 2.0 bits.
14541 - Changed some default values to match MS.
14543 2006-12-20 Jackson Harper <jackson@ximian.com>
14545 * TextBoxBase.cs: When changing the font across the document we
14546 can't recalculate after changing each line, since that will cahnge
14548 - PreferredHeight is a little different than i thought.
14549 - When backspacing, move the caret before we do the actual char
14550 delete, because when that delete crosses a wrap boundary the
14551 positional information will change.
14553 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14555 * Control.cs: Added some missing 2.0 bits:
14556 BackgroundImageLayout, BackgroundImageLayoutChanged,
14557 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
14558 add IBindableComponent and IDropTarget implementation.
14560 * MonthCalendar.cs:
14561 - Added all missing 2.0 features:
14562 BackgroundImageLayout, RightToLeftLayout,
14563 OnHandleDestroyed, RightToLeftLayoutChanged,
14564 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14566 - Rewrote all the BoldDate code, it was completely broken.
14567 - Fixed all the tests (the tests can now be re-enabled, the
14568 problems were not with the tests, but with the control, it was
14571 * DateTimePicker.cs: Changed the location where the
14572 MonthCalendar is shown.
14574 2006-12-19 Chris Toshok <toshok@ximian.com>
14576 * DataGridView.cs: add IDropTarget implementation.
14578 * ToolStripPanel.cs: add IDropTarget implementation.
14580 2006-12-19 Jackson Harper <jackson@ximian.com>
14582 * TextControl.cs: soft now means something different than what it
14583 used to mean, we want to move the caret regardless of whether or
14584 not this break was soft (would we really have wanted the caret
14585 to not move with the break in the old context?)
14586 * TreeView.cs: Make sure we factor in the vert scrollbar when
14587 calculating the horizontal scrollbar's maximum.
14589 2006-12-19 Andreia Gaita <avidigal@novell.org>
14591 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14592 check for keywords in alternate casing, close bug #80049.
14594 2006-12-19 Chris Toshok <toshok@ximian.com>
14596 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14597 methods (which all do nothing).
14599 * IDropTarget.cs: add the 4 missing methods.
14601 2006-12-19 Chris Toshok <toshok@ximian.com>
14603 * TableLayoutRowStyleCollection.cs: corcompare work.
14605 * TableLayoutSettings.cs: same.
14607 * TableLayoutStyle.cs: same.
14609 * TableLayoutColumnStyleCollection.cs: same.
14611 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
14613 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14614 TableLayoutPanel I've had in my local tree for way too long.
14616 2006-12-19 Miguel de Icaza <miguel@novell.com>
14618 * TableLayoutSettings.cs: Finish the public API (still needs all
14619 the logic to update on changes).
14621 * TableLayoutPanelCellPosition.cs: new file.
14623 * TableLayoutRowStyleCollection.cs,
14624 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14625 TableLayoutSettings.cs: Track the final 2.0 table api.
14627 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14629 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14630 and Image List 2.0 members for ColummnHeader.
14631 * ListView.cs: Add key-related 2.0 methods for
14632 ColumnHeaderCollection.
14634 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
14636 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14637 ArgumentNullException if items argument is null. Ignore null item in
14638 arrays. Removed extra tabs.
14640 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
14642 * MonthCalendar.cs: Fixed InvalidCastException.
14644 2006-12-19 Jackson Harper <jackson@ximian.com>
14646 * TextControl.cs: Don't increment the position here.
14647 - When calculating char positions only add in the line break size
14648 for hard line breaks.
14650 2006-12-19 Andreia Gaita <avidigal@novell.org>
14652 * SendKeys.cs: Changed some things to match ms.net behaviour
14653 when parsing shifted capital letters.
14655 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
14656 Add window handle as parameter to SendInput. X11 needs the
14657 window handle, and the handle being passed to it in the keys
14658 queue is the active control handle (which windows needs), not
14661 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
14662 to support SendKeys on X.
14664 * X11Keyboard: Implement helper method to lookup a linux keycode
14665 given the virtual keycode. Added table of keycode-2-virtualkey
14666 values to support this.
14668 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14670 * ListView.cs: Add support for SelectedIndexCollection
14671 and SelectedItemCollection 2.0 methods. Implement support
14673 * ListViewItem.cs: Add support for ListViewSubItemCollection
14674 2.0 methods. Also, fix an incorrect behavior of AddRange method
14675 (it shouldn't call Clear).
14676 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14678 2006-12-19 Jackson Harper <jackson@ximian.com>
14681 * TextBoxBase.cs: New args for FormatText
14682 * TextControl.cs: Rewrote the main drawing method, this version
14683 feels a little easier to understand and debug to me. Hopefully it
14684 does to others also
14685 - Fix FormatText to OR in the new formating values. Added
14686 FormatSpecified param, basically this works in the same way as
14687 BoundsSpecified in Control.
14688 - Set the caret properties when the caret is positioned.
14689 - When wrapping text make sure that we calculate the width of the
14691 - when calculating alignments we might have wrapped down to the
14692 next line, so don't search for an individual tag, search for the
14694 - We need to invalidate the selection area when we replace the
14697 2006-12-19 Daniel Nauck <dna@mono-project.de>
14699 * Application.cs: add Restart () 2.0 support
14701 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14703 * MenuItem.cs: Invalidate menu item rectangle after change Enable
14704 property. Fixes #80268.
14706 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14708 * MenuAPI.cs: Dont trigger select event when closes top menu
14709 item. Fixes #80270.
14711 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14713 * MenuAPI.cs: When you click on menuitem only trigger onselect
14714 event for top menu itens. Fixes #80271.
14716 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14718 * MdiWindowManager.cs: Make IconicBounds depend on
14719 the bottom of MdiClient, not the top (fixes #80267)
14721 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14723 * MdiClient.cs: Added missing 2.0 attribute
14725 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14727 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14728 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14730 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14732 * MenuAPI.cs: Fix click when menuitem is not popup,
14733 this regression was caused by last commit (#80272).
14735 2006-12-17 Everaldo Canuto <everaldo@simios.org>
14737 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14738 fire click event or close menu. Fixes #80272.
14740 2006-12-17 Daniel Nauck <dna@mono-project.de>
14742 * ListViewHitTestInfo.cs: add
14744 2006-12-17 Daniel Nauck <dna@mono-project.de>
14746 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14747 * FlatButtonAppearance.cs: add
14748 * DockingAttribute.cs: add
14750 2006-12-17 Chris Toshok <toshok@ximian.com>
14752 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14753 and rebind our columns when it does - this way, if you make
14754 changes to the DataTable (or set the Table attribute on a DataView
14755 after setting it as the DataGrid's DataSource, the changes are
14756 made visible.) Fixes bug #80107.
14758 2006-12-17 Daniel Nauck <dna@mono-project.de>
14760 * ListViewGroup.cs: add internal Location property for layouting.
14761 * Theme.cs: add abstract ListViewGroupHeight function.
14762 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14764 2006-12-16 Andreia Gaita <avidigal@novell.com>
14766 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14767 Added reset of selected index to 0 when adding first tab page.
14770 * NumericUpDown.cs: Fix NET_2_0 check
14772 2006-12-16 Daniel Nauck <dna@mono-project.de>
14774 * ListViewGroup.cs: fixed DefaultValueAttribute value
14776 2006-12-16 Daniel Nauck <dna@mono-project.de>
14778 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14780 2006-12-15 Miguel de Icaza <miguel@novell.com>
14782 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14783 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14784 ScrollableControl.cs: Add a handful of methods that are
14787 2006-12-15 Chris Toshok <toshok@ximian.com>
14789 * XplatUIWin32.cs: initial implementation of the Reversible
14790 drawing functions. there are some problems. DrawReversibleFrame
14791 doesn't seem to work at all for Dashed FrameStyle, and in the
14792 Thick case there are drawing errors at the corners (we probably
14793 need to bind Rectangle instead of doing moveto/lineto's.)
14795 2006-12-16 Andreia Gaita <avidigal@novell.com>
14797 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
14798 to send blocks of key messages. Send accumulates keys to send with Flush,
14799 while SendWait sends all keys immediately.
14801 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14802 XplatUIX11.cs, XplatUIX11-new.cs:
14803 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14804 to Win32 SendInput.
14805 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14807 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
14808 testing for ms.net on this class is very tricky, as the tests run too fast
14809 to allow the hook to release, essentially freezing the keyboard and the
14810 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
14813 2006-12-16 Daniel Nauck <dna@mono-project.de>
14815 * Padding.cs: fixed serialization compability to MS ("_var" field names),
14816 added missing attributes.
14818 2006-12-15 Daniel Nauck <dna@mono-project.de>
14820 * ListViewGroup.cs: Added missing attributes.
14821 * ListViewGroupCollection.cs: Added missing attributes.
14823 2006-12-15 Daniel Nauck <dna@mono-project.de>
14825 * ListViewItem.cs: fixed ListViewSubItem text property.
14827 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14829 * Control.cs: Added missing 2.0 attributes
14831 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14833 * MdiClient.cs: Added missing 2.0 attribute.
14834 * MonthCalendar.cs: Added some missing 2.0 attributes
14837 2006-12-15 Daniel Nauck <dna@mono-project.de>
14839 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14841 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
14843 * MainMenu.cs: Add the new 2.0 constructor to help out people
14844 using the MainMenu in VS2005.
14846 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14848 * MdiChildContext.cs: Removed it, no longer used.
14849 * MdiClient.cs: Added missing 2.0 attributes.
14851 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14853 * InternalWindowManager.cs: Fix a NullRef with previous
14854 changes for toolwindows.
14856 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14859 - Added AfterTopMostControl to allow for certain controls
14860 to always stay on top when normal controls are brought to
14864 - (DrawInversibleRectangle): Get window rectangle from Win32
14865 in stead of from control, since Win32 doesn't calculate
14866 screen coords correctly from control's Location if it
14867 have docked siblings.
14869 * MdiWindowManager.cs:
14870 - Correct the control menu popup location when clicked on
14871 the maximized form icon. (fixes #80223.1)
14872 - Don't show moving rectangle if mouse hasn't moved from
14873 the original clicked point.
14874 - Removed FormGotFocus handler (not used).
14875 - Calculate the control buttons location from the main
14876 window's size and not client size (fixes #79770).
14877 - Form is now closed when the form icon is double-clicked
14879 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
14881 * InternalWindowManager.cs:
14882 - Moved some MDI-only methods to MdiWindowManager.
14883 - Removed unused properties and methods.
14884 - Unified method naming for methods handling wm messages.
14885 - Moved all message handling to seperate methods for
14888 * ThemeWin32Classic.cs:
14889 - DrawManagedWindowDecorations now draws the title bar
14890 with a gradient brush.
14891 - Add a CPDrawButtonInternal that allows us to specify
14892 light, normal and dark colors for the buttons (control
14893 buttons for MDI children were drawn with the same light
14894 color as the background, therefore loosing the 3D effect).
14897 - Add a CapturedControl property that is used to
14898 determine the control to resize (defaults to parent).
14899 Needed for MdiClient, since its SizeGrip's parent is
14900 MdiClient, but the control to resize is the main form.
14903 - Set SizeGrip's CapturedControl to the main form in order
14904 to resize the main form and not the MdiClient.
14905 - Override AfterTopMostControl to leave the scrollbars
14908 2006-12-15 Daniel Nauck <dna@mono-project.de>
14910 * ListView.cs: fixed ListViewItemCollection AddRange and
14911 implemented ListViewItemCollection AddRange 2.0 support.
14913 2006-12-15 Daniel Nauck <dna@mono-project.de>
14915 * ListViewGroup.cs: Add.
14916 * ListViewGroupCollection.cs: Add
14917 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
14918 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
14919 stub for ImageKey 2.0 support.
14921 2006-12-14 Mike Kestner <mkestner@novell.com>
14923 * ListView.cs: add text padding to the autocalculation for columns
14924 of width -2. Fixes #80207.
14926 2006-12-14 Mike Kestner <mkestner@novell.com>
14928 * ListView.cs: add some index guarding for partial row navigation
14929 logic. Fixes #80250.
14931 2006-12-14 Mike Kestner <mkestner@novell.com>
14933 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14934 are added or inserted to the collection. Fixes #81099.
14936 2006-12-13 Everaldo Canuto <everaldo@simios.org>
14938 * MenuAPI.cs: Closes menu when right click out side of popup
14939 it fix problem in ContextMenu and MainMenu. Fixes #80252.
14941 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14943 * ListViewItem.cs: Fix dumb error.
14945 * ListView.cs: Add Find and ContainsKey methods in
14946 ListViewItemCollection, and also return true for IsReadOnly
14947 and IsFixedSize (changes for 2.0).
14949 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
14951 * Control.cs: Allow Region to be set to null.
14953 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14955 * MdiWindowManager.cs: Remove unused (commented out) code.
14956 * Form.cs: When the MdiChild is maximized, the form needs
14957 WM_NCMOUSELEAVE, so request it.
14958 * InternalWindowManager.cs:
14959 - Added tooltips to control buttons.
14960 - Removed duplicated control button handling code.
14961 - Removed unused (commented out) code.
14963 2006-12-12 Everaldo Canuto <everaldo@simios.org>
14965 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
14966 was used because we must set cursor without trigger ChangeCursor event
14967 and without change Cursor control property. Fixes #79963.
14969 2006-12-12 Andreia Gaita <avidigal@novell.com>
14971 * Control.cs: Check if Region setter value is null, and ignore
14973 2006-12-12 Jackson Harper <jackson@ximian.com>
14975 * TextControl.cs: We were almost always drawing one more line then
14976 needed, since the GetLineByPixel will return the last line found
14977 at that pixel. In most cases though, we were invalidating up to
14978 the junction between two lines.
14979 - Improve debug code.
14981 2006-12-12 Chris Toshok <toshok@ximian.com>
14983 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
14984 and FillReversibleRectangle.
14986 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
14987 and FillReversibleRectangle.
14989 * XplatUIWin32.cs: add stubs which do nothing for
14990 DrawReversibleFrame, DrawReversibleLine, and
14991 FillReversibleRectangle.
14993 * XplatUIOSX.cs: add stubs which raise NIE for
14994 DrawReversibleFrame, DrawReversibleLine, and
14995 FillReversibleRectangle.
14997 * XplatUIX11.cs: add working implementation for
14998 DrawReversibleFrame, DrawReversibleLine, and
14999 FillReversibleRectangle.
15001 * ControlPaint.cs: implement DrawReversibleFrame,
15002 DrawReversibleLine, and FillReversibleRectangle, by calling into
15003 the appropriate XplatUI method.
15005 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15007 * Form.cs: Make MdiClient have the focus even if it's
15008 not selectable, since it should receive WM_KEY* and WM_MOUSE
15009 messages. Fixes #79907.
15011 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15013 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15014 queried after the window is created.
15016 * XplatUIX11.cs: Added SendParentNotify to implement
15017 WM_PARENTNOTIFY logic. Fixes #79965.
15019 * Control.cs: Added MakeParam.
15021 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15023 * MdiClient.cs: Resume Layout before setting window
15024 states (fixes #80201).
15026 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15028 * MenuAPI.cs: Deselect a menu item after performing
15029 the click (fixes #80197).
15031 2006-12-11 Jackson Harper <jackson@ximian.com>
15033 * TextBoxBase.cs: We need to cap this value, since Maximum -
15034 ViewPortHeight can be less than zero.
15035 - Only do selection with the left mouse button.
15036 * TextBox.cs: Don't tell the world that we have a context menu.
15037 * Control.cs: New method so that we can control whether or not the
15038 context menu is visible outside MWF.
15040 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15042 * ToolBarButton.cs: Fix text positon.
15044 2006-12-11 Miguel de Icaza <miguel@novell.com>
15046 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15048 * Control.cs (DoubleBuffered): Add implementation.
15050 * Application.cs (OpenForms): Add.
15052 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15054 * Form.cs: Use opacity instead of Opactiy to determine if we need
15055 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
15057 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15059 * Control.cs: Fix NRE if Control.Site was set to null.
15061 2006-12-11 Chris Toshok <toshok@ximian.com>
15063 * Control.cs: ControlCollection.Remove should return if the arg is
15064 null, and ControlCollection.SetChildIndex should raise a ANE.
15066 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
15068 * Control.cs: Verify value set for Dock property. Code formatting
15071 2006-12-11 Jackson Harper <jackson@ximian.com>
15073 * TextControl.cs: Draw the caret and the selection when a flag is
15075 * TextBoxBase.cs: We want to draw the caret and the selection for
15076 TextBox but not for TextBoxBase.
15077 - If the window is resized and scrolling is no longer needed (the
15078 whole doc is visible) set the scroll position to zero.
15079 - The default SelectWord (the one TextBox uses) should move the
15080 caret to the end of the word.
15081 - SelectAll moves the caret to the end of the selection.
15082 * TextBox.cs: We don't selectall on focus, we just do it when the
15083 control is created.
15085 2006-12-11 Mike Kestner <mkestner@novell.com>
15087 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15089 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15091 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
15093 * ListViewItem.cs: Add Name 2.0 property.
15095 2006-12-11 Andreia Gaita <avidigal@novell.com>
15097 * TabControl.cs: Set visibility on selected or default tab
15098 when tabcontrol handle is created, so that it's contents
15099 actually show up (duh). Fixes #80193
15100 Don't redraw the control if there is no handle created, as
15101 the selected index might be completely invalid. Added some tests
15104 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15106 * ToolBar.cs: Uses maximun width and height of all buttons as
15107 button rectangle when ButtonSize specified, it looks strange but
15108 is what happens in Win32. Fixes #80189.
15110 2006-12-11 Jackson Harper <jackson@ximian.com>
15112 * TextControl.cs: Need to track undo levels ourself, since
15113 compound actions will mess them up.
15115 2006-12-10 Andreia Gaita <avidigal@novell.com>
15117 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15118 SelectedIndex value is changed (even if it's not valid).
15119 Reset SelectedIndex to 0 when the handle is created and if
15120 the current index is invalid.
15121 Fixes SelectdeIndex unit tests and #80128
15123 2006-12-08 Chris Toshok <toshok@ximian.com>
15125 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15126 calls EndEdit, it needs to be called before we set current_cell to
15127 its new value. Otherwise, we end up committing the value in the
15128 textbox to the new cell as well. Fixes bug #80160.
15130 2006-12-08 Chris Toshok <toshok@ximian.com>
15132 * Form.cs (set_CancelButton): if the button's DialogResult is
15133 None, set it to Cancel. Fixes bug 80180.
15135 2006-12-08 Jackson Harper <jackson@ximian.com>
15137 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15138 to watch ourselves when setting the canvas size and setting the
15141 2006-12-08 Chris Toshok <toshok@ximian.com>
15143 * DataGrid.cs: comment out the two MakeTransparent calls for the
15144 time being so people using trunk (and not 1.2.2) on windows can
15145 actually use the datagrid. This deals with bug #80151.
15147 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15149 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15150 Graphics.DrawImage (image, int, int, int, int) overload instead
15151 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
15152 the dpi difference and was blurring images it drew.
15155 2006-12-08 Chris Toshok <toshok@ximian.com>
15157 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15158 rowcnt is 0 (such as with an empty datasource), and make sure we
15159 initialize not_usedarea.Y to cells.Y, so we don't draw over the
15160 other areas (caption, parent row, etc, etc). Fixes bug #80095.
15162 2006-12-08 Chris Toshok <toshok@ximian.com>
15164 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15167 2006-12-08 Chris Toshok <toshok@ximian.com>
15169 [ Fixes bug #80167 ]
15171 * ThemeWin32Classic.cs: don't draw the image if the button's flat
15172 style is FlatStyle.System.
15174 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15175 ButtonBase.flat_style private, and switch uses of it to the public
15178 2006-12-08 Chris Toshok <toshok@ximian.com>
15180 [ Fixes bug #80121 ]
15182 * ThemeWin32Classic.cs: center the caption text in the datagrid
15185 * DataGrid.cs: lessen the amount we add to the caption height from
15186 6 to 2. 6 was making it huge.
15188 2006-12-08 Andreia Gaita <avidigal@novell.com>
15190 * UpDownBase: Handle MouseWheel call directly instead of capturing
15191 the inner textbox's OnMouseWheel. Fixes #80166
15193 2006-12-08 Jackson Harper <jackson@ximian.com>
15195 * TextControl.cs: We need to invalidate the textbox when we empty
15196 it (how had this not been discovered before?)
15198 2006-12-08 Jackson Harper <jackson@ximian.com>
15200 * TextBoxBase.cs: Reworked the mouse down code so I could get it
15201 to behave like MS, we now ignore the eventargs.Click and just
15202 track state ourself, which we were already doing anyways.
15203 - Constrain the double click handler to the double click size.
15205 2006-12-08 Chris Toshok <toshok@ximian.com>
15207 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15208 direction if that scrollbar isn't shown. fixes bug #80158.
15210 2006-12-08 Andreia Gaita <avidigal@novell.com>
15212 * NumericUpDown.cs: Update value on getter. Fixes #79950
15214 2006-12-08 Chris Toshok <toshok@ximian.com>
15216 * MenuItem.cs: add back in the event cloning code. I didn't know
15217 how to do it in the face of the EventHandlerList work i'd done
15218 last week. Fixes bug #80183.
15220 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15222 * Control.cs: Add an invalidate to the BackgroundImage setter.
15225 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15227 * ToolStrip*: Add some small properties reported by MoMA, fix event
15228 firing and default properties based off of unit tests, and add some
15229 attributes based off of the class status page.
15231 2006-12-07 Jackson Harper <jackson@ximian.com>
15233 * TextBoxBase.cs: Take HideSelection into account when determining
15234 whether or not to show the selection.
15235 * RichTextBox.cs: After inserting the RTF into the document move
15236 the cursor to the beginning of the document.
15238 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15240 * Control.cs: Remove static ArrayList "controls" which maintained
15241 a reference to every control created.
15242 * Application.cs: Create a static FormCollection to maintain a reference
15243 to every form created. Use it in places that formerly enumerated through
15244 the controls one looking for forms.
15245 * Form.cs: Add and remove self from above FormCollection.
15247 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
15249 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15250 not libgdk (though it makes me wonder why I didn't have any
15253 2006-12-07 Chris Toshok <toshok@ximian.com>
15255 [ you had to know this was coming after that last commit...]
15257 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15258 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15259 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15262 2006-12-07 Chris Toshok <toshok@ximian.com>
15264 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15265 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15266 all the behavior we need for double buffering.
15268 * XplatUIDriver.cs: implement the 3 double buffer methods using a
15269 client side Bitmap, just like the old Control-based double buffer
15270 code did. The methods are virtual, so each XplatUI driver
15271 subclass can replace the implementation to use a faster, platform
15274 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15275 double buffer code, and clean things up a bit in the process.
15277 2006-12-06 Chris Toshok <toshok@ximian.com>
15279 * Control.cs: reindent WndProc.
15281 2006-12-06 Chris Toshok <toshok@ximian.com>
15283 [ I wanna be like BenM when I grow up ]
15285 * Hwnd.cs: create a single static Graphics object on the static
15286 Bitmap we create. use this for our text measurements.
15288 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15289 This was causing us to allocate a backbuffer for every control,
15290 even when it wasn't flagged as double buffered. Instead use the
15291 single graphics instance. This might have implications for
15292 multithreaded applications. If we run into problems we can switch
15293 to creating 1 Graphics per control, on the static Hwnd bitmap.
15295 this change nets us a 7M savings in private dirty mappings when
15296 running FormsTest.exe.
15298 2006-12-06 Chris Toshok <toshok@ximian.com>
15300 * ListView.cs: the BackgroundImage override is just to set
15301 attributes. chain up to base.BackgroundImage.
15303 * RichTextBox.cs: same.
15305 * ToolBar.cs: same, but we need to also redraw the toolbar when it
15306 changes, so instead a handler for BackgroundImageChanged.
15308 * Control.cs: make background_image private.
15310 2006-12-06 Chris Toshok <toshok@ximian.com>
15312 * ScrollBar.cs: change the assignment of cursor to Cursor. not
15313 sure we even need this assignment, but roll with it for now.
15315 * Control.cs: make the cursor field private.
15317 2006-12-06 Chris Toshok <toshok@ximian.com>
15319 * Form.cs: we don't need to explicitly set ImeMode to
15320 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15321 behavior in the face of ImeMode.Inherit.
15323 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15324 change the ctor's assignment to use ImeMode instead of ime_mode.
15326 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15327 ImeModeInherit. Only check for the parent's imemode (and return
15328 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15329 This fixes the button unit test, which sets both ImeMode and
15330 DefaultImeMode to ImeMode.Disable.
15332 also make the ime_mode field private.
15334 2006-12-06 Chris Toshok <toshok@ximian.com>
15336 * Control.cs: make control_style private.
15338 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
15339 setting the styles to true, then setting them to false instead of
15340 reverting to their previous values.
15342 also, call SetStyle on the scrollbars instead of using
15343 control_style directly.
15345 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
15347 * FormCollection.cs: Implement. [2.0]
15349 2006-12-06 Chris Toshok <toshok@ximian.com>
15351 * Control.cs: make tab_stop private.
15353 * Label.cs: set TabStop, not tab_stop. reformat some event
15354 add/remove methods to make them more compact.
15356 2006-12-06 Chris Toshok <toshok@ximian.com>
15358 * RadioButton.cs: fix TabStop handling.
15360 2006-12-06 Chris Toshok <toshok@ximian.com>
15362 * TextBox.cs: remove the explicit assignments to has_focus.
15365 * ButtonBase.cs: remove the assignment to has_focus. Control will
15368 2006-12-06 Chris Toshok <toshok@ximian.com>
15370 * ButtonBase.cs: remove all uses of is_enabled from this code.
15371 it's always true when any of the code containing the checks is
15374 2006-12-06 Chris Toshok <toshok@ximian.com>
15376 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15377 with different semantics (some are present in both 1.1 and 2.0
15378 profiles) so that we match MS's behavior in our unit tests.
15380 2006-12-06 Jackson Harper <jackson@ximian.com>
15382 * TextControl.cs: Make this operation undoable.
15383 * TextBoxBase.cs: Factor the border width into the preferred
15385 - implement Modified as per the spec.
15387 2006-12-06 Chris Toshok <toshok@ximian.com>
15389 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15391 2006-12-06 Chris Toshok <toshok@ximian.com>
15393 * Control.cs: make right_to_left and context_menu fields private.
15395 2006-12-06 Chris Toshok <toshok@ximian.com>
15397 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15398 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15399 Control.child_controls private. switch all uses over to
15402 2006-12-06 Chris Toshok <toshok@ximian.com>
15404 * System.Windows.Forms/GroupBox.cs,
15405 System.Windows.Forms/AccessibleObject.cs,
15406 System.Windows.Forms/ErrorProvider.cs,
15407 System.Windows.Forms/Control.cs,
15408 System.Windows.Forms/UpDownBase.cs,
15409 System.Windows.Forms/ScrollBar.cs,
15410 System.Windows.Forms/DateTimePicker.cs,
15411 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15412 System.Windows.Forms/ToolTip.cs,
15413 System.Windows.Forms/RadioButton.cs,
15414 System.Windows.Forms/LinkLabel.cs,
15415 System.Windows.Forms/Splitter.cs,
15416 System.Windows.Forms/TextBoxBase.cs,
15417 System.Windows.Forms/ToolStripTextBox.cs,
15418 System.Windows.Forms/ContainerControl.cs,
15419 System.Windows.Forms/ThemeWin32Classic.cs,
15420 System.Windows.Forms/SizeGrip.cs,
15421 System.Windows.Forms/ToolStripDropDown.cs,
15422 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15423 private. switch all uses over to Control.Parent.
15425 2006-12-06 Chris Toshok <toshok@ximian.com>
15427 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15428 Control does this before calling emitting these events.
15430 * TabControl.cs: same.
15432 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15433 Control.client_rect.
15435 * ButtonBase.cs: use the ClientSize property instead of the
15438 * ScrollableControl.cs: same.
15440 * Control.cs: another pass at making properties private. also,
15441 move the initialization of tab_stop to the ctor.
15443 2006-12-05 Andreia Gaita <avidigal@novell.com>
15445 * TabControl.cs: Let the selected index be set freely if the
15446 control handle is not yet created.
15448 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15450 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
15451 internal until I can rewrite DefaultLayout.
15452 * ToolStrip.cs: Fix build error and some general cleaning.
15453 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15454 Fix build errors caused by making some of Control's fields private.
15456 2006-12-05 Jackson Harper <jackson@ximian.com>
15458 * TextControl.cs: Redo Insert a little so that it use IndexOf
15459 instead of Split, this prevents it from messing up on things like
15460 \n\n\n. Also more effecient since the split array doesn't need to
15462 * TextBoxBase.cs: AppendText doesnt handle multiline and non
15463 multiline text differently, this is the first of many fixes that
15464 will make multiline/non-multiline the same thing as far as the
15465 TextBoxBase is concerned.
15466 - Don't split the text and insert lines, this can lose some line
15467 endings (like is the last line a soft or hard break). Instead use
15469 - Fix an off by one when combining all the lines in the Text
15471 - Remove separate multiline handling from the Text getter/setter.
15473 2006-12-05 Chris Toshok <toshok@ximian.com>
15475 * ButtonBase.cs: a few changes:
15477 - don't reinitialize internal Control fields in the ctor when they
15478 have the same values as Control sets them.
15480 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
15481 this before calling those methods.
15483 - we don't need to call Refresh for anything. use Invalidate
15486 - OnEnabledChanged doesn't need to redraw at all - Control.cs
15487 calls Refresh in its OnEnabledChanged.
15489 - several of the events we were registered for in the ctor to
15490 redraw ourselves already include calls to Invalidate in the
15491 property setters that raise the events. remove the extra
15494 - reformat a switch statement that was 83274658 columns wide.
15496 2006-12-05 Mike Kestner <mkestner@novell.com>
15498 * ComboBox.cs: fix a unit test regression from a TextBox
15499 SelectionLength return of -1 when there's no selection.
15501 2006-12-05 Chris Toshok <toshok@ximian.com>
15503 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15504 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15505 cleaning up some of the internal Control fields being used by
15508 2006-12-05 Mike Kestner <mkestner@novell.com>
15510 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
15511 listbox after AddImplicit calls since it defaults to hidden. Add a
15512 hack to preserve requested heights across DropDownStyle changes.
15514 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15516 * PropertyGrid.cs: Hide FindFirstItem method from public API.
15518 2006-12-05 Chris Toshok <toshok@ximian.com>
15520 * DataGridView.cs: fix compiler warnings.
15522 * PrintControllerWithStatusDialog.cs: same.
15524 * ToolBar.cs: same.
15526 * FolderBrowserDialog.cs: same.
15528 * Splitter.cs: same.
15530 * DataGridViewComboBoxCell.cs: same.
15532 * XplatUIWin32.cs: same.
15534 * PictureBox.cs: same.
15536 * Win32DnD.cs: same.
15538 * PageSetupDialog.cs: same.
15540 * FileDialog.cs: same.
15542 * PrintDialog.cs: same.
15544 * DataGridTextBoxColumn.cs: same.
15546 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15548 2006-12-05 Chris Toshok <toshok@ximian.com>
15550 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15551 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15552 System.ComponentModel.EventHandlerList work.
15554 2006-12-05 Jonathan Chambers <joncham@gmail.com>
15556 * DrawTreeNodeEventArgs.cs: Added.
15558 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15560 * InternalWindowManager.cs: Remove an unused field.
15562 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15564 * InternalWindowManager.cs:
15565 - Save the point where the title bar is clicked.
15567 * MdiWindowManager.cs:
15568 - Only allow moving of the window as long as the
15569 clicked point on the title bar does not get out of
15570 MdiClient's rectangle. Fixes #79982.
15573 - Added Horizontal/VerticalScrollbarVisible.
15574 - Simplified the scrollbar sizing algorithm.
15575 - Cache the difference in scrolled value in
15576 H/VBarValueChanged and move the calculation out
15579 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15581 * Control.cs: Make the Console.WriteLine in WndProc
15584 2006-12-05 Chris Toshok <toshok@ximian.com>
15586 * ToolStripManager.cs, ToolStripButton.cs,
15587 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15588 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15589 ToolStripSplitButton.cs, ToolStripSeparator.cs,
15590 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15591 ToolStripProgressBar.cs, ToolStripContainer.cs,
15592 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15593 to using System.ComponentModel.EventHandlerList.
15595 2006-12-04 Chris Toshok <toshok@ximian.com>
15597 * LinkLabel.cs: fix up compiler warnings.
15599 * TableLayoutSettings.cs: same.
15601 * TreeView.cs: same.
15603 * ToolBar.cs: same.
15605 * TabControl.cs: same.
15607 * RichTextBox.cs: same.
15609 * ListViewItem.cs: same.
15611 * PropertyGrid.cs: same.
15613 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15617 * TextRenderer.cs: fix up compiler warnings.
15621 * Form.cs: corcompare fixes.
15623 * PictureBox.cs: fix up compiler warnings.
15625 * ImageListStreamer.cs: same.
15627 * TrackBar.cs: corcompare fix.
15629 * Control.cs: fix up compiler warnings.
15631 * SplitterPanel.cs: same.
15633 * NumericTextBox.cs: same.
15635 * ImageList.cs: same.
15637 * StatusStrip.cs: same.
15639 * ProgressBar.cs: corcompare fix.
15641 * ToolStripButton.cs: fix up compiler warnings.
15643 * ToolStripStatusLabel.cs: same.
15645 * ToolStripSplitButton.cs: same.
15647 * ToolStripSeparator.cs: same.
15649 * ToolStripProgressBar.cs: same.
15651 * ToolStripDropDownMenu.cs: same
15653 * ToolStripDropDown.cs: same.
15655 * ToolStripDropDownButton.cs: same.
15657 * ToolStrip.cs: same.
15659 * ToolStripControlHost.cs: same.
15661 * ToolStripContentPanel.cs: same.
15663 * ToolStripDropDown.cs: same.
15665 * ToolStripContainer.cs: same.
15667 * ToolStripPanel.cs: same, and add "new" where we need it to work
15668 with the new ArrangedElementCollection.
15670 * ToolStripItemCollection.cs: add "new" where we need it to work
15671 with the new ArrangedElementCollection.
15673 2006-12-04 Andreia Gaita <avidigal@novell.com>
15675 * TabControl.cs: Fix default tab selection to after TabControl
15676 gets focus and not before. Fixes #80128
15678 2006-12-04 Chris Toshok <toshok@ximian.com>
15680 * DataGridTableStyle.cs: remove the gross calling of
15681 datagrid.Refresh from here. It's a broken idea and it doesn't
15684 * DataGrid.cs: instead, just register/unregister from the
15685 DataGridTableStyle events in CurrentTableStyle. we play it
15686 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15687 even though some would most likely not require it. Fixes bug
15688 #80115 (and one portion of #80117 as a side effect).
15690 2006-12-04 Chris Toshok <toshok@ximian.com>
15692 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15693 so the textbox (if any) goes away. Fixes bug #80117.
15695 2006-12-04 Chris Toshok <toshok@ximian.com>
15697 * DataGridColumnStyle.cs: set the column's readonly property
15698 initially based on the property descriptor's IsReadOnly. Fixes
15701 2006-12-04 Chris Toshok <toshok@ximian.com>
15703 * ComboBox.cs: wrap the dropdown style changing work in
15704 SuspendLayout/ResumeLayout. Fixes bug #79968.
15706 2006-12-04 Jackson Harper <jackson@ximian.com>
15708 * TextBoxBase.cs: Fix off by one, since these are one-based.
15709 * TextBox.cs: Select all the text when we get focus. The TextBox
15710 does this but the RTB does not.
15712 2006-12-04 Chris Toshok <toshok@ximian.com>
15714 * DataGridTextBoxColumn.cs: remove some spew.
15716 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15717 but some part of me is saying "it shouldn't be here.." At any
15718 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
15721 2006-12-04 Chris Toshok <toshok@ximian.com>
15723 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15724 to reassign the propertydescriptor.
15726 2006-12-04 Jackson Harper <jackson@ximian.com>
15729 * TextControl.cs: Remove some unused variables. Maybe this will
15730 patch things up between mike and I.
15731 - don't split lines less then one char wide, if the viewport is
15732 that small text won't be visible anyways.
15734 2006-12-04 Jackson Harper <jackson@ximian.com>
15736 * TextBoxBase.cs: Default selection length is -1, need to do some
15737 more testing on windows to see when this is used for the property.
15738 - Redid the Lines [] property to that we properly remove soft line
15740 - added support for preserving carriage returns
15741 - CanUndo is not a variable like 'is undo enabled' it just returns
15742 true if there is undo operations available.
15743 - AppendText doesn't need to grab the last tag itself anymore,
15744 this happens automatically when we move the cursor.
15745 * TextControl.cs: Add CompoundActions to the undo class. This
15746 allows combining the other operations into one big option. ie a
15747 paste will combine { delete old, insert new, move cursor }
15748 - Add InsertString undo operation
15749 - New method for deleting multiline text
15750 - Add carriage returns to lines. So we can preserve carriage
15751 returns when text is 'roundtripped'
15753 2006-12-04 Chris Toshok <toshok@ximian.com>
15755 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15756 minimum 0. Fixes the scrollbar exception in bug #80136.
15758 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15761 * MdiWindowManager: Removed unused fields and methods.
15763 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15765 * StatusBar.cs: Update all panels when a AutoSize=Contents
15766 panel needs updating.
15768 * StatusBarPanel.cs: Remove twidth and only use initialize.
15771 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15773 * Form.cs: When a form's MdiParent is set add it directly
15774 on top of the z-order in stead of relying on MdiClient's
15775 ActivateChild to do it. Fixes #80135.
15778 - Remove original_order, mdi_child_list is already doing
15780 - Create mdi_child_list on construction in
15781 stead of first use (avoids a few null checks).
15783 * MenuItem.cs: Use an already existing list of mdi children
15784 to get the correct order of children and remove the other
15787 2006-12-04 Chris Toshok <toshok@ximian.com>
15789 * PropertyGridView.cs: cached_splitter_location is only used in
15790 !DOUBLEBUFFER code.
15792 * PropertyGrid.cs: implement the ComComponentNameChanged event
15793 using Events, hoping that would fix the warning. Looks like a
15794 compiler bug instead (#80144).
15796 * PropertyManager.cs: remove unused method.
15798 2006-11-04 Everaldo Canuto <everaldo@simios.org>
15800 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
15801 include parentesis to fix expression evaluation. Fixes #79634.
15803 2006-11-02 Everaldo Canuto <everaldo@simios.org>
15806 - Changes to fix behavior in Menu control, some reported in #80097
15807 and other detected during behavior refactory like a select event
15809 - Remove unneded "if's" conditions.
15810 - Created an internal to flag when popup is active in control, we need
15811 it because in .NET you can have menu active but without popup active
15812 when you active menu using popup without visible items.
15813 - Mimic win32 behavior for Select and Popup events.
15814 - Dont open popup menu when you dont have visible subitems.
15815 - Do nothing when click on disabled menu item.
15816 - Some small changes to follow the coding style guidelines.
15817 - Unselect menu only when another control gives focus. Fixes #80097.
15818 - Remove unused code.
15820 * MenuItem.cs: internal VisibleItems method to check if menu
15821 theres visible subitems, it will be usefull to fix some
15822 behavior in Menu control.
15824 2006-11-01 Everaldo Canuto <everaldo@simios.org>
15826 * Timer.cs: Tag property for 2.0 profile.
15828 2006-12-01 Chris Toshok <toshok@ximian.com>
15830 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15832 * Win32DnD.cs: comment out some unused fields.
15834 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15835 some unused properties/methods.
15837 * XplatUIX11.cs: fix MousePosition so we override the base class's
15838 property instead of conflicting with it.
15840 * PictureBox.cs: comment out some unused fields
15842 * OSXStructs.cs: make some struct fields public.
15844 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15845 MousePosition so we override the base class's property instead of
15846 conflicting with it.
15848 * X11Dnd.cs: comment out some unused fields
15850 * X11DesktopColors.cs: fix some struct field visibility to quiet
15853 * X11Dnd.cs: remove some debug code.
15855 * ThemeClearlooks.cs: comment out unused field.
15857 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15859 * ThemeGtk.cs: comment out some unused pinvokes.
15861 * Timer.cs: remove some unused fields.
15863 * ThemeClearlooks.cs: comment out unused field.
15865 * UpDownBase.cs: comment out unused field.
15867 * DataObject.cs: comment out unused field.
15869 * DataGridBoolColumn.cs: reomve unused field.
15871 * DataGrid.cs: remove unused field.
15873 * Cursor.cs: remove old ToBitmap code.
15875 * ControlPaint.cs: remove unused method.
15877 * ScrollBar.cs: remove unused fields.
15879 * ComboBox.cs: remove unused field, and chain up to
15880 AccessibleObject ctor.
15882 * ListBox.cs: remove unused field.
15884 * ButtonBase.cs: wrap a couple fields in NET_2_0.
15886 * GridEntry.cs: remove unused fields.
15888 * Binding.cs: remove unused fields.
15890 * AxHost.cs: remove unused method.
15892 * ContainerControl.cs: remove unused field.
15894 * ScrollableControl.cs: remove unused fields.
15896 2006-12-01 Chris Toshok <toshok@ximian.com>
15898 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
15899 the Where/WhereString stuff. it's easy enough to CWL
15900 Environment.StackTrace.
15902 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
15903 unused private fields.
15905 2006-12-01 Jackson Harper <jackson@ximian.com>
15907 * TextControl.cs: Do not update the view while inserting multiline
15908 text. If we update the view we might wrap lines, before entering
15909 the new lines, which causes the new line insertion calculations to
15910 be totally fubared.
15911 - Remove an old TODO
15912 - Make debug output a little nicer
15914 2006-12-01 Chris Toshok <toshok@ximian.com>
15916 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
15918 2006-12-01 Chris Toshok <toshok@ximian.com>
15920 [ fix the majority of the CS0108 warnings we've been suppressing ]
15922 * TreeView.cs: mark BackgroundImageChanged as 'new'.
15924 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
15925 to "LayoutToolBar" to quiet mcs.
15927 * TabControl.cs: mark our ControlCollection class as 'new'.
15929 * TextBoxBase.cs: mark some events as 'new'.
15931 * Splitter.cs: TabStop is 'new'.
15933 * ControlBindingsCollection.cs: mark a few methods as new since
15934 they change the visibility from protected to public.
15936 * RadioButton.cs: DoubleClick -> base class, and remove unused
15939 * MonthCalendar.cs: ImeMode property -> base class, and mark many
15942 * NumericUpDown.cs: TextChanged -> base class.
15944 * CheckedListBox.cs: mark our ObjectCollection class as new to
15947 * FolderBrowserDialog.cs: make HelpRequest event new and have it
15948 muck with the base class.
15950 * StatusBar.cs: fix some mcs warnings about Update being the same
15951 name as a base class method.
15953 * RichTextBox.cs: mark some events as new, and make them do things
15954 to the base class impl.
15956 * UserControl.cs: mark TextChanged as new, and have it manipulate
15959 * UpDownBase.cs: mark some things new.
15961 * CheckBox.cs: mark DoubleClick "new", and add some text about
15962 what we need to look at.
15964 * Panel.cs: make the events "new", and manipulate the base
15965 version. these are just here for attributes.
15967 * AccessibleObject.cs: make owner private.
15969 * Control.cs: deal with AccessibleObject.owner being private.
15970 cache our own copy if we need it.
15972 * Button.cs: add "new" to the DoubleClickEvent.
15974 * ListBox.cs: no need to track our own has_focus here. let
15975 Control.has_focus do it for us. Also some other work to clear up
15976 warnings about not overriding base class methods of the same name.
15978 * ComboBox.cs: clear up some warnings about not override base
15979 class methods of the same name.
15981 2006-12-01 Chris Toshok <toshok@ximian.com>
15983 * Form.cs: flag a few things as "new" to quiet some of the mcs
15988 * PrintPreviewDialog.cs: same.
15990 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
15991 now DGV isn't so horrible on the class status page. also, move
15992 all events to using System.ComponentModel.EventHandlerList. my
15995 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
15997 * MdiWindowManager.cs:
15998 - Set form to active mdi child if shown,
15999 and update the active mdi child to the next
16000 remaining child in the z-order if the form is hidden.
16003 - Track if the form has been visible and if its
16004 visibility is beeing changed, so that the MdiClient
16005 can properly decide the ActiveMdiChild. The MdiClient
16006 cannot track this since the form can change visibility
16007 before MdiClient is created.
16010 - Don't activate anything of the parent form is changing
16012 - Rework ActiveMdiChild to only return visible mdi
16013 children and take into account several other corner
16016 2006-12-01 Chris Toshok <toshok@ximian.com>
16018 * IBindableComponent.cs: new 2.0 interface.
16020 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
16022 * DataGrid.cs: Font for caption area is bold by default.
16024 2006-12-01 Everaldo Canuto <everaldo@simios.org>
16026 * Menu.cs: Tag property for 2.0.
16028 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16030 * ThemeWin32Classic.cs: Adjust menu separator drawing.
16032 2006-12-01 Chris Toshok <toshok@ximian.com>
16034 * TreeView.cs: doh, the Begin* events should be
16035 TreeViewCancelEventHandler.
16037 2006-12-01 Chris Toshok <toshok@ximian.com>
16039 * Form.cs: Form.ControlCollection already stores off the
16040 form_owner field. don't access the base class's internal "owner"
16043 * Control.cs: make all the fields in Control.ControlCollection
16044 private. there's no need for any internal fields here.
16046 2006-12-01 Chris Toshok <toshok@ximian.com>
16048 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16049 OnHandleCreated. Fixes bug #80109.
16051 2006-12-01 Chris Toshok <toshok@ximian.com>
16053 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16054 SplitContainer.cs, Control.cs, StatusStrip.cs,
16055 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16056 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16057 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16058 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16059 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16060 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16061 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16062 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16063 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16064 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16066 do most of the work to convert our code over to use
16067 System.ComponentModel.Component.Events for
16068 adding/removing/dispatching events.
16071 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16073 * DataGridView.cs: Fix an ArgumentNullException reported
16074 twice today in IRC.
16076 2006-11-30 Mike Kestner <mkestner@novell.com>
16078 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
16079 grabbed listbox. Fixes #80036 and #80101.
16081 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16083 * Message.cs: Changed ToString() to match MS.
16085 2006-11-30 Jackson Harper <jackson@ximian.com>
16087 * TextBoxBase.cs: You can still change the selected text on a read
16089 * TextControl.cs: Lower magic number for wrap calculations. This
16090 lets text get closer to the right (far) edge.
16092 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16094 * Control.cs: Tweak 2.0 layout properties.
16095 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16096 * TextRenderer.cs: Add a new overload.
16097 * ToolStrip*: Huge amount of changes and new features.
16099 2006-11-30 Mike Kestner <mkestner@novell.com>
16101 * ComboBox.cs: fixes for LargeChange and Maximum to get the
16102 scroll range correct. Fixes #79994.
16104 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16106 * MdiWindowManager.cs: Update main form's text when
16107 a form is closed. (fixes #80038)
16109 2006-11-30 Everaldo Canuto <everaldo@simios.org>
16112 - Fix an regression in ButtonSize.
16113 - Get ImeMode default value change to "Disable".
16114 - Get ShowTooltips default value change to true, default value is
16115 "false" but after make a test in .NET we get "true" result as default.
16117 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
16119 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16121 2006-11-29 Chris Toshok <toshok@ximian.com>
16123 * XplatUIWin32.cs (GetWindowTransparency): check return value of
16124 GetLayeredWindowAttributes. if it's 0, return 1.0, as
16125 SetWindowTransparency hasn't been called.
16127 2006-11-29 Chris Toshok <toshok@ximian.com>
16129 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16131 (set_AllowTransparency): reorder things a little so that the
16132 WS_EX_LAYERED style is removed properly.
16134 2006-11-29 Chris Toshok <toshok@ximian.com>
16136 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16138 * Form.cs: only call the XplatUI transparency method (get/set) if
16139 SupportsTransparency says it's supported. Otherwise fallback to
16140 doing nothing (in the set case) or returning the instance field we
16141 cache (in the get case).
16143 * XplatUIStructs.cs: add TransparencySupport flag enum.
16145 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16146 change to SupportsTransparency.
16148 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16149 TransparencySupport.None from SupportsTransparency.
16151 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16152 TransparencySupport.Set from SupportsTransparency.
16154 * XplatUIWin32.cs: implement GetWindowTransparency calling
16155 GetLayeredWindowAttributes, and implement SupportsTransparency by
16156 checking whether or not both
16157 GetWindowTransparency/SetWindowTransparency are available
16158 entrypoints. We need to do this since SetWindowTransparency is
16159 available as of win2k, but GetWindowTransparency requires winxp.
16162 * XplatUI.cs: Add GetWindowTransparency, and change
16163 SupportsTransparency to allow for either/both Get/Set.
16165 2006-11-29 Chris Toshok <toshok@ximian.com>
16167 * DataGrid.cs: keep from going into an infinite loop redrawing a
16168 datagrid that has no datasource. Fixes bug #80033.
16170 2006-11-29 Chris Toshok <toshok@ximian.com>
16172 * MenuItem.cs: fix the NRE when we assign text (and therefore call
16173 Invalidate) before the mainmenu has been assigned to a control.
16175 2006-11-29 Chris Toshok <toshok@ximian.com>
16177 * DataGrid.cs: detect when we should be double the double click
16178 row/column autosize stuff, although that codepath has yet to be
16179 written. part of the work for bug #79891.
16181 2006-11-29 Chris Toshok <toshok@ximian.com>
16183 * Binding.cs (SetControl): fix unit test.
16185 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16187 * PageSetupDialog.cs: Validate the margins and set them in
16189 * NumericTextBox.cs: New class to mimic the behavior of the
16190 textboxes used in the printing dialogs.
16192 2006-11-29 Andreia Gaita <avidigal@novell.com>
16194 * Form.cs: Revert previous change (remove call UpdateBounds
16195 from form constructor), because it messes with the handle creation
16196 order, and that one needs lots and lots of love.
16197 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16198 for valid printer and throw InvalidPrinterException if document
16199 is set but printer not valid), adding a MonoTODO. Once
16200 handle creation is done properly, we can put this back in.
16202 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16204 * MenuItem.cs: Create a invalidate method for menu item, to be
16205 calling from set text, it make text changes to imadiate update
16206 on screen. Fixes #80013.
16208 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16210 * ToolBar.cs: Fixes and simplify toolbar button layout, it
16211 fixes bug #80070 and some other problem on toolbar buttons
16214 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16216 * ThemeWin32Classic.cs: Paint toolbar toggle button background
16217 with dotted brush. Fixes #79564
16219 2006-11-28 Andreia Gaita <avidigal@novell.com>
16221 * Form.cs: Removed call to UpdateBounds on Form
16222 constructor, it was causing a call to CreateHandle
16223 before it was supposed to.
16224 * PrintControllerWithStatusDialog: Applied patch
16225 by Chris Toshok to hide controller when there are
16226 no printers available.
16227 PrintDialog.cs: initialize printer settings to
16228 null - correct DefaultValues test #5
16229 * PrintPreviewControl.cs: Move PrintController
16230 initialization to GeneratePreview
16231 * PrintPreviewDialog.cs:
16232 - Remove Preview generation from Document_set(). It is
16234 - Throw InvalidPrinterException on CreateHandle if
16235 a Document is set but there are no printers or
16236 printer is not valid.
16237 * ThemeWin32Classic: don't paint PrintPreviewControl
16238 if there is nothing to paint
16240 2006-11-28 Miguel de Icaza <miguel@novell.com>
16242 * Form.cs: Add another popular method.
16244 * TabPage.cs: ditto.
16246 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16248 * MenuItem.cs: Fixed a warning.
16249 * InternalWindowManager: Fixed a warning.
16251 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16254 - When cloning a menu also clone MdiList and clone the
16255 window menu items properly (as the forms and menuitems
16256 are kept in an internal hashtable, these need updating
16258 - Rewrote the window menu code, menu items are added in the
16259 order the forms were added to their parent, and they are
16260 updated every time the window menu is shown (before the
16261 list was only generated once, in the current order of the
16262 forms, and would never be updated). A checkmark is shown
16263 next to the item corresponding to the active mdi child.
16265 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16267 * XplatUIStructs.cs:
16268 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16271 - Added TME_NONCLIENT to TMEFlags.
16272 - Handles WM_NCMOUSEMOVE in GetMessage to
16273 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16275 * MdiWindowManager:
16276 - Now merges mdi child menu to parent menu when maximized.
16277 - Recalculate NC areas of both mdi child and mdi parent.
16279 on window state and size changes.Fixes #79844 (3).
16280 - Handle WM_NCCALCSIZE to properly calculate borders.
16283 - Add/remove to the mdi containers list of mdi children
16284 in the order they are added.
16285 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
16286 to the maximized mdi child.
16288 * InternalWindowManager.cs:
16289 - Only execute a click on the control buttons on the mouse up,
16290 not on the mouse down. Show the state of the button
16291 (was only showing Normal state, never Pressed state). The
16292 pressed button now follows the mouse (if you click the Close
16293 button and move the mouse over the Maximize button, the
16294 Maximize button will be shown as pressed). Since Win32 does
16295 not generate WM_NCLBUTTONUP if you release the button outside
16296 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16299 * ThemeWin32Classic.cs:
16300 - Draw a missing border around mdi child forms. Fixes #79844 (2).
16303 - Added a list of forms which contains the order the forms are
16304 added to the mdi parent.
16305 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16306 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16307 - If the active form changes set the scrollbars to the top
16308 of the Z order, otherwise the form could hide them.
16309 - Scrollbars are now sized according to ClientSize, not
16310 to Size, and they take into account the other scrollbar
16311 to determine maximum.
16313 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16316 * XplatUIDriver.cs:
16320 - Added RequestAdditionalWM_NCMessages for windows to
16321 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16322 Currently only implemented in XplatUIWin32.
16324 2006-11-27 Chris Toshok <toshok@ximian.com>
16326 * Hwnd.cs: only add the hwnd to the windows hash in
16327 set_WholeWindow and set_ClientWindow if whole_window/client_window
16328 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
16330 2006-11-27 Mike Kestner <mkestner@novell.com>
16332 * ComboBox.cs: remove redundant OnDropDown call. It is called
16333 from the ComboListBox.ShowWindow code. Fixes #79969.
16335 2006-11-27 Chris Toshok <toshok@ximian.com>
16337 * Hwnd.cs: remove the setters for ExposePending and
16338 NCExposePending - noone uses them.
16340 2006-11-27 Jackson Harper <jackson@ximian.com>
16342 * TextControl.cs: new param for ReplaceSelection which determines
16343 whether we select the new selection, or set the cursor to the end
16344 of the new selection.
16345 * TextBoxBase.cs: Use new param for ReplaceSelection. When
16346 pasting, select the new text.
16347 * RichTextBox.cs: Use new param for ReplaceSelection.
16349 2006-11-27 Jackson Harper <jackson@ximian.com>
16351 * TextBoxBase.cs: Set the selection to the caret after the caret
16352 is moved, otherwise they get out of sync.
16354 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16356 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16359 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16361 * ThemeWin32Classic.cs:
16362 - Fix toolbar drop down arrow position.
16363 - Fix drop down appearance when ToolBar.Appearance is normal,
16366 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
16368 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16369 * Control.cs: Same.
16370 * UpDownBase.cs: Same.
16371 * ButtonBase.cs: Same.
16372 * ScrollBar.cs: Same.
16373 * TrackBar.cs: Same.
16374 * PictureBox.cs: Same.
16375 * UserControl.cs: Same.
16377 * ListControl.cs: Same.
16378 * TextBoxBase.cs: Same.
16379 * ListView.cs: Same.
16380 * RichTextBox.cs: Same.
16381 * TreeView.cs: Same.
16383 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
16386 - Text label for where
16387 - Text label comment was not shown
16389 2006-11-23 Everaldo Canuto <everaldo@simios.org>
16391 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16393 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16395 * InternalWindowManager.cs:
16396 - Handle WM_PARENTNOTIFY to activate the form
16397 if any child control is clicked.
16398 - The form is only sizable if not minimized.
16400 * MdiWindowManager.cs:
16401 - Save the IconicBounds if the form is moved.
16402 - Rework SetWindowState, now the window bounds
16403 are stored only if the old window state is Normal.
16406 - In SetWindowStates store the old window state if
16407 the window is maximized and restore window state if
16408 the window looses focus.
16409 - Don't handle any scrollbar value changes if
16410 initializing the scroll bars. Fixes #79771.
16411 - Reworked ArrangeIconicWindows. Current algorithm
16412 tests bounds agains all other minimized windows, if
16413 any intersections create new bounds (going left to
16414 right, bottom to top) and then test again. When
16415 successful the bounds are saved and never computed
16416 again. Fixes #79774.
16418 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16420 * InternalWindowManager.cs: Added HandleTitleBarUp.
16422 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16424 * NumericUpDown.cs: In .NET 1.1, user entered text is still
16425 hexadecimal in ParseUserEdit.
16428 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16430 * MdiWindowManager.cs:
16431 - Handle a click on the form's icon to show the
16432 system menu (when maximized). Fixes #79775.
16433 - Change the existing click handler for the form's
16434 icon when not maximized to show on MouseUp.
16437 * Form.cs: In OnResize only layout the mdi child's
16438 parent if it actually has a parent. Might not if
16439 the window is closing.
16442 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16444 * MdiClient.cs: Ignore active MDI client for text of parent, if
16445 child has no text set.
16447 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16449 * ToolBar.cs: Fixed ToString to match MS.
16451 2006-11-22 Andreia Gaita <avidigal@novell.com>
16454 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
16455 update inner values on set. Fixes #79966.
16456 - Override OnLostFocus to update value on NET 2. Fixes #79950.
16457 - Fix hexadecimal parsing.
16459 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
16460 parent. Fixes #79957
16462 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16464 * Control.cs: After calling SetWindowsPos in SetBoundsCore
16465 the actual size has to be queried, since if height /
16466 width is negative Win32 changes it to 0.
16467 Fixes #79999 on Windows.
16469 * XplatUIX11.cs: Set height / width to 0 if negative
16470 in SetWindowPos. Fixes #79999 on Linux.
16472 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16474 * ThemeWin32Classic.cs: Fix text redenring when button is
16477 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16479 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16480 and later navigate by mouse. Fixes #79528.
16482 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16484 * ToolBar.cs: Set default value for TabStop to false in
16485 constructor, it fixes remaining behavior of bug #79863.
16487 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16489 * MdiWindowManager.cs:
16490 * InternalWindowManager.cs:
16491 - Moved a few methods specific to Mdi from
16492 InternalWindowManager to MdiWindowManager.
16495 2006-11-21 Chris Toshok <toshok@ximian.com>
16497 * XplatUIOSX.cs: stub out InvalidateNC.
16499 * XplatUIWin32.cs: implement InvalidateNC using the call I found
16500 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16502 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16504 * XplatUIDriver.cs: add InvalidateNC abstract method.
16506 * XplatUI.cs: add InvalidateNC.
16508 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16510 * ToolBar.cs: Invalidate complete button area when pressed status
16512 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16513 * ThemeWin32Classic.cs: Increase vertical and horizontal position
16514 by 1 when button is pressed.
16516 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16518 * ToolButton.cs: Invalidate middle of DropDown button when
16519 ToolBar theres DropDownArrows.
16520 * ThemeWin32Classic.cs: Change position of DropDown arrow and
16521 fix DropDown drawing operations.
16523 2006-11-20 Chris Toshok <toshok@ximian.com>
16525 * NativeWindow.cs: fix the formatting of functions ('{' on the
16526 following line), and enable the thread exception dialog.
16528 * Application.cs: remove the duplicate exception catching from
16531 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16533 * Toolbar.cs: Triggers button click event when click on icon
16534 of dropdown ToolBarButton. Fixes #79912.
16536 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16539 * ThemeWin32Classic.cs:
16540 - Added a property WindowBorderFont to enable themeing
16541 of mdi child windows' Text.
16543 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16545 * InternalWindowManager.cs:
16548 * MdiWindowManager.cs:
16549 - If mdi child is maximized, set mdi parent's
16550 text to "Parent - [Child]". Fixes #79770.
16551 - If there is any maximized mdi child windows, only the active
16552 window (and any new windows) is maximized, the rest are normal.
16553 - On a WindowState change only save mdi child's window bounds
16554 if the old window state was normal. Fixes #79774.
16555 - The scroll bars are now calculated on hopefully all
16556 necessary events. Fixed #79771 / #79844->6 / #79906.
16557 - MdiClient.SizeScrollBars() now takes into account docked
16558 controls in the parent when calculating available space.
16559 - InternalWindowManager now always repaints the entire title
16560 area. Fixes #79844->1/4/5.
16561 - Added RequestNCRecalc on mdi child windowstate changes.
16564 2006-11-20 Mike Kestner <mkestner@novell.com>
16566 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16567 in the MouseUp handler of the listbox and move the return handling
16568 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
16570 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16572 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
16574 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16576 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16577 working in 1.2.x anymore. So, updated.
16579 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
16581 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16582 NumberGroupSeparator of current culture instead of assuming en-US.
16585 2006-11-17 Mike Kestner <mkestner@novell.com>
16587 * Control.cs: Add the concept of implicit bounds setting so that
16588 dock/undock round trips preserve explicitly set size/locations.
16591 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16593 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16594 can't handle those filters. (Fixes bug #79961)
16596 2006-11-17 Chris Toshok <toshok@ximian.com>
16598 [ fixes the exit/crashes associated with #79835. it's clearly
16599 suboptimal though, we need to figure out a better way to solve
16602 * PrintPreviewControl.cs: deal with the new invalid printer
16605 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16606 and return false (so CommonDialog.ShowDialog doesn't actually show
16609 * PrintDialog.cs: enable/disable the Ok button depending on
16610 whether or not the printer is valid.
16612 * CommonDialog.cs (ShowDialog): only actually show the form if
16613 RunDialog returns true.
16615 2006-11-17 Jackson Harper <jackson@ximian.com>
16617 * TextControl.cs: When soft splitting a line, mark it as a soft
16618 split line. Also carry over the current line break to the next
16621 2006-11-17 Chris Toshok <toshok@ximian.com>
16623 * XplatUIX11.cs: when scrolling a window with an invalid area, we
16624 only want to shift the part of the invalid area that overlaps the
16625 area we're scrolling. we also don't want to clear the invalid
16626 area unless the invalid area was entirely contained within the
16629 2006-11-16 Chris Toshok <toshok@ximian.com>
16631 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16632 also make sure to free the memory returned by XGetWindowProperty
16635 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16637 2006-11-16 Chris Toshok <toshok@ximian.com>
16639 * XplatUI.cs: add a new super secret way to get at the totally
16640 unsupported X11 backend.
16642 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
16644 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16646 2006-11-16 Jackson Harper <jackson@ximian.com>
16648 * TreeView.cs: Allow more explicit setting of top node position
16649 for scrollbars. Slower algo, but more accurate.
16650 - CollapseAll should maintain the current top node.
16651 * TextBoxBase.cs: When positioning the caret, use the line, pos
16652 method, since the x, y method does not grab the correct tag, and
16653 the caret height never gets set correctly. (Maybe I should just do
16654 away with the caret having its own height, and always use the
16655 carets current tag for height).
16657 2006-11-16 Jonathan Pobst <monkey@jpobst.com
16659 [Fixes 79778, 79923]
16661 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16662 Parent to the FosterParent instead.
16664 2006-11-16 Jackson Harper <jackson@ximian.com>
16666 * TreeView.cs: Need to recalc the topnode when we expand or
16667 collapse. The scrolling methods can't handle this on their own,
16668 since they use differences between the last scroll position, and
16669 those difference get completely messed up since we are expanding
16670 nodes. This problem should probably be fixed in the scrolling
16671 methods, so they can figure out exactly where they are, but this
16672 will slow things down a little.
16673 * ThemeWin32Classic.cs: Special case for groupboxes with empty
16674 strings, makes nunit-gui look a lot nicer.
16676 2006-11-16 Chris Toshok <toshok@ximian.com>
16678 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16679 the broken multithreaded event handling we have in here. File
16680 this entry under "Why we should move to the new X11 backend".
16682 Any thread can make it into UpdateMessageQueue, which gets events
16683 from the X socket - some of which could belong to hwnds being
16684 managed by a different thread. We can also have multiple threads
16685 in UpdateMessageQueue at the same time, with each one reading from
16686 the X socket. This leads to many problems, with the following
16689 We can't use hwnd.Queue.Enqueue anywhere in here and must use
16692 The MotionNotify compression we do can't work across threads
16693 (without locking the entire queue, perhaps) since we call
16694 hwnd.Queue.Peek, so we just punt and don't compress motion events
16695 unless the owning thread is the one which got the X event.
16697 ConfigureNotify is another fun one, since it modifies the hwnd's
16698 bounds and then enqueues the event. We add a lock to Hwnd which
16699 is held when setting configure_pending to true (and enqueuing the
16702 There is a race wrt the wake socket. we need to make sure that
16703 only 1 thread is waiting on that socket, or else a thread could
16704 sleep waiting for data that never comes. It's difficult (but not
16705 impossible) to make happen, because it seems to require something
16706 like the following:
16708 1. Thread 1 polls on wake_receive
16710 2. poll returns saying there's data to be read on
16713 3. Thread 2 polls on wake_receive and immediately returns
16714 saying there's data to be read.
16716 4. Thread 2 reads the wakeup byte from wake_receive
16718 5. Thread 1 attempts to read the wakeup byte from
16721 6. Thread 2 exits (due to a form closing, perhaps).
16723 7. Thread 1 blocks forever.
16727 Fixing the Expose handling isn't done yet, and the races inherent
16728 in that piece of code are responsible for the drawing mistakes you
16729 see when generating expose events in a MT app (like NPlot). This
16730 one is the likely to be the hardest to bandaid, and it doesn't
16731 appear to cause anything but drawing problems. The other issues
16732 caused apps to exit or hang.
16734 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16735 called from a different thread than the one that should be calling
16738 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16740 2006-11-15 Chris Toshok <toshok@ximian.com>
16742 * Application.cs: null out the context's MainForm when we exit
16743 RunLoop. Fixes a newly checked in unit test as well as the last
16744 ODE from bug #79933.
16746 2006-11-15 Chris Toshok <toshok@ximian.com>
16748 * Form.cs (set_Owner): allow a null value so we can clear the
16750 (Dispose): set all our owned_form's Owner properties to null, and
16751 clear the owned_forms collection.
16752 (WM_CLOSE): clean up this a little bit.. still not right though.
16754 * ApplicationContext.cs: OnMainFormClosed should only call
16755 ExitThreadCore if the main form isn't recreating. Fixes unit
16758 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16762 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16764 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16768 * Hwnd.cs: Add a flag to show a window, but not activate it, to
16769 keep popup window types from stealing focus from the main form
16772 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16774 * MenuAPI.cs: Set above flag to true.
16776 2006-11-15 Chris Toshok <toshok@ximian.com>
16778 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16779 the button being released is not in wParam.
16781 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16783 * Form.cs: Add the released button to MouseEventArgs.Button
16784 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
16787 2006-11-15 Chris Toshok <toshok@ximian.com>
16789 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16790 GetText(). untested because it's unused in our implementation.
16791 Control.Text always caches the text, even if
16792 ControlStyles.CacheText is not set.
16796 2006-11-15 Chris Toshok <toshok@ximian.com>
16800 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16801 message. no hiding, no disposing.
16803 in the WM_CLOSE handler, hide the form if it's modal.
16805 2006-11-15 Chris Toshok <toshok@ximian.com>
16807 * XplatUIX11.cs: use AddExpose instead of sending a message.
16808 fixes textbox border drawing.
16810 2006-11-15 Chris Toshok <toshok@ximian.com>
16812 * PropertyGridView.cs: keep from crashing on mouse move/down when
16813 the property grid is empty.
16815 2006-11-14 Jackson Harper <jackson@ximian.com>
16817 * TextControl.cs: Make PageUp and PageDown more like the MS
16819 * TextBoxBase.cs: When we set the text property position the
16820 cursor at the beginning of the document.
16822 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
16824 * Form.cs: if a mdi child's WindowState has changed
16825 before it's creation, it would display wrong control
16828 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
16830 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16833 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
16835 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
16836 the window gets to paint its borders even if the window is
16839 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
16840 otherwise the old control buttons would still be painted
16841 if the window gets bigger.
16843 * PaintEventArgs.cs: add an internal method so that the clip
16844 rectangle can be changed.
16846 2006-11-13 Chris Toshok <toshok@ximian.com>
16848 [ fixes bug #79745 ]
16850 * NotifyIcon.cs: lots of cleanup.
16852 * X11Structs.cs: add an enum for XEMBED messages.
16854 * XplatUIX11.cs: reindent one of the giant switch statements, it
16855 was taking up an additional tab stop, and this file is already way
16856 too wide for my laptop's screen.
16858 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
16859 we get it, resize the hwnd to the WMNormalHints max_width/height.
16861 2006-11-13 Jackson Harper <jackson@ximian.com>
16863 * TextBoxBase.cs: Compute the value changes for the mouse wheel
16866 2006-11-13 Chris Toshok <toshok@ximian.com>
16868 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
16869 #79898. force a reference to the Region to stick around so the
16870 unmanaged object isn't collected (rendering our handle in the MSG
16873 2006-11-13 Chris Toshok <toshok@ximian.com>
16875 * XplatUIX11.cs: fix #79917 for window managers which support
16877 using XStoreName on the raw utf8, and we need to convert to
16878 COMPOUND_TEXT if it's non-latin1.
16880 2006-11-13 Chris Toshok <toshok@ximian.com>
16882 * Form.cs (set_DialogResult): we need to set closing to false if
16883 we're setting our result to None. fixes bug #79908.
16885 2006-11-13 Jackson Harper <jackson@ximian.com>
16887 * TextControl.cs: When formatting text, compute the adjusted tag
16888 lengths correctly, using FindTag for the end tag instead of trying
16889 to figure it out outselves.
16890 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
16891 the item, ItemHeight doesn't work, because trees with large
16892 imagelists use those for their height
16893 * TreeView.cs: ActualItemHeight factors in the image height
16894 - compute left edge of checkboxes correctly
16895 - when expanding/collapsing move the bottom down one pixel, so we
16896 aren't moving part of the node
16898 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16900 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
16901 stack in PaintEventStart so that it won't get disposed by the gc
16902 before reaching PaintEventEnd.
16904 2006-11-13 Jackson Harper <jackson@ximian.com>
16906 * TextBoxBase.cs: Don't select the word if we are on a line with
16908 - We don't need to position the caret on mouse up, since the mouse
16909 move handler should be doing this
16910 - When double clicking a blank line, the caret is advanced to the
16913 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
16915 * TreeNodeCollection.cs: Avoid duplicating indexer code.
16917 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
16919 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
16920 Fixes part of bug #79910.
16922 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
16924 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
16925 (bug #79903). Some minor string updates to match ms.
16927 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16929 * FileDialog.cs: Don't add an extension if the filename
16930 already ends with that extension.
16932 2006-11-10 Jackson Harper <jackson@ximian.com>
16934 * TreeView.cs: Use the currently highlighted node for the
16935 BeforeSelect event.
16936 * TextBoxBase.cs: There is no need to expand selection on
16938 - CanUndo means 'is there any undo operations', not 'is undo
16939 allowed on this textcontrol. Fixed ClearUndo unit test.
16941 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
16943 * Button.cs: only perform click when button is Selectable (so as
16944 not to activate default buttons when they're disabled)
16946 * Control.cs: Rewrite of the SelectNextControl and related
16947 methods. HandleClick now selects next control if the current one
16950 * Form.cs: OnActivated selects next active control only if Load
16951 has already occurred. If Load hasn't run, there's no point in
16952 selecting here, Load might change the state of controls.
16954 * FocusTest.cs: Tests marked as working again for these fixes
16956 2006-11-10 Chris Toshok <toshok@ximian.com>
16958 * XplatUIX11.cs: a couple of fixes.
16960 - use XInternAtoms with almost all the atoms we need to register,
16961 instead of many, many calls to XInternAtom. should help a bit on
16962 startup time, at the expense of making the code look a little
16965 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
16966 isn't reparented (which seems to be a clue that we're running fon
16967 compiz) and they have an Owner form. This fixes the tool windows
16968 in paint.net when running under compiz.
16970 - when setting the opacity of a window, support both the case
16971 where the window has been reparented and also when it hasn't been.
16972 Since compiz/beryl doesn't seem to reparent windows, and these are
16973 the only window managers which support translucency, I'm not sure
16974 why we need the hwnd.reparented case at all.. but leave it in.
16975 now we get translucent windows in paint.net under compiz/beryl.
16977 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16979 * FileDialog.cs: Always return the value for FilterIndex that
16980 was set. Internally convert it to values that make sense.
16982 2006-11-10 Everaldo Canuto <everaldo@simios.org>
16984 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
16986 2006-11-10 Everaldo Canuto <everaldo@simios.org>
16988 * Toolbar.cs: Change default value of DropDownArrows to true, the
16989 signature still using false to make it compatible with MS but the
16990 initial value is true. Fixes #79855.
16992 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16994 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
16995 only available on Linux.
16997 2006-11-09 Everaldo Canuto <everaldo@simios.org>
16999 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17000 reduce number of calls to redraw method during toolbar creation.
17002 2006-11-09 Mike Kestner <mkestner@novell.com>
17004 * ListView.cs : raise SelectedIndexChanged when an item is selected
17005 programmatically via the Item.Selected property. Gert's nice
17006 ListViewSelectedIndexChanged test fixture now runs clean.
17008 2006-11-09 Mike Kestner <mkestner@novell.com>
17010 * ListView.cs : raise SelectedIndexChanged when a selected item is
17011 removed from the item collection using Remove or RemoveAt.
17013 2006-11-09 Mike Kestner <mkestner@novell.com>
17015 * ListView.cs : raise SelectedIndexChanged once per selected item
17016 for compat with MS. Fixes #79849+.
17018 2006-11-09 Chris Toshok <toshok@ximian.com>
17020 * TabControl.cs: initialize row_count to 0, and set it to 1 when
17021 we need to (if we have any tab pages). Fixes unit test.
17023 2006-11-09 Chris Toshok <toshok@ximian.com>
17025 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17026 width is 0, not 3. Fixes a unit test.
17028 2006-11-09 Mike Kestner <mkestner@novell.com>
17030 * ListView.cs : use Implicit scrollbars so that focus isn't
17031 stolen from the listview when they are clicked. Fixes #79850.
17033 2006-11-09 Chris Toshok <toshok@ximian.com>
17035 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17036 have a root item. Fixes #79879.
17038 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
17042 - An ArgumentException is now thrown if a wrong filter
17043 is applied (matches ms). The previous filter doesn't change
17044 anymore if an exception is thrown.
17045 - Changing the FileName property also affects FileNames
17046 * ColorDialog.cs: The length of the CustomColors array is always
17047 16. It doesn't matter if we use a smaller array or null to update
17048 or change the custom colors property.
17049 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17050 for RootFolder if we get a undefined value.
17052 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17054 * StatusBarPanel.cs:
17055 - Width is set to MinWidth if Width is smaller than
17056 MinWidth. Fixes #79842.
17057 - MinWidth now always overrides Width (MSDN says MinWidth
17058 is set to Width when AutoSize = None, but they do not
17060 - Style has now the the correct default value.
17062 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17065 - The control is completely invalidated on
17066 Got/LostFocus to draw the focus rectangle correctly.
17067 - When AutoSize then height is always 45 (width for
17068 vertical controls).
17070 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17071 on the mouse when moved and it doesn't move when grabbed
17072 until the mouse moves as well. Also fixed some wrong
17073 calculations when clicking on the thumb (control thought
17074 click was outside of thumb and didn't grab it).
17075 Fixes some of the issues in #79718.
17077 2006-11-08 Everaldo Canuto <everaldo@simios.org>
17079 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17081 2006-11-08 Chris Toshok <toshok@ximian.com>
17083 * PropertyGridView.cs: only call ToggleValue if the item is not
17086 2006-11-08 Jackson Harper <jackson@ximian.com>
17088 * TextBoxBase.cs: The RichTextBox and textbox have very different
17089 word selection methods. Implement the textbox's simple word
17090 selection here, and let the RichTextBox override and provide it's
17092 - Don't do extra selection on mouseup
17093 * RichTextBox.cs: Use the documents word selection algorithm, I
17094 think ideally, this function will be pulled into the
17095 RichTextBox.cs code someday.
17097 2006-11-08 Chris Toshok <toshok@ximian.com>
17099 * RootGridEntry.cs: new class to represent GridItemType.Root.
17101 * CategoryGridEntry.cs: reformat, and add boilerplate.
17103 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17104 returns the UI parent anyway, and we need special handling to
17105 implement the GetTarget method in the face of it. Also, implement
17108 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
17109 a root grid item, and use that instead of PropertyGrid.grid_items.
17110 Also, make use of TypeConverters (and add limitted support for
17111 ICustomTypeDescriptors) when initially populating the grid.
17112 Arrays now show up more or less properly.
17114 2006-11-08 Chris Toshok <toshok@ximian.com>
17116 * Application.cs: set the modal dialog to non modal after we close
17117 it. Fixes bug #79866.
17119 2006-11-08 Jackson Harper <jackson@ximian.com>
17121 * TextControl.cs: When combining lines carry over the line end
17122 style from the end line.
17123 - Invalidate the selected area when setting it, if it is visible.
17124 * TextBoxBase.cs: Only rich text box can do full line selects.
17125 - Make sure to set the cursor position when there is a click,
17126 otherwise two clicks in separate areas could cause a large chunk
17129 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17131 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
17134 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17136 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17137 time. Remove tooltips when ToolButton click events. Fixes #79856.
17139 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17141 * MenuAPI.cs: Ignore right click for menu actions and fixes
17142 menu border when clicked. Fixes #79846.
17144 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17146 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17147 MouseState after create wParam for message, this fixes mouse button
17148 equal none in mouse up events.
17150 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
17152 * Control.cs : Focus() now calls Select to set the Container's
17153 Active Control and to give it focus. To avoid infinite recursion
17154 (because ActiveControl also calls Focus at one point), a check
17155 is made in Focus with the help of a new internal variable
17158 2006-11-07 Mike Kestner <mkestner@novell.com>
17160 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17161 if there's a selection. Fixes #79849.
17163 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
17165 * PropertyGrid.cs: Avoid fixed height of help description label.
17166 Fixes part of bug #79829.
17168 2006-11-07 Chris Toshok <toshok@ximian.com>
17170 * XplatUIX11.cs: fix #79790 again, by using the
17171 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17173 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17175 * ToolBar.cs: Fix left click checking.
17177 2006-11-07 Chris Toshok <toshok@ximian.com>
17179 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
17181 2006-11-07 Chris Toshok <toshok@ximian.com>
17183 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
17184 PropertyManager unit tests.
17186 * PropertyManager.cs: make property_name internal.
17188 2006-11-07 Chris Toshok <toshok@ximian.com>
17190 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17191 pass a unit test. Also, don't set image_index to anything in
17192 response to setting the ImageList property.
17194 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17196 * ToolBar.cs: Ignore click events when mouse button is not a
17197 left button, only accepts other button for dropdown menus.
17200 2006-11-07 Chris Toshok <toshok@ximian.com>
17202 * DataGrid.cs: make the back and parent row buttons a little less
17205 2006-11-07 Jackson Harper <jackson@ximian.com>
17207 * TextBoxBase.cs: When converting to Text don't put line breaks in
17208 for soft line breaks.
17209 * TextControl.cs: There is an initial "fake" line in the document,
17210 this is now a soft break line, so that an extra line feed doesn't
17211 get added to the end of documents.
17213 2006-11-07 Chris Toshok <toshok@ximian.com>
17217 * CurrencyManager.cs: if the list is readonly, don't bother
17218 checking if IBindingList.AllowNew is true.
17220 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17221 for non-DataRowView datasources.. or rather, make it not crash.
17222 (DataGridPaintRelationRow): make sure we limit the row painting to
17223 the area not covered by the row header, and make our cell width at
17224 least large enough to cover the relation area. This allows grids
17225 that have relations but no rows to render correctly.
17226 (DataGridPaintRowContents): same type of changes here.
17227 (SetDataSource): move back to always calling
17228 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
17229 navigating back through relations.
17230 (HitTest): handle the case where we have no cells but have
17231 relations. Right now we generate a hit in cell 0 of whatever the
17232 row is, not sure if this is strictly correct, but it works for our
17235 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17236 bother doing anything.
17238 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
17240 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17241 early version of StatusStrip. Not responsible for eaten
17242 application or firstborn children.
17244 2006-11-06 Chris Toshok <toshok@ximian.com>
17246 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17247 call GetTabRect with a -1 index. Fixes #79847.
17249 2006-11-06 Jackson Harper <jackson@ximian.com>
17251 * TreeNodeCollection.cs: Update scrollbars after clearing.
17253 2006-11-06 Chris Toshok <toshok@ximian.com>
17255 * NumericUpDown.cs: fix the ToString method for some unit test
17258 2006-11-06 Chris Toshok <toshok@ximian.com>
17261 - set the initial SelectedGridItem if we can.
17263 - Exclude non-mergable properties only if we're merging > 1
17264 object. Merging 1 object isn't really merging, obviously.
17266 - Handle PropertySort.NoSort just like Alphabetical, which is
17267 wrong of course, but at least gets things on the screen.
17269 * PropertyGridView.cs:
17270 - Add method "FindFirstItem" which finds the first property grid
17271 item, so we can select it by default.
17273 - make use of GridEntry.CanResetValue.
17275 - Don't call RedrawBelowItemOnExpansion here anymore, the
17276 individual GridEntry's will do that.
17278 - Remove the ITypeDescriptorContextImpl internal class.
17281 - this class needs to implement ITypeDescriptorContext, as it's
17282 what MS's PropertyDescriptorGridEntry does, which means we can
17283 remove the ITypeDescriptorContextImpl internal class from
17284 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
17286 - keep a reference to our PropertyGridView, and move the call to
17287 RedrawBelowItemOnExpansion here from PGV. This means
17288 programmaticly setting Expanded actually does something visible.
17290 - add a CanResetValue() function which takes into account our
17291 possibly multiple "selected_objects" in the merged case. Shifting
17292 PropertyGridView to use this method fixes another unreported
17293 crasher found running the test for #79829.
17295 - when Top or Bounds is updated, make sure the PropertyGridTextBox
17296 is updated to reflect this.
17298 * CategoryGridEntry.cs: the ctor takes the PGV now.
17300 2006-11-06 Jackson Harper <jackson@ximian.com>
17302 * TextControl.cs: These are 1 based.
17303 * TextBoxBase.cs: When setting the selected text, don't change the
17304 selected text tags, this is done by ReplaceText, just position the
17305 cursor at the end of the new text.
17307 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17309 * ListView.cs: Allow label edit only when, when LabelEdit is
17312 2006-11-06 Jackson Harper <jackson@ximian.com>
17314 * TextControl.cs: If a suitable wrapping position isn't found,
17315 just wrap right in the middle of a word.
17317 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17319 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17322 2006-11-06 Jackson Harper <jackson@ximian.com>
17324 * TreeView.cs: Can't use the VisibleCount property when setting
17325 scrollbar heights, because this doesn't take into account whether
17326 or not the horz scrollbar just came visible.
17328 2006-11-05 Everaldo Canuto <everaldo@simios.org>
17330 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17331 activated. Fixes #79369, #79832.
17333 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
17335 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17336 had to remove support for links that point to a directory. FileInfo
17337 returns no usefull information (means, the directory they point to)
17338 for such links. Replaced some empty string ("") with String.Empty.
17340 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17342 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
17343 NullReferenceException when attempting to remove node that is not in
17344 collection. Throw NullReferenceException when null is passed to
17345 Remove. Allow first element of the collection to be removed. Fixes
17346 bug #79831. In GetEnumerator ().Current return null if positioned
17347 before the first element of the collection. In GetEnumerator ().Reset,
17348 position before first element of the collection.
17350 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17352 * PropertyGrid.cs: To match MS, remove default title and description
17353 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17356 2006-11-04 Chris Toshok <toshok@ximian.com>
17358 * Theme.cs: add a Clamp method, just for kicks.
17360 * ThemeWin32Classic.cs: clamp all color components to [0..255].
17362 2006-11-04 Chris Toshok <toshok@ximian.com>
17364 * Form.cs: if the form isn't visible, Close() does nothing.
17366 2006-11-03 Chris Toshok <toshok@ximian.com>
17368 * Form.cs (Close): if the form is modal, don't Dispose of it, only
17370 (WndProc): don't Dispose after handling the WM_CLOSE message.
17372 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17373 them as such, instead of using casts from Control to Form. Also,
17374 don't Dispose of the modal dialog when we fall out of the loop -
17375 Close() it instead.
17379 2006-11-03 Chris Toshok <toshok@ximian.com>
17381 * Control.cs (Dispose): only go through the dispose thing if we're
17382 @disposing, and we haven't already been disposed. Fixes bug
17385 * Form.cs: no reason to call "base.Dispose()" here instead of
17388 2006-11-03 Mike Kestner <mkestner@novell.com>
17390 * ComboBox.cs : use ToString instead of casts in AddItem for
17391 sorting functionality. Fixes #79812.
17393 2006-11-03 Chris Toshok <toshok@ximian.com>
17395 * Application.cs: pave the way for actually using the thread
17396 exception dialog. it's ifdefed out at the moment.
17398 2006-11-03 Chris Toshok <toshok@ximian.com>
17400 * ThreadExceptionDialog.cs: until we get a better layout, actually
17401 hide the details textbox and label when we shouldn't see them.
17403 2006-11-03 Jackson Harper <jackson@ximian.com>
17405 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17406 multiline textboxes anymore. This method also determines the
17407 width/height of a textboxes canvas area.
17408 - Sorta a revert of the last patch. For multiline just position
17409 the controls, then bail. This way the scrollbar width won't be
17412 2006-11-03 Everaldo Canuto <everaldo@simios.org>
17414 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17415 it dont need. Fixes #79537.
17417 2006-11-02 Jackson Harper <jackson@ximian.com>
17419 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
17420 send the status after firing the DndOver event.
17422 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17424 * TrackBar.cs: Now orientation only switches height / width if
17425 the control's handle is created (Win32 does it like this). Also
17426 fixed a typo in ToString() for a test to pass, changed the
17427 exception thrown in set_LargeChange and set_SmallChange to
17428 match Win32 behaviour, and added TrackBar tests to the unit
17431 2006-11-02 Chris Toshok <toshok@ximian.com>
17433 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17434 not _NET_WM_STATE_NO_TASKBAR.
17436 2006-11-02 Jackson Harper <jackson@ximian.com>
17438 * TextControl.cs: Increment count by one, since in the update view
17441 2006-11-02 Jackson Harper <jackson@ximian.com>
17443 * TextBoxBase.cs: Use client rectangle not bounds for checking if
17444 the mouse is in the client rectangle (duh).
17446 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17448 * TrackBar.cs: Fixed trackbar jumping around when clicking
17449 on it - the trackbar was not detecting correctly at which
17450 side of the thumb the click was done. (fixes #79718)
17452 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17454 * ListBox.cs: scroll visible area when change SelectedIndex to
17455 a non visible area. Fixes #79481.
17457 2006-11-01 Jackson Harper <jackson@ximian.com>
17459 * TextControl.cs: When replacing the selection move the selection
17460 start/end/anchor to the end of the new text.
17462 2006-11-01 Jackson Harper <jackson@ximian.com>
17464 * XplatUIWin32.cs: When setting the parent change the controls
17465 visibility to it's visibility flag, not to it's old parents
17466 visibility (.Visible walks the parent chain).
17468 2006-11-01 Chris Toshok <toshok@ximian.com>
17470 * XplatUIX11.cs: revert the #79790 fix, as the simple.
17471 XSetTransientForHint fix breaks paint .net's tool windows. more
17472 work needed for that one.
17474 2006-11-01 Chris Toshok <toshok@ximian.com>
17476 * ScrollBar.cs: throw ArgumentException instead of Exception in
17477 LargeChange/SmallChange setters. fixes unit tests.
17479 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17481 * ContainerControl.cs: reverted rev.67183 (which was itself
17482 a reversion of rev.66853... eh).
17484 * Control.cs: Fixes Reflector hang by changing Focus() call
17485 to what it was before rev.66643 (calling Select() here sets
17486 ActiveControl, which in some situations calls back Focus and
17487 eventually does a stack overflow). Temp fix.
17488 Changes to GetNextControl() to not look for children to select when
17489 parent cannot be selectable (so it looks for siblings instead)
17491 2006-10-31 Mike Kestner <mkestner@novell.com>
17493 * CheckedListBox.cs : off by one error in returned index from
17494 ObjectCollection.Add. Fixes #79758.
17496 2006-10-31 Chris Toshok <toshok@ximian.com>
17498 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17499 calls for the textbox/spinner, to keep from recursing to the point
17500 where we crash. Fixes #79760.
17502 2006-10-31 Chris Toshok <toshok@ximian.com>
17504 * ListControl.cs (set_SelectedValue): don't throw exceptions on
17505 null/"" value, just return. matches ms's behavior and fixes some
17508 2006-10-31 Chris Toshok <toshok@ximian.com>
17510 * Control.cs (set_Capture): make a logic a little easier to
17513 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17514 if it's being destroyed. A necessary fix surely, but a bandaid
17515 also, to fix the stuck capture problem in bug #78413.
17517 2006-10-31 Chris Toshok <toshok@ximian.com>
17519 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17520 convention of clearing hwnd.ClientRect when we set the
17521 width/height (so it'll be recalculated by Hwnd).
17523 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17525 * ContainerControl.cs: reversed Contains check from
17526 ActiveControl due to hanging problems. This fix
17527 partly regresses #79667 (button does not have
17528 initial focus), so this might be a symptom for
17529 a larger parenting problem (set_ActiveControl
17530 is being called but the child control does
17531 not have the parent set yet?)
17533 2006-10-31 Mike Kestner <mkestner@novell.com>
17535 * MenuAPI.cs : fix keynav when menu is click activated.
17537 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
17539 * ToolStrip*: Version 0.2.
17541 * MenuStrip.cs: Version 0.1.
17543 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17545 2006-10-30 Chris Toshok <toshok@ximian.com>
17547 [ fixes the oversized notify icon issue in bug #79745 ]
17549 * NotifyIcon.cs: scale the icon down to the size we're given by
17550 the XplatUI layer (this would be faster if we did it once instead
17551 of whenever we paint..) Also, remove the WM_NCPAINT handling,
17552 since it's never invoked.
17554 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17555 pixels high by default, so let's hardcode our systray icon to that
17556 size. The SYSTEM_TRAY protocol should really have a way for
17557 client apps to query for the correct icon size.. but oh well. A
17558 couple of patches to deal with the screwy client_window ==
17559 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17560 instance, and also make sure we don't XSelectInput twice).
17562 2006-10-30 Chris Toshok <toshok@ximian.com>
17564 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17565 recreating forms. Control recreation is the bane of my existence.
17566 Fix it in a way that keeps everyone happy.
17568 2006-10-30 Chris Toshok <toshok@ximian.com>
17570 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17571 just non-CHILD ones. otherwise sometimes scrollbars end up with
17572 client_windows not being resized to the proper size (ReportBuilder
17573 shows this extremely well).
17575 2006-10-30 Chris Toshok <toshok@ximian.com>
17577 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17578 for non-WS_EX_APPWINDOW windows. This is what keeps them from
17579 showing up in the gnome taskbar. Fixes bug #79790.
17581 2006-10-30 Chris Toshok <toshok@ximian.com>
17583 * ApplicationContext.cs: guard against a NRE.
17585 * Application.cs: null out the old MainForm for the context, so we
17586 don't try to use it again once it's disposed. Fixes bug #79783.
17588 2006-10-30 Chris Toshok <toshok@ximian.com>
17590 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17591 BindingContext, set the data source directly, otherwise do the
17592 lazy approach - the actual ListManager will be created when we get
17593 a BindingContext. Fixes bug #79700.
17595 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17597 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17598 XplatUIX11.cs: Remove old 2 parameter SetVisible.
17600 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17602 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17604 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17605 of SetVisible that allows a window to be shown, but not activated.
17606 This is needed on Windows for MenuStrip, and can probably be used
17607 with MainMenu and ComboBox to fix the focus stealing issues on
17610 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17612 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
17614 * PictureBox.cs: Fix the output of the ToString method.
17616 2006-10-29 Chris Toshok <toshok@ximian.com>
17618 * Control.cs (get_TopLevelControl): fix bug #79781.
17620 2006-10-29 Chris Toshok <toshok@ximian.com>
17622 * ListControl.cs (set_DataSource): throw Exception here, not
17623 ArgumentException, to match MS behavior.
17625 2006-10-29 Chris Toshok <toshok@ximian.com>
17627 * Form.cs: remove the try-catch's around calls to GetWindowState.
17628 We can just check the return value.
17630 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17633 * XplatUI.cs: Add note about additional return value for
17636 2006-10-29 Chris Toshok <toshok@ximian.com>
17638 * Control.cs (CreateHandle): when we create our handle, we also
17639 create the handles of our child controls. Fixes one of the
17640 Control unit tests (CH11).
17642 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
17644 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17646 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
17648 * ThemeClearlooks.cs: A little speedup.
17650 2006-10-27 Chris Toshok <toshok@ximian.com>
17652 * Control.cs: implement Control.FromChildHandle in a way that
17653 matches the docs (and fixes the failed test.)
17655 2006-10-27 Chris Toshok <toshok@ximian.com>
17657 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17660 * DataGrid.cs: implement ResetForeColor such that the tests
17663 2006-10-27 Chris Toshok <toshok@ximian.com>
17665 * ToolBarButton.cs: setting text/tooltiptext to null results in it
17666 being set to "". Fixes bug #79759.
17668 2006-10-27 Jackson Harper <jackson@ximian.com>
17670 * TextControl.cs: We need to clear the entire selection area when
17671 setting the start, otherwise multiline selections are still
17674 2006-10-26 Chris Toshok <toshok@ximian.com>
17676 * PropertyGridView.cs:
17678 - ifdef all the code specific to the double
17679 buffer case, and provide some alternatives in the non-doublebuffer
17680 code, which makes heavy use of XplatUI.ScrollWindow to move things
17681 around without having to invalidate (and cause flicker). There
17682 are still some drawing problems in the non-doublebuffered case, so
17683 DOUBLEBUFFER is defined by default.
17685 - Fix the way dropdowns are handled. now we explicitly watch for
17686 the events which might cause the dropdown to close, and break out
17687 of the nested event loop there. This gets rid of all Capture
17688 code, at the expense of the Msg special casing. Seems to work,
17689 though, and fixes bug #79743.
17691 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17692 * Control.cs: SetIsRecreating now recreates implicitly added
17693 child controls as well. Finally fixes #79629. The flag passed to
17694 SetIsRecreating has also been removed since it wasn't used.
17696 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17698 * PageSetupDialog.cs: Clean some code, fix some bits,
17699 add some checks, and add a printer sub-dialog.
17701 2006-10-26 Chris Toshok <toshok@ximian.com>
17703 * PropertyGrid.cs: make set_SelectedObject call
17704 set_SelectedObjects, and move the duplicate logic to the
17705 SelectedObjects setter. Also, raise SelectedObjectsChanged.
17707 * PropertyGridView.cs: hide the textbox when we get a
17708 SelectedObjectsChanged event.
17712 2006-10-26 Chris Toshok <toshok@ximian.com>
17714 * PropertyGridView.cs: deal with the type converter not supporting
17715 GetStandardValues() or GetStandardValues() returning null, which
17716 is does in the default case. Fixes #79742.
17718 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
17720 * CheckedListBox.cs: nunit no longer crashes when selecting
17721 Project/Edit menu option
17723 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
17725 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17726 is no menu selected. fixes #79739
17728 2006-10-25 Chris Toshok <toshok@ximian.com>
17730 * PropertyGridView.cs: factor out the splitter invalidation code
17731 into the SplitterPercent setter, and for kicks implement the
17732 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17733 amount in either direction.
17735 2006-10-25 Chris Toshok <toshok@ximian.com>
17737 * PropertyGridView.cs: do some cleanup of the brush used to draw
17738 text - read only fields should be grayed out. not sure how to do
17739 this with the textbox, though. but the textbox's should also be
17740 readonly now at least. Also, hide/show the textbox when resizing
17743 * CursorConverter.cs: use System.Reflection when getting the
17744 properties of Cursors, as TypeDescriptor.GetProperties isn't
17745 returning static properties.
17747 2006-10-25 Chris Toshok <toshok@ximian.com>
17749 * PropertyGridView.cs: factor out the up/down handling, and reuse
17750 it for page up/down. also add End/Home support.
17752 2006-10-25 Chris Toshok <toshok@ximian.com>
17754 * PropertyGridView.cs:
17756 - ensure the selected grid item is visible in the scrolled area,
17759 - fix Keys.Down handling when you're on the last item in the
17762 2006-10-25 Mike Kestner <mkestner@novell.com>
17764 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
17765 clicks too. Fixes #79725.
17767 2006-10-24 Chris Toshok <toshok@ximian.com>
17769 * PropertyGrid.cs: use property.Converter instead of
17770 TypeDescriptor.GetConverter(property.PropertyType), so we catch
17771 TypeConverters declared on the property as well as on the
17772 PropertyType. Fixes bug #79678.
17774 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
17776 * MimeIcon.cs, Mime.cs:
17777 Fallback to the default platform handler if no shared mime info
17778 stuff exists (fixes #79693).
17780 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17781 * ContainerControl.cs: Incorrect contains check in ActiveControl
17782 from previous fix (duh).
17784 2006-10-20 Chris Toshok <toshok@ximian.com>
17786 * PropertyGridView.cs: the dropdown should be MIN(number of items
17787 in list, 15). Fixes #79551.
17789 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17790 Fixes #79384, #79394, #79652, #79667
17793 - Modal windows are now destroyed in the proper order for windows
17795 * ContainerControl.cs:
17797 - ActiveControl setter has more conditions on when to return:
17798 - if we're reselecting the active control, but it actually
17799 didn't have focus (window hidden or some such), it runs
17800 - if the active control being selected doesn't actually
17801 exist in the container, it returns
17805 - The ShowDialog now gets the current form as the owner when
17806 invoking without parameters, and correctly activates the owner
17811 - MessageBox now catches the Escape key to exit
17813 2006-10-20 Chris Toshok <toshok@ximian.com>
17815 * PropertyGridView.cs: fix a number of issues (bug #78565, and
17816 most of bug #79676):
17818 - you can navigate around the property grid with the arrow keys.
17820 - the dropdown is sized properly when the pg has a vertical
17823 - fix the indentation for subentries, and properly select the
17826 - fix the gray bar's drawing (only draw it to the last element,
17827 not for the height of the control. Also make sure we draw that
17828 last horizontal grid line.
17830 - use the same mechanism the datagrid uses wrt the editing textbox
17831 when scrolling/resizing/etc. Namely, we hide it first, do the
17832 operation, then show it again (if it's still visible).
17834 - aggressively remove a lot of unnecessary refreshes (and also
17835 calls to Invalidate(). call more limited variants, and only redraw
17840 - when we're populating the merged collection, fill in the UI
17841 parent with either the passed in item, or the category item we
17844 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17846 * GridItem.cs: drop some fully qualified names.
17848 * GridEntry.cs: add a "UIParent", which is basically the parent
17851 * GridItemCollection.cs: add an IndexOf method.
17853 2006-10-20 Mike Kestner <mkestner@novell.com>
17855 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
17856 a working win32 NC invalidation mechanism, we can't invalidate
17857 menus. [Fixes #79705]
17859 2006-10-20 Mike Kestner <mkestner@novell.com>
17861 * ListBox.cs : don't update the VScrollbar if the list is empty,
17862 just hide it. [Fixes #79692]
17864 2006-10-20 Jackson Harper <jackson@ximian.com>
17866 * RichTextBox.cs: Handle some special chars better, and don't skip
17867 the entire group when we encounter a special char that we don't
17870 2006-10-18 Chris Toshok <toshok@ximian.com>
17872 * PropertyGridView.cs: address a number of issues from bug #79676,
17873 mostly of the cosmetic variety.
17875 - The highlight rectangle for indented items not extends all the
17878 - Indented items aren't indented so much.
17880 - the dropdown is properly sized width-wise if the pg has a
17881 vertical scrollbar.
17883 2006-10-18 Chris Toshok <toshok@ximian.com>
17885 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
17886 systray stuff is rather convoluted to begin with.
17888 systray icons are a single window for some reason (that I haven't
17889 figured out yet), and for them, client_window == whole_window.
17890 Given the way the tests are structured elsewhere to determine
17891 which paints are pending (client vs. nc), that situation will
17892 always yield PAINT, not NCPAINT. So, if we have a pending
17893 nc_expose and no pending expose, remove the hwnd from the paint
17894 queue, and also set nc_expose_pending to false, to keep us from
17895 blocking further expose's adding the hwnd to the paint queue.
17897 phew. like i said, a rather convoluted change. Fixes the
17898 notifyicon repaint issues in bug #79645.
17900 2006-10-18 Chris Toshok <toshok@ximian.com>
17902 * Form.cs: when getting the backcolor of the form, don't get
17903 base.BackColor, as this allows parents to influence the background
17904 color. This breaks mdi forms. Instead, if the background_color
17905 is empty, return the default.
17907 2006-10-18 Chris Toshok <toshok@ximian.com>
17909 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
17910 to being private instead of internal static.
17912 * Control.cs: remove all the stupid ParentWaitingOnRecreation
17913 crap, it wasn't working for more deeply nested controls anyway,
17914 and we already have the is_recreating flag - use that instead.
17915 Before calling DestroyHandle in RecreateHandle, recurse through
17916 the control tree setting it to true. this returns the recreate
17917 code to much of its original simplicity, while now guaranteeing we
17918 actually recreate everything we're supposed to. This change gets
17919 fyireporting actually showing mdi children.
17921 2006-10-17 Chris Toshok <toshok@ximian.com>
17923 * Form.cs: remove some debug spew, and collapse some duplicate
17924 code at the end of SetClientSizeCore.
17927 - add some more debug spew here too wrt Destroy handling.
17928 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
17929 in Control's handling of WM_DESTROY.
17930 - Remove the handling of zombie window DestroyNotifies from the
17931 event loop - we don't need it. Now the only DestroyNotifies we
17932 actually handle are ones generated by X.
17933 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17934 match gtk's (functioning) handling of this. This keep metacity
17935 from leaving droppings in the form of wm borders with no window
17936 contents all over the place.
17939 - add a bunch of debug spew wrt control recreation.
17940 - fix a bug where we weren't tracking Visible properly on
17942 - fixed the WM_PAINT double buffer handling to support re-entrant
17943 calls (yes, i know it's gross, but it's happening to us).
17945 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17946 * ThemeWin32Classic.cs: changed drawing of selected days
17947 to make them look better.
17949 2006-10-16 Chris Toshok <toshok@ximian.com>
17951 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
17952 drawing_stack. Nuke the ClientDC/NonClientDC properties.
17954 * XplatUIX11.cs: move away from using hwnd.client_dc and
17955 hwnd.non_client_dc and on to a stack of dc's (and in window's
17956 case, PAINTSTRUCT's), so we can deal with nested Paint calls
17957 without puking or not disposing of Graphics objects.
17959 * XplatUIOSX.cs: same.
17961 * XplatUIWin32.cs: same.
17963 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
17965 * FileDialog.cs: Don't call on_directory_changed inside
17966 OnSelectedIndexChanged (it changes the SelectedIndex too).
17967 Instead move it to OnSelectionChangeCommitted.
17969 2006-10-13 Chris Toshok <toshok@ximian.com>
17971 * XplatUIX11.cs: more Destroy work. the current code does the
17972 following things, in order:
17974 1. Enumerates all handles of all controls at or below the one
17975 being destroyed, in pre-order. As it is doing this, it marks the
17976 handles as zombie and clears all references to them.
17978 2. calls XDestroyWindow on the window passed in.
17980 3. SendMessage's WM_DESTROY to all he handles in the accumulated
17983 2006-10-13 Chris Toshok <toshok@ximian.com>
17985 * XplatUIX11.cs: set hwnd.zombie to true before calling
17986 SendMessage (WM_DESTROY). this keeps us from marking the new
17987 window a zombie, and also keeps us from calling sendmessage at
17990 2006-10-13 Jackson Harper <jackson@ximian.com>
17992 * TextControl.cs: Do not show the caret and selection at the same
17993 time. Reduces ugliness by 35%.
17995 2006-10-13 Chris Toshok <toshok@ximian.com>
17997 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
17998 zombie after we do the recursive call, so we actually do call
17999 SendMessage on the children controls.
18000 (GetMessage): if we find a pending paint event for a zombie hwnd,
18001 remove the hwnd from the paint queue, or else it will always be
18002 there (and we'll effectively loop infinitely)
18004 2006-10-13 Mike Kestner <mkestner@novell.com>
18006 * MenuItem.cs : add Selected format under keynav too.
18009 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
18011 * PropertyGrid.cs: Fixed some NRE's and small difference between our
18012 implementation and that of MS.
18014 2006-10-13 Chris Toshok <toshok@ximian.com>
18016 * Control.cs (OnInvalidated) only futz with the invalid_region if
18017 the control is double buffered. this fixes the apparent hang in
18018 the ListView unit tests. Someone needs to make the
18019 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18021 2006-10-13 Chris Toshok <toshok@ximian.com>
18023 * PropertyGridView.cs:
18025 - do a little refactoring so that only one place calls
18026 dropdown_form.Hide, and that is CloseDropDown. make everywhere
18027 else call that. Also make it Refresh, since there are redraw bugs
18028 otherwise (we should take a look at that...)
18030 - do a little more refactoring work to share the body of code
18031 involved with the drop down. it was duplicated in the code
18032 dealing with the listbox handling and in the code dealing with the
18035 - add a Capture to the dropdown form's control once it's
18036 displayed, and add a MouseDown handler that checks to make sure
18037 the position is inside the control. If it's not, close the
18038 dropdown. This fixes #78190.
18040 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18041 if the value is different than the initial value.
18043 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
18045 * Control.cs: see #78650
18046 - Fixed GetNextControl for several cases:
18047 - Changed FindFlatForward to return
18048 correct sibling control when more than one
18049 control has same TabIndex as the currently
18051 - Changed FindFlatBackward to loop children
18052 from last to first and apply same logic as in
18054 - Changed FindControlForward to search for
18055 children when control is not a container
18056 but has children, or search for siblings if
18057 control is a container...
18058 - Changed FindControlBackward to continue
18059 searching for child controls when hitting
18062 - Fixed Focus method to update ActiveControl
18063 (FocusTest.FocusSetsActive failure)
18066 - Focus rectangle now refreshes when gaining
18068 - Removed grab for Tab key on IsInputKey that
18069 was keeping tab navigation from working (#78650)
18071 2006-10-13 Chris Toshok <toshok@ximian.com>
18073 * PropertyGridView.cs:
18074 - Rewrite SetPropertyValue to loop over SelectedGridItem's
18077 - Deal with GridItem.Value == null a few places.
18080 - replace the PopulateGridItemCollection with a pair of methods
18081 which compute the intersection of all the properties in the
18082 SelectedObjects array. Fixes #79615.
18084 - Throw ArgumentException from set_SelectedObjects if there's a
18087 - Add GetTarget method which can be used to traverse up the
18088 GridItem.Parent chain. It depends on the assumption that
18089 selected_objects for different GridEntries are always in the same
18090 order (a safe assumption). Use this method and loop over all the
18091 selected objects in the entry when calling RemoveValueChanged and
18094 * GridEntry.cs: Make this handle multiple selected objects.
18095 .Value returns null if not all the selected objects share the same
18098 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
18099 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18100 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18101 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18102 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18103 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18104 add additional functionality.
18106 2006-10-12 Mike Kestner <mkestner@novell.com>
18108 * ErrorProvider.cs : new ToolTipWindow ctor sig.
18109 * HelpProvider.cs : new ToolTipWindow ctor sig.
18110 * ToolTip.cs : remove ToolTip param from Window sig since it is
18112 * ToolBar.cs : add tooltip support. Fixes #79565.
18114 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18116 * ComboBox.cs: move the events in set_SelectedIndex to
18117 after the call to HighlightIndex in order to avoid
18118 possible recursion and subsequent problems with the call
18119 to HighlightIndex and include a range check in
18120 set_HighlightIndex. Fixes #79588
18122 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18124 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
18125 to ui thread's settings instead of sunday.
18126 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18128 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18130 * DateTimePicker.cs
18132 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18133 and implement missing functionality (selecting different parts
18134 of the date and edit them individually with the keyboard).
18136 2006-10-11 Chris Toshok <toshok@ximian.com>
18138 * Control.cs (OnInvalidated): fix NRE relating to last change.
18140 2006-10-11 Chris Toshok <toshok@ximian.com>
18142 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18143 atoms in _NET_WM_STATE here if the window is maximized. We need
18144 to do this because we're *replacing* the existing _NET_WM_STATE
18145 property, so those atoms will be lost otherwise, and any further
18146 call to GetWindowState will return Normal for a window which is
18147 actually maximized. Fixes #79338.
18149 2006-10-11 Jackson Harper <jackson@ximian.com>
18151 * TextControl.cs: Special case for setting selection end to
18152 selection start, we basically kill the anchor.
18153 - some todo comments.
18155 2006-10-11 Chris Toshok <toshok@ximian.com>
18157 * Control.cs: switch to using an "invalid_region" to track which
18158 parts of the image buffer need updating. This is more code than
18159 the simple fix from r66532. That version just attempted to always
18160 fill the entire buffer on redraw, which turns out to be
18161 inefficient when invalidating small rectangles. This version
18162 simply adds the invalid rectangle to the invalid region. When we
18163 get any WM_PAINT message we see if it can be filled using the
18164 image buffer, and if it can't (if the paint event's clip rectangle
18165 is visible in the invalid region) we first fill the image buffer.
18166 So, the image buffer is still a cache, we just fill it lazily.
18168 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18169 need it any longer.
18171 2006-10-11 Chris Toshok <toshok@ximian.com>
18173 * XplatUIX11.cs (SetWindowPos): we need to update both position as
18174 well as size after calling XMoveResizeWindow. This keeps us from
18175 ignoring future SetWindowPos calls. Fixes the disappearing
18176 DateTimePicker in the ToolBarDockExample from bug #72499.
18178 2006-10-11 Chris Toshok <toshok@ximian.com>
18180 * TextBoxBase.cs: reorder things a bit when it comes to
18181 resizing-causing-recalculation. we were recalculating the
18182 document when our position was changed, which shouldn't happen.
18183 We only care about size changes. Clear up some more redundant
18184 recalculation calls while I'm at it. This makes the toolbar dock
18185 example snappy when you're just dragging toolbars around (since it
18186 causes a relayout whenever you move one.)
18188 2006-10-11 Chris Toshok <toshok@ximian.com>
18190 * ToolBarButton.cs (get_Rectangle): this only returns
18191 Rectangle.Empty if Visible == false, or Parent == null.
18192 Parent.Visible doesn't matter.
18194 2006-10-10 Chris Toshok <toshok@ximian.com>
18196 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18197 by .net 1.1, so switch to an internal method instead.
18199 2006-10-10 Chris Toshok <toshok@ximian.com>
18201 * Control.cs (WM_PAINT): when a control is double buffered we draw
18202 initially to the ImageBuffer and then copy from there. But when a
18203 parent control which has child controls is double buffered, the
18204 initial drawing doesn't encompass the entire ClientRectangle of
18205 the parent control, so we end up with uninitialized bits (this is
18206 easily seen by dragging the top toolbar in
18207 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
18208 manually set the ClipRectangle of the paint_event (only the one we
18209 use to populate the ImageBuffer) to ClientRectangle. Fixes more
18210 of the nastiness in bug #72499.
18212 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18213 which we use in Control.cs's WM_PAINT handling.
18215 2006-10-10 Jackson Harper <jackson@ximian.com>
18217 * TextBoxBase.cs: Finish off the autoscrolling stuff.
18219 2006-10-10 Chris Toshok <toshok@ximian.com>
18221 * Cursor.cs: Apply a slightly different patch to the one suggested
18224 2006-10-10 Jackson Harper <jackson@ximian.com>
18226 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18227 not the parent form.
18228 * TextControl.cs: use difference in old line count vs new count to
18229 calculate how many lines were added, this takes into account soft
18230 line breaks properly.
18232 2006-10-10 Chris Toshok <toshok@ximian.com>
18234 * LinkLabel.cs: don't call MeasureCharacterRanges against a
18235 rectangle located at 0,0 and the size of the text. Use
18236 ClientRectangle instead. This fixes rendering of non-left aligned
18239 2006-10-10 Jackson Harper <jackson@ximian.com>
18241 * TextBoxBase.cs: When we set the selection start position the
18243 * TextControl.cs: Need to update the caret when we decrement it to
18245 - Make sure that the selection_visible flag gets reset to false if
18246 the selection isn't visible. Before this you could get it set to
18247 visible by changing the selection start, then changing the end to
18250 2006-10-09 Jackson Harper <jackson@ximian.com>
18252 * TreeView.cs: Don't update scrollbars when we aren't visible.
18253 * TreeNodeCollection.cs: Only need to update scrollbars if being
18254 added to an expanded visible node or the root node.
18256 2006-10-09 Chris Toshok <toshok@ximian.com>
18258 * XplatUIX11.cs (SendMessage): fix NRE.
18260 2006-10-09 Jackson Harper <jackson@ximian.com>
18262 * TextBoxBase.cs: Implement horizontal autoscrolling.
18263 * TextControl.cs: Add a movement types that allows moving forward
18264 and backwards without wrapping.
18266 2006-10-09 Mike Kestner <mkestner@novell.com>
18268 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18269 with focus "expansion" of labels. Fixes #79532 and then some.
18270 * ThemeWin32Classic.cs : add LineLimit to ListView label format
18273 2006-10-09 Jackson Harper <jackson@ximian.com>
18275 * TextBoxBase.cs: Set the default max values to MaxValue since
18276 we use the scrollbar for autoscrolling and the default value is
18277 100. If we don't do this the caret won't keep up with typing
18278 after about 18 characters.
18279 * TextControl.cs: Make sure the selection is offset by the
18280 viewport x. This fixes selection when using auto scrolling.
18282 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
18284 * Form.cs: The active control should be selected after the
18285 OnLoad so that any child control initialization that affects
18286 the selection is done. Fixes #79406
18288 2006-10-06 Chris Toshok <toshok@ximian.com>
18290 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18291 to have no evil effects.
18293 - Stop selecting StructureNotifyMask on non-toplevel windows.
18295 The only way children should be resized is by using the SWF api,
18296 and we already send WM_WINDOWPOSCHANGED messages in those cases.
18297 Toplevel windows can be interacted with via the window manager,
18298 and so we keep the input mask there.
18300 The other event StructureNotifyMask gives us (that we care
18301 about) is DestroyNotify. The code is already structured such
18302 that it assumes we won't be getting a DestroyNotify event for
18303 the window we pass to XDestroyWindow (which is what
18304 StructureNotifyMask is supposed to guarantee.) So, that code
18305 shouldn't be affected by this either.
18307 - Stop selecting VisibilityChangeMask altogether.
18309 We weren't doing anything with the resulting events anyway.
18311 This vastly reduces the number of X requests and events we see
18312 when resizing/laying out a large ui.
18314 2006-10-06 Chris Toshok <toshok@ximian.com>
18316 * ScrollableControl.cs (DisplayRectangle): we need to take into
18317 account the DockPadding regardless of whether or not auto_scroll
18318 == true. rework this slightly to this effect, and fix bug #79606,
18319 and part of #72499 (you can now see the drag handles and drag
18322 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
18324 * ListViewItem.cs: Collections of selected and checked items are now
18325 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18326 we mark the collection "dirty".
18327 * ListView.cs: Marked collections readonly. Modified UpdateSelection
18328 to only clear SelectedItems when a new item is selected and MultiSelect
18329 is enabled. CheckedItems and SelectedItems now subscribe to Changed
18330 event of ListViewItemCollection, and mark its list dirty whenever
18331 that event is fire. This allows us to return selected/checked items
18332 in the same order as they are in the Items collection. This matches
18335 2006-10-06 Chris Toshok <toshok@ximian.com>
18337 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18338 right mouse clicks. Fixes bug #79593.
18340 2006-10-06 Chris Toshok <toshok@ximian.com>
18342 * Splitter.cs: doh, fix splitters that don't want to cancel the
18343 movement when you drag them. Also, impose the limits on the
18344 values we send to the SplitterMovingEvent. Fixes #79598.
18346 2006-10-06 Jackson Harper <jackson@ximian.com>
18348 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18349 since we use this for auto scrolling also.
18351 2006-10-05 Chris Toshok <toshok@ximian.com>
18353 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
18354 beginning to think that most datagrid column types don't need this
18355 method. Fixes bug #79392.
18357 2006-10-05 Chris Toshok <toshok@ximian.com>
18359 * DataGrid.cs: move back to a more lazy scheme for creating the
18360 CurrencyManager, so we aren't updating it every time you set
18361 either DataSource or DataMember. Also, don't call
18362 RecreateDataGridRows if the currency manager hasn't changed.
18364 2006-10-05 Chris Toshok <toshok@ximian.com>
18366 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18367 emitted, SelectedIndex should already be updated. Fixes bug
18370 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
18372 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18373 ToolStripTextBox.cs: Initial commit.
18374 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18376 2006-10-05 Jackson Harper <jackson@ximian.com>
18378 * TabControl.cs: We need to invalidate the tab control area when
18379 new ones are added (duh).
18381 2006-10-03 Chris Toshok <toshok@ximian.com>
18383 * Form.cs (ProcessDialogKey): if the focused control is in this
18384 form and is a button, call its PerformClick method here. Fixes
18387 2006-10-04 Jackson Harper <jackson@ximian.com>
18389 * TabPage.cs: Ignore setting of Visible, and add an internal
18390 method for setting the controls visibility. TabPage's Visible
18391 property is a little strange on MS, this seems to make us
18392 compatible, and fixes cases where people set all the tab pages to
18394 * TabControl.cs: Use the new internal setting on tab pages
18397 2006-10-03 Mike Kestner <mkestner@novell.com>
18399 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18401 2006-10-03 Mike Kestner <mkestner@novell.com>
18403 * ListView.cs : use is_visible instead of Visible to check if
18404 scrollbars should be placed/sized. Also some max_wrap_width
18405 love for LargeIcon view. [Fixes #79533]
18407 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
18410 Make set_TextAlign() do actually update the align. Fixed #78403.
18412 2006-10-03 Chris Toshok <toshok@ximian.com>
18414 * DataGrid.cs: fix a crash when switching datasources if the
18415 vertical scrollbar is at someplace other than Value = 0. Also,
18416 reduce the number of recalculation passes we do in SetDataSource
18419 2006-10-03 Jackson Harper <jackson@ximian.com>
18421 * TextBoxBase.cs: Move the if value the same bail check up, we
18422 don't want to empty the document if it is already empty, this
18423 seems to severly mess up the caret. TODO: I should probably fix
18424 the empty statement to update teh caret somehow.
18426 2006-10-03 Chris Toshok <toshok@ximian.com>
18428 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18429 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18430 reflection, an internal row type, properties on said type, etc.)
18431 will work with our datagrid. Fixes #79531.
18433 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18435 * FileDialog.cs: Don't crash if a path is not accessible
18436 (System.UnauthorizedAccessException). Fixes #79569.
18437 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18438 a ':' too. Return unknown icon for those paths/files.
18440 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
18442 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
18443 GetContainerControl returns null.
18445 2006-10-02 Chris Toshok <toshok@ximian.com>
18447 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18448 call to XGetWindowAttributes instead of "handle". fixes an X
18449 error using notifyicon after the NotifyIconWindow to Form base
18452 2006-10-02 Chris Toshok <toshok@ximian.com>
18454 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18455 server grab and looping we need to do to get down to the most
18456 deeply nested child window.
18457 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18458 QueryPointer again after the WarpPointer so we can generate a
18459 proper (fake) MotionNotify event to be enqueued in the destination
18461 (GetCursorPos): call QueryPointer.
18465 2006-10-02 Jackson Harper <jackson@ximian.com>
18467 * NotifyIcon.cs: Derive the notify icon from a form, so things
18468 like FindForm work on it.
18469 - Swallow the WM_CONTEXTMENU message, since that is generated on
18470 mouse down, and context menu is a mouse up kinda guy. I believe
18471 the correct fix here is probably to make the notify icon entirely
18472 NC area, but this seems to work fine for anyone not manipulating
18475 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
18477 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18478 ToolStripItemCollection.cs, ToolStripLabel.cs,
18479 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18480 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18481 Initial implementation.
18482 * TextRenderer.cs: Provide padding to MeasureText.
18484 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
18486 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18487 of ButtonBaseAccessibleObject. Fix bug #79552.
18489 2006-10-02 Jackson Harper <jackson@ximian.com>
18491 * MdiWindowManager.cs: When maximizing use the containers client
18492 rect, not it's bounds, so nc area is accounted correctly.
18493 - Use the parent form's size for the menu position, since the
18494 client isn't always the full form size.
18496 2006-10-01 Chris Toshok <toshok@ximian.com>
18498 * ScrollableControl.cs: make sure neither right_edge or
18499 bottom_edge are < 0, since they're used as LargeChange for the
18500 horiz/vert scrollbars respectively. Fixes #79539.
18502 2006-10-01 Chris Toshok <toshok@ximian.com>
18504 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18505 the xplatuix11 code can cause us to destroy/recreate our handle.
18509 - this code can be invoked many times for the same Hwnd. Make
18510 sure we only destroy the client window once (the first time this
18511 method is called). This fixes bug #79544.
18512 - Remove the call to the improperly bound XSync. why we had two
18513 bindings to this, I will never know, but this call resulted in
18514 events being discarded from the queue(!).
18515 - correct a misunderstanding of _XEMBED_INFO - the second atom is
18516 not our current state but the state we wish to be in. So, 0 if
18517 we don't want to be mapped. Change it to 1.
18518 (SystrayRemove): The XEMBED spec makes mention of the fact that
18519 gtk doesn't support the reparent of client windows away from the
18520 embedder. Looking at gtksocket-x11.c seems to agree with this.
18521 The only avenue we have for removing systray icons is to destroy
18522 them. We don't want the handle to go away for good, though, so
18523 call InternalRecreateHandle on the NotifyIconWindow. Fixes
18526 2006-10-01 Chris Toshok <toshok@ximian.com>
18528 * Form.cs (WndProc): inline the native_enabled variable usage into
18529 the cases in which it's used. Fixes #79536.
18531 2006-09-29 Mike Kestner <mkestner@novell.com>
18533 * ListView.cs : toggle the selection state for ctrl clicks in
18534 multiselect mode. [Fixes #79417]
18536 2006-09-29 Mike Kestner <mkestner@novell.com>
18538 * ListView.cs : kill CanMultiSelect and refactor the selection
18539 code to support multiselection in the absence of mod keys. Steal
18540 arrow/home/end keys by overriding InternalPreProcessMessage to
18541 restore regressed keynav behavior.
18544 2006-09-29 Jackson Harper <jackson@ximian.com>
18546 * MdiClient.cs: Repaint the titlebars when the active window is
18549 2006-09-29 Chris Toshok <toshok@ximian.com>
18551 * Application.cs: when entering a runloop with a modal, make sure
18552 the hwnd is enabled. Fixes #79480.
18554 2006-09-29 Chris Toshok <toshok@ximian.com>
18556 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18557 when ListManager.CanAddRows == false, bump us back one.
18559 * DataGridColumnStyle.cs (ParentReadOnly): remove the
18560 listmanager.CanAddRows check. This makes ArrayLists uneditable
18561 using a datagrid, which is not right.
18562 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18563 is an IEditable, but call property_descriptor.SetValue regardless.
18566 2006-09-29 Chris Toshok <toshok@ximian.com>
18568 * DataGridBoolColumn.cs: we need to test equality in the face of
18569 possible null values (as is the case with the default NullValue).
18570 This patch keeps us from crashing in that case.
18572 2006-09-29 Jackson Harper <jackson@ximian.com>
18574 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18575 here, since it will get called for every node collection in the
18576 tree. This is now done in the treeview once the sorting is
18578 * TreeView.cs: Recalculate the visible order, and update the
18579 scrollbars after sorting, set the top nope to the root so that the
18580 recalc actually works.
18582 2006-09-29 Chris Toshok <toshok@ximian.com>
18584 * LinkLabel.cs: more handling of the default link collection in
18585 the face of LinkArea manipulation. The default link collection
18586 contains 1 element (start=0,length=-1). If the user sets LinkArea
18587 to anything and the links collection is the default, clear it.
18588 Then only add the link if its nonempty. Fixes #79518.
18590 2006-09-29 Chris Toshok <toshok@ximian.com>
18592 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18593 piece correctly when we hit a '\n'. Fixes #79517.
18595 2006-09-29 Chris Toshok <toshok@ximian.com>
18597 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18598 change the binding of gdk_init_check to take two IntPtr's, and
18599 pass IntPtr.Zero for both of them. Fixes #79520.
18601 2006-09-29 Mike Kestner <mkestner@novell.com>
18603 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18606 2006-09-28 Jackson Harper <jackson@ximian.com>
18608 * XplatUIX11.cs: When translating NC messages make sure we go from
18609 whole window to screen, not client window to screen.
18610 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18611 method doesn't exist
18612 - Skip over controls that aren't forms when arranging.
18614 2006-09-28 Jackson Harper <jackson@ximian.com>
18616 * XplatUIWin32.cs: Clip the rect to the parent window.
18617 * XplatUIStructs.cs: Add clipping modes struct.
18618 * InternalWindowManager.cs: New private method that factors title
18619 bar heights in when calculating the pos of an NC mouse message.
18620 - Use SendMessage to force a paint when the form's size is changed
18621 instead of painting the decorations immediately.
18622 - Don't let the NC button click messages get to DefWndProc,
18623 because they will attempt to handle windowing themself, and this
18624 messes up z-order (it will put them in front of the scrollbars).
18625 * XplatUIX11.cs: Make sure that we don't reset window managers if
18626 we already have one (ie the window is an MDI window).
18628 2006-09-28 Chris Toshok <toshok@ximian.com>
18630 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
18631 menu code really needs going over.
18633 2006-09-27 Chris Toshok <toshok@ximian.com>
18635 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
18636 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18637 window is maximizable. So, we need to make sure that even if we
18638 clear the border/wm frame of those functions, they're still
18639 available (basically, we remove the decoration without removing
18640 the function). Half the fix for #79338.
18642 2006-09-27 Chris Toshok <toshok@ximian.com>
18644 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18647 2006-09-27 Chris Toshok <toshok@ximian.com>
18649 * Splitter.cs: reorder things a bit so that we don't actually
18650 draw/move the splitter until after calling OnSplitterMoving. This
18651 lets users cancel/disallow the movement by explicitly setting
18652 event.SplitX/SplitY. Fixes #79372.
18654 2006-09-27 Jackson Harper <jackson@ximian.com>
18656 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18657 because it is most likely on a window being destroyed, and that
18658 will give us an X11 error.
18660 2006-09-27 Chris Toshok <toshok@ximian.com>
18662 * PropertyGridView.cs: half of the fix for #78190. Clicking on
18663 the dropdown button now toggles between showing and hiding the
18664 dropdown. Also, get rid of dropdown_form_showing and just use
18665 dropdown_form.Visible. We still don't do a grab, but I'll leave
18666 that part to someone who has handled Capture-fu before.
18668 2006-09-27 Chris Toshok <toshok@ximian.com>
18670 * DataGrid.cs: return false if alt isn't pressed when '0' is
18671 pressed. this keeps the '0' key from being swallowed, and fixes
18674 2006-09-27 Chris Toshok <toshok@ximian.com>
18676 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18677 Calling Refresh (in response to a scrollbar event) screws up the
18678 scrollbar painting. Fixes bug #78923.
18680 2006-09-27 Chris Toshok <toshok@ximian.com>
18682 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18683 then insert into hashtable" blocks threadsafe.
18685 2006-09-27 Chris Toshok <toshok@ximian.com>
18687 * MessageBox.cs (CreateParams): the styles should be |'ed with our
18688 baseclass's, since otherwise the
18689 ControlBox/MinimizeBox/MaximizeBox assignments above have no
18690 effect. This gets the close button back in messageboxes.
18692 2006-09-27 Chris Toshok <toshok@ximian.com>
18694 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18695 flag, not just != 0. this makes flags that are actually multiple
18696 bits (like WS_CAPTION) work. fixes bug #79508.
18698 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
18700 * PageSetupDialog.cs: add support for getting and settings the
18701 paper size, source and orientation.
18703 2006-09-26 Chris Toshok <toshok@ximian.com>
18705 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18706 and caption == "", we need to remove the resize handles as well as
18709 * Control.cs (set_Text): turns out that setting Text on a form
18710 should change the WM styles on the window, since if ControlBox ==
18711 false, the only way to get a window border is to have a non-""
18712 Text property. check winforms/forms/text.cs for an example. so,
18713 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18714 update both window styles and title. This fixes a lot of dialogs
18715 (including the preferences dialog in MonoCalendar.)
18717 2006-09-26 Chris Toshok <toshok@ximian.com>
18719 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18720 control isn't a Form), call Win32ShowWindow to hide the window,
18721 but don't update the control Visible property. When we reparent
18722 back to a parent control, call SetVisible in order for the
18723 window's visibility to be reinstated.
18725 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18728 * Control.cs (ControlCollection.Remove): remove that value.Hide()
18729 call for good, since it breaks MonoCalendar (and other things I'm
18730 sure.) Also, set all_controls to null *after* the owner calls,
18731 which end up regenerating it.
18732 (ChangeParent): allow new_parent to be == null, passing
18733 IntPtr.Zero down to XplatUI.
18735 this fixes #79294 the right way.
18737 2006-09-26 Mike Kestner <mkestner@novell.com>
18739 * GridEntry.cs : internal SetParent method.
18740 * PropertyGrid.cs : attach to property changed on the proper
18741 target if we have a hierarchical grid with subobjects. Setup
18742 GridItem.Parent for hierarchical items.
18743 * PropertyGridView.cs : Set value on the correct target for
18744 hierarchical grids. [Fixes #78903]
18746 2006-09-26 Chris Toshok <toshok@ximian.com>
18748 * Control.cs (ChildNeedsRecreating): this should return true if
18749 either we're being recreated and the child is in our list, or our
18750 parent is waiting for our recreation.
18752 2006-09-26 Chris Toshok <toshok@ximian.com>
18754 * Control.cs (ControlCollection.Remove): reinstate the
18755 value.Hide() call as suggested in bug #79294.
18757 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
18759 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18760 coordinates (versus a relative move).
18762 2006-09-26 Chris Toshok <toshok@ximian.com>
18764 * Control.cs: rework child recreation a little bit. It turns out
18765 that we race between the DestroyNotify the WM_DESTROY message. If
18766 the parent gets its DestroyNotify before the child gets the
18767 WM_DESTROY message, the child ends up not recreating (since the
18768 parent finishes its recreation on DestroyNotify, and the child
18769 checks ParentIsRecreating.)
18771 So, instead we store off a list of all the child controls which
18772 need to be recreated when the parent control starts to recreate
18773 itself. Then, when child controls get their WM_DESTROY message we
18774 check to see if they're in the parent's pending recreation list,
18775 and if so, we recreate. This removes all dependency on ordering
18776 from the code and fixes the initial MonoCalendar upgrade dialog.
18778 2006-09-26 Jackson Harper <jackson@ximian.com>
18780 * TextControl.cs: Use the Line to get the length of the line,
18781 since soft line breaks can change the end line.
18783 2006-09-26 Chris Toshok <toshok@ximian.com>
18785 * Control.cs (ControlCollection.AddImplicit): don't add the
18786 control again if it's already in one of our lists. This keeps us
18787 from adding controls over and over again for comboboxes when their
18788 handle gets recreated (as the combobox adds implicit controls in
18789 OnHandleCreated). Fixes the X11 errors in bug #79480.
18791 2006-09-26 Jackson Harper <jackson@ximian.com>
18793 * TextControl.cs: When deleting characters make sure that any
18794 orphaned zero lengthed tags get deleted.
18795 - Fix ToString for zero lengthed tags.
18797 2006-09-25 Jackson Harper <jackson@ximian.com>
18799 * TextControl.cs: When getting a tag at the location there can be
18800 multiple tags at the same spot, these are 0-lengthed tags that
18801 appear when extra formatting has been stuck in a location. We
18802 need to pull out the last of these 0 lengthed tags.
18804 2006-09-25 Jackson Harper <jackson@ximian.com>
18806 * TextControl.cs: Fix print out in debug method.
18807 * TextBoxBase.cs: When text is set bail if we are setting to the
18810 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
18812 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18813 It is now possible to change the selected index in a FontXXXListBox
18814 with the up and down arrow keys from the FontXXXTextBoxes.
18815 Also, send the FontXXXTextBox mouse wheel event to the corresponding
18816 FontXXXListBoxes to match ms.
18818 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
18820 * SystemInformation.cs: Return a clone of the theme's MenuFont because
18821 anyone can dispose it, anytime. All other properties returns enums,
18822 structs or basic types so they don't need such tricks.
18824 2006-09-22 Jackson Harper <jackson@ximian.com>
18831 * XplatUIDriver.cs: Update interface to add a primary selection
18832 flag, so the driver can use the primary selection buffer if
18834 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18836 * RichTextBox.cs: We need to supply the data object to paste now
18837 (so we can choose to supply CLIPBOARD or PRIMARY).
18838 * TextBoxBase.cs: Supply data object to paste (see above).
18839 - Middle click uses the primary selection data object.
18841 2006-09-21 Chris Toshok <toshok@ximian.com>
18843 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18844 of SetWMStyles. It's still a rat's nest and is largely
18845 order-dependent which I dislike immensely. This also fixes the X
18846 button disappearing from toplevel forms.
18848 2006-09-21 Mike Kestner <mkestner@novell.com>
18850 * ListBox.cs: move Jordi's click/dblclick raising code to the
18853 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
18855 * ListBox.cs: Fixes 79450
18857 2006-09-21 Mike Kestner <mkestner@novell.com>
18859 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18860 to deal with people updating the TreeNodeCollection after the tree
18861 is disposed. "Fixes" 79330.
18863 2006-09-20 Jackson Harper <jackson@ximian.com>
18865 * TextControl.cs: Push the cursor record onto the undo stack
18866 before the delete action. This fixes 78651.
18868 2006-09-20 Jonathan Chambers <joncham@gmail.com>
18870 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
18871 CreateParams. Fixes 79329.
18873 2006-09-19 Chris Toshok <toshok@ximian.com>
18875 * XplatUIX11.cs: a couple of blanket code massage passes to clean
18876 things up a bit. First, get rid of the NetAtoms array (and the NA
18877 enum), and just embed the atoms as static fields. Also, add a
18878 couple of functions (StyleSet and ExStyleSet) to clean up all the
18879 bitmask testing of styles.
18881 * X11Structs.cs: remove the NA enum, not needed anymore.
18883 2006-09-19 Chris Toshok <toshok@ximian.com>
18885 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
18886 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
18887 added cleanup to get MessageBox titles appearing again, which were
18888 broken by my earlier fix for caption-less/ControlBox-less windows.
18890 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
18892 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
18893 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
18894 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
18895 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
18896 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
18897 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
18898 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
18899 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
18900 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
18901 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
18902 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
18904 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
18905 ToolStripButton.cs: Stubs needed for above.
18906 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
18908 2006-09-15 Chris Toshok <toshok@ximian.com>
18911 - make the MessageQueues hashtable Synchronized.
18913 - SendMessage: if the Hwnd is owned by a different thread, use the
18914 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
18915 thread. Fixes bug #79201.
18917 2006-09-15 Chris Toshok <toshok@ximian.com>
18919 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
18920 ControlBox == false, we disallow maximize/minimize/close. If the
18921 form Caption is "" we also disallow move (and get rid of the Title
18922 decoration). Unfortunately, regardless of how things are set,
18923 we're stuck with the Title and WM menu.
18925 2006-09-15 Chris Toshok <toshok@ximian.com>
18927 * Application.cs: add locking around the static message_filters
18928 ArrayList, part of #79196.
18930 2006-09-15 Chris Toshok <toshok@ximian.com>
18932 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18933 Form.ControlBox == false, the window has no titlebar nor resize
18934 handles. fixes bug #79368.
18936 2006-09-15 Chris Toshok <toshok@ximian.com>
18938 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18939 >= 0. Fixes bug #79370.
18941 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
18942 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18944 Add properties: LayoutEngine, Margin, DefaultMargin.
18945 Add method: GetPreferredSize.
18946 Move layout logic from PerformLayout to layout engines.
18948 2006-09-13 Chris Toshok <toshok@ximian.com>
18950 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
18951 fix for #79326 broke #78718, so this change addresses that.
18953 - in SendWMDestroyMessages remove the call to
18954 CleanupCachedWindows, since we might be recreating the control and
18955 need to maintain the references to right Hwnd handles. Also, set
18956 the zombie flag to true for each of the children in the hierarchy
18957 instead of calling hwnd.Dispose. This will cause GetMessage to
18958 ignore all events for the window except for DestroyNotify.
18960 - In GetMessage, ignore messages except for DestroyNotify for
18963 * Control.cs: revert the is_recreating fix from the last
18964 ChangeLog. It's definitely "right", but it breaks switching from
18965 an MDI form to a non-MDI form. Will need to revisit that.
18967 * Hwnd.cs: add a zombie flag, which means "the
18968 client_window/whole_window handles are invalid, but we're waiting
18969 for the DestroyNotify event to come in for them". Set the flag to
18970 false explicitly if setting WholeWindow/ClientWindow, and also
18973 2006-09-13 Chris Toshok <toshok@ximian.com>
18975 * XplatUIX11.cs: rework window destruction slightly.
18977 - when destroying the windows associated with a control, we don't
18978 need 2 separate XDestroyWindow calls. Just the one for the
18979 whole_window (or for client_window if whole_window is somehow
18980 IntPtr.Zero -- can this happen?) is enough.
18982 - reworked SendWMDestroyMessages slightly, so we always dispose
18983 the child control hwnd's after sending the messages.
18985 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
18986 the two places it was used (one was even using hwnd.Handle and the
18987 other hwnd.client_window. ugh), adding another call in
18988 SendWMDestroyMessages. We need this new call because now the
18989 DestroyNotify events in the queue will be ignored for the child
18990 controls (as their hwnd's were disposed, and the window id's
18991 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
18993 - this fixes bug #79326.
18995 2006-09-13 Chris Toshok <toshok@ximian.com>
18997 * Control.cs: don't always set is_recreating to false at the end
18998 of RecreateHandle, since sometimes we're not done (and won't be
18999 until WndProc handles the WM_DESTROY message). Also, set
19000 is_recreating to false in the WM_DESTROY handling code. Part of
19001 the fix for bug #79326.
19003 2006-09-13 Miguel de Icaza <miguel@novell.com>
19005 * X11DesktopColors.cs: Start the droppage of debugging messages.
19007 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19009 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
19011 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19013 2006-09-12 Chris Toshok <toshok@ximian.com>
19015 * DataGrid.cs (get_ListManager): if the list_manager is null, try
19016 to create it using SetDataSource. Fixes bug #79151.
19018 2006-09-11 Chris Toshok <toshok@ximian.com>
19020 * XEventQueue.cs: add a DispatchIdle property.
19022 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19023 either the queue is null, or the queue has DispatchIdle set to
19025 (DoEvents): set queue.DispatchIdle to false around the
19026 peek/translate/dispatch message loop in this method. This keeps
19027 Application.Doevents from emitting idle events. Part of the fix
19030 2006-09-11 Chris Toshok <toshok@ximian.com>
19032 * DataGrid.cs (set_DataSource): make this work for both the
19033 winforms/datagrid test and ReportBuilder. It seems as though when
19034 we've created a ListManager (or maybe it's if we have a
19035 BindingContext?), when we set the DataSource it clears the
19036 DataMember to "". otherwise we reuse the datamember. Fixes bug
19039 2006-09-11 Chris Toshok <toshok@ximian.com>
19041 * XplatUIX11.cs: deal with queue being null, which happens in all
19042 the Clipboard functions. Fixes one of the two problems mentioned
19045 2006-09-11 Chris Toshok <toshok@ximian.com>
19047 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19048 button on various spots (including outside the menu) works closer
19049 to MS, and doesn't crash. Fixes #79343.
19051 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
19053 * ListView.cs: Do not initialize item_sorter in init. To match MS,
19054 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19055 and the internal comparer is set. When a new ListViewItemSorter is set,
19056 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19057 was specified. No further processing is necessary if SortOrder is set
19058 to it's current value. If Sorting is modified to None, and View is
19059 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19060 (either custom or our internal ItemComparer) to null, on 1.0 profile
19061 only set item_sorter to null if its our internal IComparer. If Sorting
19062 is modified to Ascending or Descending, then use our internal IComparer
19063 if none is set, and if the current IComparer is our internal one then:
19064 on 2.0 profile always replace it with one for new Sorting, and on 1.0
19065 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19066 Enum.IsDefined to verify whether a valid View value is specified in
19067 its setter. Automatically sort listview items when listview is
19068 created. In Sort, do nothing if ListView is not yet created, or if
19069 no item_sorter is set (no Sorting was set, Sorting was explicitly set
19070 to None or ListViewItemSorter was set to null). Added Sort overload
19071 taking a bool to indicate whether the ListView should be redrawn when
19072 items are sorted (we use this in ListViewItemCollection to avoid double
19073 redraws). Modified our internal IComparer to take the sort order into
19074 account. In Add and AddRange methods of ListViewItemCollection, also
19075 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19076 view), but use overload with noredraw option to avoid double redraw.
19077 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19078 true when View is Tile, and do the same when attempting to set View to
19079 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19080 for selected/checked indices, as it involves overhead when sorting is
19081 done while these collections are not used all that often. Instead
19082 we'll build the indices on demand. Modified IList implementation of
19083 CheckedIndexCollection to use public methods if object is int.
19084 Modified CheckedListViewItemCollection to hide checked items if
19085 ListView.CheckBoxes is false. Removed LAMESPEC remark in
19086 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19087 IList implementation in SelectedIndexCollection to use public methods
19088 if object is int. Modified SelectedListViewItemCollection to hide
19089 selected items if listview is not yet created.
19090 * ListViewItem.cs: CheckedIndices list no longer needs to be
19091 maintained separately (see ListView changes). Also clone font, fixes
19094 2006-09-11 Mike Kestner <mkestner@novell.com>
19096 * ComboBox.cs: if we are updating the contents of the currently
19097 selected index, refresh the control or the textbox selection.
19100 2006-09-11 Mike Kestner <mkestner@novell.com>
19102 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
19103 the 'specified' logic has been moved there. This seems like a bug
19104 in Control.cs, since our current SetBoundsCore completely ignores
19105 the specified parameter. Peter's commit seems to indicate that is
19106 the way the MS control implementation works. [Fixes #79325]
19108 2006-09-10 Jonathan Chambers <joncham@gmail.com>
19110 * XplatUI.cs: Set default_class_name to be composed
19111 of current domain id. This allows MWF to be loaded in multiple
19114 2006-09-09 Miguel de Icaza <miguel@novell.com>
19116 * X11Keyboard.cs: If we are unable to obtain the input method, do
19117 not call CreateXic to create the input context. Should fix
19120 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
19122 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19123 Simplified gnome support by adding more pinvokes to get the
19124 icon for a file or mime type.
19126 2006-09-08 Jackson Harper <jackson@ximian.com>
19128 * MenuAPI.cs: Deslect popup context menu items before closing the
19129 window, so that you don't see the previously selected item
19130 selected when you reopen the menu.
19131 * TextControl.cs: Update the cursor position even if we don't have
19132 focus. This fixes typing in things like the ComboBox. I'm not
19133 totally sure we should always set the visibility if we don't have
19134 focus, but couldn't find any corner cases where the cursor showed
19135 up when it shouldn't.
19137 2006-09-08 Chris Toshok <toshok@ximian.com>
19139 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19140 our arrays are length 256. & 0xff before indexing. Fixes the
19141 crash in bug #78077.
19143 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19145 * ThemeWin32Classic.cs:
19146 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19147 is true. Handle that check box too.
19149 2006-09-07 Chris Toshok <toshok@ximian.com>
19151 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
19154 2006-09-07 Chris Toshok <toshok@ximian.com>
19156 * Control.cs: in set_BackColor only do the work if
19157 background_color != value.
19159 * XplatUIX11.cs: move the clearing of invalid areas (both client
19160 and nc) to the same block of code where we set (nc_)expose_pending
19161 to false. That is, move it from PaintEventEnd to PaintEventStart,
19162 so things that cause invalidates from within OnPaint will trigger
19163 another call to OnPaint. Fixes bug #79262.
19165 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
19167 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19168 * FileDialog.cs: Fix typo
19170 2006-09-07 Jackson Harper <jackson@ximian.com>
19172 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
19173 for tab pages if they have any.
19175 2006-09-06 Mike Kestner <mkestner@novell.com>
19177 * Splitter.cs: use the "current" rect when finishing drag handle
19178 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
19180 2006-09-06 Mike Kestner <mkestner@novell.com>
19182 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19183 support offset splitters. [Fixes #79298]
19185 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
19187 * Mime.cs: Fixed a bug that could override the global mime type
19190 2006-09-05 Jackson Harper <jackson@ximian.com>
19192 * TabControl.cs: Better calculation method for setting the slider
19193 pos. Prevents crashes on really wide tabs.
19194 - Draw Image on tab pages if an image list is used.
19196 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19198 * MonthCalendar.cs: When Font changes, the Size should be
19199 updated to fit the new font's space requirements.
19201 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
19203 * ListBox.cs: If the items are cleared with Items.Clear set
19206 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19208 * MonthCalendar.cs: Handle arrow keys as input keys. Also
19209 fire DateChanged event instead of DateSelected event when
19210 the date was changed by keyboard interaction.
19212 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19214 * DateTimePicker.cs: Handle DateChanged for the associated
19215 month_calendar control, and set month_calendar.Font from
19216 OnFontChanged method, as well as resize the height of the
19217 control when needed. Make PreferredHeight proportional.
19219 2006-09-01 Chris Toshok <toshok@ximian.com>
19221 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19224 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19226 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
19228 * FileDialog.cs: Set ClientSize instead of window size, to allow space
19229 for decorations (Fixes #79219)
19231 2006-09-01 Mike Kestner <mkestner@novell.com>
19233 * ComboBox.cs: first stab at sorting plus some selection handling
19234 fixes to bring us more in line with MS behavior. Also switches back
19235 to index based selection. Alternative patches for index-based
19236 selection were provided by Jackson Harper, Carlos Alberto Cortez,
19237 and latency@gmx.de on bug 78848. I assume they were similar to this
19238 code I've had simmering in my tree forever.
19241 2006-09-01 Chris Toshok <toshok@ximian.com>
19243 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19244 when setting list position guard against ending up with a -1 index
19245 (the other part of the fix for #78812). Should probably make sure
19246 we don't need the analogous fix in the ItemDeleted case.
19249 - in SetDataSource, work around the fact that the way
19250 OnBindingContextChanged is invoked will cause us to re-enter this
19251 method. I'll remove the hack once I investigate
19252 OnBindingContextChanged.
19254 - fix the logic in set_DataSource and set_DataMember (basically
19255 what to do if the other of the two is null.)
19257 - in OnListManagerItemChanged, we need to take into account the
19258 edit row when deciding whether or not to call RecreateDataGridRows
19259 (part of the fix for #78812).
19261 2006-09-01 Jackson Harper <jackson@ximian.com>
19263 * Splitter.cs: Don't do anything if there is no control to affect
19264 (prevents us from crashing in weird tet cases).
19265 * TreeView.cs: Bounding box for the mouse movement reverting
19266 focus/selection back to previously selected node. This matches
19267 MS, and makes the tree a lot more useable.
19268 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19269 use clipping so they are not drawn. This fixes when the control
19270 is set to have a transparent background, or if it was over an
19273 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
19275 * MimeIcon.cs: Improved handling for reading default icons when
19276 using gnome (2.16 made it necessary). Check and read svg icons
19277 first, then 48x48 and then 32x32 icons.
19279 2006-08-31 Chris Toshok <toshok@ximian.com>
19281 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19284 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19285 ProcessKeyPreview. Fixes part of #77806.
19287 * DataGrid.cs: big patch.
19289 - revert the queueing up of DataSource/DataMember if inside
19290 BeginInit/EndInit calls. That's not the way the datagrid achieves
19291 its delayed databinding. Instead, call SetDataSource in
19292 OnBindingContextChanged. This mimic's MS's behavior, and fixes
19295 - Also, it wasn't mentioned in #78811, but the test case exhibits
19296 behavior that was lacking in our datagrid implementation - Columns
19297 that have mapping names that don't exist in the datasource's
19298 properties aren't shown. Yuck. To fix this I added the bound
19299 field to the column style, and basically any calculation to figure
19300 out anything about columns uses a loop to find the bound columns.
19301 still need to investigate if I can cache an array of the bound
19302 columns or if the indices must be the same.
19304 - When setting CurrentCell, we no longer abort if the cell being
19305 edited was in the add row. This fixes the other part of #77806.
19307 - The new code also fixes #78807.
19309 * ThemeWin32Classic.cs: perpetrate the same disgusting
19310 column.bound field hack, and only render bound fields.
19312 2006-08-31 Chris Toshok <toshok@ximian.com>
19314 * DataGridColumnStyle.cs: add bound field. this field is true if
19315 the datasource has a property corresponding to the mapping name.
19317 * DataGridTableStyle.cs: set the bound field on the column styles
19318 depending on whether or not we have a column for that property.
19320 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
19322 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
19323 splitter control (fixes #79228)
19325 2006-08-31 Chris Toshok <toshok@ximian.com>
19327 * DataGridColumnStyle.cs: we need to delay the assignment of
19328 property descriptor until the last possible moment due to the lazy
19329 databinding stuff in the datagrid. Also, fix the exceptions
19330 thrown by CheckValidDataSource to match MS.
19332 2006-08-31 Jackson Harper <jackson@ximian.com>
19334 * Form.cs: When activated select the active control, if there is
19335 no active control, we select the first control.
19336 * XplatUIX11.cs: If there is no focus control when we get a
19337 FocusIn event, find the toplevel form and activate it. This
19338 occurs when you popup a window, it becomes the focus window, then
19339 you close that window, giving focus back to the main window.
19341 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19343 * MonthCalendar.cs:
19344 * ThemeWin32Classic.cs: Cache Font in bold style, as well
19345 as StringFormat with Center alignments in MonthCalendar,
19346 instead of creating new ones when drawing the control.
19347 Also, draw the month name in bold style.
19349 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
19352 - PerformLayout(): It would seem MS performs the fill even if the
19353 control is not visible (part of #79218 fix)
19354 - ResetBackColor(): Use the setter to reset the color, to allow
19355 overriders to catch the change.
19357 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19358 - CreateHandle(): dito (part of $79218 fix)
19359 - Don't set an icon if we have a dialog
19360 * ScrollableControl.cs:
19361 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19362 - ScrollIntoView(): No need to scroll if control is already visible
19363 (resolves fixme and fixes #79218)
19365 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19367 * MonthCalendar.cs: Change proportions in SingleMonthSize
19368 to match the aspect of the original control.
19370 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
19372 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19373 get updated when they get maximized.
19375 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
19377 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19379 2006-08-29 Chris Toshok <toshok@ximian.com>
19381 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19383 2006-08-29 Jackson Harper <jackson@ximian.com>
19385 * TreeView.cs: Need to track selected node and highlighted node,
19386 they aren't always the same thing, when the mouse is down on a
19387 node it is hilighted, but not selected yet.
19388 - Do the HideSelection stuff right
19389 - Need to focus on rbutton mouse down. And redraw selection when
19390 right click is mouse upped.
19392 2006-08-29 Mike Kestner <mkestner@novell.com>
19394 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19395 when SubItems.Count < Columns.Count. [Fixes #79167]
19397 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19399 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19401 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19403 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19404 from X. Only send based on ConfigureNotify if we don't have the
19405 correct location in hwnd (if the window manager moved us)
19407 2006-08-28 Mike Kestner <mkestner@novell.com>
19409 * ListView.cs: remove a TODO.
19410 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19411 [Fixes ListView part of #79166]
19413 2006-08-28 Mike Kestner <mkestner@novell.com>
19415 * ListView.cs: move wheel handler to parent since it is focused
19416 instead of the item_control now. [Fixes #79177]
19418 2006-08-28 Mike Kestner <mkestner@novell.com>
19420 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19421 when the control is focused. [Fixes #79171]
19423 2006-08-28 Mike Kestner <mkestner@novell.com>
19425 * ListView.cs: size the item and header controls for empty and
19426 unscrollable views.
19427 * ThemeWin32Classic.cs: draw disabled backgrounds.
19430 2006-08-28 Chris Toshok <toshok@ximian.com>
19432 * Form.cs: remove unused "active_form" static field.
19434 * Hwnd.cs: lock around accesses to static windows collection.
19436 * Application.cs: lock threads in Exit ().
19438 2006-08-28 Chris Toshok <toshok@ximian.com>
19440 * NativeWindow.cs: lock around accesses to window_collection.
19442 2006-08-28 Chris Toshok <toshok@ximian.com>
19444 * Control.cs: err, fix this the right way, by locking on controls
19445 when using it. not by making it synchronized.
19447 2006-08-28 Chris Toshok <toshok@ximian.com>
19449 * Control.cs: make the static "controls" field synchronized, as it
19450 gets updated from multiple threads.
19452 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19454 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19455 Prevent other threads from exiting when calling thread sets quit state.
19456 * XEventQueue.cs: Added PostQuitState property
19458 2006-08-27 Chris Toshok <toshok@ximian.com>
19460 * AsyncMethodData.cs: add a slot for the window handle.
19462 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19463 window (the destination control's window, not the foster window).
19465 * Control.cs (BeginInvokeInternal): store the window's handle in
19466 the AsyncMethodData.
19469 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19472 - PostQuitMessage: Removed resetting S.D display handle, we might have
19473 another loop started after calling PostQuitMessage (Fixes #79119)
19474 - Created destructor to reset S.D handle
19476 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19478 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19480 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19482 * TextControl.cs (Insert): Update the caret position even if we don't
19483 have a handle yet, just don't call the driver in that case.
19484 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19485 to the end of the new selection text (Fixes #79184)
19487 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19489 * Form.cs (Activate): Only activate if the handle is created)
19491 - Mark window as invisible when it's disposed
19492 - Check if window handle is created when setting window visible,
19493 instead of relying just on the is_created variable
19494 - Check if object is disposed when creating the control (Fixes #79155)
19496 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19498 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19499 when allowing layout again. Otherwise we re-generate the anchoring
19500 distance to the border again and actually alter what the user wanted
19501 This is ugly, it'd be better if we used DisplayRectangle instead of
19502 ClientRectangle for Control.UpdateDistances, but that causes us to
19503 have other problems (initial anchoring positons would be wrong)
19506 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19509 - The size and location setters shouldn't go directly to
19510 SetBoundsCore, but to SetBounds, which triggers layout on the
19511 parent, then calls SetBoundsCore. (Related to fix for #78835)
19512 - SetBounds: Moved actual location update code into this function
19513 from SetBoundsCore, to match MS. Added call to PerformLayout if
19514 we have a parent (to trigger resizing of anchored parents if the
19515 child size has changed (see testcase for #78835)
19516 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
19518 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19520 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19522 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19523 System.Drawing when a toplevel window gets closed; there might
19524 be other toplevel windows belonging to the same app (Fixes #78052)
19526 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
19528 * FileDialog.cs: After reading FileDialog settings from mwf_config
19529 use Desktop prefix only if a real folder doesn't exist anymore.
19530 * FontDialog.cs: Added char sets.
19531 It is now possible to select the font, size or style with the
19534 2006-08-25 Kornél Pál <kornelpal@gmail.com>
19536 * PrintPreviewDialog.cs: Use assembly name constants.
19538 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19540 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19541 scrollbar from whacking it's buttons)
19543 2006-08-24 Chris Toshok <toshok@ximian.com>
19545 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
19546 in this patch (aggregating setting Left/Top/Width/Height to
19547 setting Bounds on the scrollbars), but the crux of the fix is in
19548 Recalculate, where we scroll by the remaining scroll_position if
19549 we're hiding a scrollbar. The 2*$5 reward in the comment is
19552 2006-08-24 Jackson Harper <jackson@ximian.com>
19555 * MdiWindowManager.cs: If the form is made a non-mdi window we
19556 need to remove the form closed event so that closing forms works
19559 2006-08-24 Jackson Harper <jackson@ximian.com>
19561 * Control.cs: Make IsRecreating internal so that the driver can
19563 - Temporarily remove the Hide when controls are removed, its
19564 making a whole bunch of things not work because visibility isn't
19565 getting reset elsewhere correctly
19566 * Form.cs: Need to do a full handle recreation when the mdi parent
19568 * XplatUIX11.cs: If we are recreating handles don't dispose the
19569 HWNDs. What was happening is the handles were being recreated in
19570 SendWMDestroyMessages, but then flow continued on in that method
19571 and destroyed the new handles.
19573 2006-08-23 Jackson Harper <jackson@ximian.com>
19575 * Form.cs: MdiClient is always at the back of the bus
19576 * Control.cs: When the order of items in the collection is changed
19577 we need to reset the all_controls array
19578 - do the same sorta setup thats done when adding a control when a
19579 control is set on the collection.
19581 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19583 * TextBoxBase.cs (get_Text): Return an empty array if our document
19584 is empty (fixes #79052)
19586 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19588 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19589 on WM_SYSCHAR messages (fixes #79053)
19591 2006-08-23 Chris Toshok <toshok@ximian.com>
19593 * DataGrid.cs: fix flickering when scrolling vertically.
19595 2006-08-23 Chris Toshok <toshok@ximian.com>
19597 * DataGrid.cs (EndEdit): only invalidate the row header when we
19600 2006-08-23 Chris Toshok <toshok@ximian.com>
19602 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19603 methods. fixes the flicker when scrolling around.
19605 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19607 * FileDialog.cs: Making sure the control is created before we get a
19608 chance to use it with BeginInvoke (Fixes #79096)
19610 2006-08-23 Chris Toshok <toshok@ximian.com>
19612 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19613 width to use when painting the rows.
19615 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19618 - Throw ArgumentException if a negative value is passed to SelectionLength
19619 - Update the selection end if start is moved. end needs to be always
19620 after start. (Fixes #79095)
19621 - Track selection length; MS keeps the selection length even if start
19622 is changed; reset on all other operations affection selection
19624 2006-08-22 Jackson Harper <jackson@ximian.com>
19626 * TreeView.cs: Make sure both scrollbars get displayed and sized
19627 correctly when the other bar is visible.
19628 - Use the original clip rectangle for checking if the area between
19629 the two scrollbars is visible, not the viewport adjusted clipping
19632 2006-08-22 Jackson Harper <jackson@ximian.com>
19634 * Binding.cs: We don't use IsBinding because it requires the
19635 control to be created, which really shouldn't be necessary just to
19636 set a property on the control.
19638 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19640 * ComboBox.cs: Some CB.ObjectCollection methods must throw
19641 ArgumentNullReferenceException when the argument is null.
19643 2006-08-21 Jackson Harper <jackson@ximian.com>
19645 * Timer.cs: Track the thread that the timer is started in (NOT
19646 CREATED), this way messages for it will only be triggered on its
19648 * XEventQueue.cs: Track the timers here, this makes timers per
19650 * XplatUIX11.cs: The timers are moved to the XEventQueue.
19652 2006-08-19 Chris Toshok <toshok@ximian.com>
19654 * XplatUIX11.cs: after further communication with pdb, we get the
19655 best of both worlds. SetZOrder working for un-Mapped windows, and
19656 no X errors for un-mapped windows.
19658 2006-08-19 Chris Toshok <toshok@ximian.com>
19660 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19661 as it was causing pdn toolbars to not have the correct stacking.
19663 2006-08-18 Mike Kestner <mkestner@novell.com>
19665 * ListView.cs : guard against negative ClientArea.Width in scrollbar
19666 calculation. Not sure why control should ever be setting a negative
19667 width though. Fixes #78931.
19669 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19671 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19672 null items in ObjectCollection class.
19673 * ListBox.cs.: Likewise.
19675 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
19677 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19678 as the base method in ThemeWin32Classic should work fine.
19681 2006-08-18 Jackson Harper <jackson@ximian.com>
19683 * Binding.cs: When validating if the value entered doesn't convert
19684 properly reset to the old value.
19685 * RadioButton.cs: Don't fire click when we get focus.
19687 2006-08-18 Jackson Harper <jackson@ximian.com>
19689 * FileDialog.cs: Paint the selection on the directory combobox the
19692 2006-08-17 Jackson Harper <jackson@ximian.com>
19694 * ErrorProvider.cs: Don't allow the error control to be selected.
19695 * Control.cs: Don't send the SetFocus messages, the control
19696 activation will do this, and if we do it blindly here validation
19699 2006-08-17 Jackson Harper <jackson@ximian.com>
19702 * ContainerControl.cs: Make validation events fire in the correct
19703 order. TODO: For some reason the first validation event is not
19706 2006-08-17 Mike Kestner <mkestner@novell.com>
19708 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19710 2006-08-17 Mike Kestner <mkestner@novell.com>
19712 * ComboBox.cs : implement scroll wheel support for popped-down
19713 state. Fixes #78945.
19715 2006-08-17 Jackson Harper <jackson@ximian.com>
19717 * TreeView.cs: Specify treeview actions (old patch that didn't get
19718 committed for some reason).
19719 - Don't let the mouse wheel scroll us too far. Just want to make
19720 the bottom node visible, not scroll it all the ways to the top.
19722 2006-08-17 Jackson Harper <jackson@ximian.com>
19724 * XplatUIX11.cs: Mouse wheel events go to the focused window.
19726 2006-08-17 Mike Kestner <mkestner@novell.com>
19728 * ComboBox.cs : don't do mouseover selection in simple mode.
19730 2006-08-16 Jackson Harper <jackson@ximian.com>
19732 * Form.cs: Fire the closing events for all the mdi child windows
19733 when a window is closed. If the cancel args are set to true, the
19734 main window still gets the event fired, but it doesn't not close.
19735 * MdiWindowManager.cs: Do this closing cleanup in a Closed
19736 handler, instead of when the button is clicked, so cancelling the
19737 close works correctly.
19738 * ComboBox.cs: Send the mouse down to the scrollbar.
19740 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19742 * ListBox.cs: When passing 'null' to SelectedItem,
19743 set SelectedIndex to -1, to unselect items. This is the
19744 observed behaviour in .Net.
19746 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
19748 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19749 MS flags saying there won't be any. (fixes #78800)
19750 * Control.cs (HandleClick): Made virtual
19752 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
19754 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19755 cultures. Fixed bug #78399.
19757 2006-08-16 Jackson Harper <jackson@ximian.com>
19759 * Form.cs: Use the MdiClients MdiChildren property to access
19760 MdiChildren instead of creating the array from the child controls.
19761 * MdiClient.cs: Maintain a separate array of the mdi children, so
19762 that insertion order is maintained when the Z-order is changed.
19764 2006-08-16 Mike Kestner <mkestner@novell.com>
19766 * ListView.cs : add an ItemComparer and default to it for sorting.
19767 Fixes #79076, but sorting needs a complete overhaul to be compat with
19770 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19772 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19774 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19776 * Hwnd.cs (Mapped): Properly traverse the tree
19778 2006-08-15 Chris Toshok <toshok@ximian.com>
19780 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
19781 pass manager.Current.GetType() to ParseData. It has to be the
19782 property type. So, hold off doing the ParseData until we're in
19783 SetPropertyValue where we know the type. This fixes the crash in
19784 #78821 but the textbox is still empty.
19786 2006-08-15 Chris Toshok <toshok@ximian.com>
19789 - when we're scrolling, only call Edit() again if the
19790 current cell is still unobscured. Fixes bug #78927.
19791 - when handling mousedown on a cell, ensure the cell is visible
19792 before calling Edit.
19793 - remove the properties from DataGridRow, and remove the
19794 DataGridParentRow class altogether.
19797 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19799 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19800 fire OnTextChanged by ourselves. There's no point calling base,
19801 we don't set the base value anywhere else. Fixes #78773.
19803 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19805 * ListBox.cs: Call CollectionChanged when modifying
19806 an item from Items indexer, to update the actual items
19809 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19811 * PrintDialog.cs: Small fixes for focus and a pair of checks,
19812 to match .Net behaviour.
19814 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19816 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19818 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19820 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19822 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19824 * MessageBox.cs: Prevent potential NRE exception.
19825 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19827 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
19829 * MessageBox.cs: Calculate the owner of a messagebox, also make
19830 it topmost. Fixes #78753
19832 2006-08-14 Chris Toshok <toshok@ximian.com>
19834 * XplatUIX11.cs: A couple of fixes so that metacity will let us
19835 programmatically move windows. first, set the PPosition hint as
19836 well as the USPosition hint. Second include some code from pdb
19837 that sets the window type to NORMAL when we set the transient for
19838 hint. This is because, in the absence of a window type, metacity
19839 thinks any window with TransientFor set is a dialog, and refuses
19840 to let us move it programmatically. fascists.
19842 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
19844 * XplatUIX11.cs: When setting normal hints, take into consideration
19845 an different hints previously set so we don't delete them (fixes #78866)
19847 2006-08-12 Chris Toshok <toshok@ximian.com>
19849 * ToolBarButton.cs: make Layout return a boolean, if something to
19850 do with the button's layout changed.
19853 - add another parameter to Redraw, @force, which all existing
19855 - make the Layout function return a boolean which is true if the
19856 layout has actually changed. Redraw now uses this (and @force)
19857 to determine when to invalidate. At present the only place
19858 where @force can be false is the call from OnResize, when
19859 background_image == null. So, resizing a toolbar when the
19860 layout doesn't change results in no drawing.
19862 2006-08-12 Chris Toshok <toshok@ximian.com>
19864 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
19865 the VScrollBar and HScrollbar reversed. oops.
19867 * DataGrid.cs: fix the logic that assigns sizes to the implicit
19868 scrollbars. we were assigning them twice (once in
19869 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
19870 therefore causing two scrollbar resizes (and redraws?) to happen
19873 2006-08-12 Chris Toshok <toshok@ximian.com>
19875 * ToolBarButton.cs: redraw the entire button if the theme tells us
19878 * Theme.cs: add ToolBarInvalidateEntireButton.
19880 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
19881 buttons, just the border.
19883 * ThemeNice.cs: redraw the entire toolbar button since we need to
19884 draw the highlight image.
19886 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
19887 we need to redraw the entire button (not just the border).
19889 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
19891 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
19892 for vertical bars. Fixes the mismatches shown by #78513
19894 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
19896 * FileDialog.cs: If a saved/remembered path doesn't exist
19897 anymore, fall back to "Desktop".
19899 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
19901 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
19902 parent. It's apparently legal to not have one
19904 - SetZOrder: Don't try to set Z-Order on an unmapped window
19905 - CreateWindow: 0,0 are legal coordinates for a window. don't move
19906 it unless the coordinates are negative
19908 2006-08-10 Mike Kestner <mkestner@novell.com>
19910 * ListControl.cs: allow null for DataSource. Clear DisplayMember
19911 when setting to null per msdn docs. Fixes #78854.
19913 2006-08-10 Chris Toshok <toshok@ximian.com>
19915 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
19916 flickering by setting a clip rectangle on the Graphics when we
19917 need to redraw just a particular menuitem. Also, rename "OnClick"
19918 to "OnMouseDown" to reflect what it actually is.
19920 * Form.cs: track the OnMouseDown change.
19922 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
19924 * CommonDialog.cs: Properly inherit the CreateParams from the form
19925 and only change what we need. Fixes #78865
19927 2006-08-10 Chris Toshok <toshok@ximian.com>
19929 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
19930 flickering in flat mode (and most of the flickering in general) by
19931 only invalidating the button border (and not the entire rectangle)
19932 when the state changes. A couple of cases still flicker:
19933 ToggleButtons, and the dropdown arrow case when the user mouse
19936 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
19938 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19939 for german keyboards. Numlock state shouldn't affect the behaviour
19940 of the Del key. Fixes bug #78291.
19942 2006-08-10 Chris Toshok <toshok@ximian.com>
19944 * ListControl.cs: remove the items.Clear line from BindDataItems,
19945 as this is the first thing done by both subclasses in their
19946 SetItemsCore overrides. Also, add a ItemChanged handler, and when
19947 passed -1, refresh the list. This gets databinding working when
19948 the datasource is set on the list before the datasource is
19949 populated (as in wf-apps/ReportBuilder.)
19951 * ComboBox.cs: remove the argument to BindDataItems. This call
19952 should really go away, and be initiated by the ListControl code.
19954 * ListBox.cs: same.
19956 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19958 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
19959 if no data is in the document when the control is displayed
19961 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19963 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
19966 - PositionCaret: Allow positioning of caret but don't call methods
19967 requiring a handle if the window isn't created yet
19968 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
19969 - owner_HandleCreated: Don't position the caret, just update it's
19970 location. User might have already set a different position
19972 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
19974 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
19975 windows. Screws up the returned coordinates for child windows.
19976 Fixes #78825. I'm hoping this doesn't break something, since the
19977 code was explicitly put in 8 months ago, but no bug was attached.
19978 Menus still seem to work properly.
19980 2006-08-08 Chris Toshok <toshok@ximian.com>
19982 * DataGrid.cs: make BeginInit/EndInit actually do what they're
19983 supposed to do - delay data binding until the EndInit call. Also,
19984 make the table style collection's CollectionChangeAction.Refresh
19987 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
19988 (with action = Refresh) when a consituent table's MappingName is
19991 2006-08-08 Chris Toshok <toshok@ximian.com>
19993 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
19994 Invalidate, since changing the text can change the size of the all
19997 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
19999 * Form.cs (AddOwnedForm): Still need to add the form to our listif
20000 we don't have it yet
20002 2006-08-08 Chris Toshok <toshok@ximian.com>
20004 * PrintControllerWithStatusDialog.cs: don't .Close() the status
20005 dialog, as this causes X errors later on, since we actually
20006 destroy the window. Instead, .Hide() it.
20008 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20010 * ComboBox.cs: Added focus reflection for popup window
20012 - Removed transient setting for non-app windows for now, not sure it
20014 - Fixed logic checking if we have captions when deciding
20015 override_redirect, WS_CAPTION is two bits and a 0 check was not
20017 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20020 - AddOwnedForm: Don't just add the form to the list, call the property
20021 to ensure the driver is informed about the ownership as well
20022 - CreateHandle: Set the TopMost status in the driver if we have an owner
20023 * XplatUI.cs: Fixed debug statement
20025 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
20026 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20027 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20028 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
20029 TrackBarRenderer.cs: Make constructor private.
20030 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20031 * ProfessionalColorTable.cs: Make properties virtual.
20033 2006-08-06 Duncan Mak <duncan@novell.com>
20035 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20038 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20039 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20040 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20041 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20042 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20043 Initial import of new 2.0 classes.
20045 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20046 * Application.cs: Add 2.0 VisualStyles properties.
20048 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20049 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20050 XplatUIX11.cs: Create property to allow access to existing private
20051 variable "themes_enabled"
20053 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20055 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20056 file size, as otherwise our class libraries fail using windows. Fixes
20059 2006-08-04 Jackson Harper <jackson@ximian.com>
20062 * XplatUIX11.cs: Move the toolwindow window manager creation into
20063 the X11 driver, this way on win32 we can let windows create/handle
20066 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20068 * PrintDialog.cs: Remove some redundant checks, add some others,
20069 clean some code, and move the focus to the text boxes when the
20070 values are incorrect.
20072 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
20074 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20076 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20078 * NumericUpDown.cs: Setting the Minimum and Maximum is now
20079 handled correctly. Fixes bug #79001.
20081 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20083 * PrintDialog.cs: The "Copies" numeric up down must have
20084 set the Minimum property to 1; only if the value is bigger
20085 than 1, activate "Collate" check box. This is the behaviour of .Net.
20086 Also modify the Document elements only if it is not null.
20088 2006-08-03 Jackson Harper <jackson@ximian.com>
20090 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20091 length. (We have a larger array then actual node count).
20093 2006-08-03 Jackson Harper <jackson@ximian.com>
20095 * ComboBox.cs: Don't show selection by default.
20096 - The SelectAll isn't needed here, since the focus code should do
20098 - DDL style lists to manual selection drawing, so when they
20099 get/lose focus they have to invalidate.
20101 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
20103 * TextBoxBase.cs: Don't always show all selections by default.
20105 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
20106 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20107 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20108 Fixed various typos.
20110 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20112 * Control.cs: Removing the controls in a ControlCollection with
20113 Clear now hides the controls as expected. Fixes bug #78804.
20115 2006-08-03 Jackson Harper <jackson@ximian.com>
20117 * Control.cs: Revert previous focus patch, it breaks reflector.
20119 2006-08-03 Jackson Harper <jackson@ximian.com>
20121 * ComboBox.cs: Cleanup selection and focus with the combobox.
20122 This also eliminates some duplicated keyboard code, since now
20123 everything is handled by the main class.
20124 - Make list selection work on mouse up instead of down, to match
20127 2006-08-02 Jackson Harper <jackson@ximian.com>
20129 * Control.cs: Setting focus needs to go through the whole
20130 selection mechanism.
20132 2006-08-02 Chris Toshok <toshok@ximian.com>
20134 * PrintPreviewDialog.cs: change MinimumSize to use
20135 base.MinimumSize so it works.
20137 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
20140 - UpdateCaret: Added sanity check in case caret isn't defined yet
20141 - Line.Delete: Now updating selection and caret markers if we're
20142 transfering a node (Properly fixes #78323)
20143 - SetSelectionEnd: Added sanity check
20144 * TextBoxBase.cs: Removed broken attempt to fix #78323
20146 2006-08-01 Chris Toshok <toshok@ximian.com>
20148 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20149 Close() call is handled in Form, not here.
20151 2006-08-01 Chris Toshok <toshok@ximian.com>
20153 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20156 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20157 for sizes < 100% zoom. The code now aggressively attempts to keep
20158 from calling document.Print (), and tries not to use the scaling
20159 g.DrawImage whenever possible (it still does if you scale to >
20160 100%, since usually that involves huge images).
20162 * PrintPreviewControl.cs: hook up the close button.
20164 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
20165 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20166 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20167 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20168 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20169 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20170 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20171 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20172 Removed [Serializable] for 2.0 Event Handlers.
20174 2006-07-31 Jackson Harper <jackson@ximian.com>
20176 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20177 * TextControl.cs: Uncomment out the body of this method.
20179 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
20181 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20184 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20186 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20187 that embed TextBox and need selections visible even if textbox is not
20188 focused to enforce that behaviour.
20189 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20192 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20195 - Added new SetSelectionStart/SetSelectionEnd overloads
20196 - Fixed viewport width assignment to be accurate
20197 - Adjusted alignment line shift calculations to allow cursor on right
20198 aligned lines to be always visible at the right border (like MS)
20200 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20201 - TextBoxBase_SizeChanged: recalculating canvas on size changes
20202 - CalculateScrollBars: Use ViewPort size instead of window size, to
20203 properly consider space occupied by the border and scrollbars
20205 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
20206 calculations; no longer leaves artifacts
20207 - CaretMoved: Adjusted window scrolling to match MS and fixed several
20208 calculation bugs (Still missing right/center align calculations)
20210 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20212 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20213 use of both scroll rect and clip rect, as they do the same.
20215 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20217 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
20218 in the event handler (fixes #78912)
20220 2006-07-31 Chris Toshok <toshok@ximian.com>
20222 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20223 grid.ListManager.Count, since grid.ListManager might be null.
20224 This of course begs the question "why are we drawing rows for a
20225 grid with no list manager (and therefor no rows)?" Fixes the
20226 crash in bug #78929.
20228 2006-07-31 Chris Toshok <toshok@ximian.com>
20230 * RelatedPropertyManager.cs: Don't always chain up to the parent
20231 ctor. instead, call SetDataSource if the parent's position is !=
20232 -1. Fixes the crash in #78822.
20234 2006-07-31 Chris Toshok <toshok@ximian.com>
20236 * DataGrid.cs (get_ListManager): use field instead of property
20237 accessors for datasource and datamember.
20238 (RowsCount): make internal again.
20239 (OnMouseDown): end edits before resizing columns/rows.
20240 (OnMouseUp): restart edits after resizing columns/rows.
20242 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
20244 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20245 This fixes the situation where the last set cursor is displayed
20246 whenever the mouse is over scrollbars.
20248 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20250 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20251 Document properties, as well as initial values.
20253 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
20255 * XplatUIWin32.cs (SetBorderStyle): Setting both border
20256 and ClientEdge results in a 3-pixel border, which is
20259 2006-07-28 Jackson Harper <jackson@ximian.com>
20261 * TreeNodeCollection.cs: Fix the clear method.
20262 - Fix the Shrink also
20264 2006-07-27 Jackson Harper <jackson@ximian.com>
20266 * TreeView.cs: Make sure the visible order is computed when we
20267 attempt to size the scrollbars (for trees that mess with the
20268 scrolling when they shouldn't.
20269 - Make sure to give the scrollbars valid values.
20271 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20273 * XplatUIX11.cs: Move motion compression code to where it
20274 has less performance impact
20276 2006-07-26 Jackson Harper <jackson@ximian.com>
20278 * UpDownBase.cs: When the control is selected make the child
20279 controls non selectable, so that a click on them won't do a
20280 focus/unfocus cycle.
20281 - Don't give focus to the text box when the spinner is selected.
20282 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20284 2006-07-26 Chris Toshok <toshok@ximian.com>
20286 * ThemeWin32Classic.cs: add print preview rendering. I'm not
20287 satisfied with this solution. If the bitmaps are small, we should
20288 just cache them in the PrintPreviewDialog and draw them here.
20289 Also, the layout is broken for the 2-up and 3-up cases.
20291 * Theme.cs: add PrintPReviewControlPaint.
20293 * PrintPreviewDialog.cs: first pass implementation.
20295 * PrintPreviewControl.cs: first pass implementation. No
20298 * PrintDialog.cs: only validate fields if that particular portion
20299 of the UI is enabled. Also, set the document's controller to a
20300 PrintControllerWithStatusDialog wrapping the document's print
20303 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20304 bring up a SaveFileDialog (i hope we don't want to match the
20305 behavior of the crappy windows file entry) and set the
20306 PrinterSettings.PrintFileName accordingly.
20308 2006-07-26 Jackson Harper <jackson@ximian.com>
20310 * ContainerControl.cs: Add a field that disables auto selecting
20311 the next control in a container when the container is activated.
20312 * UpDownBase.cs: Don't select the text box when the up down is
20315 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20317 * XEventQueue.cs: Added methods for peeking (used for compression
20318 of successive events)
20319 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20320 mouse move events (fixes #78732)
20322 2006-07-25 Jackson Harper <jackson@ximian.com>
20324 * UpDownBase.cs: Use an internal class for the textbox so that we
20325 can control focus. the updown control should always have focus,
20326 if either the text area or the buttons are clicked.
20327 - Send the key messages to the textbox, since it never actually
20329 - Activate and decativate the textbox caret.
20331 2006-07-24 Jackson Harper <jackson@ximian.com>
20333 * Control.cs: Use the directed select when selecting a control,
20334 this way the container controls override will get called and the
20335 whole ActiveControl chain will get triggered. TODO: probably need
20336 to make sure this gets done everywhere instead of the old
20338 * ContainerControl.cs: Implement the directed Select method to
20339 find and activate the correct child control.
20341 2006-07-22 Mike Kestner <mkestner@novell.com>
20343 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20344 menu handling code so that clicks without a grab work too.
20347 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
20349 * FileDialog.cs: Enable the BackButton when dirstack has one element.
20350 Added some small optimizations.
20352 2006-07-21 Matt Hargett <matt@use.net>
20354 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20356 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
20358 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
20359 tests pass and match MS in some strange border cases.
20361 2006-07-21 Chris Toshok <toshok@ximian.com>
20363 * ThemeWin32Classic.cs: handle drawing of the relation links and
20364 parent row buttons.
20366 * Theme.cs: change args to DataGridPaintParentRow.
20368 * DataGrid.cs: Don't use controls for the relation links and
20369 parent buttons, so we have to handle all their interactions in
20370 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
20371 when we're navigating through child tables, so we can reinstate
20372 selection, expanded state, current cell, etc.
20374 2006-07-20 Chris Toshok <toshok@ximian.com>
20376 * ToolBar.cs: When we redraw a button, for whatever reason,
20377 there's no reason to redraw the entire toolbar. Also, don't call
20378 Control.Refresh from within Redraw, as it's much heavier than
20379 Invalidate (which is really what we want).
20381 2006-07-20 Chris Toshok <toshok@ximian.com>
20383 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20384 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20385 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20386 traces from within a debug IBindingList datasource
20387 (in mono/winforms/datagrid) for *days*, I've finally gotten things
20388 to work in a similar fashion.
20390 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20392 * ListBox.cs: Don't call Sort () when setting
20393 the Sorted property to false (avoid an unnecessary sort).
20395 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20397 * ListControl.cs: DataSource should throw an ArgumentException
20398 instead of a normal exception when the argument is not of the
20401 2006-07-20 Mike Kestner <mkestner@novell.com>
20403 * Control.cs: add InternalPreProcessMessage to allow us to steal
20404 key events before MWF gets its paws on them. Adapted from a
20406 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
20407 up/down/left/right navigation. Override the new internal control
20408 method to steal the events since they never make it to WndProc.
20409 * ToolBarButton.cs: don't worry about pushed when setting hilight
20410 since the drawing code prefers pushed to hilight. Invalidate on
20411 Hilight changes. Fixes #78547 and #78525.
20413 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20415 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20416 the canvas size. Fixes #78868
20418 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20420 * Splitter.cs: Track requested split position until first layout
20421 is performed. Fixes #78871
20423 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20425 * Application.cs: Removed code that forces 1.x for the version
20426 number if the version started with 0. Not sure why that code was
20427 there and I couldn't find any bugs that indicated we needed it.
20430 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
20432 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20433 ResetDefaults(), just write some output to the console until it's
20434 implemented. Fixes bug #78907 for now. Eliminated two warnings.
20436 2006-07-19 Jonathan Chambers <joncham@gmail.com>
20438 * PropertyGridView.cs: set StartPosition of drop down forms
20439 so they appear in correct initial spot. Fixes #78190.
20441 2006-07-19 Mike Kestner <mkestner@novell.com>
20443 * ThemeWin32Classic.cs: use parent background color when drawing
20444 flat toolbars. Restructure the conditionals to make sure non-flat
20445 non-Divider toolbars are filled too. Fixes #78837.
20447 2006-07-19 Mike Kestner <mkestner@novell.com>
20449 * ListBox.cs: Sort on collection changes even if the handle
20450 isn't created yet. Fixes #78813.
20452 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20454 * ListControl.cs: DisplayMember should never be null,
20455 and now we assign String.Empty when null is passed to it (this
20458 2006-07-17 Mike Kestner <mkestner@novell.com>
20460 * ListViewItem.cs: restructure Font and subitem Font handling
20461 to hold a specific font and refer back to owner on null.
20464 2006-07-17 Mike Kestner <mkestner@novell.com>
20466 * ToolBar.cs: bandaid for side-effect of previous patch which was
20467 discarding explicit heights for non-AutoSize toolbars. Need to
20468 extend my format tester to deal with AutoSize=false. Fixes #78864.
20470 2006-07-15 Jackson Harper <jackson@ximian.com>
20472 * LabelEditTextBox.cs:
20473 * TreeView.cs: Use a new LabelEdit class for node editing, this
20474 class automatically 'closes' itself when it gets the enter key or
20476 - Use the client rectangle when setting the trees scrollbars, so
20477 border style is taken into account.
20479 2006-07-14 Jackson Harper <jackson@ximian.com>
20482 * TreeView.cs: Make the editing work similar to MSs, firing the
20483 events correctly and ending edits correctly.
20485 2006-07-14 Mike Kestner <mkestner@novell.com>
20487 * ToolBarButton.cs:
20488 * ToolBar.cs: layout restructuring and redraw enhancements to support
20489 formatting changes gracefully, like setting TextAlign, ImageList,
20490 ButtonSize, and Appearance. Handles explicit button sizing quirks
20491 of the MS controls. Things like flat toolbars ignoring button size
20492 but becoming constant sized at the largest button's size. Normal
20493 toolbars with an image set cannot be shrunk smaller than the image,
20494 but text can be clipped/ignored.
20495 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20496 is zero. Seems like DrawString should be smart enough to not put
20497 anything on screen though. Also trim labels and ellipsize at the char
20498 boundary, not word.
20499 Fixes #78711 and #78483.
20501 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20503 * FolderBrowserDialog.cs: Disable "New Folder" button and
20504 "New Folder" contextmenu menuitem if a folder like "My Computer"
20507 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20509 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20510 * FolderBrowserDialog.cs:
20511 - Use MWFConfig to store and read size and position settings
20512 - Added code to create a new folder (button or context menu).
20513 Use TreeView labeledit to change the name of the new folder.
20515 2006-07-14 Jackson Harper <jackson@ximian.com>
20517 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
20518 when the tree is scrolled we end editing.
20520 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20522 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20525 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20527 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20528 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20529 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20530 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20531 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20532 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20533 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20534 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20535 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20536 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20537 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20538 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20539 ListViewItemSelectionChangedEventHandler.cs,
20540 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20541 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20542 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20543 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20544 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20545 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20546 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20547 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
20548 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
20549 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20550 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20551 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20552 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20553 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20554 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20555 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20556 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20557 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20558 WebBrowserNavigatingEventHandler.cs,
20559 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20561 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20563 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20564 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20565 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20566 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20567 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20568 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20569 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20570 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20571 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20572 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20573 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20574 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20575 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20576 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20577 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20578 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20579 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20580 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20581 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20582 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20583 ListViewItemStates.cs, MaskFormat.cs: Added
20585 2006-07-13 Jonathan Chambers <joncham@gmail.com>
20587 * PropertyGridView.cs: Fix keyboard navigation of drop down.
20588 Patch from eno for bug 78558.
20590 2006-07-13 Jackson Harper <jackson@ximian.com>
20592 * TreeView.cs: When an edit is finished make sure that the
20593 selected node is visible.
20594 - When setting the top/bottom use the scrollbars is_visible, so
20595 everything will be set correctly even if the tree isn't visible
20598 2006-07-13 Jackson Harper <jackson@ximian.com>
20600 * ComboBox.cs: Revert the item->index part of my previous patch.
20601 * TreeView.cs: Use LostFocus instead of Leave for detecting when
20602 the edit box has lost focus (duh).
20603 - Just make the edit box not visible when we get return, that will
20604 take the focus, which will call EndEdit
20605 * TreeNode.cs When we start editing, notify the treeview.
20607 2006-07-12 Jackson Harper <jackson@ximian.com>
20609 * ComboBox.cs: Clear out old items before setting the item list.
20610 This prevents databound controls from having their items added
20612 - Switch the combobox to use indices whereever possible instead of
20613 using Item's. This allows usto navigate through lists that have
20614 more then one item with the same string value (ie a, b, b, a).
20615 - Scroll the listboxes scrollbar when a non visible item is
20617 - Allow keypress to cycle through all the possible values. For
20618 example if you have b1, b2, b3 and hold down the B key all the
20619 values will be cycled through.
20621 2006-07-12 Jackson Harper <jackson@ximian.com>
20624 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20625 this using the internal methods.
20626 * Control.cs: Add OnGotFocusInternal. A new method that allows
20627 controls to "override" OnGotFocus and change focus behavior if
20629 - Same thing for LostFocus
20630 * ComboBox.cs: Pass off focus to the text control properly.
20632 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
20634 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20635 * FolderBrowserDialog.cs: Almost a complete rewrite.
20636 - Better support for Environment.Specialfolders
20637 - Added support for MWFVFS
20638 - Made setting SelectedPath work
20640 2006-07-12 Jackson Harper <jackson@ximian.com>
20642 * Control.cs: Optimze getting all the controls.
20644 2006-07-11 Jackson Harper <jackson@ximian.com>
20646 * ContainerControl.cs: Override SETFOCUS in the container control,
20647 so that it is not selected on mouse click.
20649 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
20651 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
20652 Hopefully we will have a better way once all of focus is complete.
20654 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
20656 * ThemeWin32Classic.cs: Commented out some debug code and fixed
20657 a compile error with csc.
20659 2006-07-11 Jackson Harper <jackson@ximian.com>
20661 * Control.cs: When hiding a control only select the next control
20662 if the current control was focused.
20663 - Don't handle enter/leave when setting/killing focus, this is
20664 done by the container control.
20665 - Remove is_selected, it's not needed anymore.
20666 - Add utility methods for selecting a child control, and for
20667 firing the Enter/Leave events.
20668 * ContainerControl.cs: When a control is activated fire the
20669 enter/leave events.
20670 - Don't wrap when processing the tab key, so that focus can be
20671 moved outside of the container.
20672 - Use the correct active control
20674 2006-07-11 Jackson Harper <jackson@ximian.com>
20676 * ComboBox.cs: Remove some debug code that was blinding me.
20677 * UpDownBase.cs: These controls actually aren't implicit, they are
20678 visible to the user.
20680 2006-07-10 Chris Toshok <toshok@ximian.com>
20682 * DataGrid.cs: move back to the is_adding boolean field. god i
20683 hate this is_editing/is_adding/is_changing stuff.
20685 2006-07-10 Chris Toshok <toshok@ximian.com>
20687 * DataGridTableStyle.cs: just check if the property type is bool.
20688 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20689 Don't use CanRenderType.
20691 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20692 if our text == NullText. Remove CanRenderType.
20694 * DataGridBoolColumn.cs: nuke CanRenderType.
20696 * DataGrid.cs: reenable some code to end the current edit inside
20697 of set_CurrentCell. This fixes the other 1.1.16 regression.
20698 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20699 Also, remove the visible_row_count arg from CalcRowHeaders, since
20700 we don't need to worry about the actual height of the area.
20702 2006-07-10 Chris Toshok <toshok@ximian.com>
20704 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20707 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20708 the real sense of the IsInEditOrNavigateMode property (true =
20709 navigate, false = edit). Also, update OnKeyPress to reflect this.
20711 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20712 column style exists, we still need to set its property descriptor
20713 to match up with our list manager.
20715 2006-07-10 Chris Toshok <toshok@ximian.com>
20717 * ThemeWin32Classic.cs: implement the new row/header painting
20718 approach. The parent row painting will likely go away and
20719 replaced with label controls, but the rest seems to work ok (and
20722 * Theme.cs: change the way we draw datagrid rows. we don't draw
20723 the row headers as a block now. Instead we draw them in the
20724 normal draw-row loop. Add some calls for drawing parent rows and
20727 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20728 a default table style. Set the defaults from ThemeEngine.Current,
20729 not SystemColors. Fix lots of misc issues with property setters.
20731 * DataGrid.cs: move loads of style information out of this class
20732 as it's being duplicated with DataGridTableStyle. keep track of a
20733 special DataGridTableStyle for the properties we used to mirror
20734 here. Switch all the style properties to access this table style
20735 instead of instance fields of this class. Also add a internal
20736 class to represent parent rows (more needs to be stored here, like
20737 the selection state from the parent table, as well as the
20738 expansion state.) Also, for datasources with relations, do the
20739 right thing for collapse/expand, and add support for the
20740 navigation/parent row buttons.
20742 Lastly, fix the crash in the 1.1.16 build.
20744 * GridTableStylesCollection.cs: make the explicit interface
20745 implementations call the class's methods as opposed to duplicating
20748 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20749 0 so the text doesn't jump around when we move the cursor.
20751 2006-07-10 Jackson Harper <jackson@ximian.com>
20754 * ListBox.cs: Match MS's ToString (this makes debugging focus
20755 stuff infinitely easier).
20757 2006-07-10 Jackson Harper <jackson@ximian.com>
20759 * Control.cs (SelectNextControl): When checking the control's
20760 parent use this instead of ctrl.parent so that null can be passed
20761 to SelectNextControl. (I have unit tests for this).
20762 - Remove unused var.
20764 2006-07-10 Chris Toshok <toshok@ximian.com>
20766 * CurrencyManager.cs: correct one regression, the removal of the
20767 finalType field. Also, add a MonoTODO on CanAddRows, implement
20768 Refresh() correctly, and fix some event emission in
20769 ListChangedHandler.
20771 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
20773 * FileDialog.cs: Don't use brackets for new folders if they exist
20774 under *nix. Instead use -(number of existing folders +1).
20776 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
20779 - Fixed really nasty bug #78771
20780 - Don't block the whole GUI when reading directories with a lot of
20781 entries. Use an other thread instead and call BeginInvoke to
20782 update the ListView in MWFFileView
20784 2006-07-07 Chris Toshok <toshok@ximian.com>
20786 * Control.cs (Dispose): release any Capture when disposing.
20788 2006-07-07 Chris Toshok <toshok@ximian.com>
20790 * LinkLabel.cs (Select): if we chain up to the parent, set
20791 focused_index to -1 so we'll search for the first available link
20792 the next time the user tabs into us. Also, if the direction is
20793 backward and focused_index == -1, start the search from the last
20796 2006-07-07 Chris Toshok <toshok@ximian.com>
20798 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20799 is beyond the end of the text, don't do anything.
20800 (CreateLinkPieces): set our ControlStyles.Selectable based on
20801 whether or not we have any links.
20802 (Link.Invalidate): use a loop instead of foreach.
20803 (Link.set_Start): null out owner.sorted_links so it'll be
20804 recreated by CreateLinkPieces.
20806 2006-07-06 Chris Toshok <toshok@ximian.com>
20808 * LinkLabel.cs: revert the SetStyle change.
20810 2006-07-06 Chris Toshok <toshok@ximian.com>
20812 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20813 (OnEnableChanged): s/Refresh/Invalidate
20814 (OnGotFocus): if we have a focused index already, refocus it (so
20815 if we mouse out/in to the window it'll focus the right link).
20816 (OnKeyDown): move the tab handling out of here.
20817 (OnLostFocus): don't set focused_index to -1, so we can refocus it
20818 when we lose focus.
20819 (OnMouseDown): don't Capture here - Control handles it. Also,
20820 focus the active link.
20821 (OnMouseUp): don't deal with Capture.
20822 (OnPaintBackgroundInternal): remove.
20823 (OnTextAlignChanged): CreateLinkPieces before calling the
20824 superclass's method.
20825 (OnTextChanged): call CreateLinkPieces before calling superclass's
20827 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20829 (Select): implement this, moving the selection between different
20830 links, and call parent.SelectNextControl if we don't have another
20831 link to focus in the given direction.
20832 (CreateLinkPieces): call Invalidate instead of Refresh.
20834 2006-07-06 Chris Toshok <toshok@ximian.com>
20836 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20837 new LinkLabel internals.
20839 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
20840 over pieces looking for active/focused/etc links. also, deal with
20841 runs of text (and links) with embedded \n's in them, and use
20842 MeasureCharacterRanges instead of MeasureString to figure out the
20843 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
20846 2006-07-04 Jackson Harper <jackson@ximian.com>
20848 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20849 XKB or key auto repeat, do it manually. Without key auto repeat,
20850 when a key is held down we get key press, key release, key press,
20851 key release, ... with auto repeat we get key press, key press, key
20852 press ..., and then a release when the key is actually released.
20854 2006-07-03 Jackson Harper <jackson@ximian.com>
20857 * ThemeWin32Classic.cs: Tabs do not obey normal background color
20858 rules, they are always control color regardless of the background
20861 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
20863 * FileDialog.cs: Added internal class MWFConfig.
20864 Removed Registry support and replaced it with support for the new
20865 MWFConfig class. See MWFConfig comments for more information.
20867 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
20869 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
20870 rectangle. Added some patches from eno from bug #78490 and fixed
20871 the arrow position for small up and down CPDrawScrollButtons.
20873 2006-06-30 Jackson Harper <jackson@ximian.com>
20875 * InternalWindowManager.cs: Remove some debug code.
20876 * Form.cs: When an MdiParent is set to null, the window is
20877 "detatched" and becomes a normal window.
20878 * MdiClient.cs: Don't bring the new child form to the front until
20879 it is activated (setting it as active does this), this makes the
20880 previously active forms titlebar get redrawn as inactive.
20882 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
20884 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
20885 with later controls
20887 2006-06-29 Mike Kestner <mkestner@novell.com>
20889 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
20890 arrow in keynav state. Fixes #78682.
20892 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
20894 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
20895 order (fixes #78393)
20897 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
20899 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
20900 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
20901 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
20902 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
20903 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
20904 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
20905 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
20906 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
20907 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
20908 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
20909 enumerations (FlagsAttribute, SerializableAttribute, added/removed
20912 2006-06-28 Mike Kestner <mkestner@novell.com>
20914 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
20916 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
20919 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
20920 item lines from other area (It also makes BackColor consistent and
20921 compatible with .NET). Fixed bug #78564.
20923 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
20925 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
20926 Patch from Eno for #78555.
20928 2006-06-27 Chris Toshok <toshok@ximian.com>
20930 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20932 * DataGridColumnStyle.cs: same.
20934 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20936 * DataGridDrawingLogic.cs: nuke.
20938 2006-06-27 Chris Toshok <toshok@ximian.com>
20940 * DataGridTableStyle.cs: clean up the constructors, and build the
20941 list of child relations for this table. I have no idea if this is
20942 where we should be doing it (it probably isn't), but since we're
20943 already iterating over the properties..
20945 * DataGrid.cs: add row resizing. for now we add a DataGridRow
20946 struct and array for keeping track of row information, similar to
20947 what's shown in a hack on
20948 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20950 * Theme.cs: be consistent about the naming of DataGrid methods,
20951 prefering ColumnWidths and RowHeights over columnsWidths and
20954 * ThemeWin32Classic.cs: same, and also add support for variable
20955 sized rows (and the +/- expansion icons for related rows).
20957 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20959 * TextBoxBase.cs: Applied Eno's patch from #78660
20961 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20963 * Form.cs (ScaleCore): We don't want to scale our form if it's
20964 state is minimized or maximized, but we still need to scale our
20965 child windows. Also, added try/finally block to ensure layout
20966 gets reset (Fixes #78697)
20968 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20970 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
20972 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
20974 * Form.cs: Fixed c+p error and added check to resize form if minimum
20975 size is bigger than current size (Fixes #78709)
20977 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
20979 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
20981 2006-06-26 Mike Kestner <mkestner@novell.com>
20983 * ComboBox.cs: only do Keypress handling in the combo when there
20984 are items in the collection. Fixes #78710.
20986 2006-06-26 Chris Toshok <toshok@ximian.com>
20988 * Binding.cs: make this work bi-directionally. also, clear up
20989 other mixups between Push/Pull Data (e.g. we're supposed to pull
20990 data when validating).
20992 * BindingManagerBase.cs: trim some fully qualified collection
20995 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
20997 2006-06-23 Chris Toshok <toshok@ximian.com>
20999 * PropertyManager.cs: It appears (according to the unit tests)
21000 that PropertyManager doesn't use
21001 PropertyDescriptor.AddValueChanged to track propery value changes
21002 in its datasource, but uses the same scheme as Binding, where it
21003 looks for a <Property>Changed event and binds to it.
21005 Also, according to the docs, IsSuspended always returns false for
21006 a property manager with a non-null datasource.
21008 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21010 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21011 need to update the actual DialogResult. (Fixes #78613)
21013 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21015 * Form.cs (ShowDialog): Release any captures before running the
21016 new message pump (fixes #78680)
21018 2006-06-22 Mike Kestner <mkestner@novell.com>
21020 * ListView.cs: Layout column widths properly in details mode even
21021 if HeaderStyle.None is set. Fixes #78691.
21023 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21025 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21027 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21029 * Control.cs (ContainsFocus): Using new driver method to get focused
21030 window, instead of trying to use internal tracking var, which can
21031 recursion issues (Fixes #78685)
21032 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21033 XplatUIWin32.cs: Added GetFocus method to return focused window
21035 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21037 * ColorDialog.cs: when the mouse button is pressed inside the color
21038 matrix, don't let the cursor move out of it until the button is
21039 released, which is the behavior on windows. Changed 'colours' by
21040 'colors' to use the same word consistently.
21042 2006-06-21 Chris Toshok <toshok@ximian.com>
21044 * DataGrid.cs: add in some basic navigation stuff (navigating to a
21045 child relation and back, using a stack). Also, remove
21046 GetDataSource and the code that calls it - it's not needed. Also,
21047 track CurrencyManager.ListName's removal.
21049 2006-06-21 Chris Toshok <toshok@ximian.com>
21051 * CurrencyManager.cs: push some of the original type checking from
21052 BindingContext.CreateBindingManager to here, and remove some of
21053 the finalType stuff. Need more tests to make sure I've got the
21054 ListName part right, and we might need more in SetDataSource.
21056 * PropertyManager.cs: add a ctor that takes just the datasource,
21057 and no property name. Make SetDataSource work with a null
21058 property_name, and make Current return the data_source if the
21059 property descriptor is null. this makes 'string foo = "hi";
21060 BindingContext[foo].Current' return "hi" as it should.
21062 * RelatedCurrencyManager.cs: make this code more generic - there's
21063 no reason the parent manager has to be CurrencyManager, and
21064 there's no reason to pass the DataRelation. It suffices to use a
21065 BindingManagerBase and PropetyDescriptor.
21067 * RelatedPropertyManager.cs: make a similar change here.
21069 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21070 flower I knew it could be.
21072 2006-06-20 Chris Toshok <toshok@ximian.com>
21074 * PropertyManager.cs: the PropertyChangedHandler is invoked when
21075 data in the source has changed and we need to update the control,
21076 so s/PullData/PushData.
21078 * CurrencyManager.cs: Refresh is meant to update the control from
21079 data in the datasource. So, s/PullData/PushData.
21081 * BindingContext.cs: add more ugliness (we weren't handling the
21082 case where data_source = DataTable and data_member = column_name).
21084 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
21085 from the perspective of the datasource. PullData pulls from the
21086 control, PushData pushes to the control.
21088 2006-06-20 Chris Toshok <toshok@ximian.com>
21090 * BindingContext.cs: rewrite the CreateBindingManager code to
21091 handle navigation paths more or less properly. This could
21092 definitely stand some more work, in particular to push the
21093 recursion up to the toplevel. But that relies on fixes in other
21094 places (System.Data comes to mind).
21096 Also, move to a flat hashtable (and encode the twolevel nature of
21097 the dictionary into the hash key). This lets us implement the
21098 IEnumerable.GetEnumerator method.
21100 * RelatedCurrencyManager.cs: new class. Update our view based on
21101 our relation and our parent CurrencyManager's position.
21103 * CurrencyManager.cs: split out some logic from the ctor into
21104 SetView, so it can be called from the new RelatedCurrencyManager
21107 * RelatedPropertyManager.cs: new class. Update our datasource
21108 based on the position of our parent CurrencyManager.
21110 * PropertyManager.cs: split out some logic from the ctor into
21111 SetDataSource, so it can be called from the new RelatedDataSource
21112 subclass. Also, make the Current getter return the value
21113 of the PropertyDescriptor, not the data_source.
21115 * Binding.cs: no need to duplicate the string splitting code here.
21117 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21120 - set_Enabled: OnEnabledChanged is not called if the inherited state
21121 of the control is not altered, even though we might be changing the
21122 internal state of the control (#78458)
21123 - set_Enabled: (Re)Moved the enabling/disabling of the window to
21124 OnEnabledChanged, to allow easy altering of any child window state
21125 - OnEnabledChanged: Added code to enable/disable driver window state
21126 - OnParentEnabledChanged: Instead of firing the event, call
21127 OnEnabledChanged, which will fire the event and also a) set driver
21128 window state and pass the enabled state to any grandchildren (#78458)
21130 2006-06-19 Jackson Harper <jackson@ximian.com>
21132 * InternalWindowManager.cs: We don't set the cursor explicitly
21133 thats done via the response to NCHITTESTs.
21134 - Don't need to adjust for titlebar heights anymore, the
21135 coordinates are coming in the correct coordinates now (see peters
21139 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21141 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21142 being translated relative to whole window, instead of client window.
21143 That caused broken offsets on mouseclick (and caused gas for our
21144 InternalWindowManager)
21146 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21149 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21150 - Undo(): Added replay of cursor move on DeleteChars action; added
21151 calling Undo() again if a recorded cursor move is invalid (to
21152 ensure that some action is performed on Undo)
21153 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21155 2006-06-16 Jackson Harper <jackson@ximian.com>
21157 * MdiClient.cs: Instead of just sizing maximized windows when
21158 there is a resize we also have to adjust the Y of minimized
21159 windows, so they stay pinned to the bottom of the mdi container.
21160 - Eliminate separate tracking of the active control, we can just
21161 get this from the controls collection.
21162 - Paint the decorations for the newly activated titlebar so we get
21164 * InternalWindowManager.cs:
21165 * ThemeWin32Classic.cs: Minimized windows get all three buttons
21166 even if they are a tool window.
21168 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21170 * TextControl.cs (Undo): Handle non-existent cursor locations in the
21171 undo buffer, these can happen when text was deleted and the cursor
21172 was recorded first. Since we will also have a recorded cursor
21173 after the delete this is not an issue. (Fixes #78651)
21175 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
21177 * AccessibleObject.cs: Remove dependence on Control.is_selected;
21178 instead properly track control states internally (allows us to
21179 remove is_selected from Control)
21181 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21183 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21184 whose width is not a multiple of 8.
21186 2006-06-13 Jackson Harper <jackson@ximian.com>
21188 * MdiClient.cs: Only maximize the next child if the current one
21191 2006-06-13 Chris Toshok <toshok@ximian.com>
21193 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21194 modified. Also, guard against grid or grid_drawing being null in
21197 * DataGrid.cs: Reformat tons of getters/setters. In the
21198 DataMember setter, just call SetNewDataSource instead of
21199 duplicating some of its functionality. In SetNewDataSource, don't
21200 check ListManager for null, since the property getter creates the
21203 * DataGridTableStyle.cs: don't set TableStyle or call
21204 SetDataGridInternal on the column here, it's done in
21205 GridColumnStylesCollection.Add.
21207 * GridColumnStylesCollection.cs: fix all the explicit interface
21208 implementations to just call our methods. Nuke AddInternal() and
21209 move the body of it to Add(). Also, add a call to
21210 column.SetDataGridInternal to Add().
21212 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21213 base()+duplicate code. Also, use the Format property instead of
21214 format to generate an Invalidate ala MS. Lastly, create the
21215 textbox here, unconditionally.
21216 (set_Format): call Invalidate.
21217 (get_TextBox): no need to call EnsureTextBox.
21218 (Commit): remove the message box.
21219 (Edit) remove the call to EnsureTextBox.
21220 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21221 (EnterNullValue): no need to check textbox for null.
21222 (HideEditBox): no need to check textbox for null.
21223 (SetDataGridInColumn): add the textbox to the grid's controls.
21224 (EnsureTextBox): nuke.
21226 2006-06-13 Jackson Harper <jackson@ximian.com>
21228 * MdiWindowManager.cs: Hook up to the maximized menus paint event
21229 and redraw the buttons when needed. Unhook when the window is
21231 * MainMenu.cs: Add an internal Paint event, the mdi window manager
21232 needs this so that it can redraw its buttons when the menu is
21234 * InternalWindowManager.cs:
21235 * Form.cs: The method order has changed for DrawMaximizedButtons,
21236 so that it can be a PaintEventHandler.
21238 2006-06-13 Jackson Harper <jackson@ximian.com>
21240 * MdiClient.cs: When we close a maximized mdi window, the next mdi
21241 window is activated and maximized, even if it wasn't before.
21242 - When a new window is activated repaint the decorations of the
21243 old one, so that it no longer has the Active "look" (the blue
21245 * InternalWindowManager.cs: Open up CreateButtons to base classes
21246 so they can recreate the buttons on state changes.
21247 - If a window is maximized give it all three buttons
21248 * MdiWindowManager.cs: Create the titlebar buttons when the state
21249 is changed, this is needed because a toolwindow will not have all
21250 three buttons until it is maximized.
21252 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
21254 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21257 2006-06-12 Jackson Harper <jackson@ximian.com>
21259 * KeysConverter.cs: Make sure we handle the Ctrl special case
21260 if its the only key.
21262 2006-06-12 Jackson Harper <jackson@ximian.com>
21264 * Theme.cs: Add a method to get the size of a managed window
21266 * InternalWindowManager.cs: Remove the ButtonSize property, this
21267 should be retrieved from the theme.
21268 * MdiWindowManager.cs: Get the button size from the theme
21269 * ThemeWin32Classic.cs: Make the method to get the managed window
21270 titlebar button size public.
21271 - Handle the different button sizes of maximized toolwindows
21272 (should match any maximized window).
21273 - Get the titlebar height from the theme, not the WM (which gets
21274 it from the theme).
21276 2006-06-12 Jackson Harper <jackson@ximian.com>
21278 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21279 event down to the mdi window manager.
21280 - Expose some extra stuff to base classes
21281 - Make sure to end the Capture on an NC Mouse up, so that we can
21282 get double clicks properly, and the sizing doens't stick.
21283 - When doing PointToClient contain it in the workable desktop
21284 area, this prevents windows from changing size when the cursor is
21285 pulled outside of the working area while sizing.
21286 * MdiWindowManager.cs: When we get a double click maximize the
21288 - Reset the cursor after handling mode changes.
21290 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
21292 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
21293 current desktop, instead of just assuming a 0, 0 origin. This
21294 is needed for our internal window manager, to know the top
21295 margin of the desktop
21297 2006-06-12 Chris Toshok <toshok@ximian.com>
21299 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21300 we need this to get rid of the selected background in the bool
21302 (CancelEditing): move the ConcedeFocus call to above the Abort
21303 call. Also, set is_changing to false and invalidate the row
21304 header if we were changing before.
21305 (ProcessKeyPreviewInternal): remove, since noone outside this
21306 class calls it anymore. Roll the code into ProcessKeyPreview.
21307 (EndEdit): remove the internal version.
21308 (InvalidateCurrentRowHeader): make private.
21310 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
21311 Keys.Escape handling (and with it the last call to
21312 DataGrid.EndEdit from outside the class.)
21315 2006-06-12 Chris Toshok <toshok@ximian.com>
21317 * DataGridTextBox.cs (.ctor): isedit defaults to false.
21318 (OnKeyPress): set isedit to true.
21319 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
21320 already handled by the grid.
21322 * DataGrid.cs (set_CurrentCell): more work here. it's still not
21324 (set_DataSource): SetDataSource always returns true, so stop
21325 putting it in an if statement.
21326 (EndEdit): get rid of some {}'s
21327 (ProcessGridKey): return true in case Keys.Escape.
21328 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21329 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21330 PositionChanged, stopped connecting to CurrentChanged.
21331 (GetDataSource): simplify this a bunch.
21332 (SetDataSource): change return type from bool to void.
21333 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21334 to this, and make sure we don't set ListManager.Position inside
21336 (OnListManagerItemChanged): if we're passed an actual index,
21339 * CurrencyManager.cs (set_Position): don't call PullData here.
21341 2006-06-09 Jackson Harper <jackson@ximian.com>
21343 * TreeNode.cs: Recalculate the visible order before doing the
21344 Expand/Collapse Below calls, because those calls generate an
21346 - Reduce calls to the TreeView property, which is mildly expensive
21347 by using a local var.
21348 * Form.cs: Layout the MDI child windows when creating the parent
21350 - Don't use the internal constructor anymore
21351 * MdiClient.cs: use the parent form width/height (if available)
21352 when laying out the child windows, we do this because the
21353 mdiclient isn't docked yet when the initial layout is done.
21354 - Don't need an internal constructor anymore.
21356 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21358 * FileDialog.cs: handle access errors when trying to create a folder
21359 or changing to a directory. No need to initialize out parameters.
21361 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21363 * FileDialog.cs: Append a number when creating a new folder if the
21364 folder already exists (use parenthesis instead of square brackets)
21366 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21369 - Disabled registry support for windows and added better registry
21370 error checking for other systems (need to investigate why it
21371 works perfectly on my system)
21372 - If a folder already exist show an error MessageBox instead of
21373 trying to create an indexed name.
21374 - Fixed a non intentional typo.
21376 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21378 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21380 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21382 * FileDialog.cs: When creating a new folder don't crash if the
21383 folder already exists.
21385 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21387 * FileDialog.cs: Allmost a complete rewrite.
21388 - added a "virtual" file system that handles the differences
21389 between unix and windows file systems (especially the directory
21390 structure). Moved most of the directory and file handling code
21392 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21393 UnixFileSystem and FSEntry.
21394 - Recently used folder/directory, size, location and used file names
21395 (file name ComboBox) are now stored in the registry and get read
21396 before the dialog shows up (fixes part 6 of bug #78446).
21397 - Creation of new folders/directories is now possible (context menu
21398 or ToolBar). Added TextEntryDialog for this that fills in the gap
21399 until ListView.LabelEdit works.
21400 - Fixed cursor handling (bug #78527) and focus handling for
21402 - Various "Search in" ComboBox enhancements. The content of the
21403 dropdown listbox now almost matches ms.
21404 - Changed the behaviour when the user switches to SpecialFolder
21405 Recent to show the ListView in View.Details.
21406 - Beside using the ToolBar to change the View property of the
21407 file ListView it is now possible to use the context menu too.
21409 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21411 * ComboBox.cs: Don't create a new ObjectCollection when an item
21412 gets inserted. Just insert the item in the existing object_items
21415 2006-06-08 Jackson Harper <jackson@ximian.com>
21417 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21418 that the treeview and root node checks are done also, this fixes a
21419 regression i caused in the unit tests.
21421 2006-06-07 Wade Berrier <wberrier@novell.com>
21423 * RichTextBox.cs: More ISO8859-1 -> unicode
21425 2006-06-07 Mike Kestner <mkestner@novell.com>
21427 * ComboBox.cs : use items to hold highlight/selection so that
21428 collection insertions don't require synchronization.
21430 2006-06-07 Jackson Harper <jackson@ximian.com>
21432 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21433 routine. We now always keep the sized edge at the cursor instead
21434 of computing movement and adjusting rects. There is one buglet
21435 with this method though when the cursor is moved over area that
21436 the window can not expand too (such as the toolbars on the desktop).
21438 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21440 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21441 here. Fixes crash on startup in AlbumSurfer.
21443 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
21445 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21448 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21450 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21451 statement to avoid calling XNextEvent which will block if another thread
21452 took the event that we were expecting. Fixes bug #78605.
21454 2006-06-07 Mike Kestner <mkestner@novell.com>
21456 * ListView.cs : isolated checkbox clicking from the selection logic.
21457 Toggle check state on item doubleclicks. Really fixes #78454 part2.
21459 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21461 * Form.cs: Check that the value passed to Form.DialogResult
21462 is a valid enum value.
21464 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21466 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21467 Computer'. Clicking it in the network view goes to 'My Computer'.
21468 Added CIFS filesystem type. Display the mount point of filesystems.
21469 Avoid duplicate mount points (happens for me with CIFS);
21471 2006-06-06 Jackson Harper <jackson@ximian.com>
21473 * InternalWindowManager.cs: Draw the maximized windows buttons
21476 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21478 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21479 all other dialogs. Fixes bug #78585.
21481 2006-06-06 Mike Kestner <mkestner@novell.com>
21483 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21484 Only invalidate checkbox on checkstate changes to avoid flicker.
21485 * ListBox.cs : avoid unselect/select when clicking selected item.
21486 avoid reselection flicker for already multiselected items.
21489 2006-06-06 Jackson Harper <jackson@ximian.com>
21491 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21492 the parent form so that the menu is removed if needed.
21494 2006-06-06 Mike Kestner <mkestner@novell.com>
21496 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
21497 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
21499 2006-06-06 Mike Kestner <mkestner@novell.com>
21501 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
21504 2006-06-06 Jackson Harper <jackson@ximian.com>
21506 * Control.cs: Use the property (instead of the field) to get the
21507 default cursor so it is instantiated correctly.
21508 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21509 resizes so we need to manually repaint the window decorations here.
21510 - Set the titlebar button locations as soon as they are created,
21511 otherwise they are not set correctly on win32.
21513 2006-06-06 Chris Toshok <toshok@ximian.com>
21515 * CurrencyManager.cs (set_Position): call PullData before
21517 (AddNew): after calling IBindingList.AddNew, update our
21518 listposition, and call OnCurrentChanged/OnPositionChanged (without
21520 (OnCurrentChanged): remove the call to PullData from here.
21521 (OnItemChanged): remove the call to PushData from here.
21522 (OnPositionChanged): change the test from == null to != null to
21523 match the other methods.
21524 (ListChangedHandler): the grossest part of the patch. Implement
21525 this such that it passes the unit tests in CurrencyManagerTest and
21526 the output more or less matches that of MS's implementation.
21528 2006-06-06 Mike Kestner <mkestner@novell.com>
21530 * ListView.cs : only update check state on single click.
21531 * ThemeWin32Classic.cs : fix focus drawing for details view without
21532 fullrowselect. Fixes #78454.
21533 * XplatUIX11.cs : fix for double click emission.
21535 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
21537 * PropertyGridView.cs : Applied Atsushi's patch to fix
21538 font dialog bug (#78197).
21540 2006-06-05 Jackson Harper <jackson@ximian.com>
21542 * TreeNode.cs: Compute the next node for expanding/collapsing
21543 correctly. We now factor in nodes without a NextNode
21544 correctly. (Fixes somes cases in nunit-gui).
21545 * InternalWindowManager.cs: Set the bounds when updating the
21546 virtual position of a tool window.
21548 2006-06-05 Chris Toshok <toshok@ximian.com>
21550 * DataGrid.cs: rename cached_currencymgr to list_manager.
21551 (set_CurrentCell): move SetCurrentCell code here, and clean it up
21553 (CurrentRow, CurrentColumn): single accessors so we can make the
21554 cursor movement code a lot easier to understand.
21555 (CurrentRowIndex): implement this in terms of CurrentRow.
21556 (BeginEdit): clean this up a bit.
21557 (CancelEditing): sort out the is_editing/is_changing/is_adding
21559 (EndEdit): minor changes.
21560 (OnKeyDown): add a comment about a (most likely) unnecessary
21562 (OnMouseDown): cancel editing when we click on a row header. And
21563 use the CurrentRow setter, not CurrentCell.
21564 (ProcessDialogKey): directly call ProcessGridKey.
21565 (UpdateSelectionAfterCursorMove): factor out this common block of
21566 code (it's used everywhere that we move the cursor by updating row
21568 (ProcessGridKey): pretty substantial overhaul. Use the
21569 CurrentRow/CurrentColumn properties to make the code a lot more
21570 readable. Only use the CurrentCell property when we have to
21571 modify both row and column at once. Tab behavior is still broken,
21572 and Delete is untested.
21573 (Select): if we have no selected rows, set selection_start to
21575 (EditCurrentCell): rename EditCell this. It was only ever invoked
21576 with CurrentCell as the arg, so drop the arg and rename it.
21578 * DataGridColumnStyle.cs: clean up the constructors a little, and
21579 drop CommonConstructor().
21581 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21582 actually get notified when the user hits it.
21583 (ProcessKeyMessage): *substantially* simplify this method.
21584 There's no reason (that I can see) for the textbox to be making
21585 calls into the datagrid at all. Remove all of them but the ones
21586 for Enter handling. those will take some more work.
21588 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21589 calling HideEditBox.
21590 (HideEditBox): if we have an active textbox, render it invisible
21591 without causing a re-layout of the datagrid.
21593 2006-06-05 Mike Kestner <mkestner@novell.com>
21595 * ListView.cs : fix NRE crasher when focuseditem is cleared by
21596 collection changes by resetting it to Items[0]. Fixes #78587.
21598 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21600 * MessageBox.cs: if the height of the text is larger than the icon_size,
21601 use that. Fixes bug #78575.
21603 2006-06-05 Jackson Harper <jackson@ximian.com>
21605 * TreeView.cs: Fix line drawing when scrolling. To do this each
21606 node is basically responsible for drawing its entire horizontal
21607 area. When drawing a node it draws its parent node lines if
21609 - Adjust the clip area to the viewport rectangle
21610 - Fix Left/Right key handling to match MS. (It expand/collapses
21611 and moves to parents/first child but does not move selection to
21613 - Fix SetTop to work with new bound calculation code
21614 - When scrollbars are no longer needed we need to reset scrolling
21615 vars and recalculate the visible order so the redraw is correct
21616 * TreeNode.cs: We can't expand/collapse nodes with no children.
21618 2006-06-03 John Luke <john.luke@gmail.com>
21620 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21621 so the colors work without dev packages
21623 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
21626 - Select: Implemented to just use activate. Seems to match MS
21627 behaviour closest. Documented to only do actual control walking
21628 based on it's parameters if in a container control so I moved
21630 - Removed selection check logic from our internal Select() method
21631 * ContainerControl.cs:
21632 - Select: Moved selection logic from Control here, since MS documents
21633 that containers obey the bool arguments. No longer calling base
21635 2006-06-02 Jackson Harper <jackson@ximian.com>
21637 * TreeView.cs: If the selected node isn't changed when we get
21638 focus update the previously selected node so that we see the
21641 2006-06-02 Mike Kestner <mkestner@novell.com>
21643 * ComboBox.cs: restructure grab and general mouse event handling.
21644 Make the composite control raise mouse events like it was a single
21645 control for leaves/enters/motion/up/down events. fix dropdown list
21646 coordinate mangling and refactor it into the scrollbar subclass to
21647 reduce code duplication. Fixes #78282 #78361 and #78457.
21649 2006-06-02 Mike Kestner <mkestner@novell.com>
21651 * ScrollBar.cs: remove Capture setting/clearing, as it happens
21652 automatically in the Control.WndProc.
21654 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21656 * FileDialog.cs: fix crash when running SharpChess, which sets the
21657 FilterIndex to 2 with only one Filter.
21659 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21661 * ToolBar.cs: add SizeSpecified property.
21662 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21663 try to figure out our real size, otherwise fallback to what the
21666 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21668 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21669 * Control.cs (WndProc): MS always calls the DefWndProc to pass
21672 2006-06-01 Mike Kestner <mkestner@novell.com>
21674 * ListView.cs: revamp the focus management in ListView. It still
21675 causes churn of LostFocus/GotFocus emissions on clicks, but it's
21676 better than not handling focus at all. Will revisit when pdb feels
21677 the general focus handling is solid. Fixes #78526.
21679 2006-06-01 Jackson Harper <jackson@ximian.com>
21681 * TreeView.cs: Set the default border style in the constructor.
21682 - Move painting to use OnPaintInternal instead of capturing
21683 WM_PAINT, this is the correct way of doing things
21684 - UpdateBelow shouldn't invalidate the scrollbar area
21685 - Cap the top on update below in case the node was above the top
21686 of the viewport rectangle.
21687 - ExpandBelow and Collapse below need to obey Begin/End Update.
21688 * TreeNode.cs: Make is_expanded internal so the treenode
21689 collection can change it without firing the whole event chain.
21690 * TreeNodeCollection.cs: When clearing all the child nodes make
21691 sure to recalc the visible order.
21692 - Improve algo for remove the top node
21694 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21696 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21697 SendMessage directly calling window procedures, which in turn might
21700 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21702 * Control.cs: Don't handle WM_SETFOCUS if the same window already
21703 has focus (works around X11 sending a FocusIn after our SetFocus)
21704 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21706 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
21708 * Mime.cs: Fix for the NET_2_0 build.
21709 NameValueCollection needs StringComparer now.
21711 2006-05-31 Chris Toshok <toshok@ximian.com>
21713 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21714 return (via an out parameter) the starting X of the column.
21715 (UpdateVisibleColumn): track change to FromPixelToColumn.
21716 (HitTest): add a ColumnResize case here.
21717 (DrawResizeLine): new function, probably poorly named.
21719 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
21720 only need to keep one reference.
21721 (set_ListManager): same.
21722 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21723 Also, add support for HitTestType.ColumnResize.
21724 (OnMouseMove): add column resize behavior here, and change the
21725 cursor to the correct one as we move around the datagrid.
21726 (OnMouseUp): terminate the column resize if we're resizing.
21727 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21728 for the current cell.
21729 (ConnectListManagerEvents): use cached_currencymgr.
21730 (DisconnectListManagerEvents): fill this in, using
21731 cached_currencymgr.
21732 (SetCurrentCell): remove cached_currencymgr_events handling.
21733 (SetDataMember): only call DisconnectListManagerEvents if
21734 cached_currencymgr is != null.
21735 (SetDataSource): same.
21736 (OnListManagerCurrentChanged): cached_currencymgr_events ->
21737 cached_currencymgr.
21739 2006-05-31 Jackson Harper <jackson@ximian.com>
21741 * BindingManagerBase.cs: Remove somedebug code that creeped into
21743 * TreeNode.cs: We get the indent level dynamically right now, so
21744 don't track it as a member.
21745 * TreeNodeCollection.cs: Make sure all nodes added to the list
21746 have parents, treeviews/topnodes setup properly.
21747 - Don't attempt to track indent level.
21749 2006-05-30 Jackson Harper <jackson@ximian.com>
21751 * BindingContext.cs: Create the currency manager tables here.
21752 This allows us to more easily create null tables (when bad data
21753 members are used), and more easily create related currency
21755 * CurrencyManager.cs: All the table creation stuff is done by the
21756 binding context now.
21757 - Current should throw an exception if listposition is -1.
21758 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21761 2006-05-30 Mike Kestner <mkestner@novell.com>
21763 * ListView.cs: allow reexpansion of zero-width column headers.
21766 2006-05-28 Chris Toshok <toshok@ximian.com>
21768 * CurrencyManager.cs (get_Current): after the late binding
21769 listposition = -1 fix, we need to guard against it here and return
21770 null, otherwise we raise an exception (which is swallowed
21771 elsewhere, and breaks datagrid databinding.)
21773 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21775 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21776 than WM_SYSKEY, don't throw if get something unexpected (#78507)
21778 2006-05-26 Jackson Harper <jackson@ximian.com>
21781 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21782 values, it's faster and it's all we care about (we don't care if
21783 the names aren't equal).
21784 * KeyboardLayouts.cs: Eliminate some dead code.
21786 * X11Keyboard.cs: Lazy init keyboard detection.
21787 - Cleanup access modifiers a little.
21789 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21791 * XplatUIX11.cs: Once again, attempting to get layout just right.
21793 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21795 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21796 the sizes of each link section, that will result in sizes that
21797 match DrawString's layout (Fixes #78391)
21799 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
21801 * FileDialog.cs: If AddExtension property is true autocomplete the
21802 extensions in SaveFileDialog correctly. Fixes bug #78453.
21803 Set MyNetwork and MyComputer to "C:\" for windows. This should
21804 fix part 8 of bug #78446 for now.
21806 2006-05-26 Chris Toshok <toshok@ximian.com>
21808 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
21809 invalidate the current row header if we need to, but presumably
21810 we'll invalidate the row corrsponding to the bounds or
21812 (GridHScrolled): switch back to this method, as it's part of the
21813 public api. *sigh*.
21814 (GridVScrolled): same.
21815 (OnMouseWheel): hack up something that more or less works. Call
21816 GridHScrolled/GridVScrolled directly, instead of duplicating much
21817 of their code here.
21818 (EnsureCellVisibility): reinstate a bunch of this code, since we
21819 can't just set the scrollbar Value and expect to do all the work
21820 in the ValueChanged handler. Also, Call Update() after scrolling
21821 in one direction so the other XplatX11.ScrollWindow call has the
21822 proper stuff in the proper places.
21823 (EditCell): set is_editing to true before calling .Edit.
21825 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21826 don't bother comparing first.
21827 (OnKeyPress): call grid.ColumnStartedEditing before calling
21828 base.OnKeyPress. this will set is_changing and invalidate the row
21829 header if necessary.
21830 (ProcessKeyMessage): for WM_CHAR messages, call
21831 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
21834 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21835 it's done in the DataGrid.
21836 (NextState): call grid.ColumnStartedEditing, which takes care of
21837 invalidating the row header (and setting is_changing).
21839 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21840 here. it's done in the DataGrid.
21842 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21844 * Control.cs: allow changing the cursor when the mouse position is
21845 out of bounds but Capture is set.
21846 * LinkLabel.cs: handle the case when the mouse button is pressed on the
21847 linklabel but released somewhere else.
21849 2006-05-25 Jackson Harper <jackson@ximian.com>
21851 * TreeView.cs: When we get focus if there is no selected node make
21853 - Remove some uneeded setup code from Draw.
21854 * TreeNodeCollection.cs: If the tree doesn't have a top node when
21855 a new node is inserted make the new node the top.
21857 * Timer.cs: Use Utc time so that no local time zone stuff needs to
21858 be used (should be faster).
21860 2006-05-25 Chris Toshok <toshok@ximian.com>
21862 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
21863 problem with the last commit.
21865 2006-05-25 Chris Toshok <toshok@ximian.com>
21867 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
21868 need the invalidate call here, while scrolling right-to-left via
21869 the left arrow key (i.e. moving the editing cell while scrolling).
21871 * DataGrid.cs (.ctor): remove the initialization of
21872 ctrl_pressed/shift_pressed. We no longer track them using key
21873 up/down handlers, but by using Control.ModifierKeys. Also, switch
21874 to using ValueChanged handlers on the scrollbars instead of
21875 Scrolled event handlers. This simplifies a bunch of the scrolling
21877 (GridHValueChanged): rename from GridHScrolled, and change it to
21878 work with the new event args.
21879 (GridVValueChanged): same.
21880 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
21881 (OnMouseWheel): actually scroll the datagrid. Don't change the
21883 (ProcessGridKey): correct all the keyboard navigation stuff I
21884 could find. Ctrl up/down/left/right/home/end work now.
21885 (EnsureCellVisibility): correct method name spelling. Also,
21886 simplify this a touch by not explicitly calling the
21887 ScrollToRow/ScrollToColumnInPixels methods. We just set the
21889 (OnKeyUpDG): no need for this method now.
21891 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21893 * LinkLabel.cs: display the OverrideCursor when hovering the label.
21896 2006-05-25 Chris Toshok <toshok@ximian.com>
21898 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
21901 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
21903 * Application.cs: Moved setting of is_modal and closing to before
21904 we create the control, to allow the event handlers called as a
21905 result of creation affect closing. Also removed Gonzalo's previous
21906 change to setting DialogResult, the behaviour has been moved to
21909 - ShowDialog(): Removed explicit creation of the form, let RunLoop
21911 - ShowDialog(): If no dialog result is set, we need to return Cancel
21912 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
21913 the close is cancelled
21915 2006-05-25 Jackson Harper <jackson@ximian.com>
21917 * StatusBar.cs: We only need to update the sizes of the other
21918 panels when we have auto size contents. Also we are only updating
21919 the contents of the panel, not the borders, so compensate for the
21920 border width (TODO: get this width from the theme somehow).
21921 * TreeView.cs: Scrollable is true by default
21922 - Use invalidate instead of refresh where needed
21923 - Factor the scrollable value into scrollbar updating
21924 - Update the scrollbars if the Scrollable property is altered
21925 - Update the selected node if its ImageIndex is changed
21926 - Handle null nodes in UpdateNode (mainly so we don't have to
21927 check if selected is null when updating it
21928 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
21929 are factored into the visible count
21930 - Use VisibleCount for clarity in the code
21931 - When the font is changed we need to recurse through all the
21932 nodes and invalidate their sizes
21934 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21936 * Application.cs: set the DialogResult to fixed when the main form is
21937 hidden or destroyed while being modal.
21939 2006-05-25 Miguel de Icaza <miguel@novell.com>
21941 * Theme.cs: Use Tangoified messagebox icons.
21943 (GetSizedResourceImage): Also cope with width = 0 and do not
21944 trigger a warning in that case (0 means "give me your icon from
21945 the resouce, no special size needed).
21947 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
21949 * Application.cs: Leave runloop if the the main modal form is
21950 hidden (fixes #78484)
21952 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
21954 * BindingContext.cs : reject null datasource in Contains() and
21956 * CurrencyManager.cs : check data_member validity when data_source
21957 is dataset. When it is late binding, the initial position is -1.
21959 2006-05-24 Jackson Harper <jackson@ximian.com>
21961 * TreeNodeCollection.cs: Dont't recalculate the visible order on
21962 inserted nodes that aren't visible. This changes the
21963 max_visible_order which confuses scrollbar settings.
21964 - Use the enumerator to get the prev node instead of duplicating
21966 * TreeView.cs: Use new method for setting scrollbar values
21967 - Don't set the bounds every time the scrollbar is updated
21968 - When updating below the root node use an invalidate instead of a
21969 refresh to prevent the child controls (scrollbars) from being
21970 refreshed. (UpdateBelow still needs to be reworked anyways).
21971 - Reenable SetBottom now that visible orders are set correctly,
21972 added some debug code incase we ever get bad values there again.
21973 - Set the scrollbar max to 2 less then the max value, this
21974 compensates for the max value being one above the node count, and
21975 for scrollbars adding one extra "notch".
21976 - When drawing image nodes if there is an imagelist we draw the
21977 first image in the list if the supplied image index is out of the
21978 image list's bounds.
21980 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21982 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
21983 we receive a size change from the WM (Fixes #78503)
21985 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21987 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
21988 rectangle (Fixes #78501)
21990 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
21993 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
21995 - Fixed MouseMove to no longer switch pressed state unless the left
21996 mouse button is pressed. Atsushi provided the original patch (#78485)
21998 2006-05-24 Jackson Harper <jackson@ximian.com>
22000 * ScrollBar.cs: New internal methods that allow us to change a
22001 couple values on the scrollbar (the most common case is maximum
22002 and large change) without getting multiple invalidates.
22004 2006-05-24 Chris Toshok <toshok@ximian.com>
22006 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22007 (Edit): save off the original state in oldState, and set
22008 grid.is_editing to true.
22009 (OnKeyDown): abort editing if escape is pressed. also, call
22010 NextState if space is pressed.
22011 (OnMouseDown): call NextState.
22012 (NextState): factor out shared code from OnKeyDown and OnMouseDown
22013 here. Also, only invalidate the row header once (on the initial
22014 is_changing switch) to save on redraws.
22016 2006-05-24 Chris Toshok <toshok@ximian.com>
22018 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22019 if the value in the cell is different than it was before. This
22020 keeps us from triggering a layout when we move around a datarid
22021 with a highlighted cell.
22022 (Edit): suspend layout when creating/positining the text box, and
22023 resume passing false so we don't ever actually re-layout.
22024 (ReleaseHostedControl): same.
22025 (EnsureTextBox): reformat slightly, and set WordWrap to false.
22027 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22028 control-key sequences should go to the datagrid - remove that
22029 lock. Also, modify the conditions under which we move between
22030 cells when moving the cursor within a cell, and remove the "this"
22031 and "base" from field accesses. We weren't even consistent, given
22032 they all were in the base class.
22034 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
22036 * Binding.cs : (.ctor)
22037 An obvious NRE fix for BindingTest.CtorNullTest().
22039 2006-05-23 Chris Toshok <toshok@ximian.com>
22041 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22042 them between lines. This fixes some quirks editing cells in the
22045 2006-05-23 Jackson Harper <jackson@ximian.com>
22047 * TreeView.cs: Use begin/end update when doing expand/collapse all
22048 so that we don't get flicker on the scrollbar.
22050 2006-05-23 Jackson Harper <jackson@ximian.com>
22052 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
22053 treenode calculations to be independant of the painting code. To
22054 do this nodes track a visible order which is calculated by the
22056 - Call new methods for expanding/collapsing nodes. These methods
22057 use scrollwindow so we don't have to update everything below the
22059 * TreeView.cs: Refactored drawing and scrolling code. We don't
22060 need to update nodes when drawing anymore or calculate scrollbar
22062 - Added new methods for expanding/collapsing nodes. These methods
22063 use ScrollWindow so as to not have to redraw all the nodes below.
22064 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22065 we add/remove nodes or sort.
22066 - Handle removing the selected and the top node properly.
22068 2006-05-23 Chris Toshok <toshok@ximian.com>
22070 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22071 maybe this should actually happen in the datagrid code?
22072 (EndEdit): no need to invalidate anything, given that
22073 ReleaseHostedControl causes the datagrid to relayout, which
22074 invalidates everything anyway.
22076 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22077 in SetCurrentCell).
22078 (set_SelectionBackColor): call InvalidateSelection instead of
22080 (set_SelectionForeColor): same.
22081 (BeginEdit): Flesh this out a bit.
22082 (CancelEditing): only do any of this if we're editing/adding.
22084 (OnMouseDown): there's no need to cancel editing here, it's done
22086 (SetCurrentCell): only invalidate the current row header if it's a
22087 different row than the new one.
22088 (ShiftSelection): fix this to work like MS does.
22089 (ResetSelection): factor out the invalidation of selected_rows to
22090 InvalidateSelection.
22091 (SetDataSource): cancel any editing that's going on.
22093 * DataGridColumnStyle.cs
22094 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22095 call the non-interface version.
22097 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22098 header rectangle with the clip rectangle so we don't redraw the
22099 entire header for just a small area. Gets rid of the last flicker
22100 when horizontally scrolling.
22101 (DataGridPaintRow): same.
22103 2006-05-23 Mike Kestner <mkestner@novell.com>
22105 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22106 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
22107 poorly placed checkbox on the MS control. Fixes Alex's unfiled
22108 Critical bug report.
22110 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22112 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22113 and this fixes #78493
22115 2006-05-23 Miguel de Icaza <miguel@novell.com>
22117 * Theme.cs (GetSizedResourceImage): Scale images if the proper
22120 * FileDialog.cs: Do not change the background for the side bar as
22121 it wont work nicely with the theme, and also reduces the artifacts
22122 in rendering the icons (which I want to fix too).
22124 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22125 resources, not resgen resources.
22127 (PlatformDefaultHandler): Pull images using the new API.
22129 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22131 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22132 a reference to the hwnd and will not remove it unless there are
22133 no pending exposures (fixes #78341)
22134 * XplatUI.cs: Improved debug
22136 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
22138 * MenuAPI.cs : don't handle OnClick event when it was not the left
22139 button. Fixed bug #78487.
22141 2006-05-23 Mike Kestner <mkestner@novell.com>
22143 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22144 prefer submenus to the top menu for item lookup, to avoid popping down
22147 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
22149 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22150 Graphics.FillRectangle as the visual results are really bad (even
22151 on win). We now draw perfect arrows (and perfect shadows when the
22152 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22153 Pen.DashPattern to draw the dots of each line.
22155 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
22157 * FileDialog.cs: Update the filename combobox when navigating through
22158 the ListView with the cursor keys. Fixes part 7 of bug #78446.
22160 2006-05-22 Mike Kestner <mkestner@novell.com>
22162 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22165 2006-05-22 Mike Kestner <mkestner@novell.com>
22167 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22168 requests. Fix a misspelled parameter and a copy paste exception error
22171 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
22173 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22174 to get the same width/height (5/13) on X11 as the default font has on
22175 win32. This means that our DefaultFont emSize is smaller than the
22176 the MS SWF equivalent (even thought the width/height stays the same)
22178 2006-05-20 Jackson Harper <jackson@ximian.com>
22181 * MdiWindowManager.cs:
22182 * InternalWindowManager.cs: Make sure to use the border width from
22185 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
22187 * PrintDialog.cs: Implements printer details
22189 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
22191 * FileDialog.cs: Added focus handling for PopupButtonPanel.
22192 Fixes part 1 and 2 of bug #78446
22194 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
22196 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22197 instead of sticking to the first ever calculated value
22199 2006-05-19 Mike Kestner <mkestner@novell.com>
22201 * ComboBox.cs: fix mouse motion selection to use MousePosition and
22202 PointToClient, since Capture is set. Fixes #78344.
22204 2006-05-19 Mike Kestner <mkestner@novell.com>
22206 * ListView.cs: match MS behavior in Details view where items are not
22207 drawn if Columns.Count == 0.
22208 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22209 Use a separate pen to draw the check, since changing the width affects
22210 the box as well. Fixes #78454.
22212 2006-05-18 Miguel de Icaza <miguel@novell.com>
22214 * ListView.cs: ArgumentOutOfRangeException, single versions of the
22215 exception should throw the name of the invalid argument.
22217 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22218 there are no files listed.
22220 2006-05-18 Jackson Harper <jackson@ximian.com>
22222 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22225 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22227 * Control.cs: Brought back our old UpdateZOrder method as a private
22228 function and switched our calls from UpdateZOrder to the new one.
22229 This fixes the Paint.Net canvas disappearing bug.
22231 2006-05-18 Jackson Harper <jackson@ximian.com>
22234 * ThemeWin32Classic.cs:
22235 * InternalWindowManager.cs: Move the drawing into the theme,
22236 expose everything the theme should need from the window manager.
22238 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22240 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
22241 from the call to NativeWindow to avoid walking up the parent chain
22242 further than needed (speeds up setting cursors and avoids setting
22243 the wrong cursor if a parent has another cursor defined)
22244 * Cursor.cs: When loading an icon as cursor, MS uses the center of
22245 the icon as hotspot, not what's contained as hotspot in the icon
22246 file. This fixes the perceived drawing offset seen with Paint.Net
22248 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22251 - Store the calculated rectangle in Hwnd object and use it when
22252 setting the client size
22253 - Force Toolwindows to always be type Dock, to ensure they're on top
22255 2006-05-18 Mike Kestner <mkestner@novell.com>
22257 * ComboBox.cs: first pass at ComboBox rework. Layout is more
22258 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
22259 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
22260 Substantial refactoring to remove confusing nested classes. Coding
22261 standard and Get+Set->property refactorings. Shift to index based
22262 highlighting in ComboListBox instead of constantly using IndexOf and
22263 Items[]. Add invalidations on resize for DropDownList to fix ugliness
22264 in FileDialog growth. Draw borders manually since Simple mode needs
22265 to look like two independent controls. Make listbox border
22266 conditional to DropDownStyle. Improved OwnerDraw support.
22268 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
22270 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
22271 Don't set the disposed graphics to null, so we can throw the "right"
22272 exception if the graphics is reused later (added a flag to avoid
22273 double disposing). Some behaviours are different under 2.0 and are
22274 filled under bug #78448.
22276 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22278 * Control.cs: When double-buffering is enabled, we need to reset
22279 our graphics context between paint calls. Otherwise, any
22280 transformations and other alterations on the context will
22281 become cumulative (#77734)
22283 2006-05-18 Mike Kestner <mkestner@novell.com>
22285 * ListView.cs: do focused item selection like MS on clicks.
22286 Rework focus handling for ItemControl so LostFocus invalidates as
22288 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22289 the ListView ItemControl has focus.
22291 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
22293 * XplatUIX11.cs: If client_window ends up being width or height zero
22294 due to border settings, move it off window inside whole_window (#78433)
22296 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22298 * Mime.cs: Shrink the mime file cache correctly.
22300 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22302 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22304 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22306 * XplatUIX11.cs (AddExpose): More sanity checks
22308 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22311 - AddExpose: Don't add expose ranges outside the size of our
22313 - Cast opacity values to Int32 to avoid crashes with certain
22315 - Added disabled code paths that protect against illegal cross-
22316 thread painting (Developers.exe)
22318 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22320 * ProgressBar.cs: Invalidate the control when it's resized
22321 since block size is based on control size. (#78388)
22323 2006-05-16 Miguel de Icaza <miguel@novell.com>
22325 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22326 of setting the incoming argument to the "reset" value, we set the
22327 this.datamember to string.empty (before we were invalidating the
22332 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22334 * Form.cs: Only apply transparency settings after the form
22335 is created. (Fixes #77800)
22337 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22339 * ApplicationContext.cs: Grab the HandleDestroyed event so
22340 we know when to fire OnMainFormClosed
22342 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22344 * Application.cs: Introduced sub-class to allow tracking of
22345 threads and centralized triggering of the event mess for
22346 ThreadExit, AppExit, etc.. (#76156)
22348 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
22351 - Do not return a null icon index value for a mime subclass.
22352 Instead try the main mime type class too.
22353 - Seems that some newer distributions don't have a link to some
22354 gnome default icons anymore. So check the default gnome dir too.
22357 2006-05-16 Jackson Harper <jackson@ximian.com>
22359 * MdiClient.cs: Don't paint the parent background image if we have
22360 our own background image.
22362 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22365 - PerformLayout: Do not shrink space filled by DockStyle.Fill
22366 controls, all filled controls are supposed to overlap (#78080)
22367 - UpdateZOrder is supposed to update the control's z-order in the
22368 parent's z-order chain. Fixed to behave like that
22369 - BringToFront: Removed obsolete code
22370 - SendToBack: Simplyfied
22371 - SetChildIndex: Trigger layout calculations when Z-order changes
22372 since layout is done by z-order
22374 2006-05-16 Chris Toshok <toshok@ximian.com>
22376 [ fixes bug #78410 ]
22377 * DataGrid.cs (set_AlternatingBackColor): use
22378 grid_drawing.InvalidateCells instead of Refresh().
22379 (set_BackColor): call grid_drawing.InvalidateCells.
22380 (set_BackgroundColor): use Invalidate instead of Refresh.
22382 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22383 invalidate the cell area.
22385 2006-05-15 Chris Toshok <toshok@ximian.com>
22387 [ fixes bug #78011 ]
22388 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22389 on to DataGridPaintRow.
22390 (DataGridPaintRow): take a clip argument, and only draw the cells
22391 which intersect it. same with the not_usedarea.
22393 * Theme.cs (DataGridPaintRow) add @clip parameter.
22395 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22396 XplatUI.ScrollWindow.
22397 (ScrollToRow): same.
22399 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22400 with last column which was causing a gray swath to appear with the
22401 XplatUI.ScrollWindow code.
22403 2006-05-15 Chris Toshok <toshok@ximian.com>
22405 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22406 use XplatUI.ScrollWindow.
22407 (VerticalScrollEvent): use XplatUI.ScrollWindow.
22409 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22411 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22413 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22415 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22416 file since there are no equivalent X11 cursors
22418 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22420 * MonthCalendar.cs : DateTimePicker should reflect selected date
22421 on mouse*up*, not mouse*down*. Fixed originally reported part of
22424 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22426 * TabControl.cs : When argument index is equal or more than tab
22427 count, just ignore. Fixed bug #78395.
22429 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22431 * Control.cs: Dispose all child controls when control is diposed (#78394)
22433 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22435 * ColorDialog.cs: Finally it is possible to select the color with
22438 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22440 * PrintDialog.cs: Fix typo
22442 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22444 * PrintDialog.cs: PrintDialog is not resizable
22445 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22446 color. Made some ToolBar drawing methods protected virtual.
22448 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
22450 * PrintDialog.cs: Implementation of the PrintDialog
22452 2006-05-12 Chris Toshok <toshok@ximian.com>
22454 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22455 thumb, instead use MoveThumb. This has the side effect of making
22456 most of the other thumb moving machinery use MoveThumb as well.
22457 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22458 need to actually invalidate the rectangle where the new thumb will
22460 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22461 We force an Update() after, so it's not as fast as it could be,
22462 but at least there's zero flicker and no droppings.
22463 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22464 (UpdateThumbPos): add another argument (dirty), which says whether
22465 or not to calculate/add dirty regions which we later invalidate.
22466 For cases where we know we're going to use MoveThumb, we pass
22467 false for this. Otherwise, pass true.
22469 2006-05-12 Jackson Harper <jackson@ximian.com>
22471 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22474 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
22476 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22477 and GetClipRegion methods and UserClipWontExposeParent property.
22478 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22479 overriding UserClipWontExposeParent property, setting to false, since
22480 Win32 handles the required expose messages to draw our clipped parent
22482 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22483 PaintEventStart to set the user clip region if set.
22485 - Now internally tracking the Region for the control since we need to
22486 store it if the handle is not yet created and only set it when it
22487 becomes created. Before setting the region forced handle creation
22488 - Added code to draw the parents underneath a user-clipped region
22489 * Hwnd.cs: Added UserClip property
22491 2006-05-12 Chris Toshok <toshok@ximian.com>
22493 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22494 (set_Maximum): same.
22495 (set_Minimum): same.
22496 (set_SmallChange): same.
22497 (OnMouseUpSB): remove the call to refresh when releasing the
22498 thumb. We shouldn't need it.
22500 2006-05-12 Miguel de Icaza <miguel@novell.com>
22502 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22503 AutoSize set to None, we do not need to relayout everything, we
22504 just need to invalidate the current region.
22506 (Draw): Do not draw the entire ClientArea, just redraw the
22507 clip area being passed.
22509 * MdiClient.cs: Make MdiClient constructor with the Form argument
22512 2006-05-12 Jackson Harper <jackson@ximian.com>
22514 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22515 parents background image, but strangely not their own.
22516 - (DrawStatusBarPanel): Take into account horizontal alignment
22517 when drawing the strings and icons.
22519 2006-05-12 Mike Kestner <mkestner@novell.com>
22521 * ListBox.cs: avoid invalidations for focus when the collection is
22524 2006-05-12 Chris Toshok <toshok@ximian.com>
22526 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22527 invalidate the entire thumb area. Call InvalidateDirty which
22528 limits the redraw to the thumb itself and surrounding pixels.
22530 * XplatUIX11.cs (ScrollWindow): optimize copying.
22532 2006-05-12 Chris Toshok <toshok@ximian.com>
22534 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22535 Figure out the positioning/layout in a single pass instead of
22536 multiple recursive invocations. Speeds up the initial display of
22537 the data grid. Also, make many things private that were
22538 originally public but unused outside this class.
22540 2006-05-11 Jackson Harper <jackson@ximian.com>
22542 * MdiClient.cs: Improved layout code.
22544 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
22546 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22547 not SelectedObject.
22549 2006-05-11 Chris Toshok <toshok@ximian.com>
22551 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22552 union of that will always be {0,0,width,height}.
22554 2006-05-11 Jackson Harper <jackson@ximian.com>
22556 * Form.cs: Match MS's DefaultSize for forms (they must have
22557 changed the size in sp2).
22559 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22561 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22563 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22565 * TextControl.cs : Fixed bug #78109. This incorrect position
22566 comparison caused crash on automatic line split.
22567 * TextBoxBase.cs : reduce duplicate code.
22569 2006-05-10 Jackson Harper <jackson@ximian.com>
22571 * MdiClient.cs: Active form is only sent to the back when using
22572 the Next form functionality, when a form is clicked the current
22573 active shouldn't be sent to the back.
22574 - Layout the mdi windows when the container is first made visible.
22575 * Form.cs: Give the MdiClient a ref to the containing form when we
22578 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22580 * LinkLabel.cs : link_font could be uninitialized, so populate one
22581 before actual use. Fixed bug #78340.
22583 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22585 * XplatUIX11.cs : clipboard format native value is IntPtr.
22588 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22591 - Instead of showing context menus directly we send WM_CONTEXTMENU,
22592 which is passed up the parent chain by DefWndProc
22593 - We now handle WM_CONTEXTMENU to display any menu, or pass it
22594 to DefWndProc (#77956)
22595 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22597 2006-05-10 Jackson Harper <jackson@ximian.com>
22599 * MdiClient.cs: We need to remove the controls from the mdi
22600 collection, when we close the window.
22601 * MdiWindowManager.cs: Special handling of closing mdi windows.
22602 * InternalWindowManager.cs: Make the close method virtual so the
22603 mdi window manager can handle it specially.
22605 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
22608 - Recalculate grid when the data source has changed
22609 - Matches styles provided by user from all data sources types
22610 * DataGridTableStyle.cs: For columns that provided by the user set the
22611 with the preferred value is there was unassigned.
22612 * CurrencyManager.cs: throw OnItemChanged event
22614 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22616 * PictureBox.cs: Don't animate until handle is created. Start animation
22617 when handle is created.
22619 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22621 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22623 * XEventQueue.cs: We don't need to provide the extra info
22625 2006-05-10 Jackson Harper <jackson@ximian.com>
22627 * MdiClient.cs: If the mdi clients parent form has a background
22628 image set, we draw that background image for the mdi area's
22631 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22633 * TextBoxBase.cs: Set IBeam cursor (#78347)
22635 2006-05-10 Mike Kestner <mkestner@novell.com>
22637 * ToolBar.cs: fix some text padding issues with ButtonSize
22638 calculation. Update the default size to match MS documentation.
22639 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22640 button size. Fixes #78296.
22642 2006-05-10 Mike Kestner <mkestner@novell.com>
22644 * ListBox.cs: use is_visible for scrollbar positioning in case the
22645 control isn't on screen yet. Fix off by one with Right vs Width
22646 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22648 2006-05-10 Jackson Harper <jackson@ximian.com>
22650 * X11Dnd.cs: Drop to a control with another control on top of it.
22651 * ToolBar.cs: Work on a copy of the buttons list, so that it can
22652 be modified in click handlers. TODO: Look for similar problems in
22655 2006-05-09 Jackson Harper <jackson@ximian.com>
22657 * Form.cs: Window managers need the old window state when setting
22659 * InternalWindowManager.cs: Allow the base mdi window manager to
22660 handle more of the MDI only stuff (like maximize buttons).
22661 * MdiWindowManager.cs: Fix some snafus in changing the window
22662 state. Add all the menu functionality, for both popup and
22664 * MdiClient.cs: When a new form is selected the currently
22665 activated form is sent to the back, this matches MS.
22666 - Implement a new method to activate the next mdi child window.
22668 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
22671 - Added new InternalCapture method to allow controls to prevent
22672 the capture behaviour on the click handlers
22673 - Switched to use InternalCapture
22675 - Using InternalCapture to prevent mouse captures from being released
22676 on mouse button release (Fixes #78100)
22677 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22678 returns Form borders if a caption is present. (Fixes #78310)
22680 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
22682 * TreeNode.cs: Changed serialization .ctor to not require every field
22683 to be present. (#78265)
22684 * OwnerDrawPropertyBag.cs: Added serialization .ctor
22686 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
22688 * MimeIcon.cs: for is faster than foreach for strings.
22690 2006-05-05 Mike Kestner <mkestner@novell.com>
22692 * CheckedListBox.cs: update check handling code to not use selected.
22693 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22694 behavior for visual feedback, motion response, shift/ctrl handling,
22695 and properly deal with all 4 selection modes. Updates to bounds
22696 handling logic. Add scroll wheel support. [Fixes #77842]
22698 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
22701 - Moved adding of Implicit controls into .ctor. That way, subsequent
22702 creation of the controls will not cause them to think they are
22703 toplevel windows (fixes #78200 header problem)
22704 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22705 - Switched visibility setting of header control to use internal field
22706 to avoid triggering handle creation
22707 - Now checking if handle is created before causing a refresh when items
22708 are added (This makes us now match handle creation time with MS)
22709 * Splitter.cs: Removed loading of private splitter cursor, switched to
22710 Cursors version now that that is loading the right ones
22711 * Cursors.cs: Load proper splitter cursors from resources
22712 * Cursor.cs: Added second method of loading resource cursors for the
22713 VS.Net users amongst us
22715 2006-05-05 Mike Kestner <mkestner@novell.com>
22717 * ListView.cs: give header_control a minimum size based on the
22720 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
22722 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22723 window seems to do that with metacity, so set that type. (#78120)
22725 2006-05-05 Mike Kestner <mkestner@novell.com>
22727 * ListViewItem.cs: fix Details mode checkbox layout bug.
22728 * ThemeWin32Classic.cs: draw a ListView column header for unused space
22729 at the end of the header, if it exists. [Fixes for #78200]
22731 2006-05-04 Jackson Harper <jackson@ximian.com>
22733 * MdiClient.cs: Add a helper property to get the container form.
22734 * MdiWindowManager.cs: We have to make sure to use the menu origin
22735 when drawing the icons and buttons, this fixes maximized window
22736 icons/buttons on win32.
22737 * InternalWindowManager.cs: Reset the restore captions when a
22738 window goes from Maximized to Minimized and vice versa. Move the
22739 DrawMaximizedButtons into the MdiWindowManager source, tool
22740 windows can't be maximized. NOTE: This could use a little
22741 refactoring if time ever permits.
22743 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22745 * TextBox.cs: Add MWFCategoryAttributes
22746 * TextBoxBase.cs: Add MWFCategoryAttributes
22747 * Form.cs: Add MWFCategoryAttributes
22749 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22751 * Control.cs: Add MWFCategoryAttributes
22752 * ScrollableControl.cs: Add MWFCategoryAttributes
22754 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
22756 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22757 Divider is true. Fix a little glitch in PropertyToolBar
22760 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
22763 - Dispose: Call base.Dispose, this causes the disposed event
22764 to be fired (and probably other, more important stuff)
22765 - SetVisibleCore: Set is_visible to true after creating the
22766 window so that the window still gets created invisible (if
22767 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22768 to generate a WM_ACTIVE message
22769 * Form.cs: Call Dispose when we want to destroy the window, instead of
22770 just destroying the handle (Dispose will do that for us)
22772 - RootWindow also needs a queue, so we can properly process the
22773 property change events from RootWindow (like Activate)
22774 - Generatic synthetic WM_ACTIVE message when the active window is
22777 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22779 * LinkLabel.cs: Trigger a recalc of our label dimensions when
22782 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22784 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22785 for determining width and height (image might not be assigned if
22786 we're drawing an imagelist)
22788 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22790 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22791 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22793 * Theme.cs: No longer returns hardcoded menu height, instead calls
22795 * Form.cs (OnLoad): Scaling happens before triggering Load events
22798 2006-05-01 Mike Kestner <mkestner@novell.com>
22800 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
22802 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
22804 * TextBoxBase.cs: Removed Fixme
22805 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22807 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
22810 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22811 the rectangle relative to the parent, considering borders. We
22812 don't really want that.
22813 - ScrollWindow: Fixed warning to be more understandable
22814 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22815 scrollbars and scroll only the visible area
22816 * RichTextBox.cs: Removed debug output
22818 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22820 * NumericUpDown.cs (Text): Just use base
22821 * UpDownBase.cs: Ensure txtView is created before using it
22823 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22825 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22826 casting to IntPtr to avoid 64bit overflow errors
22828 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22831 - AllowDrop: Don't force handle creation.
22832 - CreateHandle: Added call to tell driver if we're allowed to drop
22834 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22836 * FileDialog.cs: Remember the last directory not only for the
22837 current instance but also for new FileDialog instances.
22839 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22841 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22842 broke sending async messages
22844 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22847 - ScrollWindow: Fixed method. We finally generate expose events again
22848 for scrolled areas. This was causing 'garbage' when scrolling
22849 textbox and other controls that used ScrollWindow
22850 - Switched from using the regular queue for paint events to the MS
22851 model of 'generating' paint events when the queue is empty.
22852 We use the new XQueueEvent.Paint subclass to store which windows
22854 - AddExpose now takes the x/y/width/height of the exposed area
22855 and inserts the window into the paint queue if not already there
22856 - InvalidateWholeWindow: Switched to use new AddExpose method
22857 - UpdateMessageQueue: Added which queue to monitor for paint events
22858 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22859 the unlikely case nothing above handles it. We reset the expose
22860 pending states to get them off the queue.
22861 - GetMessage: Now pulls a paint event if no other events are in the
22863 - Invalidate: Switched to new AddExpose method
22864 - PeekMessage: Updated to understand pending paint events
22865 - UpdateWindow: Fixed logic bug. We were only updating if the window
22866 didn't need updating. Also switched to sending WM_PAINT directly,
22868 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
22869 and random access Remove(). The random access is needed to handle
22870 UpdateWindow() where a WM_PAINT is sent directly without accessing
22872 * ScrollBar.cs: Added Update() calls to cause immediate updates to
22873 allow for better feedback when scrolling. Scrollbars are small and
22874 the immediate update should make it 'feel' more responsive without
22875 slowing things down. ScrollBar still needs it's invaliate logic
22876 updated to not always invalidate the whole bar on certain changes.
22878 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22881 (BackColor): if the control does not support a transparent background,
22882 return the default backcolor when the parent backcolor is transparent.
22884 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
22886 * Application.cs: Updated to new StartLoop/GetMessage API
22887 * RichTextBox.cs: Provide some output on RTF parsing errors
22888 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
22889 new queue_id argument to GetMessage and PeekMessage to allow faster
22890 handling of per-thread queues in drivers.
22891 * Hwnd.cs: Added Queue tracking and property
22892 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
22893 * XEventQueue.cs: Added thread trackingA
22894 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
22896 - Implemented new per-thread queue
22897 - GetMessage: Fixed return/break behaviour on several cases. We were
22898 returning stale messages in some cases, instead of just processing
22901 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
22903 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
22905 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
22907 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
22908 fixed off-by-one comparisons between Width/Height and Right/Bottom.
22910 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
22912 * PropertyGridView.cs: Fix drop down width.
22914 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22916 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
22917 a mess in DrawToolBar, so I removed one of them.
22919 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22921 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
22922 needed (clip). Otherwise we get artifacts.
22924 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22926 * FixedSizeTextBox.cs: Added constructor to allow specifying which
22928 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
22929 and switched FixedSizeTextBox to only be fixed vertical (#78116)
22930 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
22931 if it matches the scale base font (avoids unneeded scaling)
22933 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22935 * X11DesktopColors.cs: One gtk_init_check should be enough
22937 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22939 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22942 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22945 - Generate OnTextChanged for Backspace even if we're only deleting
22946 the current selection
22947 - When setting the Text property, only select all text if the
22948 control does not have focus when it is being set. Otherwise
22949 just place the cursor at the beginning of the control
22951 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22953 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
22954 Added a little helper to draw PropertyGrid ToolBar with a different
22955 border and a different BackColor.
22956 * PropertyGrid.cs: Some background parts didn't get painted with the
22957 correct background color. Added a class that helps us to draw the
22958 correct border for PropertyGridView and a class that helps us to
22959 draw ToolBars with a different backcolor
22960 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
22962 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
22964 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
22965 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
22967 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22969 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
22970 into the palette entries. Also, since we're working on a copy
22971 we needed to copy the palette back onto the bitmap.
22972 * Cursor.cs: Same fix as XplatUIWin32.cs.
22974 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22976 * ImageListStreamer.cs: Need to read the var (or we're off)
22978 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
22980 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
22981 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
22982 TextBoxBase.cs: Unused var fixes
22983 * AxHost.cs: Small 2.0 fix
22984 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
22985 as it seems that is what at least Metacity expects. This will make
22986 icons show up on 64bit platforms. We still have some 64bit size
22987 issues, though, since the startup app window size still won't match.
22989 2006-04-25 Mike Kestner <mkestner@novell.com>
22991 * *.cs: cleanup newly reported exception var unused warnings.
22993 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
22995 * ThemeWin32Classic.cs: Button image alignment now matches exactly
22998 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23000 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23001 image. The image position is always the same, no matter if the
23002 button is pressed or not.
23004 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23006 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23007 selection and set the correct filename for SaveFileDialog.
23008 Patch by Emery Conrad.
23010 2006-04-24 Mike Kestner <mkestner@novell.com>
23012 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23013 check for item.X outside the ClientRect instead of item.Y. Fixes
23016 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23018 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23019 trust that value blindly and do some sanity check. Fixes bug #77814.
23021 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23023 * ImageListStreamer.cs: save the mask as a 1bpp image.
23025 2006-04-21 Mike Kestner <mkestner@novell.com>
23027 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23028 pass Checked and Indeterminate to the Theme Engine. Improve
23029 encapsulation with ListBox.
23030 * ListBox.cs: Keep a StringFormat instead of calculating it every item
23031 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23032 nested types. Move all CheckState functionality to CheckedListBox.
23033 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
23034 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
23035 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23036 single base list. Fix scrollbar sizing and placement to mirror MS.
23037 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23039 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23040 for CheckedListBox by using new DrawItemState info. Center the
23041 checkboxes on the items. Use new StringFormat property.
23043 2006-04-18 Jackson Harper <jackson@ximian.com>
23045 * Form.cs: MdiChildren don't do default locations the same way as
23046 regular forms. This prevents a crash when trying to position the
23049 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
23051 * PropertyGridTextBox.cs: Formatting, copyright
23052 * PropertiesTab.cs: Formatting
23053 * PropertyGrid.cs: Formatting
23054 * PropertyGridView.cs: Formatting, fix drop down, enabled double
23055 click toggling of values
23057 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
23059 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23060 * Control.cs (.ctor): verify_thread_handle is static, don't reset
23061 every time a control is created
23062 * Application.cs: Removed obsolete EnableRTLMirroring method
23064 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
23066 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23067 SelectedIndex to -1. Fixes bug #78121.
23069 2006-04-17 Jackson Harper <jackson@ximian.com>
23071 * Binding.cs: Handle null values for Current and BindingContext.
23072 This occurs when binding is a little delayed.
23073 * CurrencyManager.cs: return null for Current when there are no
23075 - Hookup to the listchanged event on the DataView and update
23076 bindings when the list is changed. This fixes late binding of
23079 2006-04-17 Jackson Harper <jackson@ximian.com>
23082 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23085 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
23087 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23089 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23090 with the correct ButtonState
23092 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
23094 * XplatUIX11.cs: Improved distinguishing between window types to
23095 tell the WM a type closer to what the app wants (Fixes #78107)
23097 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23099 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23102 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23104 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23105 drawing code to reflect the size grip changes
23107 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23109 * ImageListStreamer.cs: fix handling of the mask that follows the main
23110 bitmap when deserializing and serialize it properly. The generated mask
23111 should better be a 1bpp image, but I'll do that later.
23113 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23115 * FileDialog.cs: Show something in the DirComboBox on *nix if the
23116 path doesn't fit into some of our Current.Places
23118 2006-04-13 Jackson Harper <jackson@ximian.com>
23120 * ComboBox.cs: Use borders instead of drawing our own decorations,
23121 try to obey correct rules for heights.
23124 * ThemeClearLooks.cs:
23125 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23126 this is now handled by borders.
23127 - Remove unused DrawListBoxDecorationSize method.
23129 2006-04-13 Mike Kestner <mkestner@novell.com>
23131 * MenuAPI.cs: null guarding for the disbled click check fixes crash
23134 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23136 * ThemeWin32Classic.cs:
23137 - Fixed CPDrawStringDisabled
23138 - Corrected drawing of disabled menu items
23139 - Fixed drawing of disabled radio buttons (bug #78095)
23140 - Draw check in a disabled CheckBox with color ControlDark
23142 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23144 * Form.cs: Use the provided width when calculating the menu size;
23145 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23146 and ClientSize.Width won't be updated yet
23147 * Application.cs: Use Visible instead of Show() to make form visible,
23148 this way we create the handle later and menusize is considered
23150 2006-04-12 Mike Kestner <mkestner@novell.com>
23152 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23155 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23157 * TextBox.cs: Implemented context menu
23159 2006-04-12 Mike Kestner <mkestner@novell.com>
23161 * ListView.cs: implement box selection. fixes #77838.
23162 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23164 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23166 * XplatUIX11.cs: Added setting of window type when transient window
23167 is created (metacity would move it otherwise)
23168 * X11Structs.cs: Added WINDOW_TYPE atoms
23169 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23170 background (the control is Opaque but still wants transparent
23173 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23175 * Control.cs: Added OnPaintBackgroundInternal to allow controls
23176 that set Opaque but don't mean it (like all ButtonBase-derived
23177 controls) to still draw their background
23178 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23181 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23183 * Control.cs (PaintControlBackground): Set the graphics object
23184 on our PaintEvent to null to prevent it from being disposed
23185 when the PaintEvent gets disposed
23187 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
23189 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23190 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23192 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23195 - Added transparency check to BackColor property. Transparent
23196 backgrounds are only allowed if the control styles permit it
23197 - Added recursive painting of parent control background and
23198 foreground if a control with a transparent backcolor is drawn
23199 (Thanks to Tim Ringenback for providing his 'hack' as a base
23200 for this patch) Fixes #77985 and #78026.
23201 - Added Opaque style check before calling OnPaintBackground, no
23202 need to draw the background if the control is opaque
23203 - Removed ControlAccessibleObject owner variable (inherited from
23204 base, no need to define again)
23205 - Added some documentation links explaining the drawing events
23208 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23210 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23211 that the affected control is the located at the left border of our
23212 parent (Fixes #77936)
23214 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23216 * TextBoxBase.cs: When rendering disabled or readonly controls,
23217 draw the background with 'Control' instead of 'Window' color as
23218 long as the user hasn't specifically set a color
23220 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23222 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23223 since that won't be updated if the user types text (only if it's
23224 programatically set)
23226 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23228 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23229 layout changes do to app-triggered resizes will have the proper
23230 display rectangle for layout
23232 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
23234 * ThemeWin32Classic.cs:
23235 - Make use of the SystemBrushes and SystemPens wherever possible
23236 - Corrected some highlight colors
23237 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23239 * Theme.cs: Added Empty field to CPColor struct
23241 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23243 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23244 is displayed when calculating the display rectangle. Thanks to Mike
23245 for teaching me the err of my ways.
23247 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
23249 * ScrollableControl.cs:
23250 - Rewrote DisplayRectangle code, now returning the proper x/y coords
23251 (instead of 0,0) and we now return the real width/height instead of
23252 just the clientrectangle, adjusted for padding. The rectangle is
23253 now cached and created by the new CalculateDisplayRectangle method.
23254 - Created new CalculateDisplayRectange method, which basically does
23255 what get_DisplayRectangle() did originally, but now using the
23256 right edge instead of DisplayRectangle to determine the size of
23258 - get_Canvas(): Fixed it to properly calculate canvas for
23259 right/bottom controls which seem to be placed to the right/bottom
23260 of any controls that have a fixed location
23261 - Removed TODO that's taken care of
23262 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23263 and SetDisplayRectLocation according to new MSDN2 docs
23264 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23265 event when that is called, this is added for compatibility
23266 - ScrollControlIntoView(): Implemented.
23267 - Switched scrollbars to be implicit, they shouldn't be selectable
23268 * ContainerControl: Now that ScrollControlIntoView is implemented, we
23269 call it when the active control is set/changed
23270 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23271 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23272 implicit_control variable (used for native Win32 message generation)
23273 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
23274 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23275 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23276 * XplatUIStructs.cs: Added ScrollBarCommands enum
23278 2006-04-10 Jackson Harper <jackson@ximian.com>
23281 * CheckedListBox.cs:
23288 * PrintPreviewControl.cs:
23294 * UpDownBase.cs: Fixup base event overrides.
23296 2006-04-06 Mike Kestner <mkestner@novell.com>
23298 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23299 all user-initiated value changes to min <= value <= max-thumbsz+1.
23300 (set_Value): check for vert/horiz when calculating new thumb position.
23301 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23303 (OnMouseMoveSB): refactor the thumb dragging code and refine
23304 invalidation logic to reduce flicker.
23305 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23306 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23307 (UpdateThumbPosition): small code readability cleanup
23309 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
23311 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23314 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23316 * ThemeNice.cs: Use a better graphics effect when a button is pressed
23318 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23320 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23321 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23322 This dramatically reduces the number of Pen.Dispose calls.
23323 Where possible call ResPool methods only once instead of calling it
23324 over and over again (for example for the same color).
23326 2006-04-06 Mike Kestner <mkestner@novell.com>
23328 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23329 Also remove an unused private field on the collection. Fixes #77972.
23331 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23333 * ThemeNice.cs: Added ToolBar drawing code
23335 2006-04-06 Mike Kestner <mkestner@novell.com>
23337 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23338 I'm assuming that means we need to look up the toplevel for the
23339 provided control. Fixes the crash trace in #77911 but exposes another
23340 crash in some strange reflection usage in NDocGui.
23342 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23344 * ThemeNice.cs: Gave it a little silver touch and added Images
23346 * FontDialog.cs: FontDialog is not resizable
23347 * FileDialg.cs: Added SizeGripStyle.Show
23349 2006-04-05 Jackson Harper <jackson@ximian.com>
23351 * KeyboardLayouts.cs: Remove warning.
23353 2006-04-05 Jackson Harper <jackson@ximian.com>
23355 * Control.cs: Enable OnPaintInternal so we can use it for drawing
23356 all of our controls instead of Paint +=.
23371 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23372 use OnPaintInternal. Remove Width/Height and Visible checks in
23373 paint handler, this is done at a higher level now.
23374 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23375 * PaintEventArgs.cs: Add a handled flag so controls that don't
23376 want anymore painting after OnPaintInternal can make sure OnPaint
23379 2006-04-05 Mike Kestner <mkestner@novell.com>
23381 * Form.cs: fix the menu WndProc hacks to respect the native enabled
23382 state of the form, so that we don't process events when Modal dialogs
23383 are up. Fixes #77922.
23385 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
23387 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23390 2006-04-05 Mike Kestner <mkestner@novell.com>
23392 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23394 2006-04-05 Mike Kestner <mkestner@novell.com>
23396 * ListView.cs (HeaderMouseMove): null guarding for the over column
23397 when setting up the drag_to_index. Fixes #78015.
23399 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23401 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23402 in the taskbar. Transient windows seem to accomplish that.
23404 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23407 - Re-enabled CreateParams.X/Y code for FormStartPosition
23408 - Added code for manual placement when creating the Control
23409 - Incomplete patch to treat MDI forms differently when
23410 setting the ClientSizeCore. (Still need to figure out handling
23413 - When we're explicitly setting the X/Y position of a non-Child
23414 window, let the WM know. Metacity really wants this.
23416 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23418 * ThemeNice.cs: Added CPDrawButton
23420 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23422 * ThemeNice.cs: Changed the color for focused buttons and activated
23423 the arrows for small scroll buttons.
23425 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23427 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23428 anymore. Changed some method modifiers to protected (virtual)
23429 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23431 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23432 Updated drawing of menus, buttons and progressbars; added
23435 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23437 * ImageListStreamer.cs: implemented serialization/deserialization
23440 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
23442 * ThemeWin32Classic.cs:
23443 - Removed all the DrawFrameControl stuff; CPDrawButton,
23444 CPDrawCheckBox and CPDrawRadioButton are now handled directly
23446 - Updated and corrected the drawing code of CPDrawButton,
23447 CPDrawCheckBox and CPDrawRadioButton to better match ms
23448 - Updated theme checkbox and radiobutton code to use the CP*
23451 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23453 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23456 2006-03-31 Jackson Harper <jackson@ximian.com>
23458 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23460 * UpDownBase.cs: Don't CreateGraphics manually, use a
23461 Refresh. Ideally we would invalidate the correct areas here.
23463 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23466 - We now track the mapping state of windows. If a window (or
23467 one of it's parents) is not mapped we no longer permit
23468 WM_PAINT messages to be generated since we'd otherwise get
23469 lots of BadMatch X errors. Jackson did all the work figuring
23471 - Destroying the caret if the window it's contained in is
23472 destroyed. Can't use regular DestroyCaret method since it
23473 might fall into a drawing function (trying to remove the
23474 caret) and with that generate new BadMatch errors. Again,
23475 Jackson tracked this down.
23476 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23477 make sure we send the messages to all windows. (The old code
23478 would send the WM_DESTROY to the window, and then all child
23479 windows would be 'gone' because the WM_DESTROY handle lookup
23480 would no longer find the destroyed window)
23481 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23482 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23484 2006-03-31 Jackson Harper <jackson@ximian.com>
23486 * ScrollableControl.cs: Dont recalc if we are not visible.
23488 2006-03-31 Mike Kestner <mkestner@novell.com>
23490 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23491 the visibility branch.
23493 2006-03-31 Jackson Harper <jackson@ximian.com>
23495 * ScrollBar.cs: Cap values when incrementing/decrementing.
23497 2006-03-31 Mike Kestner <mkestner@novell.com>
23499 * MenuAPI.cs: setup menu.tracker for popup/context menus.
23500 * ToolTip.cs: guard against timer expirations with no active control.
23501 Not sure why it happened.
23503 2006-03-31 Mike Kestner <mkestner@novell.com>
23505 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23507 * ToolTip.cs: Position the tooltip based on where the cursor is at
23508 popup time, not at MouseEnter time. Add a Down state so that we don't
23509 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23510 positioning offset. Lookup DisplaySize at positioning time, since it
23511 can theoretically change during invocation.
23512 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23513 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23515 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23517 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23518 Fixes behaviour when the Text property of the box is String.Empty
23520 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23522 * XplatUIX11.cs: Only send mouseleave for our client windows, not
23523 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23526 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23528 * FileDialog.cs: Visual enhancement for the popup buttons in
23531 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23533 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23536 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
23538 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23539 highlighted menu items to match ms
23541 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
23543 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23545 2006-03-30 Mike Kestner <mkestner@novell.com>
23547 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23548 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23549 go active to account for HotLight to Selected transition.
23550 * MenuItem.cs: add internal Selected prop. Fill out the Status
23551 property by calculating it from item info. Add HotLight,
23552 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23554 2006-03-30 Mike Kestner <mkestner@novell.com>
23556 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23558 2006-03-29 Jackson Harper <jackson@ximian.com>
23560 * Form.cs: Implement TODO.
23562 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23564 * PrintPreviewDialog.cs: Implemented missing methods and events; still
23565 missing proper dialog setup in the constructor
23567 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23569 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23571 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23572 - Fixed ResetBindings and removed TODO
23573 - Added check for cross-thread calls to get_Handle()
23574 - Added Marshaller attribute for set_Font to satisfy class status
23575 * FontDialog.cs: Removed TODOs that seemed implemented
23576 * UpDownBase.cs: Removed unneeded TODO and Fixme
23577 * MessageBox.cs: Implemented support for Default button and removed TODO
23578 * FileDialog.cs: Removed obsolete TODO
23579 * DomainUpDown.cs: Removed obsolete TODO
23580 * ButtonBase.cs: Removed obsolete TODO
23581 * XplatUIWin32.cs: Removed obsolete TODO
23583 - Removed obsolete TODO
23584 - Calling CheckAcceptButton when the acceptbutton is changed to allow
23585 internal status updates
23586 - Making sure the active control is selected when the control is created
23587 * CurrencyManager.cs: Removed obsolete TODO
23589 2006-03-29 Mike Kestner <mkestner@novell.com>
23591 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23592 of PrintPreviewDialog and RichTextBox.
23594 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23596 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23597 DarkDark, Light and LightLight colors for a specific color
23598 * ThemeWin32Classic.cs:
23599 - Use Button drawing code to draw RadioButtons and CheckBoxes with
23600 Appearance = Button
23601 - Make use of the new ResPool helper CPColor
23602 - Draw ProgressBar and StatusBar with correct 3D borders
23604 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23606 * ColorDialog.cs: Return selected color. Fixes bug #77940.
23608 2006-03-28 Mike Kestner <mkestner@novell.com>
23610 * ListView.cs: fix Icon layout to plan for scrollbar widths when
23611 calculating col/row counts.
23613 2006-03-28 Mike Kestner <mkestner@novell.com>
23619 switch to explicit interface method implementation for some methods
23620 corcompare identifies as inconsistent with MS.
23622 2006-03-28 Mike Kestner <mkestner@novell.com>
23626 add a few missing methods from the class status output.
23628 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
23630 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23633 2006-03-28 Mike Kestner <mkestner@novell.com>
23635 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23637 2006-03-27 Mike Kestner <mkestner@novell.com>
23639 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23640 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23642 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
23644 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23646 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23648 * ThemeWin32Classic.cs:
23649 - GroupBox: Inserted a little gap between the text and the lines
23651 - Made the code in CPDrawBorder3D more readable
23652 - Corrected the drawing location of the up and down arrows in
23655 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23657 * ControlPaint.cs: Corrected line widths in DrawBorder for
23658 ButtonBorderStyle Inset and Outset
23660 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23662 * ThemeWin32Classic.cs:
23663 - Rewrote the totally broken CPDrawBorder3D method. That was
23664 one of the main problems for the terrific ThemeWin32Classic
23666 - Updated and corrected Button drawing
23667 - Correct the dimensions of the SizeGrip to match ms ones
23668 - Removed a small drawing glitch in DrawComboBoxEditDecorations
23669 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23670 Border3DStyle.Sunken to match ms.
23672 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23674 * ThemeWin32Classic.cs: First small part of the "de-uglify
23675 ThemeWin32Classic" effort, SizeGrip
23677 2006-03-24 Jackson Harper <jackson@ximian.com>
23679 * XplatUIX11.cs: Give a max idle time of one second, this matches
23680 MS and forces an Idle event every second when there are no other
23681 events in the queue.
23683 2006-03-24 Mike Kestner <mkestner@novell.com>
23685 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23686 * ListView.Item.cs: fix layout issues with null image lists and images
23687 smaller than checkbox size.
23688 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23689 mode like MS does. It's weird, but consistent. ;-)
23692 2006-03-24 Mike Kestner <mkestner@novell.com>
23694 * ListView.cs: Scroll wheel support for the item control. Fixes
23697 2006-03-23 Jackson Harper <jackson@ximian.com>
23699 * ScrollableControl.cs: Special case negative sized areas, not
23701 * MonthCalendar.cs: Save the rect of the clicked date so we can
23702 use it for invalidation.
23703 - Try to cut down on the number of invalidates
23704 - Invalidate the rect the mouse is over and was over when moving
23705 the mouse, so we get the focus box following the cursor.
23707 2006-03-23 Mike Kestner <mkestner@novell.com>
23709 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23710 focus rectangle drawing. Fixes #77835.
23712 2006-03-23 Mike Kestner <mkestner@novell.com>
23714 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23715 the if and else if and reverting back to the original == check on the
23718 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
23720 * FontDialog.cs: Update the example panel if the selected index of
23721 the fontListBox changes.
23723 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
23725 * FileDialog.cs: Make FileDialog remember which directory it was in
23726 last in the same execution.
23728 2006-03-22 Mike Kestner <mkestner@novell.com>
23730 * FileDialog.cs: make the DropDownMenu on the toolbar display
23731 RadioChecks since they are mutually exclusive and that's what MS does.
23733 2006-03-22 Mike Kestner <mkestner@novell.com>
23735 * Theme.cs: add Color param to CPDrawMenuGlyph.
23736 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23737 checks and radio marks and arrows are visible on highlighted items.
23738 * ControlPaint.cs: update to use new Theme signature.
23740 2006-03-22 Mike Kestner <mkestner@novell.com>
23742 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23743 is active. Fixes #77870.
23745 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
23747 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23748 to be focused/selected after startup
23750 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
23753 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23754 CustomColors and ShowHelp properties
23755 - Some internal rewrites to get better results when using the
23758 2006-03-22 Mike Kestner <mkestner@novell.com>
23760 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23761 HoverSelection. Fixes #77836.
23763 2006-03-22 Mike Kestner <mkestner@novell.com>
23765 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
23766 ToggleButtons. (De)Sensitize the Back button around a stack count of
23767 1, not 0. Update ButtonSize based on a pixel count of the win32
23768 control. Adjust the toolbar size/location for new button size.
23770 2006-03-22 Jackson Harper <jackson@ximian.com>
23772 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23774 * ScrollBar.cs: When doing increments and decrements we need to
23775 set the Value property so that ValueChanged gets raised. A
23776 possible optimization here would be to make an internal SetValue
23777 that doesn't invalidate immediately.
23778 * ToolTip.cs: Tooltips get added to their container (when
23779 supplied) so they get disposed when the container is disposed.
23780 - Don't create tooltips for String.Empty. This prevents all these
23781 little 2-3 pixel windows from showing up when running nunit-gui
23782 and driving me mad.
23783 * Form.cs: Don't set topmost when setting the owner if the handles
23784 haven't been created yet. The topmost set will happen when the
23785 handles are created.
23787 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
23790 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23791 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
23792 visible (to allow them to recalculate their sizes)
23794 2006-03-21 Mike Kestner <mkestner@novell.com>
23796 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23797 methods. Removed a ton of redundant code. Still not really happy with
23798 the border rendering, but I think that's mainly because of the
23799 ControlDarkDark being black instead of a dark grey. Depending on how
23800 close we want to be, we might want to revisit those color choices.
23801 Among the new features added during the refactor were DropDownArrow
23802 pressed rendering, Disabled image rendering. Proper flat appearance
23803 boundary rendering. Removed the Divider and Wrapping dividers since I
23804 can't figure out any combination of themes and conditions to make the
23805 MS control draw a horizontal line on a toolbar despite what the
23806 Divider property docs indicate.
23807 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23808 conditions and incorrect layout. Updated to coding standard.
23809 * ToolBarButton.cs: refactored layout and positioning code from
23810 ToolBar to here. Invalidate wherever possible instead of forcing
23811 redraws of the whole toolbar.
23812 (Known remaining issues: explicit ButtonSize smaller than provided
23815 2006-03-21 Mike Kestner <mkestner@novell.com>
23817 * ContextMenu.cs (Show): use the position parameter instead of just
23818 showing at the MousePosition.
23820 2006-03-21 Jackson Harper <jackson@ximian.com>
23822 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23823 control handle this.
23824 * TreeNodeCollection.cs: If we are clearing the root node we need
23825 to reset top_node so calcs can still happen.
23826 * ThemeWin32Classic.cs: This is a Flags so we need to check
23829 2006-03-21 Jackson Harper <jackson@ximian.com>
23831 * DataGrid.cs: Create columns when the binding context has been
23833 * X11Structs.cs: Keysyms are uints.
23834 - Add size to fix build.
23836 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
23838 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23840 - Added ResetMouseHover method to allow controls to retrigger
23841 hovering if they need it more than once
23842 - Implemented MouseHoverTime and MouseHoverSize properties
23843 * Timer.cs: Start() must reset the interval
23844 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23847 2006-03-21 Jackson Harper <jackson@ximian.com>
23849 * X11Keyboard.cs: improved layout detection. Move the nonchar
23850 tables into this file.
23851 * KeyboardLayouts.cs: Move the tables into resource files.
23853 2006-03-21 Mike Kestner <mkestner@novell.com>
23855 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23857 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
23859 * Mime.cs: Various speed optimizations. Looking up mime types
23860 is now 2 times faster than before
23862 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
23864 * CreateParams.cs: Added internal menu field
23866 - Switched call order for UpdateBounds; now we always call
23867 the one that also takes ClientSize, and we're calculating the
23868 client size via driver method in the others. The previous
23869 method of tracking client size by difference wasn't working
23870 for forms where even the starting client size wouldn't match
23871 the overall form size (due to borders) (Part of fix for #77729)
23872 - CreateParams(): Do not use parent.Handle unless the handle is
23873 already created. Causes havoc with Nexxia and throws off our
23874 creation of controls
23876 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
23877 - Switched handling of ConfigureNotify over to new PerformNCCalc
23878 method (consolidates code)
23879 - Changed RequestNCRecalc to use new PerformNCCalc method
23880 - Added calls to RequestNCRecalc when menus and borders are changed
23881 to allow app to set NC size. (Part of fix for #77729) This matches
23882 when MS send a WM_NCRECALC on Win32 windows.
23883 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
23884 (Part of fix for #77729). This matches what MS does, they also
23885 send that message when the form is made visible.
23886 - XException.GetMessage: Improved usability of X errors by including
23887 a translation of the window into Hwnd and Control class
23888 - Improved debug info for window creation, reparenting and destruction
23889 - Created helper method WindowIsMapped() [Currently not used]
23890 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
23892 - CreateParams: Now setting our menu on the new internal menu field
23893 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
23894 avoid calculating the same property twice
23896 - Improved usability of ToString() for debugging purposes
23897 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
23898 determine the height of the menu, instead of just the font. This
23899 required to also create a graphics context and to keep a bmp
23900 around (for performance reasons)
23902 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
23904 * MenuAPI.cs: Added OnMouseUp method
23906 - Now remembering the requested client size, avoids size errors
23907 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
23908 instead of base if the menu is active. This is required due to
23909 control now capturing and releasing on down/up and it would
23910 prematurely release our menu capture
23912 2006-03-17 Jackson Harper <jackson@ximian.com>
23914 * KeyboardLayouts.cs: Add the czech layouts.
23916 2006-03-16 Jackson Harper <jackson@ximian.com>
23918 * Control.cs: Use the viewport space when sizing not the controls
23919 client size, so things like ScrollableControl that effect the
23920 viewport size (when scrollbars are added) are computed correctly.
23921 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
23923 - Handle creating BindingManagers for null data sources.
23924 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
23925 source, otherwise when rows are added they are added to the 'fake'
23926 datasource and we will crash when trying to set the position in
23928 - Use Implicit scrollbars on the datagrid so they arent
23931 2006-03-16 Jackson Harper <jackson@ximian.com>
23934 * InternalWindowManager.cs:
23935 * MdiWindowManager.cs:
23936 * X11Keyboard.cs: I really want Mike to love me again (fix
23937 compiler warnings).
23939 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23942 - OnMouseDown: Switch to editing mode when clicking on the cell
23943 even if we're clicking on the cell that's currently
23945 - ProcessGridKey: Left/Right now wrap like MS.Net does
23946 - ProcessGridKey: Tab now knows to add a new row when tab is
23947 pressed in the cell of the last column of the
23949 - ProcessGridKey: Enter now adds another row if pressed in the last
23950 row and selectes the new row, same column cell
23951 - ProcessGridKey: Home/End navigate columns, not rows, like
23952 originally implemented
23953 - Broke ProcessKeyPreview code out into an extra Internal method
23954 so it can be called from the edit code
23955 * DataGridTextBox.cs (ProcessKeyMessage):
23956 - Switched to accept Tab keypresses
23957 - Added F2 handling to allow jumping to the end of the edited cell
23958 - Added logic to allow moving caret left/right inside edited cell
23959 and making the edited cell jump when the caret hits cell borders
23960 - Tab and Enter are now passed to the datagrid after being handled
23962 - Removed capture code now that Control handles it
23963 - set_SelectionStart now ensures caret is visible
23965 2006-03-16 Jackson Harper <jackson@ximian.com>
23967 * TrackBar.cs: Debackwards the increment/decrement for handling
23968 mouse clicks on the bar with vertical trackbars.
23969 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
23970 bottom to match MS.
23972 2006-03-16 Mike Kestner <mkestner@novell.com>
23974 * ListView.cs: make shift/ctrl keyboard and mouse selection
23975 consistent with the MS control. Fix a bug in
23976 SelectedListViewItemCollection.Clear that was pissing me off for the
23977 better part of a day because the collection was being altered
23978 underneath us as we walked the list.
23980 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23982 * Control.cs: Not sure how we could miss this so long, but it seems
23983 that MS.Net has Capture set all the way from before calling
23984 OnMouseDown through sending the mouse events until after
23985 OnMouseUp. This will fix DataGrid's selection being set to end
23986 at the location of the MouseUp.
23988 2006-03-15 Jackson Harper <jackson@ximian.com>
23990 * BindingContext.cs: Check the binding after its added so that it
23991 can initialize the binding managers and hookup to events.
23992 * Binding.cs: Data members seem to sometimes include rows/cols in
23993 the format Row.Column we now take this into account.
23994 - Hookup to the position changed event so we can update the
23995 control when the position has changed in the data set.
23996 * CurrencyManager.cs: Take into account the row/col naming
23997 convention when creating dataset tables.
23998 * BindingContext.cs: Using a newer better way of storing
23999 datasource/datamember pairs. Hopefully this better matches MS for
24000 looking up binding managers.
24003 2006-03-15 Jackson Harper <jackson@ximian.com>
24005 * BindingContext.cs: The currency manager needs the data member
24006 name, if the member is a data set we use the name to find the
24008 * CurrencyManager.cs: When creating the list prefer an IList over
24010 - Attempt to create a DataTable from a DataSet (TODO: might need
24011 some better error checking here, although MS doesn't seem to have much)
24012 - If we have a DataTable create a view and use it as our list.
24014 2006-03-15 Mike Kestner <mkestner@novell.com>
24016 * ListView.cs: keep a matrix of the icon mode layout to facilitate
24017 keyboard navigation. Support Up/Down/Left/Right selection correctly
24018 for all 4 View modes.
24019 * ListViewItem.cs: add internal row/col fields for icon layouts.
24021 2006-03-15 Jackson Harper <jackson@ximian.com>
24023 * TabControl.cs: Redraw the tabs when we resize so their newly
24024 calculated sizes are drawn on screen.
24025 * X11Keyboard.cs: Begginnings of XIM support. We also now support
24026 composite characters.
24027 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24028 - filter events so that composite characters can be created
24030 * X11Structs.cs: Add XIMProperties enum.
24032 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24034 * Control.cs (BringToFront, SendToBack): Don't use window or handle
24035 unless it's created
24037 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24039 * Control.cs (PerformLayout): We don't need to consider visiblity
24040 for anchoring, only for docking. This fixes 'whacky' alignment
24041 in listbox and other controls that use implicit scrollbars after
24042 the previous PerformLayout patch
24043 * ListBox.cs: Switched to use implicit scrollbars
24045 2006-03-14 Mike Kestner <mkestner@novell.com>
24049 - chain up the "new event" overrides to base and use
24050 OnEvent to raise them. Part of fix for bug #76509.
24052 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
24054 * FileDialog.cs: Do not select an item in the parent directory
24057 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24059 * Control.cs (PerformLayout): It would seem that we considered
24060 invisible windows for our layout. Not quite the right thing
24061 to do. Now we don't any longer, thereby fixing bug #76889.
24063 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24065 * Control.cs (CanFocus): I goofed. A control can have focus
24066 even though it's not selectable. Made it match MS docs.
24068 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24070 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24071 center by default (fixes #76895)
24072 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
24073 all uses of Border3DSides.All with the explicit ORd together
24074 Left|Right|Top|Bottom because I assume that nobody was aware
24075 that All also implies a center fill. Most places I checked had
24076 a fill right above.
24077 * ProgressBarStyle.cs: Added
24079 2006-03-13 Mike Kestner <mkestner@novell.com>
24081 * ListView.cs: fix breakage in drag shadow header positioning
24082 from Peter's csc compilation fix.
24084 2006-03-13 Mike Kestner <mkestner@novell.com>
24086 * ListView.cs: fix NRE produced by backspacing twice in a focused
24089 2006-03-13 Mike Kestner <mkestner@novell.com>
24091 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24093 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24095 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24097 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24098 the allowed size before making programmatic size changes
24100 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24102 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
24103 set, metacity is broken and will still use the emty sizes in
24104 the struct. (Fix for #77089)
24106 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24108 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
24109 WindowExStyles and marked both enums as Flags
24110 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24111 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24112 to match WindowStyles split
24114 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24115 - Updated to match WindowStyles split
24117 - Fixed FosterParent creation, was using ExStyle on the Style field
24118 (This should help with Popup focus issues)
24119 - Updated to match WindowStyles split
24121 2006-03-13 Jackson Harper <jackson@ximian.com>
24123 * MdiWindowManager.cs: Use the system menu height. Fixes some
24124 strange sizing issues.
24126 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24128 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24130 - Scroll to caret after inserting text (#77672)
24131 - Make scroll range one pixel higher, fixes off-by-one error (and
24132 makes underlines visible on the last line)
24134 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24136 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24137 the keyboard state from being stuck with keys in 'pressed' state when
24138 focus is switched away via keyboard
24139 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24140 reset the keyboard if no X11 KeyUp events are expected to come
24141 * X11Structs.cs: Switched type of Visible to bool to match driver
24143 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24146 - Switched caret to be just 1 pixel wide, matches MS and looks less
24148 - Moved caret display 1 pixel down from the top of the control
24150 - InsertCharAtCharet: Update the selection start if moving the caret
24151 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24152 - No longer always creating the caret when the caret methods are
24153 called. Only the actual ShowCaret/HideCaret will do that now
24154 - Only setting caret visible if the owner control has focus
24155 - UpdateView: Added invalidation-shortcut logic for center and right
24156 aligned text. Previously we'd update all according to the left
24157 logic which caused drawing errors. Also fixed height of invalidated
24158 areas, now properly invalidating the whole area (was off-by-one)
24159 - owner_HandleCreated: Always generate the document when the
24160 handle is created; this ensures that
24162 - Fixed situation where caret would disappear under the right
24163 window border, also improved scrolling behaviour on left-
24165 - Fixed right-aligned textboxes to have a border to the
24166 right instead of the caret being under the right border
24168 - Switched from 'nested' to simple visible/not visible tracking
24169 for caret (part of fix for #77671)
24170 - No longer passing through translated FocusIn/FocusOut messages
24171 since we were notifying too often and the wrong windows. Instead
24172 we just notify our focussed window of receiving or loosing focus
24173 * XplatUIWin32.cs: Switched from 'nested' show/hide
24174 counting for caret to simple visible yes/no behaviour (part of
24177 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24179 * Mime.cs: Remove debug code...
24181 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24183 * MimeGenerated.cs: Removed
24184 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24185 and subclasses) from /usr/(local/)share/mime and
24186 $HOME/.local/share/mime.
24188 2006-03-10 Jackson Harper <jackson@ximian.com>
24190 * MdiWindowManager.cs: Recalc the NC area when a window is
24191 maximized/restored so that the menu area is drawn on forms that
24194 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24196 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24197 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24198 us to force a WM_NCCALCRESIZE message being sent. This is needed
24199 for MDI maximizing.
24201 2006-03-10 Jackson Harper <jackson@ximian.com>
24203 * Form.cs: We need to use the ActiveMenu when calculating menu
24205 - Fix nullref when the window manager hasn't been created yet.
24206 * Control.cs: Fix nullref when we try to bring a control to the
24207 front that has no parent.
24208 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24210 - Add a dummy item to the maximized menu so it always has the
24211 correct height. Otherwise when there are no menus we don't get our
24215 2006-03-10 Jackson Harper <jackson@ximian.com>
24217 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24219 * Form.cs: Make the window_state internal so the window managers
24221 - When an MDI child is maximized let its window manager create the
24222 main menu (so it can add its icon).
24223 - Notify the window managers of state changes
24224 - Let the window manager paint its buttons and handle button
24225 clicks on the menu when it is maximized.
24226 * InternalWindowManager.cs: Move the prev_bounds into the mdi
24227 window manager, since tool windows don't use it, only mdi windows.
24228 - Tell the main form that we don't want it to handle NCPAINT
24229 itself to avoid extra painting.
24230 - Handle clicks on a maximized windows menu.
24231 - Handle window state changes
24232 - Handle minimize/maximize clicks correctly by setting the window state.
24233 * MdiWindowManager.cs: Add an icon menu that (the menu you get
24234 when clicking on the forms icon).
24235 - New method to create a forms maximized menu. This is its normal
24237 - Handle window state changes.
24238 - Handle sizing of maximized windows. Maximized windows are just
24239 drawn bigger then the parent visible area. All controls are still
24240 there, they are just outside the visible area (this matches windows).
24241 * MdiClient.cs: No scrollbars when a child window is maximized.
24242 - Let the children windows figure out how big they should be when
24243 sizing maximized windows.
24244 - Implement a version of ArrangeIconicWindows somewhat similar to
24245 Windows version. There are some little differences, but I don't
24246 think any app will rely on the layout of minimized mdi windows.
24248 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24250 * Padding.cs: Several fixes to allow compiling with csc 2.0
24252 2006-03-09 Jackson Harper <jackson@ximian.com>
24255 * MenuItem.cs: Cheap hack so we can add items to the list without
24256 the events being raised. This allows adding mdi items during
24257 drawing. TODO: Should probably find a better time to add the items.
24259 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24261 * ThemeWin32Classic.cs:
24262 - CheckBox_DrawText: Added logic to not wrap if not enough space
24263 is available (Fix for bug #77727)
24264 - RadioButton_DrawText: Added logic not to wrap if not enough
24265 space is available (Fix for bug #77727). Also removed some
24266 duplicate code, DrawString always drawing the regular text
24267 before hitting the if statement.
24269 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24271 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24273 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24275 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24276 * ContainerControl.cs: Partial implementation of some 2.0 scaling
24277 methods. Moved the new 2.0 properties into alphabetical order with
24278 other properties and added MonoTODO tags
24280 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24282 * AutoScaleMode.cs: Added. Fix build.
24284 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24286 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24287 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24288 and was requiring premature handle creation for calls from above
24289 * Form.cs, Control.cs: Removed handle arguments from calls to
24290 CalculateClientRect()
24292 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24294 * ListView.cs (HeaderMouseMove): Fix csc compilation.
24295 drag_column.column_rect is MarshalByRef and can't be used that way
24297 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24299 * AxHost.cs: Added deserialization constructor for
24300 AxHost+State (fixes 77743)
24302 2006-03-09 Mike Kestner <mkestner@novell.com>
24305 - Added column drag reordering for details view.
24306 - fixed behavior when mouse is dragged off column and
24307 AllowColumnReorder is false.
24308 * ColumnHeader.cs: clone the format too in Clone.
24309 * Theme.cs: add DrawListViewHeaderDragDetails method.
24310 * ThemeWin32Classic.cs:
24311 - impl new method for drawing drag column shadows and targets.
24312 - support column offset for details mode in DrawListViewItem.
24314 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24316 * TextControl.cs: Reset the char_count when the document is cleared
24317 (Fixes bug reported on mono-winforms mailing list)
24319 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24321 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24322 of calling base we simply process the key ourselves, since both
24323 DefWindowProc and the handled method would set m.Result.
24326 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24328 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24329 method also moves the window; instead implemented a copy of
24330 Control.ScaleCore (Part of fix for #77456)
24332 - Created new CreateGraphicsInternal method to allow providing
24333 a graphics context when no handle is created without triggering
24334 handle creation. (Part of fix for #77456)
24335 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24337 - Switched Constructor to require TextBoxBase instead of Control (to
24338 allow uncast access to CreateGraphicsInternal)
24339 - Safeguarded use of owner.Handle property. No longer accessing it
24340 unless the handle is already created.
24341 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24342 - Now triggering a recalc when owning control becomes visible
24343 * TextBox.cs, RichTextBox.cs: Switched to use new internal
24344 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24345 premature handle creation (Part of fix for #77456)
24347 - We now only destroy our double-buffering buffers when the
24348 control is resized or disposed, but not when visibility
24349 changes. (The code even re-created them twice every time)
24350 - Now requiring a redraw of the buffer on visibility changes
24351 (fixes bug 77654 part 2)
24352 - Not passing OnParentVisibleChanged up unless the control
24354 - CanFocus: Fixed to match MS documentation
24355 - Focus: Fixed to return actual focus state and to check if
24356 setting focus is legal before setting it
24358 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
24360 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24361 when to draw focus rectangle by looking at parent focus and
24362 selected state instead. This fixes TabPages on Linux sometimes
24363 having none or multiple focus rectangles.
24364 * XplatUIX11.cs (SetFocus):
24365 - Don't set the focus if the same window already has focus
24366 - Use SendMessage instead of PostMessage (like it's Win32
24367 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24368 to match MS behaviour
24369 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24370 are not selectable.
24372 2006-03-07 Jackson Harper <jackson@ximian.com>
24374 * PictureBox.cs: Revert line I accidently committed last week.
24376 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
24379 - Added new IsRecreating and ParentIsRecreating properties to
24380 allow testing if RecreateHandle has been called on ourselves
24381 or one of our parents
24382 - WndProc(WM_DESTROY): If our control handle is being recreated
24383 we immediately need to create the handle when receiving the
24384 destroy, that way our child windows find a valid parent handle
24385 when they themselves are being recreated upon WM_DESTROY receipt
24386 (fix for bug #77654 part 1)
24388 - DestroyWindow: WM_DESTROY must be sent to our own window before
24389 notifying any child windows. MS documents that child windows
24390 are still valid when WM_DESTROY is received. (Control now relies on
24392 - Added some fine-grain debug options
24394 2006-03-06 Jackson Harper <jackson@ximian.com>
24396 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24397 box and base calculations off this.
24398 * MdiChildContext.cs:
24399 * MdiWindowManager.cs: Don't need to ensure scrollbars here
24402 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
24404 * Splitter.cs: In situations where the affected control is added
24405 to the parent's control list after the splitter, we would not
24406 populate affected. Now we try populating it on mousedown, if
24407 it's not already set, and force it to be re-set whenever our
24410 2006-03-03 Matt Hargett <matt@use.net>
24412 * Control.cs: implement Control.Padding
24413 * Padding.cs: -Padding.All returns -1 when constructing with the
24414 implicit default ctor
24415 -Padding.ToString() matches MS.NET
24416 * ContainerControl.cs: implement
24417 ContainerControl.AutoScaleDimensions
24418 * ListControl.cs: implement ListControl.FormattingEnabled
24419 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24421 * TabPage.cs: Implement UseVisualStyleBackColor.
24422 * PictureBox.cs: Implement PictureBox.InitialImage.
24424 2006-03-03 Mike Kestner <mkestner@novell.com>
24426 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24427 event declarations to proxy to base event.
24428 * ListViewItem.cs: update to use ItemControl.
24429 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24430 * ThemeWin32Classic.cs: update to new ListView theme API and fix
24431 column header label rendering for 0 width columns.
24433 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
24435 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24436 that causes the control to be created. Fixes #77476.
24438 2006-03-02 Jackson Harper <jackson@ximian.com>
24440 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24443 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
24445 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24446 passed in for the EventArgs (fixes #77690)
24448 2006-03-01 Jackson Harper <jackson@ximian.com>
24450 * ScrollBar.cs: Refresh afterbeing resized.
24452 2006-02-28 Mike Kestner <mkestner@novell.com>
24454 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24455 Clean up a tracker compile warning.
24456 * MenuItem.cs: add internal PerformPopup method.
24459 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24461 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24462 implicit expose) when the text is set to null
24464 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24466 * RichTextBox.cs (FlushText): When newline is true, we always
24467 need to split the line, even if no text is on it and we may
24468 never eat newlines. (Fixes #77669)
24470 2006-02-28 Mike Kestner <mkestner@novell.com>
24472 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
24473 and set Selected instead.
24474 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
24477 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24479 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24481 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
24484 - Got rid of the panel. All controls are now directly added to
24486 - It is now possible to set a font with the Font property
24487 - MinSize and MaxSize property do now what they should
24488 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24489 - Searching and selecting a font with the font textbox works now,
24490 the same applies to the style and size textbox
24491 - Draw the correct 3D border in the example panel
24492 - Fixed a little mem leak (unused fonts didn't get disposed)
24493 - Many other internal updates/rewrites...
24496 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24499 - InsertRTFFromStream: Added 'number of characters inserted' argument
24500 - set_SelectedRTF: Now using the number of characters to calculate
24501 the new location for the selection and cursor (x/y cannot be used
24502 due to potentially already wrapped text)
24504 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24506 * TextControl.cs: Added property and implemented means to allow
24507 disabling recalculation of a document (can be used to speed up
24508 multiple inserts and is needed to make RTF inserts predictable, see
24510 * RichTextBox.cs: Using the new NoRecalc property of Document to
24511 keep x/y insert locations predictable. Also makes it faster inserting
24512 large chunks of RTF
24514 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24516 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24517 it's easier for a child control to handle the other messages without
24518 having to duplicate the special functionality
24520 - WndProc: Removed calling base handler for WM_KEYDOWN and added
24521 code to handle processing the key ourselves, in order to get
24522 access to the result of KeyEventArgs.Handled. We now only call
24523 ProcessKey if they key hasn't been handled already. Fixes #77526.
24524 - set_Text: If null or empty string is given, just clear the
24525 document. Fixes part of #77526
24527 2006-02-27 Jackson Harper <jackson@ximian.com>
24529 * SizeGrip.cs: Paint the background color before painting the grip
24530 so things look right.
24531 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24533 2006-02-27 Mike Kestner <mkestner@novell.com>
24536 - Restructure layout and invalidation model to remove a ton of
24537 flicker from the control and speed up performance in general.
24538 - Add manual column resize, flickers like crazy, but I already have
24539 some ideas on how I'll fix that. (#76822)
24540 - Merge the three Icon-based views into a single layout method.
24541 - Move item selection interaction logic from the item since
24542 interaction with the collections is more appropriate to the view.
24543 - Deselection on non-item clicks.
24545 - Encapsulate most of the layout. Add some internal props to trigger
24546 layout. Move to a model where Items invalidate themselves instead
24547 of just invalidating the whole control every time something changes.
24548 - Invalidate on Text/Caption changes.
24549 - switch to an offset based layout model to avoid having to absolute
24550 position every element on item moves.
24551 - correct checkbox layout to conform to MS layout.
24552 * ThemeWin32Classic.cs:
24553 - refactor some column header drawing code.
24554 - fix string justification for column headers (#76821)
24555 - make SmallIcon labels top justified for compat with MS impl.
24556 * ThemeClearlooks.cs:
24557 - adjust to new ListViewItem internal checkbox bounds api.
24559 2006-02-27 Jackson Harper <jackson@ximian.com>
24561 * Control.cs: Change where implicit controls fall in the zorder.
24562 They are now on top of all children.
24563 - Synced AddImplicit code with Add
24564 - Removed unused enumerator.
24565 * SizeGrip.cs: Remove the TODO as its been TODONE.
24567 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24569 * TextControl.cs(Insert): Combine the last lines unless the insertion
24570 string ends with \n\n, otherwise we leave one line too many (Fixes
24571 something I noticed with the testapp for #77526; the bug itself was
24572 already fixed in the previous checkin)
24574 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24577 - SelectionColor and SelectionFont methods no longer set absolute
24578 styles. Instead, the keep font or color respectively (This
24579 resolves a long-standing FIXME in the code)
24580 - When flushing RTF text, the insert code now considers text trailing
24581 behind the insertion point (Fixes the bug where when replacing
24582 the selected text via SelectedRTF the remainder of the line behind
24583 the selection would stay on the first insertion line)
24585 - AppendText now updates the selection points after inserting text
24586 - AppendText now ensures that the last tag (sometimes 0-length) of
24587 the document is used for the style information (Fixes part of
24590 - Created new FontDefiniton class to allow describing partial style
24592 - StreamLine() now takes a lines argument, to allow it to decide
24593 whether an encountered zero-length tag is the last in the document
24594 (which must be kept to not loose the font/color contained in it,
24596 - Created Combine() and Split() methods for Marker structs, to
24597 support marker updates due to reformatted documents (soft line
24599 - Implemented Document.CaretTag setter
24600 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24601 of the last line (Not the cause, but also exposed by bug #77220)
24602 - Added LineTag argument to InsertString method, to allow callers
24603 to force a certain tag to be used (required to force use of the
24604 trailing zero-length tag of a document)
24605 - Now updating markers in Combine(), to avoid stale tag markers
24606 - Added some method descriptions to aid maintenance
24607 - Implemented new FormatText concept, allowing additive/subtractive
24608 formatting by only specifying the components that are to be
24609 changed. This was needed for resolving the RTB.SelectedColor/
24610 RTB.SelectedFont fixmes
24611 - Added Break() support method to allow breaking up linetags (used
24612 for partial formatting)
24613 - Added GenerateTextFormat() method. It is used for partial
24614 formatting and allows to generate a full font/color from given
24615 attributes and an existing tag.
24617 2006-02-26 Jackson Harper <jackson@ximian.com>
24619 * XplatUIX11.cs: Use the correct caption height.
24620 - Translate hittest coordinates to screen coords to match MS.
24621 * XplatUIWin32.cs: When we create MDI windows we need to reset
24622 some of the style flags, so we get a nice blank window, and can
24623 draw all the decorations ourselves.
24624 - Set a clipping rectangle on the non client paint event, the
24625 window manager drawing code needs one.
24626 * Form.cs: The window manager needs to know when the window state
24628 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24629 don't need to factor in border and title sizes in these
24630 methods. TODO: Remove the args and fix the call points.
24631 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24633 - Let the driver set the cursors.
24634 - Improve active window handling
24635 - Correct sizes for title bars and buttons.
24636 - Match MS drawing better
24637 * MdiWindowManager.cs: We don't need to handle border style
24638 updates specially anymore.
24639 - Check for scrollbars when windows are done moving
24640 - Handle Active properly.
24641 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24642 correctly. I am spewing the exception though, so we don't hide the
24645 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
24647 * DataGridViewRowPostPaintEventArgs.cs,
24648 DataGridViewCellPaintingEventArgs.cs,
24649 DataGridViewRowCollection.cs,
24650 DataGridViewRowPrePaintEventArgs.cs,
24651 DataGridViewCell.cs: Clear a few warnings and implement a few
24652 exceptions that should be thrown.
24654 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24656 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24657 'inheriting' our parent's (non-default) cursor. (Part of
24658 the fix for #77479)
24660 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24662 * XplatUIX11.cs: Fixed cast to make csc happy
24664 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24666 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24667 it's for the client area (part of fix for #77479 and needed
24668 for MDI window cursor handling)
24670 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24671 the appropriate default cursors and also passing the message
24672 up the parent chain
24673 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24674 for non-client areas
24676 2006-02-15 Jackson Harper <jackson@ximian.com>
24678 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24679 is a real MDI window
24681 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
24683 * X11DesktopColors.cs: Instead of checking the desktop session
24684 string for "KDE" check if it starts with "KDE"
24686 2006-02-10 Jackson Harper <jackson@ximian.com>
24688 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24691 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
24693 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24696 - Got rid of the panel. All controls are now directly added to
24698 - Changed to mono coding style
24700 2006-02-10 Jackson Harper <jackson@ximian.com>
24702 * InternalWindowManager.cs: We don't need the set visibility to
24703 false hack anymore now that peter has written beautiful shutdown
24706 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
24708 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24709 where already explicitly destroyed
24711 2006-02-10 Jackson Harper <jackson@ximian.com>
24713 * MdiClient.cs: Handle the case where windows are too high or to
24714 the left and we need scrollbars.
24716 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
24718 * MimeIcon.cs: Added some icons
24721 - Got rid of the panel. All controls are now directly added to
24723 - Changed to mono coding style
24724 - On Linux "My Computer" and "My Network" will now show some
24725 more usefull information. A new class, MasterMount, gathers
24726 this information from /proc/mount. Updated MWFFileView to make
24727 use of this information
24728 - Fixed a bug that caused FileDialog to crash when
24729 ".recently_used" file had a zero size
24730 - FilterIndex does now what it should
24732 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24735 2006-02-09 Jackson Harper <jackson@ximian.com>
24737 * ComboBox.cs: Don't touch if null.
24739 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
24741 * Cursor.cs: 64bit safeness fix
24742 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24744 2006-02-09 Jackson Harper <jackson@ximian.com>
24746 * Form.cs: If a form is made into an MDI form update the styles so
24747 all the props can get set correctly.
24748 - Kill the mdi_container when we dont need it anymore.
24749 * InternalWindowManager.cs: Add missing NOT
24751 2006-02-08 Jackson Harper <jackson@ximian.com>
24753 * InternalWindowManager.cs: Respek clipping when drawing MDi
24756 2006-02-08 Jackson Harper <jackson@ximian.com>
24758 * Hwnd.cs: Add bits to track non client expose events.
24759 * XplatUIX11.cs: Track non client expose events on the hwnd. This
24760 gives us a proper invalid rect and will allow for some nice
24761 optimizations with NC client drawing
24762 - MDI windows are children windows, so move their style handling
24763 into the child window block.
24764 * InternalWindowManager.cs: Remove a state reset that was
24765 getting invoked at the wrong time. Fixes managed windows getting
24766 into a 'stuck' captured state.
24768 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
24770 * TextControl.cs (Document.ctor): Now initializing
24771 selection_anchor. Fixes #77493
24773 2006-02-07 Jackson Harper <jackson@ximian.com>
24775 * TrackBar.cs: The increment/decrements were backwards.
24777 2006-02-07 Mike Kestner <mkestner@novell.com>
24779 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24780 to the instance itself.
24782 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
24784 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24785 on ulongs and pointers, the size differs between 32bit and 64bit
24788 2006-02-07 Mike Kestner <mkestner@novell.com>
24790 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24791 for 64 bit platforms to work around a metacity bug.
24793 2006-02-07 Jackson Harper <jackson@ximian.com>
24795 * TrackBar.cs: Process the input keys we need, and hookup to
24796 KeyDown instead of using WndProc, so we get key messages.
24798 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
24800 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24802 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24803 we need to translate the XdndVersion atoms array before sending it
24805 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
24808 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24809 number of bits for the property, not the number of bytes. The
24810 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24811 but would not crash since it specified 8 bits instead of 4 bits)
24812 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24813 defined as XID -> long in the C headers)
24814 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
24815 references since those are now IntPtr to begin with
24816 - Switched all Atom.XXX 'int' casts to IntPtr casts
24817 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24818 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24819 - Added XChangeActivePointerGrab DllImport (for X11DnD)
24821 - Changed 'int' type for Atoms in XEvent structures to IntPtr
24822 - Changed atom in HoverStruct to be IntPtr
24824 - Removed local DllImports, switched code to use those from XplatUIX11
24825 - Removed/fixed casts related to the switch of Atom to be a IntPtr
24827 2006-02-06 Mike Kestner <mkestner@novell.com>
24829 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
24830 method signatures in the import region. There may still be some
24831 lingering struct marshaling issues, as I didn't drill down into those.
24834 2006-02-06 Jackson Harper <jackson@ximian.com>
24836 * ComboBox.cs: Dont manually set the top_item, this is computed
24837 when the scrollbar position is set.
24839 2006-02-06 Mike Kestner <mkestner@novell.com>
24841 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24842 startup crashes on amd64. There's other fixes needed. All pinvoke
24843 usage of Atom needs to be mapped to IntPtr for example. And there are
24844 likely other int/long issues to be addressed.
24846 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
24848 * FileDialog.cs: One more...
24850 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24852 * FileDialog.cs: Next try
24854 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24856 * FileDialog.cs: First part of fix for #77464
24858 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24860 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24861 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
24862 AcceptButton border drawing.
24864 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
24866 * Form.cs: Moved positioning of form after auto scaling is applied,
24867 otherwise it would possibly use wrong form size.
24869 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
24871 * Control.cs (RecreateHandle): No need to re-create any child
24872 controls, the child windows will get destroyed automatically by
24873 the windowing system or driver, and re-created when the handle
24874 is being accessed the first time. Fixes #77456
24875 * Form.cs: No longer setting the form to closing if the handle is
24876 being recreated. This seems like the right thing to do, don't
24877 have a bug or testcase for this, though.
24879 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
24881 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
24882 controls to avoid unwanted side effects
24884 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
24887 - ScaleCore needs to scale the bounds, not the ClientSize of the
24888 control. Fixes #77416.
24889 - DefaultSize is 0,0 for control
24891 - DefaultSize is 100, 20
24892 - SetBoundsCore: Now enforcing the height, no matter if the provided
24893 height is more or less than the preferred one, as long as AutoSize
24895 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
24897 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
24900 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
24901 call unless both performLayout is true *and* we have a pending
24903 - ResumeLayout: MS does not completely nest Suspend and Resume,
24904 they bottom out at 0, fixed our code to match that.
24905 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
24906 SetBoundsCore, we were updating even when we shouldn't. This fixes
24907 swf-anchors mis-anchoring when resizing the app fast and lots.
24908 - UpdateDistances: Now only setting the left and top distance if
24909 we have a parent and are not suspended, this is based on
24910 a suggestion by Don Edvaldson in bug #77355.
24911 - OnVisibleChanged: Fixed logic when to create the control. We may
24912 not create the control if we have no parent or if it's not visible;
24913 switched to using Visible property instead of is_visible field
24914 since the property also considers parent states. This fixes a bug
24915 when starting Paint.Net
24917 2006-02-02 Jackson Harper <jackson@ximian.com>
24919 * Form.cs: If the forms handle hasn't been created yet don't call
24920 into xplatui to make it top most, just set the topmost flag on the
24921 form in CreateParams
24922 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
24924 2006-02-01 Jackson Harper <jackson@ximian.com>
24926 * ScrollableControl.cs: Refactored the Recalculate method a
24927 little, this wasn't handling all the variants of bottom and right
24928 bars needed to be added and added/removed based on their
24929 counterparts being added/removed (which changes the drawable
24930 size). Also we special case client widths and heights of 0 and
24931 don't add the scrollbar for those.
24933 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
24936 - Added method to get AbsoluteGeometry(); currently unused, but might
24937 be used in the future, if we try again to figure out toplevel
24938 coordinates with some more crappy window managers
24939 - Added FrameExtents() method to retrieve the WM set decoration size
24940 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
24941 to deal with at least KDE, FVWM and metacity (Fixes #77092)
24943 - Added whacky_wm tracking var for metacity
24944 - Added logic to have default menu height if the actual menu height
24945 has not yet been calculated (part of fix for #77426)
24946 * Form.cs: Keep track whether client size has been set and re-set
24947 it if a menu is added/removed afterwards (Fixes #77426)
24949 2006-01-31 Jackson Harper <jackson@ximian.com>
24951 * Control.cs: When a new Site is set on the component attempt to
24952 pull the AmbientProperties from it.
24954 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
24956 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
24957 in the background of the owning form. Fixes #77332
24959 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
24961 * MimeIcon.cs: Fix for #77409
24963 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
24965 * XplatUIX11GTK.cs: Initial import
24967 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
24969 * FixedSizeTextBox: fixes class signature
24971 2006-01-30 Jackson Harper <jackson@ximian.com>
24973 * FixedSizeTextBox.cs: New internal class that represents a
24974 textBox that will not be scaled.
24977 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
24980 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
24982 * XplatUIX11.cs: Retrieve default screen number instead of
24983 assuming 0. Attempted fix for #77318
24985 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
24988 - GetWindowPos: When a window is parented by FosterParent, use
24989 the desktop instead of FosterParent as the base to get coordinates
24990 - CreateWindow: Don't make FosterParent the parent window for Popups
24991 if we don't want a taskbar entry, Popups automatically don't get one
24992 * Hwnd.cs: Need to call remove to actually remove the key from the
24995 2006-01-30 Mike Kestner <mkestner@novell.com>
24997 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
24999 2006-01-30 Jackson Harper <jackson@ximian.com>
25002 * TreeNode.cs: Raise events no matter how the treenode is
25003 checked. Patch by Don Edvalson.
25005 2006-01-30 Jackson Harper <jackson@ximian.com>
25007 * TreeNode.cs: Signature fix.
25009 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
25011 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25013 2006-01-20 Mike Kestner <mkestner@novell.com>
25015 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25016 event forwarding when menus are active.
25017 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
25018 Most of the patch is pdb's with a little rework.
25020 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25022 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
25023 Removed GetMenuDC and ReleaseMenuDC methods; replaced
25024 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25025 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25026 * InternalWindowManager.cs: Added use of PaintEventStart/End to
25027 handling of WM_NCPAINT message, now passing the PaintEventArgs to
25028 the PaintWindowDecorations method
25029 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25030 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25031 * MenuAPI.cs: Made tracker window invisible
25033 - Removed GetMenuDC and ReleaseMenuDC methods
25034 - Implemented the client=false path for PaintEventStart and
25037 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25039 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25040 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25043 - MaximizeBox, MinimizeBox: Recreate the handle when setting
25045 - CreateParams: Reworked the styles to match MS look'n'feel,
25046 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25047 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25049 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25051 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
25052 window is not mapped, since otherwise every form that's being
25053 created is considered minimized, which is wrong.
25054 * Form.cs: Catching the exception and returning our internal value
25057 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25059 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25060 SetWindowMinMax() to have means to tell the driver about the minimum,
25061 maximum and maximized state window sizes. (Part of the fix for #76485)
25063 - Implemented tracking of minimum and maximum window size, now calling
25064 new SetWindowMinMax() driver method to tell the driver (Part of the
25066 - Finished handling of WM_GETMINMAXINFO method, now setting all values
25067 (Completes fix for #76485)
25068 - Calling new SetWindowMinMax driver method when the handle for a
25069 form is created, to make sure the driver knows about it even if
25070 the values have been set before the window was created
25071 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25072 to avoid messing up our anchoring calculations (partial fix
25074 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25076 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25077 - Improved GetWindowState() to detect 'Minimized' state on Metacity
25078 (and presumably other freedesktop.org compliant WMs). Left the
25079 assumption unmapped=minimized, needed for SetVisible to work.
25080 - Now setting the window state when creating windows
25081 - Fixed SetVisible to consider/set the window state when mapping
25082 a Form. We cannot set the state before it's mapped, and we cannot
25083 use Form.WindowState once it's mapped (since it would ask the
25084 driver and get 'normal'. Therefore, we grab the state before
25085 mapping, map, and then set state.
25086 - Implmemented SetWindowMinMax method; Metacity does not seem to
25087 honor the ZoomHints, though.
25089 - Removed MINMAXINFO (moved to XplatUIStructs)
25090 - Added SetWindowMinMax stub (on Win32 the only way to set that
25091 information is in response to the WM_GETMINMAXINFO message, which
25092 is handled in Form.cs)
25093 - Added logic to SetVisible to set the proper window state when a
25094 form is made visible (fixes #75720)
25096 2006-01-26 Jackson Harper <jackson@ximian.com>
25098 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25099 same way we handle them with Invoke.
25101 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
25104 - Added tracking of window state so CreateParams can return
25105 the appropriate style
25106 - Moved setting of WS_CAPTION style in CreateParams to allow
25107 styles without caption
25108 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
25109 control if the TextBox property is accessed. Fixes #77345
25111 - get_Created: now uses is_disposed and is_created to determine
25112 return value (suggested by Jackson)
25113 - CreateHandle: No longer exits if the handle is being recreated
25114 - RecreateHandle: If the handle is not yet created call the
25115 appropriate method to create either control or handle. If the
25116 control is already created CreateHandle will simply exit instead
25117 of just creating the handle
25118 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25119 now SendMessage WM_DESTROY directly to the control when DestroyWindow
25122 - When DestroyWindow is called, instead of waiting for the
25123 DestroyNotification from X11, we directly post it to the WndProc
25124 and immediately dispose the hwnd object.
25125 Same applies to DestroyChildWindows, and this obsoletes the
25126 expose_pending tracking. Contrary to Win32 behaviour we destroy our
25127 child windows before our own, to avoid X11 errors.
25128 - Removed the direct sending of WM_PAINT on UpdateWindow
25130 - Reworked DoEvents and GetMessage to allow access to internal queue
25131 even when trying non-blocking access to the queue. Fixes #77335.
25132 Based on a patch suggestion by Don Edvalson. The new private
25133 GetMessage can now also be used as a backend for a PeekMessage
25135 * XplatUI.cs: Improved debug output for CreateWindow
25137 2006-01-25 Jackson Harper <jackson@ximian.com>
25139 * Help.cs: Allow param to be null. Patch by Don Edvalson.
25141 2006-01-24 Jackson Harper <jackson@ximian.com>
25143 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25144 when we have a MaxDropItems lower then the selected index.
25146 2006-01-24 Jackson Harper <jackson@ximian.com>
25148 * Control.cs: Don't allow selection of non visible controls, allow
25149 selection of controls without parents.
25151 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25153 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25154 * DataGridDrawingLogic.cs: Add editing row only when is necessary
25156 2006-01-23 Jackson Harper <jackson@ximian.com>
25158 * UpDownBase.cs: Make the textbox handle all the selection and
25159 tabbing. This fixes tabing to updown controls.
25161 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25163 * TextBoxBase.cs: fixes exception thown the object was null
25165 2006-01-23 Jackson Harper <jackson@ximian.com>
25167 * ButtonBase.cs: Just use the base CreateParams. They set
25168 visibility and enabled correctly.
25171 * MonthCalendar.cs: Lets let the base set as much of the
25172 createparams as possible so we don't have duplicate code all over
25175 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
25177 * ThemeGtk.cs: Added TrackBar and some experimental code to
25178 get double buffering back
25180 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
25182 * DataGrid.cs: Allows row number set internally higher than the last
25183 when creating a new row. Restores the editing functionality.
25185 2006-01-20 Mike Kestner <mkestner@novell.com>
25187 * MimeIcon.cs: delay Image creation until the icons are accessed
25188 instead of creating 190 scaled images on GnomeHandler startup.
25190 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25192 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25193 first call base before processing the event. Fixes #77279
25195 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25197 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25198 that the stride for the GDI bitmap would match the stride of
25201 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
25203 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25205 2006-01-19 Jackson Harper <jackson@ximian.com>
25207 * ComboBox.cs: Hookup the text controls keydown event so we get
25208 those when the text control has the focus.
25210 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25212 * Label.cs: Now using the base events instead of defining new ones;
25213 this allows us to just call the base properties without having to
25214 duplicate all base property logic
25216 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25218 * Label.cs: A label by default is not a tabstop (Fixes one of our
25219 failing nunit tests)
25221 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25223 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25224 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25226 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25228 * Cursor.cs: Reimplemented creating cursor bitmaps without using
25229 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25232 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
25233 constructor creates images that can't be saved. Part of the fix
25235 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25236 - SetWindowState: Switched ShowWindow flags (part of an upcoming
25237 bug fix for handling window state in forms properly)
25239 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25241 * ThemeGtk.cs: Simplify ScrollBar drawing
25243 2006-01-18 Jackson Harper <jackson@ximian.com>
25245 * Splitter.cs: Set the default dock style for the splitter control
25246 in the constructor.
25248 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25250 * ThemeGtk.cs: Corrected StateType and ShadowType for
25253 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25255 * Control.cs: Make use of Theme.DoubleBufferingSupported
25257 - Added drawing for flat style buttons
25258 - Added ScrollBar drawing
25260 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25262 * ThemeClearlooks.cs: Removed some unneeded code.
25263 * ThemeGtk.cs: First part of ThemeGtk enhancements.
25265 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25267 * LinkLabel.cs: We need to update the hover drawing when
25268 leaving the control as well.
25270 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
25272 * DataGrid.cs: Clicking on non empty areas in the columns
25273 area was giving an exception
25275 2006-01-17 Jackson Harper <jackson@ximian.com>
25277 * ThemeWin32Classic.cs:
25278 * ListView.cs: Do not draw/clip the headers when the header style
25281 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25283 * DataGrid.cs: Fixes 77260
25285 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25287 * DataGrid.cs: Clicking on a column on a empty grid was giving
25290 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25292 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25293 or any keypress will crash the grid.
25295 2006-01-17 Mike Kestner <mkestner@novell.com>
25297 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25298 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
25299 invisible/previously-visible items.
25302 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
25304 * ThemeClearlooks.cs:
25305 - Added CL_Draw_Button method; now other theme controls that are
25306 not derived from button or do not have a button can draw buttons
25308 - Updated ComboBox drawing
25309 - Beautified RadioButton drawing
25310 - Corrected drawing of bottom and left tabs
25311 - Beautified DateTimePicker and MonthCalendar
25312 - Added CPDrawButton and CPDrawRadioButton
25314 2006-01-16 Jackson Harper <jackson@ximian.com>
25316 * ComboBox.cs: Set the initial value of the scrollbar to the
25317 current index. Reduce the numbers of refreshs and IndexOfs called.
25319 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
25321 * FileDialog.cs: When the file listview is focused hitting the
25322 backspace key moves the fileview to the parent directory
25324 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25327 - Added RecreateHandle call when changing taskbar visibility to
25328 trigger reparenting in Win32 driver (Fixes #75719)
25329 - If a window has minimize or maximize buttons, it cannot have
25332 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25333 the toplevel form with FosterParent (A toolwindow not on the
25334 taskbar) (Fixes #75719)
25335 - Made FosterParent a toolwindow
25337 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25339 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25341 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25343 * ToolTip.cs: If SetToolTip is called from a control and the mouse
25344 is currently over that control, make sure that tooltip_window.Text
25347 2006-01-13 Mike Kestner <mkestner@novell.com>
25349 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25351 2006-01-13 Jackson Harper <jackson@ximian.com>
25353 * TreeView.cs: On MS GetNodeAt never actually factors in the X
25354 value passed. Also redraw the selected node when we recieve
25355 focus, so tabbing between trees works correctly.
25357 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25359 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25360 ~/.gconf/%gconf-tree.xml, so use
25361 .gconf/desktop/gnome/interface/%gconf.xml
25363 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25365 * TextControl.cs: Draw text in gray if control is disabled
25367 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25369 * TreeView.cs: Draw the focus rectangle outside the highlight, to
25370 make sure it's always visible. Fixes #76680.
25372 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25374 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25376 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
25378 * PageSetupDialog.cs: Added.
25379 * PrintDialog.cs: Attributes.
25380 * PrintPreviewControl.cs: Updates.
25381 * PrintPreviewDialog.cs: Updates.
25383 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25385 * Control.cs: Undid my selection check fix, since it's not needed
25387 - Now considering the presence of hscroll/vscroll when sizing
25388 vscroll/hscroll respectively. Fixed bug #77077
25389 - Added Left/Up/Down/Right to IsInputKey list to prevent
25390 ContainerControl from stealing them. This fixes what I broke
25391 with my last checkin.
25393 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25395 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25396 I finally understand how the property can be set without a setter :-)
25398 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25401 - Switched RunLoop to use static Message.Create to create a
25403 - Added PreProcessMessage call in runloop for keyboard events; this
25404 is part of the fix for #77219, I overlooked this originally in the
25405 MSDN doc for PreProcessMessage
25407 - Removed call to PreProcessMessage from handling of keyboard
25408 messages; it's supposed to be done in the message pump
25409 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25410 per MSDN documentation.
25411 - IsInputChar: All chars are input chars by default; removed the
25412 parent calling chain, MS does not document that
25413 - PreProcessMessage: If IsInputChar is true, we want to return false
25414 to allow dispatching of the message
25415 - When selecting the next control, now also check that we're not
25416 selecting ourselves again and therefore return a false positive.
25418 - Tried to match return values for IsInputKey and ProcessDialogKey
25419 to what MS returns; moved processing of our special keys outside
25420 ProcessDialogKey since MS does not seem to return true on those.
25421 - Moved code that previously was in ProcessDialogKey into new private
25422 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25423 - Reworked handling of WM_CHAR to not have to duplicate code from
25424 Control.cs anymore, instead we simply call down to base.
25426 2006-01-12 Jackson Harper <jackson@ximian.com>
25428 * ComboBox.cs: We always need to refresh the text area when
25429 EndUpdate is called. Fixes the combobox in the file dialog.
25430 * Control.cs: Don't create the creator_thread until the controls
25431 handle is created. Also in InvokeRequired we check if the
25432 creator_thread is null. This gives the effect of InvokeRequired
25433 returning true if the controls handle is not created yet, and
25436 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25439 - Added StartLoop() driver method. This is used to allow drivers to
25440 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25441 loop for a particular thread
25442 - Added EndLoop() driver method. This is called once the message
25443 pump for the thread is shut down
25444 - Added SupportsTransparency method to allow the driver to indicate
25445 opacity support for windows
25447 - Removed TODO attribute, completed AllowTransparency property
25448 - Added documented logic to Opacity
25449 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25450 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25451 versions of CompatibleTextRendering
25452 * X11Structs.cs: Added opacity atom to our atom enumeration
25453 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25454 of a form might be set before it's reparented by the WM, and we need
25455 the opacity value without calling up to Form)
25456 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
25457 SupportsTransparency() driver methods
25458 * Application.cs: Now calling StartLoop and EndLoop driver methods
25460 - Added opacity atom registration
25461 - Added StartLoop()/EndLoop() methods. They're empty right now but
25462 will need to get implemented when we switch to a per-thread queue
25463 - Implemented SupportsTransparency() method
25464 - Implemented SetWindowTransparency() method
25465 - Added support for setting the opacity value when a window is
25466 reparented (since the opacity needs to be set on the WM frame)
25467 * XplatUIOSX.cs, XplatUIWin32.cs:
25468 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25470 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25472 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25474 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25476 * FileDialog.cs: Added ToolTip for MWFFileView
25477 * MimeIcon.cs: Rewrote GnomeHandler.
25478 - Get currently used gnome icon theme from
25479 ($HOME)/.gconf/%gconf-tree.xml
25480 - Make use of inherited icon themes
25481 - Support SVG icon themes like Tango via librsvg
25483 2006-01-12 Miguel de Icaza <miguel@novell.com>
25485 Revert's Jackson's revert which broke 2.0 builds. Fix both
25488 * Application.cs: Move the use_compatible_text_rendering outside
25489 the NET_2_0 define. If we ever need to use the
25490 use_compatible_text_rendering on the individual controls they will
25491 access the variable from the common shared code paths.
25493 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25496 - Added more granular debug options
25497 - Added method to print both window text and id
25498 - Switched debug output to use new Window() debug method
25499 - Added IsEnabled() driver method
25500 - Added EnableWindow() driver method
25502 - Removed end_modal; no longer needed, new loop handles termination
25503 via 'closing' variable
25504 - If form is modal, setting DialogResult will now initiate loop
25505 termination via 'closing' variable
25506 - Added support for is_enabled/WS_DISABLED to CreateParams
25507 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25509 - Removed code that's now in RunLoop from ShowDialog()
25510 - Added various documented sanity checks to ShowDialog()
25511 - Added handling of WM_DESTROY message; we set 'closing' on getting
25512 the message to indicate the message pump to terminate
25513 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25514 send by the Application.ExitThread method. (We send the message
25515 to destroy the window after all other events have been
25516 processed through the queue, instead of destroying the handle
25518 - Moved code from Close() method to WM_CLOSE handler; added logic
25519 to only send close-related events if the form is not displayed
25521 * Splitter.cs (..ctor): Fixed typo in resource name
25523 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25525 - set_Cursor: Now only setting calling into XplatUI if the handle for
25526 the control is already created; this avoids implict handle creation
25527 or crashes if it's not created
25528 - set_Enabled: Now setting the enabled state via the new driver method
25529 instead of just tracking it
25530 - CreateParams: Added logic to set WS_DISABLED based on enabled state
25531 - CreateControl: Reordered event firing and method calls to more
25532 closely fire events in the order MS does. Now setting the
25533 enabled state in the driver when creating the control.
25534 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25536 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25537 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
25538 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25540 - Added tracking of window enabled state (get_Enabled/set_Enabled)
25541 - Added EnabledHwnd property to easily allow a driver to find the
25542 handle of the first enabled window in the parent chain (this is
25543 used by drivers to pass up input events of disabled windows)
25544 * XplatUIDriver.cs: Added IsEnabled() method
25546 - Removed crude and obsolete exiting tracking variable
25547 - Removed internal ModalRun(); replaced by RunLoop()
25548 - Implemented private CloseForms() method to allow closing all
25549 windows owned by a particular (or all) threads
25550 - Exit() now properly closes all windows without forcing the message
25552 - Removed obsolete InternalExit() method
25553 - Changed Run() methods to use new RunLoop() message pump
25554 - Implemented new RunLoop() method for both modal and non-modal forms
25556 - get_CreateParams: Added setting of WS_DISABLED
25557 - Simplified ShowDialog(); now all the work is done in RunLoop(),
25558 invoked via Form.ShowDialog()
25559 * NativeWindow.cs: We don't remove the window from the collection when
25560 the handle is destroyed; there might still be messages for it in the
25561 queue (mainly the resulting WM_DESTROY); instead it will be removed
25562 when Control calls InvalidateHandle in the WM_DESTROY handler
25564 - CreateWindow: Added logic to handle the WS_DISABLED window style
25565 - EnableWindow: Implemented based on Hwnd.Enabled
25566 - GetMessage: Reset PostQuitState so the method can be called again
25567 - Implemented support for disabled windows (passing messages to the
25568 first enabled parent) in handling all input messages
25569 - Added optimizations for handling Expose events
25570 - Implemeted new driver method IsEnabled()
25571 - Now always resetting paint pending tracking vars when we start paint
25572 - Re-implemented UpdateWindow via just sending a WM_PAINT message
25573 * XplatUIOSX.cs: Added IsEnabled method stub
25574 * XplatUIWin32.cs: Implemented new IsEnabled() method
25576 2006-01-11 Jackson Harper <jackson@ximian.com>
25578 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25579 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25580 variables a little.
25581 * ColorDialog.cs: Clear out the old form before adding the new
25584 2006-01-11 Jackson Harper <jackson@ximian.com>
25586 * X11Dnd.cs: Make sure to add all the text formats when adding
25587 strings to the data object.
25588 * TreeNodeCollection.cs: When adding to a sorted tree we need to
25589 do some redrawing too. Also change the UpdateNode to an
25590 UpdateBelow so the newly added node gets painted.
25592 2006-01-11 Miguel de Icaza <miguel@novell.com>
25594 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25595 LinkLabel.cs, PropertyGrid.cs: Implement the
25596 UseCompatibleTextRendering property for 2.x
25598 * Application.cs (SetCompatibleTextRenderingDefault): Add.
25600 2006-01-11 Jackson Harper <jackson@ximian.com>
25602 * TreeView.cs: Use the property for setting the selected node so
25603 the correct events get raised.
25604 * TreeNode.cs: Update the tree when the fore/back colours of a
25607 2006-01-10 Jackson Harper <jackson@ximian.com>
25609 * TreeView.cs: Allow setting SelectedNode to null.
25611 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25613 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25615 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25617 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25619 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25621 * PrintDialog.cs: Added attributes and set default property values.
25623 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25625 * PrintControllerWithStatusDialog.cs:
25626 Added PrintControllerWithStatusDialog.
25628 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25630 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
25631 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25633 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25635 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25637 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
25639 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25640 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25642 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
25644 * MimeIcon.cs: Added internal class SVGUtil.
25646 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
25648 * FileDialog.cs: Don't crash if there are two files with the
25649 same name but different locations.
25651 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
25653 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25654 dates across multiple month grids. Used to not highlight entire
25655 month, but does now.
25657 2006-01-06 Jackson Harper <jackson@ximian.com>
25659 * MonthCalendar.cs: Removed DoEvents call to prevent a running
25660 message loop. Change timer intervals to numbers that seem more
25663 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
25665 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25666 object for location info since screen object is now implemented.
25668 2006-01-05 Jackson Harper <jackson@ximian.com>
25670 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25671 * AsyncMethodResult.cs: We no longer use a WeakReference for the
25672 AsyncMethodResult, this is because we ALWAYS want the
25673 ManualResetEvent to get set.
25674 * Control.cs: When disposing use an async invoke to call shutdown
25675 code, so that thigns don't block on the finalizer thread. Also
25676 check if we even have a message loop before trying to send
25677 messages, if we don't then don't bother sending messages.
25678 - No more weak references for async methods
25679 * XplatUIDriver.cs: No more weak references for async methods.
25681 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25683 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25684 returns two FontFamily with the same name
25686 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
25688 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
25689 drawing disabled text. Instead using the ColorGrayText color
25691 2006-01-04 Jackson Harper <jackson@ximian.com>
25693 * TreeNode.cs: redraw the node when its image index is changed.
25695 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
25697 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25698 time I checked there are no others like it.
25700 2006-01-04 Jackson Harper <jackson@ximian.com>
25702 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25703 this gives the behavoir I was looking for.
25704 * Control.cs: Special case Invoking EventHandlers, this matches MS
25705 and fixes part of bug #76326.
25707 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25709 * ThemeClearlooks.cs, FileDialog.cs:
25710 - Reflect the latest Theme class changes
25711 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
25714 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25716 * Theme.cs: Cache UI resource images and resize them if needed
25718 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25720 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25721 is called. This fixes the crash in Nexxia when setting the font
25722 attributes in the chat. [However, RTF needs a look-over to make sure
25723 that all SelectionXXX methods handle the special case that selection
25724 is empty and therefore the change must be applied to all text starting
25725 at the cursor/selection start]
25727 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25729 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25730 XplatUIOSX.cs: Added SendMessage and PostMessage methods
25731 * X11Keyboard.cs: Switched to new way of calling PostMessage
25733 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25735 * Theme.cs: Added theme interface for images to allow the theme to
25736 control what images are used for things like FileDialog, MessageBox
25738 * MessageBox.cs: Now uses the new Theme icon/image interfaces
25740 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
25743 - Removed some dead code
25744 - Opening a recently used file does work now
25745 - Small UI enhancements
25748 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
25750 * FileDialog.cs: Forgot too add __MonoCS__
25752 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
25754 * FileDialog.cs: We are able to read recently used files now let's
25755 go on and write them.
25757 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
25759 * FileDialog.cs: Breathe some life into "last open"/"recently used"
25761 * MimeIcon.cs: Do a check for the top level media type also
25763 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
25765 * ThemeClearlooks.cs:
25766 - Added CPDrawStringDisabled
25767 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25768 some chars if the text doesn't fit into text_rect
25769 - DrawListViewItem: If View = View.LargeIcon center the image;
25770 rewrote the drawing of ListViewItem.Text if View =
25773 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
25775 * MimeIcon.cs: Use default KDE icon theme if there is no
25776 "48x48" directory for the current icon theme, fixes #77114
25777 * Mime.cs: Disable not working and actually not used code.
25778 * ThemeWin32Classic.cs:
25779 - Replace "new SolidBrush" in GetControlBackBrush and
25780 GetControlForeBrush with ResPool.GetSolidBrush
25781 - Changed DrawListViewItem from private to protected virtual
25783 - Added form.MaximizeBox = true
25784 - Don't throw an exception if there is a broken symbolic link
25786 2005-12-23 Jackson Harper <jackson@ximian.com>
25788 * TabControl.cs: Give the panels focus, keyboard navigation is
25789 fixed so this works correctly now.
25790 - We need these key events also.
25791 * ToolBar.cs: Remove some of the poor mans double buffering.
25793 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
25795 * ComboBox.cs: The internal TextBox now returns the focus.
25797 2005-12-23 Jackson Harper <jackson@ximian.com>
25799 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
25801 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25803 * Control.cs: Removed debug code
25804 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25807 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25809 * Control.cs: When creating the control, update the Z-order after
25810 all it's children are created, too. (Fixes nexxia not showing
25813 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25815 * Control.cs: Do not update the anchoring distances if layout is
25816 suspended, instead do it once layout is resumed
25818 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25821 - After many hours of debugging, for both Jackson and
25822 myself, it turns out that it helps to set the parent of a control
25823 if you want to actually see it onscreen. In the spirit of that
25824 discovery, we're now setting the parent of the control and
25825 it's children when the control's handle is created. This fix
25826 will make Lutz Roeder's Reflector run happily.
25827 - now just creating the handle instead of the whole control when
25828 getting a graphics context for the control.
25830 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25832 * ScrollableControl.cs: When calculating the canvas, don't consider
25833 the scrollbar widths. Instead, predict if horizontal scrollbar
25834 will affect canvas when deciding on vertical display and vice versa.
25836 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25838 * RichTextBox.cs: Set default RTF font for documents that don't
25839 have a font table (Fixes #77076)
25841 2005-12-22 Jackson Harper <jackson@ximian.com>
25843 * TextBoxBase.cs: It's difficult to do, but you can have an empty
25844 clipboard. This prevents a NullRef in that case.
25845 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25846 clipboard. PRIMARY is for the currently selected text only. (We
25847 should implement PRIMARY at some point.
25849 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25851 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25852 a Unicode function with a structure that was defined in Ansi way.
25855 2005-12-21 Jackson Harper <jackson@ximian.com>
25857 * StatusBar.cs: Statusbar handles its fore/back colours on it's
25858 on. Because thats how it rolls. (and this avoids it using ambient
25860 * ThemeWin32Classic.cs: Use the proper back color for filling.
25861 * Menu.cs: Use the system menu bar color for drawing menu
25862 bars. Using the window back color will bring ambient colours into
25865 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
25867 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
25868 Bitmaps were created and not disposed.
25870 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25872 * Control.cs (CreateControl): Don't do anything if the control is
25873 already created, otherwise we'd fire the OnCreated event more than
25876 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25878 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
25879 will always match. Instead return -1. Fixes #76464.
25881 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25883 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
25884 neither the beginning nor the end of the line (Fixes bug #76479)
25886 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25889 - ControlNativeWindow.ControlFromHandle(): Now handling situation
25890 where handle is invalid
25891 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
25892 instead of slower linear search
25893 * NativeWindow.cs: Don't remove the window from the hashtable until
25894 after the driver has destroyed it (since the driver might use
25895 Control.FromHandle to lookup the control object
25896 * Hwnd.cs: Added DestroyPending property to track if a window is
25897 already destroyed as far as the driver is concerned and only hasn't
25898 yet notified the control
25900 - Activate(): Check if the window is still valid before using the
25902 - Implemented DestroyChildWindow() method to mark child windows as
25903 destroyed when a window is destroyed. This prevents situations
25904 where we might call an X method based on queued events for a
25905 window that already has been destroyed but we haven't yet pulled
25906 the destroy method from the queue.
25907 - Added a call to the new DestroyChildWindow() method to the drivers
25908 DestroyWindow code. Also now marking the destroyed window itself
25911 2005-12-20 Jackson Harper <jackson@ximian.com>
25914 * StatusBarPanel.cs: Don't calculate panel sizes on draw
25915 anymore. Just do them when needed, also track the rects of panels
25916 so that we can optimize refreshing more in the future.
25918 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
25920 * ColorDialog.cs: Fixed focus drawing in small color controls
25922 2005-12-19 Jackson Harper <jackson@ximian.com>
25924 * InternalWindowManager.cs:
25925 * MdiWindowManager.cs: Cleanup some coordinate system changes so
25926 moving windows works properly.
25928 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
25931 - Removed call to InitLayout() from SetBoundsCore(); doc says
25932 it's only called when a control is added to a container
25933 - Split InitLayout logic, moved to separate UpdateDistances() method
25934 since we need to perform those calculations more often than just
25935 when adding the control to a container. (Needed to fix #77022)
25936 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25937 - Reduced the OnBindingContextChanged events count, don't send them
25938 unless the control is created, we still aren't totally matching
25939 MS, but I can't quite figure out some of their rules
25941 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25943 * ThemeClearlooks.cs: Corrected distance between ProgressBar
25946 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25948 * ThemeClearlooks.cs:
25949 - Updated ProgressBar drawing
25950 - Corrected drawing of ScrollBars and scroll buttons
25951 - Some temporary fixes for minor pixel artefacts
25953 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
25956 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
25957 cause events to be sent in the same order as MS does.
25958 - Added ChangeParent() method to trigger various OnXXXChanged events
25959 that need to be fired when a parent changes (This is a reworking
25960 of the patch from r54254, with the X11 errors fixed)
25961 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
25962 since on MS we get OnLayoutChanged events when calling Clear()
25963 - Changed Enabled property to consider parent state as well, if a
25964 parent is not enabled, the control will not be either
25965 - Changed Parent property to simply call Controls.Add() since that
25966 now does all the work required, this way we avoid code duplication
25967 - Threw in a few OnBindingsContextChanged calls to try and match
25968 when MS sends them. We seem to send a few too many, though.
25969 - Added call to CreateControl when adding the control to a parent.
25970 We were never calling CreateControl. Still needs some work, in
25971 some places we treat HandleCreated and ControlCreated as equal,
25973 - Removed obsolete commented out code from UpdateZOrder()
25975 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25977 * ThemeClearlooks.cs: Updated TrackBar drawing.
25979 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
25981 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
25983 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
25985 * FileDialog.cs: Add the Help button and the open readonly
25986 checkbox only if needed
25988 2005-12-16 Jackson Harper <jackson@ximian.com>
25990 * Control.cs: Make sure we have an active menu before trying to
25991 process commands on it. Prevents menu-less forms from crashing
25992 when Alt is pressed.
25993 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
25995 * RichTextBox.cs: Expand statement to help out gmcs and fix the
25998 2005-12-16 Jackson Harper <jackson@ximian.com>
26000 * InternalWindowManager.cs: Don't translate tool windows screen
26001 coordinates. This fixes windows 'bouncing' around when being moved.
26003 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26006 - MaxLength now treats 2^31-1 equal to unlimited length (this is
26007 not quite MS compatible, MS uses that number only for single line
26008 and 2^32-1 for multi-line, but I figure it won't hurt keeping
26010 - Now enforcing the MaxLength limit when entering characters
26011 - Added argument to internal Paste() method to track if it's called
26012 from programatically or via keyboard, since keyboard driven pastes
26013 need to enforce max-length
26014 - Added logic to Paste to only paste as many chars as MaxLength
26016 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26018 - Added Length property to return number of characters in document
26019 - Added private CharCount property which only tracks actual chars
26020 in the document (no linefeeds) and fires event when CharCount
26022 - Added tracking of character count to all methods that alter it
26023 - Added LengthChanged event to allow applications to subscribe
26024 to any changes to the document
26026 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26029 - Removed local password_char field (moved to TextBoxBase)
26030 - Now setting the document's password var when password is
26033 - Added password_char field (needed here so MultiLine can
26035 - Added logic to MultiLine property setter to set the document's
26036 variable when password display is allowed
26037 - Removed debug code and made some debug code conditional
26039 - Added RecalculatePasswordLine() method to handle special password
26041 - Added PasswordChar property, also added related tracking vars
26042 - Draw() method now uses local text var for grabbing text to draw,
26043 this var is set to line.text unless we're doing password display,
26044 then it is set to the pre-generated all-password-chars line
26045 - Added calling RecalculatePasswordLine() method for password lines
26047 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26050 - Added Reparented property to allow tracking of Window Manager
26051 reparenting actions (which affect X/Y calculations of toplevel
26053 - Made ToString() print window handles in hex
26055 - AddConfigureNotify(): Now uses reparented state off Hwnd to
26056 determine if X/Y needs offsetting
26057 - AddConfigureNotify(): Fixed offset calculations
26058 - Now adds ReparentNotify messages into the queue
26059 - Now processes ReparentNotify messages and causes a
26060 WM_WINDOWPOSCHANGED message to be sent upstream if a window
26061 is reparented (as most likely it's X/Y coordinates are changed
26064 2005-12-14 Jackson Harper <jackson@ximian.com>
26066 * XplatUIX11.cs: Tool windows still need to respek focus.
26068 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26070 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26071 have a working release
26073 2005-12-13 Jackson Harper <jackson@ximian.com>
26075 * Form.cs: Update styles after setting the border style regardless
26076 of whether or not the window is using a window manager.
26078 2005-12-13 Jackson Harper <jackson@ximian.com>
26080 * Form.cs: We now hook into an internal window manager instead of just an
26081 MDI subsystem, this is so we can have properly behaving tool windows.
26082 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26083 * InternalWindowManager.cs: New internal class that acts as a
26084 window manager for tool windows and as a base for mdi windows.
26085 * MdiWindowManager.cs: New class that acts as a window manager for
26088 2005-12-12 Jackson Harper <jackson@ximian.com>
26090 * Control.cs: Updates so we match behavoir for for implicit
26091 controls. Fixes explosions in MDI.
26093 2005-12-12 Jackson Harper <jackson@ximian.com>
26095 * Control.cs: Implement Invalidate (Region).
26097 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
26100 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
26101 the same events as MS does. MS fires events for each property
26102 except, for unknown reasons, Cursor, when the control is reparented.
26103 I can't seem to totally match add/remove since MS also fires some
26104 VisibleChanged events, which makes no sense. Consolidated the
26105 parenting code into a separate method so it can be called from
26106 both Add and Remove. set_Parent no longer needs any special logic
26107 as it calls the parent's add method which implicitly fires
26109 - Removed some obsolete code and debug output
26110 - Enabled state is inherited from parents, if this is enabled
26112 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26114 * Form.cs: Removed commented out code
26116 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26119 - Added internal version of Invoke, with additional argument
26120 indicating if we're calling it from a Dispose() handler. That
26121 way we can avoid BeginInvoke throwing an exception if we're
26122 calling for an already destroyed window.
26123 - Added a dispose argument to BeginInvokeInternal, and made the
26124 check if a valid window handle chain exists conditional on
26125 it not being a dispose call
26126 - Removed code in DestroyHandle to destroy our children. Since we
26127 now handle the WM_DESTROY message we will catch all our children
26129 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26131 - Added a field to track the application context of the form.
26132 - No need to set closing variable as response to WM_CLOSE, instead
26133 we destroy the window. We also call PostQuitMessage if the form
26134 has an application context (which makes it the main app form,
26135 which, when closed terminates the app)
26137 - Dropped Exit() method, it's naming was confusing
26138 - Added PostQuitMessage() which causes GetMessage to return false
26139 once the message queue is empty
26140 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
26142 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26143 no longer a valid XplatUI method, but left it in since it's used
26144 internally. Added empty PostQuitMessage() method.
26145 * MenuAPI.cs: Replaced call to Exit() with call to
26146 PostQuitMessage, even though this is probably no longer needed.
26147 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26148 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26150 - Replaced call to XplatUI.Exit() with PostQuitMessage()
26151 - Removed old debug code that would call XplatUI for exception
26152 display, enabled standard exception handling (Still not enabled
26153 though, until NativeWindow's ExternalExceptionHandler define
26156 - Added internal method to allow control to update NativeWindow
26157 after a window has been destroyed
26158 - Added handling of already destroyed windows when calling i
26160 - Added removal of handle from list on ReleaseHandle
26162 - Dropped GetMessageResult var and related code
26163 - Added PostQuitState to field to track if PostQuitMessage has been
26165 - Dropped Exit() method
26166 - Added PostQuitMessage() method
26167 - GetMessage now will return false if PostQuitState is set and no
26168 more messages are in the queue.
26169 - Expose handler will no longer generate WM_PAINT messages if we are
26170 in PostQuitState since it's very likely any windows have already
26171 been destroyed, and since Hwnd won't get updated until we have
26172 processed the DestroyNotify we'd be causing X errors.
26174 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26176 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26177 Thanks to Mike for pointing out the err of my ways.
26179 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26181 * Control.cs(PreProcessMessage): Moved menu handling back, but
26182 after all other key handling, to match MS (who handles Menu in
26184 * Menu.cs (WndProc): Removed my brainfart
26186 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26188 * Control.cs(PreProcessMessage): Removed special menu handling
26189 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26191 2005-12-07 Mike Kestner <mkestner@novell.com>
26193 * Control.cs : special case SYSKEYUP so that we can adjust keynav
26194 state according in tracker.
26195 * Menu.cs : promote tracker field to base class and provide a tracker
26196 lookup capability. Add/Remove shortcuts dynamically if the top menu
26197 has a tracker. Unparent items that are removed from the collection.
26198 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26199 * Theme*.cs: add always_show_hotkeys field to support configurability
26200 of mnemonic display. win32 doesn't show mnemonics until Alt is
26203 2005-12-07 Jackson Harper <jackson@ximian.com>
26205 * MdiChildContext.cs: Use Control.ResetCursor.
26206 * Control.cs: ResetCursor needs to set the property so that the
26207 correct XplatUI call gets made.
26209 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26211 * Control.cs: More fixes to make our key events match MS. We
26212 were not setting the modifier state on KeyData, and we were
26213 not generating any events when Alt was pressed with a key
26214 since handling of WM_SYSxxx was missing for the OnKey methods.
26216 2005-12-07 Jackson Harper <jackson@ximian.com>
26218 * MdiChildContext.cs: reenable the sizing code.
26219 - When the mouse leaves a window reset its cursor.
26221 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26223 * ThemeClearlooks.cs: Reflect latest Hwnd changes
26225 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26227 * Hwnd.cs: Now using the theme 3d bordersize to calculate
26228 widths of Fixed3D borders
26230 2005-12-07 Jackson Harper <jackson@ximian.com>
26232 * MdiClient.cs: Fix warnings. Earn Mike's love.
26234 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26236 * ThemeClearlooks.cs:
26237 - Adjusted mouse over button color
26238 - Added first parts of CheckBox drawing
26239 - Added correct color for selected text background
26240 - Fixed ComboBox drawing
26241 - Added CPDrawBorder3D and CPDrawBorder
26243 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26245 * XplatUIX11.cs: Added call to XBell for AudibleAlert
26247 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26249 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26250 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26251 alert users via sound. We could add an enum arg with different
26252 types of alerts in the future
26254 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26256 * Control.cs: Fix behaviour problems pointed out by Mike
26258 2005-12-05 Mike Kestner <mkestner@novell.com>
26260 * StatusBarPanel.cs: add Invalidate method and hook it into all the
26261 prop setters. Calls parent.Refresh for now, but could be maybe be
26262 optimized with an internal method on StatusBar at some point.
26265 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
26267 * RichTextBox.cs: Implemented get_SelectionColor
26269 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
26271 * ThemeClearlooks.cs:
26272 - Removed dead code
26273 - Draw black button border only if button is Form.AcceptButton
26274 - Draw correct button color for pressed RadioButton if the mouse
26275 has entered the button
26276 - Updated ProgressBar drawing!
26277 - Updated CPDrawSizeGrip drawing
26278 - Updated StatusBarPanel drawing
26280 2005-12-05 Mike Kestner <mkestner@novell.com>
26282 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26283 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26285 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
26287 * ThemeClearlooks.cs: Initial check-in, activate with
26288 export MONO_THEME=clearlooks
26289 * ThemeEngine.cs: Added ThemeClearlooks
26291 2005-12-03 Mike Kestner <mkestner@novell.com>
26293 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26296 2005-12-02 Jackson Harper <jackson@ximian.com>
26298 * Form.cs: If the child form has no menu the default main menu is
26299 used as the active menu.
26301 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26303 * ListBox.cs: Check if any items exist before trying to resolve
26304 coordinates into items
26306 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26308 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26309 as the second color for the background hatch
26311 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26313 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26314 * RichTextBox.cs: FormatText position arguments are 1-based, now making
26315 sure that what we pass to FormatText is always 1-based. Fixes #76885
26317 2005-11-29 Miguel de Icaza <miguel@novell.com>
26319 * NumericUpDown.cs (EndInit): When we are done initializing,
26320 reflect any updates on the UI.
26322 2005-12-02 Jackson Harper <jackson@ximian.com>
26324 * ImplicitHScrollBar.cs:
26325 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26326 their container controls.
26327 * TreeView.cs: Use the new implicit scrollbars.
26329 2005-12-02 Jackson Harper <jackson@ximian.com>
26331 * TreeView.cs: Make top_node internal so the TreeNodeCollections
26333 * TreeNodeCollection.cs: If we remove the topnode we need to
26334 update topnode to the next node in line.
26335 - When clearing nodes go through the same process as removing
26336 them, so they get depareneted and checked if they are top node.
26338 2005-12-01 Jackson Harper <jackson@ximian.com>
26340 * TreeView.cs: When imagelists are used the image area is
26341 selectable as well as the text.
26342 - If there are no selected nodes select the first one.
26343 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26344 so don't do it more then we need to.
26346 2005-12-01 Jackson Harper <jackson@ximian.com>
26348 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26349 that arrows can be scaled.
26351 2005-12-01 Jackson Harper <jackson@ximian.com>
26353 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26354 fail. Patch by Dieter Bremes
26356 2005-11-30 Jackson Harper <jackson@ximian.com>
26358 * Form.cs: Property is 2.0 only
26359 * PrintDialog.cs: Signature fix.
26361 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26364 - No longer artificially moves text 2 pixels down (now that we have
26365 borders this is no longer needed)
26366 - Added calcs for left, hanging and right indent
26368 2005-11-23 Mike Kestner <mkestner@novell.com>
26370 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26372 2005-11-30 Jackson Harper <jackson@ximian.com>
26374 * MdiChildContext.cs: Set the cloned menus forms, as these don't
26375 get cloned as part of CloneMenu ().
26376 * Menu.cs: Make sure the parent of the items get set correctly
26377 when they are added. And the owners are notified of the changes.
26378 * Form.cs: Create an ActiveMenu property, so that when MDI is used
26379 we can change the menu being displayed/handled by the form without
26380 changing the menu assosciated with the form.
26381 - Don't let Mdi children draw/handle menus.
26383 2005-11-30 Jackson Harper <jackson@ximian.com>
26385 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26386 a MenuChanged event. Just to make the API a little more
26389 * MenuItem.cs: Use the new OnMenuChanged
26390 * MdiChildContext.cs: Handle menu merging.
26391 * Form.cs: Implement MergedMenu.
26393 2005-11-30 Jackson Harper <jackson@ximian.com>
26395 * Menu.cs: We were misusing Add. Add goes behind the specified
26396 index according to the docs, and does not replace the specified
26397 index. So I added an Insert method.
26399 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26401 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26402 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26404 * RichTextBox.cs: Added calls to base for DnD events
26406 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
26409 - Fixed drag-selection related crash; style fixes
26410 - Implemented undo class
26411 o Implemented method to capture document state for specified
26412 range in document tree
26413 o Implemented method to restore captured document state
26414 o Implemented cursor tracking
26415 o Implemented basic undo stack
26416 - Added undo cursor tracking to methods altering cursor location
26417 - Added undo tracking to selection deletion (still missing
26418 other text-altering hookups)
26420 - Added SelectionLength property
26421 - Implemented CanPaste()
26422 - Implemented Paste()
26423 - Added missing protected methods
26424 - Fixed RTF->Document conversion; now uses font index 0 and color
26425 index 0 as the default font for the parsed text
26426 - Fixed RTF<->Document font size translation
26427 - Fixed RTF generation, now properly handles cross-tag boundaries
26428 for single line selection
26429 - No longer always appends blank line to generated RTF
26431 - Added missing attributes
26432 - Hooked up undo-related methods
26434 - Implemented Copy()
26435 - Implemented Paste()
26436 - Implemented Cut()
26437 - Fixed caret mis-behaviour on backspace across line-boundaries
26439 2005-11-29 Jackson Harper <jackson@ximian.com>
26441 * MdiClient.cs: Add a method for activating mdi children. Very
26442 basic right now. I imagine someday it might need more girth.
26443 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26444 children windows names are added to the menu item.
26445 * ThemeWin32Classic.cs: Draw the arrow if the item is an
26446 mdilist. This happens regardless of whether or not there are any
26447 mdi windows to see in the list, and according to my tests happens
26448 before the items are even added. Also happens if there isn't even
26449 an mdi client to get windows from.
26451 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
26453 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26454 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26456 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
26458 * DataGridTableStyle.cs:
26459 - Create always the styles for the missing columns even if they are
26460 provided by the user (not default table style)
26463 - Fixes SetDataBinding (always re-attach source)
26464 - Fixes SetNewDataSource (only clear styles if they are not for
26466 - Expands OnTableStylesCollectionChanged to handle style refresh
26467 and remove properly
26469 2005-11-29 Jackson Harper <jackson@ximian.com>
26471 * FileDialog.cs: Implement missing bits, remove some dead
26473 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26474 creation of the panel so that the options set on the dialog are
26475 seen when the panel is created.
26476 * TreeView.cs: raise a click when items are clicked.
26478 2005-11-29 Jackson Harper <jackson@ximian.com>
26480 * MdiClient.cs: Pass some signature methods through to base.
26482 2005-11-28 Jackson Harper <jackson@ximian.com>
26484 * ListView.cs: Raise the click event when items are clicked.
26486 2005-11-28 Jackson Harper <jackson@ximian.com>
26488 * MdiClient.cs: Make this algorithm even more beautiful. And fix
26491 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
26493 * ThemeNice.cs: - Removed 1 pixel bitmaps
26494 - Use SmoothingMode.AntiAlias where it makes sense
26495 (ScrollButton arrow for example)
26496 - Enhanced Button focus drawing
26497 - Fixed ComboBox drawing (no artefacts anymore, focus
26498 rectangle is back again, reduced size of ComboButton, etc.)
26499 - Fixed RadioButton focus drawing for Appearence.Button
26500 - Slight ScrollButton redesign
26501 - Some LinearGradientBrush size fixes
26502 - GroupBoxes have now rounded edges
26503 - Fixed StatusBar drawing
26505 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
26507 * ThemeNice.cs: - Remove dead code
26508 - use correct background colors for menus, etc.
26509 - Fake pixel drawing with 1 pixel bitmaps
26511 2005-11-24 Jackson Harper <jackson@ximian.com>
26513 * MdiClient.cs: Size the scrollbars when resizing the window.
26514 - Resize the maximized windows when the client is resized
26515 * Form.cs: Make the child context available
26517 2005-11-23 Jackson Harper <jackson@ximian.com>
26519 * MdiChildContext.cs: Don't size windows if they are maximized.
26521 2005-11-23 Mike Kestner <mkestner@novell.com>
26523 * ContextMenu.cs: use MenuTracker.
26524 * Control.cs: remove menu handle usage.
26525 * Form.cs: remove menu handle usage.
26526 * Hwnd.cs: remove menu handle usage.
26527 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26528 motion and clicks to the new Tracker handlers.
26529 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26531 * MenuAPI.cs: refactored to combine popup and menubar event handling.
26532 Killed the MENU and MENUITEM data types and associated collections
26533 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26534 MenuTracker class that exposes the leftovers from the old MenuAPI
26535 static methods. Restructured Capture handling so that only one grab is
26536 done for the entire menu hierarchy instead of handing off grabs to
26537 submenus. Tracker now has an invisible control to Capture when active.
26538 * MenuItem.cs: add sizing accessors, kill Create
26540 * Theme.cs: remove menu handle and MENU(ITEM) usage.
26541 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26542 MENU(ITEM). remove menu handle usage, use Menu directly.
26543 * XplatUIDriver.cs: remove menu handle usage.
26544 * XplatUIOSX.cs: remove menu handle usage.
26545 * XplatUIWin32.cs: remove menu handle usage.
26546 * XplatUIX11.cs: remove menu handle usage.
26548 2005-11-22 Jackson Harper <jackson@ximian.com>
26550 * Hwnd.cs: Don't compute the menu size for
26551 DefaultClientRectangle.
26552 - Reenable menu sizes being computed for GetClienRectangle.
26553 * Form.cs: Remove comment of trechery
26555 2005-11-22 Jackson Harper <jackson@ximian.com>
26557 * Hwnd.cs: The adjustments for the menu bar are made when it is
26558 attached to the form.
26560 2005-11-19 Jackson Harper <jackson@ximian.com>
26562 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26563 (just like on windows).
26565 2005-11-19 Jackson Harper <jackson@ximian.com>
26567 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26568 use real buttons anymore because they are in non client area. The
26569 one TODO here is that I need to somehow invalidate a section of
26570 the non client area.
26572 2005-11-18 Jackson Harper <jackson@ximian.com>
26574 * Control.cs: Put the enum check back in now that MDI doesnt have
26575 to use this to set border styles.
26576 * Form.cs: Only set mdi child windows borders if the handle has
26578 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26579 this directly on to the driver.
26580 - Get the move start position before adjusting for the titlebar
26581 height, this fixes the windows "skipping" when they are first
26584 2005-11-18 Jackson Harper <jackson@ximian.com>
26586 * XplatUIX11.cs: Just compute the mdi borders separately as they
26587 don't totally match up with normal form borders.
26589 2005-11-18 Jackson Harper <jackson@ximian.com>
26591 * Control.cs: Set WS_ styles for borders, so that the driver does
26592 not have to retrieve the control instance to figure out what kind
26593 of borders it should have.
26594 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26595 driver can know its an mdi child easily.
26596 * XplatUIX11.cs: Get the border styles and whether the window is
26597 MDI from the Styles and ExStyles params instead of having to get a
26598 control. This prevents a chicken and egg problem.
26600 2005-11-18 Jackson Harper <jackson@ximian.com>
26602 * MdiClient.cs: Fix typo so scrollbars show up correctly.
26604 2005-11-18 Jackson Harper <jackson@ximian.com>
26606 * MdiClient.cs: Calculate when to add and remove scrollbars
26608 * MdiChildContext.cs: Adjust the y position to take the titlebar
26610 - No height for FormBorderStyle.None
26612 2005-11-18 Jackson Harper <jackson@ximian.com>
26614 * Control.cs: Allow non enum values to be used for
26615 InternalBorderStyle. MDI does this to set a special border style.
26616 - New utility methods for converting points to/from client coords
26617 - Add the newly created control to the Controls collection before
26618 updating its style. This way UpdateStyle can walk the control
26619 heirarchy to find the control if needed.
26620 so I don't need to create a new Point object all the time.
26621 * Form.cs: Let MDI windows handle their border styles.
26622 - Set styles on MDI windows so the correct title style is derived.
26623 * MdiChildContext.cs: Move all the painting and window handling
26624 into the non client area.
26625 - Use correct sizing and put correct buttons on frames based on
26626 the FormBorderStyle.
26627 - Notify the mdi client about scrolling
26628 - Need to handle the buttons ourselves now, because they are all
26629 in non client areas and we can't add controls there.
26630 * MdiClient.cs: Halfway to scrolling, this implementation is
26631 somewhat broken though, we need to check to make sure other
26632 windows aren't causing scrolling before removing the bars. Also
26633 the bars need to be drawn on top, maybe I can switch implicit
26634 controls to be on top.
26635 * Hwnd.cs: caption_height and tool_caption_height are now
26636 properties of an hwnd, this way they can be set by the driver
26637 based on the type of window they are. In X11 the window manager
26638 handles the decorations so caption_height is zero unless its an
26640 - Add 3 pixel borders for MDI windows (0xFFFF).
26641 - Get rid of some code duplication, have DefaultClientRectanle
26642 just call GetClientRectangle.
26643 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26645 - Set border styles differently for mdi windows.
26646 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26649 2005-11-15 Mike Kestner <mkestner@novell.com>
26651 * Menu.cs: when adding an item to the collection, if item is already
26652 parented, remove it from the parent.
26654 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
26656 * X11DesktopColors.cs: Added KDE support
26658 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
26661 - Clipboard methods now can translate Rtf format
26662 - No longer removes clipboard contents whenever a new format is added
26663 to allow placing multiple formats on the clipboard
26664 * Clipboard.cs: Clipboard now supports getting a IDataObject and
26665 will place all formats contained in it onto the clipboard. Also
26666 now cleans the clipboard before placing a new object onto it
26668 - Implemented set_Rtf
26669 - Implemented set_SelectedRtf
26670 - Created InsertRTFFromStream() method to allow single code base
26671 for all properties and methods that insert RTF into document
26672 - Removed debug output
26674 - Fixed Delete(int) to fix up line numbers
26675 - Fixed ReplaceSelection to combine start and end line
26676 - Fixed serious DeleteChars bug that would leave the document tree
26678 - Improved DumpTree with several logic checks to detect broken
26680 - Removed debug lines
26681 - Fixed Caret.WordForward/WordBack moving code, now always also
26682 updates caret.tag (fixes crash when word-selecting across tag
26683 boundaries via keyboard)
26684 - Added Insert() method for inserting multiline text into documents
26685 - Fixed DeleteChars() calculation errors that would cause a broken
26686 tag chain with multiple tag lines
26687 - DeleteChars() no longer crashes on multi-tag lines if not all tags
26688 - Split() no longer moves caret if split is at caret location
26689 - ReplaceSelection() now updates the cursor and re-displays it
26690 - ReplaceSelection() now uses new Insert() method to avoid code
26692 - FormatText() can now handle formatting partial lines
26694 - Append now uses new TextControl.Insert() method (this avoids
26696 - Implemented Ctrl-X (Cut) (
26697 - Implemented Ctrl-C (Copy)
26698 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
26699 regeneration when pasting text; roundtripping Copy&Paste within
26700 edit control still fails due to some calculation bugs in GenerateRTF)
26701 - The Delete key will now remove the current selection if it is visible
26702 * TextBox.cs: Removed debug lines
26703 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26704 driver to be initialized and can't therefore be done via a static ctor)
26706 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
26708 * TextControl.cs: Added backend code for finding char arrays and strings
26710 - Added mouse wheel scroll support
26711 - Added support for VScroll and HScroll events
26713 - Implemented all seven Find() variants
26714 - Implemented GetCharFromPosition()
26715 - Implemented GetCharIndexFromPosition()
26716 - Implemented GetLineFromIndex()
26717 - Implemented GetPositionFromCharIndex();
26718 - Implemented SaveFile for PlainText and UnicodeText
26719 - Fixed set_Font, now setting a new font applies that font to
26721 - Implemented generic Document to RTF converter
26722 - Implemented SaveFile for RichText format (still missing unicode
26723 conversion for non-ansi chars)
26724 - Implemented get_Rtf
26725 - Implemented get_SelectedRtf
26727 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
26729 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26730 to allow any captures to be released before triggering OnClick. This
26731 way a click handler may capture the mouse without interference.
26732 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26733 This way we send them even though X may not allow a grab (if the window
26734 isn't visible, for example)
26736 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
26738 * DataGridViewRowEventArgs.cs: DataGridView implementation
26739 * DataGridViewElement.cs: DataGridView implementation
26740 * DataGridViewComboBoxCell.cs: DataGridView implementation
26741 * DataGridViewDataErrorContexts.cs: DataGridView implementation
26742 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26743 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26744 * ImageLayout.cs: DataGridView implementation
26745 * DataGridViewComboBoxColumn.cs: DataGridView implementation
26746 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26747 * DataGridViewSelectionMode.cs: DataGridView implementation
26748 * IDataGridViewEditingControl.cs: DataGridView implementation
26749 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26750 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26751 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26752 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26753 * DataGridViewColumnSortMode.cs: DataGridView implementation
26754 * DataGridView.cs: DataGridView implementation
26755 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26756 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26757 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26758 * Padding.cs: DataGridView implementation
26759 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26760 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26761 * DataGridViewRowEventHandler.cs: DataGridView implementation
26762 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26763 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26764 * DataGridViewButtonCell.cs: DataGridView implementation
26765 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26766 * DataGridViewEditMode.cs: DataGridView implementation
26767 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26768 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26769 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26770 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26771 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26772 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26773 * DataGridViewCellEventHandler.cs: DataGridView implementation
26774 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26775 * DataGridViewCellStyleConverter.cs: DataGridView implementation
26776 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26777 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26778 * DataGridViewColumnEventArgs.cs: DataGridView implementation
26779 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26780 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26781 * QuestionEventArgs.cs: DataGridView implementation
26782 * IDataGridViewEditingCell.cs: DataGridView implementation
26783 * DataGridViewTriState.cs: DataGridView implementation
26784 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26785 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26786 * DataGridViewColumnCollection.cs: DataGridView implementation
26787 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26788 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26789 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26790 * DataGridViewColumn.cs: DataGridView implementation
26791 * DataGridViewCellBorderStyle.cs: DataGridView implementation
26792 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26793 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26794 * DataGridViewRow.cs: DataGridView implementation
26795 * DataGridViewImageCellLayout.cs: DataGridView implementation
26796 * DataGridViewImageCell.cs: DataGridView implementation
26797 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26798 * DataGridViewCheckBoxCell.cs: DataGridView implementation
26799 * DataGridViewHeaderCell.cs: DataGridView implementation
26800 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26801 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26802 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26803 * DataGridViewTextBoxColumn.cs: DataGridView implementation
26804 * QuestionEventHandler.cs: DataGridView implementation
26805 * DataGridViewCellStyleScopes.cs: DataGridView implementation
26806 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26807 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26808 * DataGridViewCell.cs: DataGridView implementation
26809 * DataGridViewCellEventArgs.cs: DataGridView implementation
26810 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26811 * DataGridViewCellStyle.cs: DataGridView implementation
26812 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26813 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26814 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26815 * TextFormatFlags.cs: DataGridView implementation
26816 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26817 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26818 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26819 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26820 * DataGridViewButtonColumn.cs: DataGridView implementation
26821 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26822 * HandledMouseEventArgs.cs: DataGridView implementation
26823 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26824 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26825 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26826 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26827 * DataGridViewRowCollection.cs: DataGridView implementation
26828 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26829 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26830 * DataGridViewHitTestType.cs: DataGridView implementation
26831 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26832 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26833 * DataGridViewColumnEventHandler.cs: DataGridView implementation
26834 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26835 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26836 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26837 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26838 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26839 * DataGridViewContentAlignment.cs: DataGridView implementation
26840 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26841 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26842 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26843 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26844 * DataGridViewPaintParts.cs: DataGridView implementation
26845 * DataGridViewCellCollection.cs: DataGridView implementation
26846 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26847 * DataGridViewImageColumn.cs: DataGridView implementation
26848 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26849 * DataGridViewElementStates.cs: DataGridView implementation
26850 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26851 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26852 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26853 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26854 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26855 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26856 * DataGridViewRowHeaderCell.cs: DataGridView implementation
26857 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26858 * DataGridViewTextBoxCell.cs: DataGridView implementation
26859 * DataGridViewBand.cs: DataGridView implementation
26860 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26861 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
26862 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
26863 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
26864 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
26865 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
26866 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
26867 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
26868 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
26869 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
26870 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
26872 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
26874 * ThemeWin32Classic.cs:
26875 - Draw the outside focus rectangle around buttons
26876 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
26877 doesn't use end caps for every dash of a line anymore. This
26878 workaround ignores the forecolor.
26880 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
26882 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
26885 2005-11-07 Jackson Harper <jackson@ximian.com>
26887 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
26889 2005-11-07 Jackson Harper <jackson@ximian.com>
26891 * ScrollableControl.cs: Calculate the maximum and change vars
26892 (more) correctly so that scrollbars appear as a sensible size.
26894 2005-11-04 Jackson Harper <jackson@ximian.com>
26896 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
26898 * TreeView.cs: When the tree is sorted null out the top_node so
26899 that it is recalculated.
26900 - Use dotted lines instead of dashed lines to match MS better.
26902 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
26905 - Implements key search for items. Useful when browsing files with FileDialog
26906 - When changing view mode or when clear the items reset scrollbar positions
26908 2005-11-04 Jackson Harper <jackson@ximian.com>
26910 * CurrencyManager.cs: Implement the MetaDataChanged event, the
26911 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
26912 as to what the method may do as there is no real way of creating a
26913 derived CurrencyManager and calling the method.
26915 2005-11-03 Jackson Harper <jackson@ximian.com>
26917 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
26918 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
26919 method which seems to just be used internally to refresh the tabs.
26921 2005-11-03 Jackson Harper <jackson@ximian.com>
26923 * TabControl.cs: Implement the remove method. Fix some broken
26926 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26928 * DateTimePicker.cs:
26929 - Added missing DateTimePickerAccessibleObject class
26930 - Added missing events
26931 - Added OnFontChanged method
26932 * Form.cs: Added missing attributes
26933 * TreeView.cs: Added missing attributes
26935 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26937 * GridItemCollection.cs: Fix signatures
26939 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26941 * XplatUI.cs: Updated build rev/date
26942 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
26943 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26944 * Application.cs: Trigger context-specific ExitThread events
26946 2005-11-03 Jackson Harper <jackson@ximian.com>
26950 * GridTableStylesCollection.cs:
26955 * MonthCalendar.cs: Signature fixes
26957 2005-11-03 Jackson Harper <jackson@ximian.com>
26959 * TreeNodeCollection.cs: Remove should not be virtual.
26960 * TreeView.cs: Implement the last of the missing methods.
26962 2005-11-03 Jackson Harper <jackson@ximian.com>
26964 * TreeNodeConverter.cs: Implement to get off my class-status back.
26966 2005-11-03 Jackson Harper <jackson@ximian.com>
26968 * TreeView.cs: Hookup the bits for drag and drop.
26969 * TreeNode.cs: Don't cache the tree_view or index anymore, now
26970 that nodes can be moved from tree to tree easily this just causes
26971 all sorts of problems.
26972 * TreeNodeCollection: Don't need to give treenodes an index and
26973 treeview anymore when they are added, these are computed on the
26974 fly. Also make sure to remove a node before its added.
26976 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26979 - Added CaretSelection enum
26980 - Added comparison methods to Marker struct, makes selection code
26982 - Added SelectionStart and SelectionEnd as 'moveable' location for
26983 the CaretDirection enum and handler
26984 - Added selection_prev variable to track optimized invalidation for
26985 word and line selection
26986 - Added SelectionVisible property (returns true if there is a valid
26988 - Switched CaretHasFocus to only display the caret if there is no
26990 - Avoiding StringBuilder.ToString to retrieve a single char, instead
26991 using the direct character index; should be much faster
26992 - Added various conditional debug statements
26993 - Fixed invalidation calculation for selection ranges
26994 - Added ExpandSelection() method to support word and line selection
26995 - Switched SetSelectionToCaret to use new Marker compare overloads
26996 - Added central IsWordSeparator() method to determine word
26997 separators/whitespace and FindWordSeparator() to streamline common
26998 usage of IsWordSeparator()
27000 - Removed unneeded grabbed variable, it was just mirroring
27002 - No longer firing OnTextChanged event when Text setter is called,
27003 since the base will fire the event for us
27004 - Added handling of Ctrl-Up/Down selection
27005 - Added handling of Shift-Cursorkey selection
27006 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27008 - Added handling of Shift and Ctrl-Shift-Home/End selection
27009 - Removed some debug output
27010 - Added handling for single/double/tripple-click to place caret/
27011 select word/select line respectively (Fixes bug #76031)
27012 - Added support for drag expansion of word/line selection
27013 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27016 2005-11-02 Jackson Harper <jackson@ximian.com>
27018 * X11Dnd.cs: If the drag is going to and from a MWF window just
27019 copy the data instead of sending it out through the X Selection
27022 2005-11-02 Jackson Harper <jackson@ximian.com>
27025 * XplatUIX11.cs: When in a drag we don't want motion notify
27026 messages to get passed on to the other controls. This prevents
27027 mouse move messages from showing up in the drag source.
27029 2005-11-02 Jackson Harper <jackson@ximian.com>
27031 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
27032 the correct button is release to end a drag.
27033 * XplatUIX11.cs: Make the button state internal so the drag system
27034 can access it. Dragging needs to know about all button releases,
27035 not just left button.
27037 2005-11-02 Miguel de Icaza <miguel@novell.com>
27039 * Form.cs (Icon): If the icon is null, reset the icon to the
27042 * Cursor.cs: When writing the AND-mask bitmap do not include the
27043 number of colors, but hardcode those to two (black and white),
27044 fixes the loading of color cursors (Paint Dot Net).
27046 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27047 turn off autoscaling.
27049 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27051 2005-11-02 Jackson Harper <jackson@ximian.com>
27053 * X11Dnd.cs: Make sure to send a status message if the pointer
27054 enters a control that can not accept a drop, otherwise the cursor
27055 isn't updated correctly. Also tried to compress the lines of code
27058 2005-11-02 Jackson Harper <jackson@ximian.com>
27060 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27061 set actions correctly. This isn't perfect as XDND and win32 have
27062 some differences on how you allow actions. I'll clear this up by
27063 adding a path for drag from MWF to MWF windows.
27064 * XplatUIX11.cs: Hook into the dnd system.
27066 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
27068 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27069 previously shown but they are no longer need it. Very obvious when
27070 browsing files with FileDialog.
27072 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
27074 * Control.cs: We always need to call OnPaintBackground. We pretty much
27075 ignore AllPaintingInWmPaint and always do the painting there, whether
27076 it's set or not, since we always ignore the WM_ERASEBKGND message
27077 (which we don't generate on X11). This fixes #76616.
27078 * Panel.cs: Removed unneeded background painting. This happens properly
27079 in Control.cs already
27081 2005-10-31 Mike Kestner <mkestner@novell.com>
27083 * Menu.cs: Add items to collection before setting their index.
27084 * MenuItem.cs : add range checking with ArgumentException like MS.
27087 2005-10-31 Jackson Harper <jackson@ximian.com>
27089 * ListBox.cs: Invalidate if the area is visible at all not just
27090 contained in the visible rect. Fixes unselection of semi visible
27093 2005-10-31 Jackson Harper <jackson@ximian.com>
27095 * Control.cs: Consistently name the dnd methods. Make them
27096 internal so we can override them to match some MS behavoir
27098 * Win32DnD.cs: Use the new consistent names.
27100 2005-10-31 Jackson Harper <jackson@ximian.com>
27102 * TreeView.cs: Don't draw the selected node when we lose focus.
27104 2005-10-31 Jackson Harper <jackson@ximian.com>
27106 * X11Dnd.cs: We still need to reset the state even though a full
27107 reset isn't being done, otherwise status's still get sent all over
27110 2005-10-31 Jackson Harper <jackson@ximian.com>
27112 * Control.cs: Make the dnd_aware flag internal so the dnd
27113 subsystem can check it. Catch exceptions thrown in dnd handlers to
27115 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27116 * X11Dnd.cs: Handle null data in the converters. Set the XDND
27117 version when sending a XdndEnter. Use the control/hwnd dnd_aware
27118 flags to reduce the number of dnd enters/status's sent.
27120 2005-10-31 Jackson Harper <jackson@ximian.com>
27122 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27124 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
27126 * PictureBox.cs: Fixes 76512
27128 2005-10-28 Jackson Harper <jackson@ximian.com>
27130 * X11Dnd.cs: Early implementation to support winforms being a drag
27131 source for data on X11. Also restructured the converters so they
27132 can go both ways now.
27133 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27135 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
27137 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27140 2005-10-27 Jackson Harper <jackson@ximian.com>
27142 * TreeNode.cs: Implement serialization so my DnD examples will work.
27144 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
27146 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27147 TreeView.cs: Don't dispose objects that are not owned.
27149 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
27151 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27152 should retrieve the current cursor and report that, but XplatUI
27153 doesn't (yet) have an interface for that (and I'm not sure I even
27155 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27156 until any message loop processing is done (and the WM_SETCURSOR
27157 replaces the cursor to the proper one)
27159 - Fixed override behaviour, we can't set the cursor globally on X11,
27160 just for our windows.
27161 - Invalidating the System.Drawing X11 display handle when we are
27163 * Control.cs: Fix to make csc happy
27165 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
27168 - get_Text: Add last line (without trailing newline) to returned
27169 value (Fixes 76212)
27170 - get_TextLength: Count last line in returned length
27171 - ToString: Call Text property instead of duplicating code
27173 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
27175 * ImageList.cs: Dispose ImageAttributes objects.
27177 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27179 * ImageList.cs: Use attribute constructors with less arguments where
27182 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27184 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27185 Use typeof instead of strings when assembly is referenced. Added
27186 some more comments.
27188 2005-10-21 Jackson Harper <jackson@ximian.com>
27190 * ListView.cs: Raise a double click event. Also tried to somewhat
27191 fix when the selectedindexchanged event is raised. Its still
27194 2005-10-21 Jackson Harper <jackson@ximian.com>
27196 * TreeView.cs: New method to invalidate the plus minus area of a
27197 node without invalidating the whole node (maybe this can be used
27198 in some more places).
27199 * TreeNodeCollection.cs: When adding to an empty node we need to
27200 invalidate its plus minus area so the little block shows up.
27202 2005-10-21 Jackson Harper <jackson@ximian.com>
27204 * TreeView.cs: Make sure that when we invalidate a node the bounds
27205 are big enough to cover the selected box and the focus
27206 rectangle. Use a different colour for the lines connecting nodes
27207 so they show up with all themes.
27209 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27211 * NativeWindow.cs: Don't call anything that could call into the driver,
27212 we might be on a different thread.
27214 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27216 * Control.cs(Dispose): Since Dispose might run on a different thread,
27217 make sure that we call methods that could call into the driver via
27218 invoke, to avoid thread issues
27220 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27222 * XplatUI.cs: Removed finalizer
27223 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27224 not allowing to be called on the finalizer thread.
27226 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
27229 - Reverted r51889 and r51891.
27230 - Added ImageListItem class that stores unmodified image items and image
27231 properties required to create list images until handle is created.
27232 - Added AddItem and moved image creation logic to AddItemInternal.
27233 - Added CreateHandle method that creates images based on unmodified items.
27234 - Added DestroyHandle that changes state to store unmodified items.
27235 - Add and AddStrip methods no more create handle.
27236 - ReduceColorDepth has no return value.
27237 - Dispose destroys handle.
27238 - Modified other methods to reflect the above changes.
27239 - Implemented key support.
27240 - Added profile 2.0 members and attributes.
27241 - Added private Reset and ShouldSerialize methods that provide the same
27242 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27243 them as they are private.
27244 - Added some more comments about implementation details.
27246 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27248 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27250 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27252 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27254 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27256 * DataGridDrawingLogic.cs: Fixes column hit calcultation
27257 * DataGridColumnStyle.cs: Remove debug message
27259 2005-10-20 Jackson Harper <jackson@ximian.com>
27261 * TreeView.cs: We can always get input keys regardless of whether
27262 or not editing is enabled. They are used for navigation.
27264 2005-10-20 Jackson Harper <jackson@ximian.com>
27266 * TreeNode.cs: Use the viewport rect for determining if a node
27267 needs to be moved for visibility. Don't use Begin/End edit. This
27268 calls a full refresh when its done.
27269 * TreeView.cs: New SetBottom works correctly. Make the viewport
27270 rect property internal so the treenodes can see it. When clicking
27271 on a node we need to ensure that its visible because it might just
27272 be partly visible when clicked.
27274 2005-10-20 Jackson Harper <jackson@ximian.com>
27276 * TreeNodeCollection.cs: Remove debug code.
27278 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27280 * Datagrid.cs: Implements column sorting in Datagrid
27281 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27283 2005-10-20 Jackson Harper <jackson@ximian.com>
27285 * TreeNodeCollection.cs: Remove items properly. Update the correct
27286 area after removing them.
27288 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27290 * Datagrid.cs: Should not call base.OnPaintBackground
27292 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27294 * XplatUIX11.cs (GetMessage):
27295 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27296 window instead of client window
27297 - Now properly calculates NC_xBUTTONUP message coordinates
27298 - ScreenToMenu now properly calculates it's coordinates of whole
27299 window, since menus are in the whole window, not in the client
27301 - Added WholeToScreen coordinate translation method
27303 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27305 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27306 want to return a message, loop back to the beginning of the function
27307 and grab the next real message to process instead.
27309 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27311 * Splitter.cs: Properly set limits if no filler control is used
27313 2005-10-19 Jackson Harper <jackson@ximian.com>
27315 * ColorDialog.cs: Don't show the help button if it is not enabled
27316 instead of disabling it (this is what MS does). Don't create the
27317 panel until the dialog is run, otherwise the vars (such as
27318 ShowHelp) are not set yet.
27320 2005-10-19 Jackson Harper <jackson@ximian.com>
27322 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27323 are reduced when adding nodes.
27325 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27328 2005-10-19 Jackson Harper <jackson@ximian.com>
27330 * FolderBrowserDialog.cs: End editing our treeview so the window
27331 actually gets refreshed.
27333 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27335 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
27336 Obsoleted handling of WM_ERASEBKGND, now always draws our background
27339 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27341 * MenuAPI.cs: Returns after Hidding window
27342 * XplatUIX11.cs: Added TODO found while debugging menu issues
27344 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27346 * XplatUIX11.cs: Do not re-map the whole window when it's size
27347 becomes non-zero unless it's supposed to be actually visible
27349 2005-10-18 Jackson Harper <jackson@ximian.com>
27351 * TreeView.cs: We don't need to keep a count anymore.
27352 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27353 use the Grow method.
27355 2005-10-18 Jackson Harper <jackson@ximian.com>
27357 * TreeNodeCollection.cs: Insert is not supported on arrays, so
27358 implement it manually here.
27360 2005-10-18 Jackson Harper <jackson@ximian.com>
27362 * ImageList.cs: Dont kill the list when the colour depth is
27363 changed, just change the colour depth of all the images.
27364 - Same goes for setting the image size. Just resize them all
27365 instead of killing the list softly.
27367 2005-10-18 Jackson Harper <jackson@ximian.com>
27369 * Control.cs: Don't invalidate empty rectangles.
27371 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27374 - Adds checked item to the Checked/Item lists (where empty before)
27375 - Do not add items to the Selected lists if they are already present
27377 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27378 - When deleting items make sure that we delete them for the Selected
27379 and Checked list also.
27381 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27383 * Label.cs: Dispose objects no longer used
27384 * ThemeWin32Classic.cs: Dispose objects no longer used
27386 2005-10-18 Jackson Harper <jackson@ximian.com>
27388 * TabControl.cs: Don't refresh the whole control when the tabs are
27389 scrolled, we just need to refresh the tab area.
27391 2005-10-17 Jackson Harper <jackson@ximian.com>
27393 * XplatUIX11.cs: Compress code a little bit. Only calculate the
27394 after handle when we need it.
27396 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27398 * Control.cs: When the parent size changes, recalculate anchor
27399 positions. Partial fix for #76462
27401 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27403 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
27404 drawn. Fixes #76462
27406 2005-10-17 Jackson Harper <jackson@ximian.com>
27408 * MonthCalendar.cs: Don't create the numeric up down until our
27409 handle is created. Otherwise our handle is created in the
27410 constructor and we don't know if we are a WS_CHILD or WS_POPUP
27413 2005-10-17 Jackson Harper <jackson@ximian.com>
27415 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27418 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27419 * TreeNode.cs : small logical fix (was using local var instead of field)
27421 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27423 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27425 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27427 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27429 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
27432 - Re-implemented anchoring code. My first version was really broken.
27433 This fixes bug #76033. Unlike the previous implementation we will
27434 no longer have round errors since all numbers are calculated from
27435 scratch every time. Removed various anchor-related obsolete vars.
27436 - InitLayout no longer causes layout event firing and layout to be
27439 2005-10-16 Jackson Harper <jackson@ximian.com>
27441 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27444 2005-10-16 Jackson Harper <jackson@ximian.com>
27446 * TabControl.cs: Remove debug code.
27448 2005-10-16 Jackson Harper <jackson@ximian.com>
27450 * XEventQueue.cs: Increase the default queue size (very simple
27451 apps needed to grow the queue).
27452 * Hwnd.cs: No finalizer so we don't need to suppress
27453 finalization. Compute the invalid area manually so a new rectangle
27454 does not newto be created.
27455 * ScrollableControl.cs: Don't set any params (otherwise visibility
27456 isn't set correctly).
27457 * MdiChildContext.cs: New constructor takes the mdi parent so it
27458 doesn't have to be computed and avoids a crash on windows. Draw
27459 the window icon properly, and allow the text to be seen.
27460 * Form.cs: Use new MdiChildContext constructor. Make sure the
27461 child context isn't null in wndproc.
27462 * TabControl.cs: Don't set focus, this is muddling keyboard
27463 behavoir. Expand the tab rows when a window size increase will
27464 allow extra tabs to be seen. Don't allow tabs smaller than the
27465 width of a window to be scrolled out of view.
27467 * TreeView.cs: Use measure string to calculate a nodes width, the
27468 width is cached and only updated when the text or the font is
27469 changed. Don't check for expand/collapse clicks on the first level
27470 nodes if root lines are disabled.
27472 2005-10-16 Ritvik Mayank <mritvik@novell.com>
27474 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27476 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27478 * DataGridBoolColumn.cs: fixes warning
27480 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27482 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27483 to match more to match more precisely the MS Net behavior
27485 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27487 * Hwnd.cs: Added field to track if window is mapped
27489 - Unmap windows if they become 0-size, re-map when
27490 they are >0 again; fixes #76035
27491 - Re-set our error handler after initializing X11Desktop
27492 to override any error handlers Gtk or whatever was called
27495 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27497 * CheckedListBox.cs: Removed unused vars
27498 * ListView.cs: Fixed signatures
27499 * RichTextBox.cs: Removed unused vars
27500 * TextBoxBase.cs: Removed unused vars
27501 * XplatUIWin32.cs: Removed unused vars
27502 * XplatUIX11.cs: Removed unused vars
27503 * XplatUI.cs: Updated version and date to latest published
27505 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27507 * Cursor.cs: Added private .ctor to work around a bug in
27508 resourceset (Thanks to Geoff Norton for the help on this)
27509 * SplitterEventArgs.cs: Made fields accessible so we don't
27510 waste boatloads of objects and can reuse the same one
27512 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27513 any captions and borders when generating screen coordinates
27514 * Splitter.cs: Reimplemented control, now fully complete, uses
27515 rubberband drawing, supports and obeys all properties, has
27518 2005-10-13 Miguel de Icaza <miguel@novell.com>
27520 * Form.cs (Form): Setup default values for autoscale and
27521 autoscale_base_size; Make these instance variables, not static
27524 (OnLoad): on the first load, adjust the size of the form.
27526 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27528 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
27529 width argument to DrawReversibleRectangle()
27530 * XplatUIWin32.cs, XplatUIX11.cs:
27531 - Implemented width for DrawReversibleRectangle()
27532 - Added logic to DrawReversibleRectangle that recognizes a zero
27533 width or height and only draws a line in that situation
27535 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27537 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27538 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27539 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27540 method (it uses our FosterParent window to get a graphics context)
27542 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27544 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
27545 and SetWindowBackground methods
27547 - Setting proper ControlStyles
27548 - We no longer call XplatUI.SetWindowBackground and XplatUI.
27549 EraseWindowBackground, instead we draw the window background
27550 ourselves in PaintControlBackground. This behaviour is
27551 required to match MS, where, when OnPaintBackground is not
27552 called, the background is not drawn.
27553 - Removed unneeded Refresh() in set_Text
27554 * Hwnd.cs: Dropped the ErasePending support. No longer needed
27556 - Created DeriveStyles method to translate from CreateParams to
27557 FormBorderStyle and TitleStyle, also handles BorderStyle (which
27558 matches FormBorderStyle enum values)
27559 - Consolidated SetHwndStyles and CalculateWindowRect border/title
27560 style calculations into single DeriveStyles method
27561 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27562 from redrawing the whole window on any resize or expose.
27563 - Fixed CreateWindow usage of SetWindowValuemask. Before not
27564 all styles were applied to our whole/client window appropriately
27565 - Removed EraseWindowBackground() and SetWindowBackground() methods
27566 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27567 no longer clear/redraw the background through X
27568 - Removed handling of erase_pending bit, we have no use for it (or
27571 - Removed generation and handling of WM_ERASEBKGND message
27572 - Removed EraseWindowBackground() and SetWindowBackground() methods
27573 - Removed handling of hwnd.ErasePending flag
27575 - Removed EraseWindowBackground() and SetWindowBackground() methods
27576 - We no longer call EraseWindowBackground on PaintEventStart, we
27577 ignore the fErase flag, erasing is handled in Control in the
27579 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27580 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27581 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
27582 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
27583 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
27584 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27585 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27587 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
27589 * PropertyGrids.cs: Get sub properties
27590 * PropertyGridView.cs: Fix drawing code
27592 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27594 * ListBox.cs: Fixes 76383
27596 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27598 * DataGridTextBoxColumn.cs: Sets location and size before attachment
27599 * ThemeWin32Classic.cs: Fixes border drawing and calculations
27600 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27603 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27605 * ComboBox.cs: Fixes border drawing
27607 2005-10-10 Miguel de Icaza <miguel@novell.com>
27609 * MimeIcon.cs: Ignore errors if the file can not be read.
27611 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27613 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27614 - Fixed border calculations
27615 - Fixed horizontal scrolling in single column listboxes
27616 - Fixed drawing issues
27618 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
27620 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
27621 FormBorderStyle enum
27622 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
27623 code to determine FormBorderStyles from CreateParams
27625 - Fixed bug where we'd set the wrong window styles if we were
27626 not creating an MDI window
27627 - Added call to XplatUI.SetBorderStyle when form borders are set
27628 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27630 - Removed obsolete edge style
27631 - Switched from BorderStyle to FormBorderStyle
27633 2005-10-10 Jackson Harper <jackson@ximian.com>
27635 * Form.cs: Use the property to get the window handle instead of
27636 accessing it directly. Prevents a null reference exception.
27638 2005-10-10 Jackson Harper <jackson@ximian.com>
27640 * TreeView.cs: Don't adjust the rect given to DrawString now that
27641 our libgdiplus draws correctly.
27643 2005-10-08 Jackson Harper <jackson@ximian.com>
27645 * TreeView.cs: Don't try to find the clicked on node if there are
27646 no nodes in the tree.
27648 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
27654 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
27656 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27657 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27659 Use ResPool for brushes and dispose System.Drawing objects that
27660 are not used anymore.
27662 2005-10-07 Jackson Harper <jackson@ximian.com>
27664 * MdiChildContext.cs: Use the new borders instead of drawing them
27667 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
27669 * Calling UpdateBounds after changing the window's BorderStyle
27670 since the style can change the ClientSize
27672 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27674 * Control.cs: Made PaintControlBackground virtual
27675 * Panel.cs: Overriding PaintControlBackground instead of using paint
27676 event; paint event method was interfering with 'real' users of the
27679 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
27681 * ThemeWin32Classic.cs: remove border drawing since it is handled
27682 by the base control class now and was causing double border drawing.
27684 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27686 * Panel.cs: Redraw our background on paint. Not a pretty solution,
27687 but it does seem to match MS behaviour. This fixes bug #75324
27689 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27691 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27692 somewhat hackish looking
27694 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27697 - We now accept Enter even if AcceptEnter is false, if the containing
27698 form does not have an AcceptButton configured (fixes bug #76355)
27699 - Calculations are now fixed to no longer use Width/Height, but
27700 ClientSize.Width/Height, since we now support borders (this was
27701 a result of fixing borders and therefore bug #76166)
27702 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
27703 true (fixes bug #76354)
27705 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27708 - Defaulting BorderStyle and setting it in XplatUI when our window
27710 - Added enum check to InternalBorderStyle setter
27712 - Added drawing of window borders
27713 - Now properly calculates WM decorations offset for toplevel
27714 windows (fixes bug #74763)
27716 - Implemented BorderStyles for windows (we're letting win32 draw
27718 - Fixed the signature for SetWindowLong
27719 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27720 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
27722 * UpDownBase.cs: Remove drawing of borders, this is handled by
27723 the driver, outside the client area
27724 * ListView.cs: Removed bogus border calculations. The control should
27725 be oblivious to borders, since those are not part of the client
27727 * X11DesktopColors.cs: Commented out (currently) unneeded variables
27728 * ThemeWin32Classic.cs: Removed border calculations from ListView
27731 2005-10-06 Jackson Harper <jackson@ximian.com>
27733 * MdiChildContext.cs: Clear out the old virtual position remove
27734 all the unneeded calls to CreateGraphics.
27736 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27738 * TextControl.cs: Use proper color for highlighted text; fixes #76350
27740 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27743 - Added loading and setting of our new default icon
27744 - Only set icon if window is already created
27746 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27749 - Do not explicitly set the foreground and background colors, to
27750 allow inheriting from parents (fixes #76302)
27751 - Use Control's InternalBorderStyle property to deal with borders
27753 2005-10-06 Jackson Harper <jackson@ximian.com>
27755 * MdiChildContext.cs: Use the new xplatui function to draw a
27758 2005-10-06 Jackson Harper <jackson@ximian.com>
27760 * Form.cs: Add the parent before creating the child context cause
27761 we need the parent when setting up the child.
27763 2005-10-06 Jackson Harper <jackson@ximian.com>
27765 * FolderBrowserDialog.cs: redo the tree population code so a
27766 second thread isn't used. Should be a lot faster and more stable
27769 2005-10-05 Jackson Harper <jackson@ximian.com>
27771 * TreeView.cs: There are no expand/collapse boxes if the node has
27774 2005-10-05 Jackson Harper <jackson@ximian.com>
27776 * X11DesktopColors.cs: Get menu colours for the gtk theme.
27778 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
27780 * FileDialog.cs: Fix InitialDirectory
27782 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
27785 - Fixes changing between styles
27786 - Fixes simple mode
27787 - Fixes last item crashing when navigating with keyboard
27789 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
27791 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27793 2005-10-05 Jackson Harper <jackson@ximian.com>
27795 * TreeView.cs: If updating the root node do a full refresh.
27796 * TreeNode.cs: The root node should be expanded by default. Also
27797 added a utility prop to tell if we are the root node.
27798 * TreeNodeCollection.cs: Only refresh if the node we are being
27799 added to is expanded. Also added a comment on a potential
27802 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
27804 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
27805 in dispose method. Fixes #76330
27807 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
27809 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27811 - Implements vertical and horizontal scrolling using XplatUI
27812 - Fixes keyboard navagation
27813 - Fixes EnsureVisible
27815 - Handles and draws focus properly
27818 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
27820 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27821 Create handle. NET_2_0: Destroy handle when value is null.
27823 2005-10-03 Jackson Harper <jackson@ximian.com>
27825 * ScrollBar.cs: My last scrollbar patch was broken. This is a
27826 revert and a new patch to prevent the thumb from refreshing so
27829 2005-10-02 Jackson Harper <jackson@ximian.com>
27831 * ScrollBar.cs: Don't update position if it hasn't actually
27832 changed. This occurs when you hold down the increment/decrement
27833 buttons and the thumb gets to the max/min.
27835 2005-10-01 Jackson Harper <jackson@ximian.com>
27838 * MdiChildContext.cs:
27839 * MdiClient.cs: Implement ActiveMdiChild in Form.
27841 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
27843 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27845 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
27847 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27850 2005-09-30 Jackson Harper <jackson@ximian.com>
27852 * ListBox.cs: Don't do a full refresh unless some data has
27855 2005-09-30 Jackson Harper <jackson@ximian.com>
27857 * TreeView.cs: Make sure that the checkboxes size is factored in
27858 even when not visible.
27860 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
27862 * FileDialog.cs: Fix Jordi's build break
27864 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
27867 - Use standard the Windows colours for the combobox as espected
27868 - Dispose objects that use resouces when no longer need them
27870 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
27872 * X11DesktopColors.cs: Initial incomplete implementation
27873 * XplatUIX11.cs: Added call to initialize X11DesktopColors
27875 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
27878 - Switched Theme color names to match the names defined in
27879 System.Drawing.KnownColors. Life's hard enough, no need to make
27881 - Added setters to all theme color properties so themes can set
27882 their color schemes. The setters also propagate the color changes
27883 to System.Drawing.KnownColors via reflection
27884 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
27885 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
27886 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
27887 use the new, more logical theme color names
27888 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
27890 * ThemeWin32Classic.cs:
27891 - Removed code to set the old classic Windows colors. Instead it
27892 now relies on the colors returned by System.Drawing.KnownColors
27893 which will be either modern static colors (Unix) or colors
27894 read from the user's configuration (Win32)
27895 - Updated to use the new, more logical theme color names
27896 - Switched DataGrid drawing code to use only Theme colors instead of
27897 a mix of System.Drawing.KnownColors and Theme colors
27898 - DrawFrameControl(): Removed code that fills the button area, the
27899 fill would overwrite any previous fill done by a control. This
27901 - Added DrawReversibleRectangle() stub
27902 * ScrollableControl.cs: Set visible state to false when scrollbars
27903 are removed (pdn fix)
27904 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
27905 DrawReversibleRectangle() method to allow drawing primitive
27907 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
27909 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27911 * ImageList.cs: Add(Icon): Create handle.
27913 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
27916 * ThemeWin32Classic.cs:
27917 - Fixes detail mode
27919 - Issues with drawing
27921 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27923 * ImageList.cs: Moved RecreateHandle back to ImageList as event
27924 source has to be the ImageList.
27926 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27928 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
27930 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27932 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27934 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27936 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27938 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
27939 * GridItem.cs: Fixed TODOs
27940 * GridItemCollection.cs: Added ICollection interface
27942 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27944 * ImageList.cs: Resize icons when needed.
27946 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
27949 - Fixes GetBounds and returns on screen rects
27951 - Fixes vertical and horzintal scrolling of items
27952 * ThemeWin32Classic.cs:
27955 2005-09-29 Raja R Harinath <harinath@gmail.com>
27957 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
27959 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
27961 * ImageList.cs: Added comments about handle creation. Moved Handle,
27962 HandleCreated and OnRecreateHandle implementations to ImageCollection.
27963 Handle is created in Add methods.
27965 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
27967 * DataGridDrawingLogic.cs:
27968 - Takes rows into account on Colum calculations
27969 - Returns the column when clickig
27971 - Fixes default HitTestInfo values
27972 - Fixes HitTestInfo.ToString
27973 - Fixes ResetBackColor
27975 2005-09-28 Jackson Harper <jackson@ximian.com>
27977 * MdiChildContext.cs: Obey rules for fixed sized windows (no
27978 sizing or cursor changes). Also added some temp code to draw the
27979 titlebars text (Makes dev a little easier).
27981 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
27983 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
27985 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
27987 * ListBox.cs: Fixes bug 76253
27989 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
27991 * ImageList.cs: Added comments about the current implementation. Added
27992 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
27993 Format32bppArgb to preserve transparency and can use Graphics.FromImage
27994 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
27995 with Bitmap.LockBits for better performance. Revised the whole file to
27996 match MS.NET behaviour and provide better performance. Non-public
27997 interface members are calling public members even when they throw
27998 NotSupportedException for better maintainability. Moved ColorDepth,
27999 ImageSize, ImageStream and TransparentColor implementations to
28000 ImageCollection for better performance as these properties are not used
28002 * ImageListStreamer.cs: Added a new internal constructor that takes an
28003 ImageList.ImageCollection and serializes Images based on
28004 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28005 match ImageList property name.
28007 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
28009 * ListBox.cs: Fixes IndexFromPoint for last item
28011 2005-09-27 Jackson Harper <jackson@ximian.com>
28013 * Form.cs: Set the position of new mdi children correctly.
28015 2005-09-27 Jackson Harper <jackson@ximian.com>
28017 * MdiClient.cs: New mdi children need to be added to the back of
28018 the controls collection so the zorder is set correctly. Also add a
28019 count of all the child windows that have been created.
28021 2005-09-27 Jackson Harper <jackson@ximian.com>
28023 * Form.cs (CreateParams): Setup MDI forms correctly.
28025 2005-09-27 Jackson Harper <jackson@ximian.com>
28027 * MdiChildContext.cs:
28028 * MonthCalendar.cs:
28034 * ScrollableControl.cs:
28035 * ComboBox.cs: Add implicit controls using the new implict control
28036 functionality in ControlCollection. Also try to block multiple
28037 control add in a suspend/resume layout to save some cycles.
28039 2005-09-27 Jackson Harper <jackson@ximian.com>
28041 * Control.cs: Add functionality to the controls collection to add
28042 'implicit controls' these are controls that are created by the
28043 containing control but should not be exposed to the user. Such as
28044 scrollbars in the treeview.
28045 * Form.cs: The list var of the ControlsCollection is no longer
28046 available because of the potential of implicit controls getting
28047 ignored by someone accessing the list directly.
28049 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
28051 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28052 loose it's parent. (Fixed bug introduced in r49103 when we added
28053 setting the child parent to null on Remove)
28055 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
28057 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28058 * Splitter.cs: Added missing attributes for BorderStyle property.
28059 * TextBoxBase.cs: Marked Calculate* methods internal.
28060 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28063 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
28065 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28067 2005-09-25 Jackson Harper <jackson@ximian.com>
28069 * TreeView.cs: Update the node bounds correctly regardless of
28070 whether the node is visible.
28072 2005-09-25 Jackson Harper <jackson@ximian.com>
28074 * ImageList.cs: Don't dispose the image after it is added to the
28075 image list. Only reformat images that need to be resized.
28077 2005-09-25 Jackson Harper <jackson@ximian.com>
28079 * ImageList.cs: Don't set the format when changing the image.
28081 2005-09-25 Jackson Harper <jackson@ximian.com>
28083 * TreeView.cs: We can't just assume the node has a font. Use the
28084 treeviews font if no node font is available.
28086 2005-09-25 Jackson Harper <jackson@ximian.com>
28088 * TreeView.cs: Allow the scrollbars to be reset with negative
28090 - Don't add scrollbars to negative sized windows.
28092 2005-09-23 Jackson Harper <jackson@ximian.com>
28094 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28095 old Mono.Posix. Also remove some stray code that shouldn't have
28098 2005-09-23 Jackson Harper <jackson@ximian.com>
28100 * TreeView.cs: Attempt at proper sizing of the horizontal
28101 scrollbar. Also don't resize the scrollbars unless they are
28104 2005-09-23 Jackson Harper <jackson@ximian.com>
28106 * TreeView.cs: We don't need to expand the invalid area when the
28107 selection changes, as this is all drawn in the node's bounding
28108 box. The area needs to be expanded (previous typo was contracting
28109 it) when the focus rect moves.
28111 2005-09-23 Jackson Harper <jackson@ximian.com>
28113 * TreeView.cs: Display the selection box under the correct
28114 circumstances. We were rendering white text with no selection box
28117 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
28119 * TextControl.cs(Split): Now updates selection start/end if it points
28120 into a line that's being split. Fixes a FIXME and bug #75258
28122 2005-09-23 Jackson Harper <jackson@ximian.com>
28125 * ListControl.cs: Don't use the path when retrieving binding
28126 managers from the binding context. My bat sense tells me that the
28127 path is only used on insertion.
28129 2005-09-22 Jackson Harper <jackson@ximian.com>
28131 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28133 2005-09-22 Jackson Harper <jackson@ximian.com>
28135 * Splitter.cs: There are special cursors used for splitting.
28136 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28138 2005-09-22 Jackson Harper <jackson@ximian.com>
28140 * Splitter.cs: Change the cursor appropriately when the splitter
28141 is moused over, so the user actually knows there is a splitter
28144 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28146 * Label.cs : Fix ToString method to give same output as MS.NET
28148 2005-09-22 Jackson Harper <jackson@ximian.com>
28150 * TreeView.cs: Create the scrollbars when the handle is created
28151 and add them right away, just make them invisble. Also account for
28152 the window being shrunk vertically to the point that the vert
28153 scrollbar needs to be added.
28154 - Remove some 0.5 adjustments to get around anti aliasing issues.
28156 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
28158 * MainMenu.cs: Fixes default value
28159 * MenuItem.cs: Fixes default value
28161 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
28163 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28165 2005-09-21 Jackson Harper <jackson@ximian.com>
28167 * Control.cs: Don't try to set the border style on the window if
28168 it hasn't been created. When the window is created the border
28169 style will be used.
28171 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28173 * Control.cs (Update): Don't call XplatUI if we don't have a
28176 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28178 * ContainerControl.cs: Instead of throwing an exception, print
28179 a one-time warning about Validate not being implemented
28180 * XplatUIWin32.cs: Removed debug output
28182 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28184 * Control.cs: Only set XplatUI background if we expect the windowing
28185 system to handle the background. This stops controls that draw their
28186 own background from flickering
28188 * XplatUIX11.cs: Support custom visuals and colormaps for window
28189 creation. This allows, amongst other things, using MWF X11 windows
28192 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28194 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28195 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28196 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28197 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28198 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28199 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28200 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28201 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28202 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28203 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28204 GridColumnStylesCollection.cs,
28205 IDataGridColumnStyleEditingNotificationService.cs,
28206 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28207 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28208 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
28209 TreeNodeCollection.cs, AmbientProperties.cs,
28210 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28211 DataObject.cs, ErrorProvider.cs, Splitter.cs,
28212 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28213 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28214 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28215 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28216 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28217 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28218 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28219 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28220 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28221 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28222 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28223 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28224 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28225 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28226 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28227 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28228 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28229 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28230 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28231 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28232 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28233 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28234 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28235 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28236 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28237 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28238 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28239 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28240 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28241 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28242 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28243 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28244 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28245 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28246 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28248 2005-09-21 Jackson Harper <jackson@ximian.com>
28250 * TreeNode.cs: Call Before/After Expand not Collapse when
28253 2005-09-20 Jackson Harper <jackson@ximian.com>
28255 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28257 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28261 - Fixes proper storing of subitems
28262 - Fixes not updated items
28264 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28266 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28267 things if our window handle isn't created yet. Also disabled
28268 debug for TextBoxBase
28270 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28272 * MenuAPI.cs: Remove filtering of events to allow menu usage
28274 2005-09-20 Miguel de Icaza <miguel@novell.com>
28276 * Cursor.cs: Allow null to be passed to Cursor.Current.
28278 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
28280 * ThemeWin32Classic.cs:
28281 - Change some private methods/fields to protected virtual so that
28282 they can be accessed and overriden in derived classes
28283 - First refactoring of some methods. Derived themes now don't
28284 need to duplicate the complete code from ThemeWin32Classic
28286 - Added nice StatusBar
28287 - Derive from ThemeWin32Classic and not Theme
28288 - Removed duplicate ThemeWin32Classic code
28290 2005-09-20 Miguel de Icaza <miguel@novell.com>
28292 * Control.cs (ControlCollection.Add): If the value null is passed
28293 the control is ignored.
28295 Optimize this loop.
28297 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28299 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28300 PostQuitMessage state.
28301 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28303 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28305 * Application.cs: Our constructor will never get called, move
28306 initialization to fields; fixes bug #75933
28308 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28311 - Allow files to be selected properly using file name
28313 - Add ability to change diretory (absolute / relative)
28314 using file name combo box.
28316 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28319 - Fixes Multicolumn listboxes item wrong calculations
28320 - Allows to click when only one item is in the listbox
28321 - Fixes crash when no items using keyboard navigation
28323 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
28325 * ComboBox.cs: Reverted almost everything from the latest patch which
28328 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
28331 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28333 - When DropDownStyle is Simple, it does not show scrollbar
28334 to the last item of the list.
28335 - When DropDownStyle is Simple, it crashed when the list was
28336 scrolled down with the down cursor key.
28337 - Fixed a bug that when DropDownStyle is DropDownList, the
28338 selected item was not shown.
28339 - The position of the selected item was not preserved when
28340 the next dropdown happened.
28341 * ThemeWin32Classic.cs:
28342 - Items were wrapped at the right end.
28343 * CheckedListBox.cs:
28346 - Items should be fully shown.
28347 - When resizing and vertical scrollbar disappeared, the item
28348 of index 0 should be on the top of the list.
28349 - GetItemRectangle should consider the size of ver. scrollbar
28351 - SizingGrip area should not be allocated when it is not
28353 - Now it reflects MinWidth of the containing panel and
28354 fixed a crash that happens when its width becomes so small.
28356 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28358 * CheckedListBox.cs: Fixes bug 76028
28359 * ListBox.cs: Fixes bug 76028
28361 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28363 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28364 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28366 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
28368 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28370 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28372 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
28374 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28376 * IRootGridEntry.cs: Added
28377 * PropertyGridCommands.cs: Added
28378 * PropertiesTab.cs: Added missing methods and property
28379 * PropertyGridView.cs: Made class internal
28380 * PropertyGridTextBox.cs: Made class internal
28382 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28384 * MimeIcon.cs: Try to check some other environment variables
28385 if "DESKTOP_SESSION" returns "default"
28387 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28389 * ThemeNice.cs: Corrected background colors (e.g. menus)
28390 * ColorDialog.cs: Use correct background colors for controls
28392 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28394 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28396 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
28398 * RichTextBox.cs: Added initial implementation
28399 * lang.cs: Removed. Was accidentally checked in long time ago
28400 * TODO: Removed. Contents were obsolete
28402 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28404 * PropertiesTab.cs : Added
28406 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28408 * PropertyGrid.cs : Update
28409 * PropertyGridView.cs : Update
28410 * System.Windows.Forms.resx : Added images and strings
28412 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28414 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28416 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28418 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28419 a busy loop right after the Ungrab the X11 display is otherwise
28422 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
28424 * ThemeWin32Classic.cs: Optimise the use of clipping
28426 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
28428 * DataGrid.cs: fixes recursion bug
28430 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
28433 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28436 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
28438 * ThemeNice.cs: Draw nice ProgressBars
28440 2005-09-01 Miguel de Icaza <miguel@novell.com>
28442 * VScrollBar.cs: Another buglet found by Aaron's tool.
28444 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28447 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
28450 - Added nicer menu drawing
28454 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28456 * CreateParams.cs (ToString): Made output match MS
28457 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
28458 handle is already created (to avoid forcing window creation)
28459 * XplatUIX11.cs: Set window text to caption after creating window,
28460 in case Text was set before window was created
28461 * Form.cs: Use this.Text instead of a static string as caption
28463 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28465 * NotifyIcon.cs: Don't set the window to visible; this screws
28466 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28467 OnPaint without a bitmap)
28468 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
28469 happen very often anyway; we could add the check to the WM_PAINT
28470 event generation code
28472 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28474 * NotifyIcon.cs: Fill the icon area with a background color, to
28475 avoid 'residue' when transparent icons are drawn
28477 - Handle whole_window == client_window when destroying windows
28478 - SystrayAdd(): Set client_window to whole_window value to
28479 get mouse and other events passed to NotifyIcon
28481 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28483 * Form.cs: Set proper default for Opacity property
28485 - ShowSystray(): Don't bother creating telling the OS
28486 about the systray item if no icon is provided
28487 - Now handles WM_NCPAINT message to deal with whole/client window
28489 - Create window as visible to not get caught by Expose optimization
28490 * Hwnd.cs: Removed debug message
28491 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28492 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
28493 PaintEventStart/End to use new client argument
28495 - Commented out debug messages
28496 - Switched PaintEventStart/End to use new client argument
28497 * XplatUI.cs: Added client window bool to PaintEventStart()/
28498 PaintEventEnd() calls, to support drawing in non-client areas
28499 * XplatUIDriver.cs:
28500 - Added client window bool to PaintEventStart()/PaintEventEnd()
28501 calls, to support drawing in non-client areas
28502 - Added conditional compile to allow using MWF BeginInvoke
28505 - Added some conditional debug output
28506 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28507 whole/client window split
28508 - Implemented handling of client argument to PaintEventStart()/End()
28510 - Throw exception if BeginInvoke() is called and the window handle
28511 or one of the window's parent handles is not created
28512 - Added conditional compile to allow using MWF BeginInvoke on
28514 - get_Parent(): Only sets parent if handle is created. This avoids
28515 forcing window handle creation when parent is set.
28516 - Now fires Layout and Parent changed events in proper order
28517 - Switched to use Handle instead of window.Handle for Z-Order setting,
28518 the get_Parent() patch above causes us to possibly get null for 'window'
28519 - Implemented handling of client argument to PaintEventStart()/End()
28520 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28522 - Now sends a Refresh() to all child windows when Refresh() is called
28524 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
28526 * Form.cs: Added (non-functional) Opacity property
28527 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28529 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
28530 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28531 use export MONO_THEME=nice to activate it.
28532 Currently supported controls:
28536 - TabControl (TabAlignment.Top only, other will follow)
28537 * ThemeEngine.cs: Add theme nice
28538 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28541 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
28543 * Splitter.cs: Resize docked control and its neighbor.
28545 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28546 -- Making Windows with Menus layout correctly --
28547 * Form.cs : The first leg of the fix
28548 Menu setter - adjust Client Size as needed to make space for the menu
28549 SetClientSizeCore - doesn't call base version to be able to pass the
28550 menu handle to XplatUI.CalculateWindowRect
28551 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28552 * XplatUIX11.cs: The critical second leg of the fix
28553 GetWindowPos needs to use a recalculated client_rect
28554 so that resizing the window doesn't break layout of child controls.
28555 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28556 Lots of \t\n killed
28558 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
28560 * Label.cs: Now properly recalculates width and height on Font and Text
28561 changes if AutoSize is set
28563 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28564 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28566 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
28568 * ImageList.cs: Makes ToString method compatible with MS
28570 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
28572 * MenuAPI.cs: fixes bug 75716
28574 2005-08-11 Umadevi S <sumadevi@novell.com>
28575 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28577 2005-08-11 Umadevi S <sumadevi@novell.com>
28578 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28580 2005-08-10 Umadevi S <sumadevi@novell.com>
28581 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28583 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
28585 * Menu.cs: fixes bug 75700
28586 * MenuAPI.cs: fixes navigation issues
28588 2005-08-09 Umadevi S <sumadevi@novell.com>
28589 * CheckedListBox.cs - simple fix for GetItemChecked.
28591 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
28593 * ComboBox.cs: Serveral fixes
28594 * ListBox.cs: Serveral fixes
28596 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28598 * ComboBox.cs: Fixes FindString methods and GetItemHeight
28599 * ListBox.cs: Fixes FindString methods
28601 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28603 * DataGrid.cs: fixes bugs exposed by new tests
28605 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
28607 * Mime.cs: Compile Mono assembly references only if compiling
28608 with Mono (Allows to build with VS.Net again)
28610 2005-07-28 Marek Safar <marek.safar@seznam.cz>
28612 * Control.cs (PaintControlBackground): Draw background image
28614 (CheckForIllegalCrossThreadCalls): Stubbed.
28616 * Form.cs (OnCreateControl): Center when should be centered.
28618 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28620 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
28622 * Binding.cs: Binding to properties should be case unsensitive
28624 2005-07-18 vlindos@nucleusys.com
28626 * DataGrid.cs: fixes setmember order
28628 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
28630 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28631 * FileDialog.cs: FileDialog is now resizable and uses the new
28634 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
28636 * DataGridTextBoxColumn.cs: default value
28637 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28638 * GridTableStylesCollection.cs: fixes checking MappingName
28639 * DataGridDrawingLogic.cs: fixes drawing logic issues
28640 * DataSourceHelper.cs: rewritten to make compatible with more data sources
28641 * DataGrid.cs: fixes
28643 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
28645 * MimeGenerated.cs: Use case sensitive comparer for
28646 NameValueCollections
28648 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
28650 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
28651 * ThemeWin32Classic.cs: bug fixes, code refactoring
28652 * DataGridDrawingLogic.cs: bug fixes, code refactoring
28653 * DataGrid.cs: bug fixes, code refactoring
28654 * DataGridTextBox.cs: bug fixes, code refactoring
28655 * DataGridColumnStyle.cs: bug fixes, code refactoring
28656 * Theme.cs: bug fixes, code refactoring
28658 2005-07-01 Peter Bartok <pbartok@novell.com>
28660 * TextControl.cs: Quick fix for the reported crash on ColorDialog
28661 and other text box usage
28663 2005-07-01 Jackson Harper <jackson@ximian.com>
28665 * TabControl.cs: Make sure the bottom of the tab covers the pages
28668 2005-06-30 Peter Bartok <pbartok@novell.com>
28670 * Form.cs (ShowDialog): Assign owner of the dialog
28671 * TextBoxBase.cs: Always refresh caret size when deleting, caret
28672 might have been moved to a tag with different height
28674 2005-06-30 Jackson Harper <jackson@ximian.com>
28676 * Form.cs: Don't create an infinite loop when setting focus
28677 * MenuItem.cs: Don't dirty the parents if we don't have any
28679 2005-06-29 Ben Maurer <bmaurer@ximian.com>
28681 * LibSupport.cs: Rename
28683 2005-06-29 Peter Bartok <pbartok@novell.com>
28685 * TextBoxBase.cs: Re-align caret after deleting a character
28687 - DeleteChars(): Ensure that tag covers the provided position
28688 - StreamLine(): Drop reference for dropped tag
28690 2005-06-29 Peter Bartok <pbartok@novell.com>
28693 - Selections now work properly, anchoring at the initial location
28694 and properly extending in either direction (SetSelectionToCaret(),
28695 SetSelectionStart() and SetSelectionEnd())
28696 - No longer redraws the whole control on selection change, now
28697 calculates delta between previous and new selection and only
28698 invalidates/redraws that area
28699 - Fixed FindPos() math off-by-one errors
28700 - Changed DeleteChars() to verify the provided tag covers the
28701 provided position, selections may have a tag that doesn't cover
28702 the position if the selection is at a tag border
28703 - Fixed off-by-one errors in DeleteChars()
28704 - Added missing streamlining check in DeleteChars() to remove
28706 - Implemented Invalidate() method, now properly calculates exposures
28707 between two given lines/positions
28708 - Implemented SetSelection()
28709 - Obsoleted and removed FixupSelection()
28710 - Improved RecalculateDocument() logic, removing code duplication
28712 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28714 * LibSupport.cs: changes to match different input/output arguments.
28716 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28718 * LibSupport.cs: added libsupport.so init routine.
28720 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
28722 * ControlBindingsCollection.cs
28723 - Throws an exception on null datasource when adding
28724 - Checks for duplicated bindings when adding
28726 2005-06-28 Jackson Harper <jackson@ximian.com>
28728 * TreeView.cs (OnKeyDown): Support left and right properly
28729 (navigates as well as expanding and collapsing.
28730 - Add support for Multiply, this expands all the selected nodes
28732 - Fix some tabbing.
28734 2005-06-28 Jackson Harper <jackson@ximian.com>
28736 * TreeView.cs: Implement keyboard navigation, currently supports,
28737 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28738 support for toggling checkboxes with the space bar.
28740 2005-06-28 Jackson Harper <jackson@ximian.com>
28742 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28745 2005-06-28 Jackson Harper <jackson@ximian.com>
28747 * TreeView.cs: Add missing event.
28749 2005-06-27 Peter Bartok <pbartok@novell.com>
28752 - Made line ending size configurable (now allows for counting
28753 lineendings as \n or \r\n)
28754 - Added margin to viewport to keep caret visible on right side
28755 - Fixed translation routines for line/pos to documentpos to consider
28756 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28757 - Fixed some line-endings to be unix style
28758 - Fixed Document.FormatText to perform it's calculations 1-based
28759 - Added descriptions for a few methods that might otherwise get
28761 - Added NOTE section with some basic conventions to remember at
28762 the top of the file
28763 - Major fixup for RichTextBox selection drawing:
28764 * Fixed crashes when multiple tags on a single line were selected
28765 * fixed selection box drawing not overlaying text
28766 * fixed bogus offset calculation for tags not starting at index 1
28767 * Switched behaviour from using multiple Substrings of a
28768 StringBuilder.ToString() to using multiple
28769 StringBuilder.ToString(start, length) statements, hoping this is
28770 faster (kept original version commented out in the code, in case
28771 original version was faster)
28772 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
28774 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28777 2005-06-27 Jackson Harper <jackson@ximian.com>
28779 * TabControl.cs: Move to the left and right with the arrow
28780 keys. These keys don't cycle beyond first and last like
28781 tab. Refresh all the tabs when scrolling them to the left or
28784 2005-06-27 Jackson Harper <jackson@ximian.com>
28787 - ToString: Added method
28788 - CreateParams: Remove TODO and comment
28789 - OnKeyDown: Cycle through bounds properly.
28790 - SelectedIndex: Scroll to the right or left if we need to
28791 display the newly selected tab.
28793 2005-06-23 Jackson Harper <jackson@ximian.com>
28795 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28798 2005-06-23 Jackson Harper <jackson@ximian.com>
28800 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28801 CTRL-SHIFT-TAB, and HOME, END are there any others?
28803 2005-06-23 Jackson Harper <jackson@ximian.com>
28805 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28807 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
28809 * DataGridTextBoxColumn.cs: fixes and enhancements
28810 * ThemeWin32Classic.cs: fixes and enhancements
28811 * DataGridBoolColumn.cs: fixes and enhancements
28812 * DataGridDrawingLogic.cs: fixes and enhancements
28813 * CurrencyManager.cs: fixes and enhancements
28814 * DataGrid.cs: fixes and enhancements
28815 * DataGridColumnStyle.cs: fixes and enhancements
28817 2005-06-22 Jackson Harper <jackson@ximian.com>
28819 * TabControl.cs: Add some missing methods that just call into the
28820 base. Make the TabPageCollection's IList interface behave in the
28821 same manner as the MS implementation.
28823 2005-06-22 Peter Bartok <pbartok@novell.com>
28825 * TextControl.cs: Added sanity check
28827 - Fixed wrapping behaviour, don't set wrap on single line controls
28828 (this fixes the breakage of colordialog introduced in an earlier
28830 - Added rudimentary support for autoscrolling right-aligned controls
28831 (still needs fixing, also, center alignment scroll is missing)
28833 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
28835 * ScrollBar.cs: Fixes thumbpos on Maximum values
28837 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
28839 * PropertyGridView.cs: Pass context information to UITypeEditors
28841 2005-06-21 Peter Bartok <pbartok@novell.com>
28844 - Now calling PositionCaret with absolute space coordinates
28845 - Enabled vertical scrolling
28846 - Better tracking of scrollbar changes, tied into WidthChange
28848 - Improved cursor tracking
28849 - Removed debug output
28851 - PositionCaret coordinates are now works in absolute space, not
28853 - Improved tracking of document size
28854 - Added events for width and height changes
28856 2005-06-21 Peter Bartok <pbartok@novell.com>
28858 * Form.cs: Set focus to active control when form is activated
28860 - Added word-wrap functionality to RecalculateLine()
28861 - Added some short function descriptions for VS.Net to aid in
28862 writing dependent controls
28863 - Added Caret property, returning the current coords of the caret
28864 - Added ViewPortWidth and ViewPortHeight properties
28865 - Added Wrap property
28866 - Added CaretMoved event
28867 - Removed some old debug code
28868 - Split() can now create soft splits
28869 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
28870 - Added method to format existing text
28871 - Fixed size/alignment calculations to use viewport
28872 - RecalculateDocument now can handle changing line-numbers while
28876 - Added some wrap logic, we don't wrap if alignment is not left
28877 - Added casts for scrollbar var, base class switched types to
28878 also support RichTextBoxA
28879 - Implemented handling of scrollbar visibility flags
28882 - Switched scrollbars type to RichTextBoxScrollBars to support
28884 - Added tracking of canvas width/height
28885 - Switched scrollbars to be not selectable (to keep focus on text)
28886 - Added central CalculateDocument() method to handle all redraw
28888 - Added ReadOnly support
28889 - Added WordWrap support
28890 - Fixed handling of Enter key (we now treat it as a DialogKey)
28891 - Fixed caret positioning when h or v scroll is not zero
28892 - Fixed placing/generation of vertical scrollbar
28893 - Added CalculateScrollBars() method to allow updating scrollbar
28894 limits and visibility
28895 - Fixed handling of horizontal scroll
28896 - Added handling of vertical scroll
28897 - Implemented auto-'jump' when caret moves to close to a left or
28898 right border and there is text to be scrolled into view (currently
28899 there's the potential for a stack overflow, until a bug in
28900 scrollbar is fixed)
28902 2005-06-21 Geoff Norton <gnorton@customerdna.com>
28904 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
28906 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
28910 - return application/x-zerosize for files with size zero
28911 (if no extension pattern matches).
28912 - check matches collection for strings too.
28913 - return only the first mime type if the name value
28914 collection has more than one mime type.
28916 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
28918 * PropertyGrid.cs: Cleaned up some TODOs
28919 * PropertyGridView.cs: Added support for UITypeEditors
28921 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
28923 * DataGrid.cs: clears cached value
28925 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
28927 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
28928 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
28929 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
28930 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28932 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
28934 * ThemeWin32Classic.cs: fixes colour
28936 2005-06-15 Peter Bartok <pbartok@novell.com>
28938 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28939 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28940 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28941 * Control.cs: Added some MWFCategory and MWFDescription attributes
28942 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28944 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
28946 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28949 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
28951 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
28952 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
28953 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
28954 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
28955 * DataGrid.cs: default datagrid settings for Default Styles, fixes
28956 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
28958 2005-06-13 Jackson Harper <jackson@ximian.com>
28960 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
28961 isn't printed when the user enables dropping. (X11 does accept
28964 2005-06-13 Jackson Harper <jackson@ximian.com>
28966 * TreeView.cs: Remove some TODOS.
28968 2005-06-13 Jackson Harper <jackson@ximian.com>
28970 * Form.cs: Hook into the mdi framework.
28971 * MdiClient.cs: Use the base control collections add method so
28972 parents get setup correctly. Set the default back colour and dock
28974 * MdiChildContext.cs: New class, this bad actor handles an
28975 instance of an MDI window. Right now there is only basic
28976 support. You can drag, close, and resize windows. Minimize and
28977 Maximize are partially implemented.
28979 2005-06-13 Jackson Harper <jackson@ximian.com>
28981 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
28982 freaky when both vals are negative. NOTE: There are probably other
28983 places in XplatUIX11 that this needs to be done.
28985 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
28987 * DataGrid.cs: implement missing methods, move KeyboardNavigation
28988 * DataGridColumnStyle.cs: fixes signature
28990 2005-06-12 Jackson Harper <jackson@ximian.com>
28992 * XplatUIX11.cs: Use sizing cursors similar to the ones on
28995 2005-06-11 Jackson Harper <jackson@ximian.com>
28997 * StatusBarPanel.cs: Signature cleanups. Implement
29000 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
29002 * DataGridTextBoxColumn.cs: Honors aligment
29003 * GridColumnStylesCollection.cs: Contains is case unsensitive
29004 * GridTableStylesCollection.cs: several fixes
29005 * DataGridTableStyle.cs: default column creation
29006 * DataGridDrawingLogic.cs: fixes
29007 * CurrencyManager.cs: ListName property
29008 * DataGrid.cs: multiple styles support
29009 * DataGridColumnStyle.cs: fixes
29012 2005-06-10 Peter Bartok <pbartok@novell.com>
29014 * Control.cs(Select): Moved SetFocus call to avoid potential
29015 loops if controls change the active control when getting focus
29016 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29017 the up/down buttons
29019 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
29021 * ImageListConverter.cs: Implemented
29023 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29025 * MonthCalendar.cs: Wired in NumericUpDown control for year
29027 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29029 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29030 DoubleClick events, since they are not meant to be fired.
29032 2005-06-09 Peter Bartok <pbartok@novell.com>
29034 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29035 Jonathan's standalone controls into MWF, implemented missing
29036 events, attributes and methods; added xxxAccessible classes
29037 * AccessibleObject.cs: Made fields internal so other classes
29038 can change them if needed
29040 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
29042 * UpDownBase.cs: Complete implementation
29043 * NumericUpDown.cs: Complete implementation
29044 * DomainUpDown.cs: Complete implementation
29046 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
29048 * DataGridTextBoxColumn.cs: drawing fixes
29049 * DataGridCell.cs: fixes ToString method to match MSNet
29050 * DataGridTableStyle.cs: fixes
29051 * DataGridBoolColumn.cs: fixes, drawing
29052 * DataGridDrawingLogic.cs: fixes, new methods
29053 * DataGridTextBox.cs: Keyboard and fixes
29055 - Keyboard navigation
29057 - Row selection (single, multiple, deletion, etc)
29060 2005-06-07 Jackson Harper <jackson@ximian.com>
29062 * ThemeWin32Classic.cs: Clear the background area when drawing
29065 2005-06-06 Peter Bartok <pbartok@novell.com>
29067 * ImageListStreamer.cs: Fixed signature for GetData
29068 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29070 - Added missing ChildAccessibleObject class
29071 - Added missing OnXXXFocus overrides, switched to using those
29072 instead of the event handler
29074 - Added Parent property for ControlAccessibleObject
29077 - Added ResetBindings()
29078 * ListBindingConverter.cs: Implemented some methods
29079 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29080 * ImageList.cs: Implemented basic handle scheme, removed TODOs
29081 * ContainerControl.cs: Fixed signature, now subscribing to the
29082 ControlRemoved event instead of overriding the handler, LAMESPEC
29083 * CurrencyManager.cs: Added missing attribute
29084 * MonthCalendar.cs: Added missing properties
29086 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29088 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29090 2005-06-06 Gaurav Vaish and Ankit Jain
29092 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29093 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29095 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29097 * Control.cs: fixes CreateParams Width / Height.
29099 2005-06-05 Peter Bartok <pbartok@novell.com>
29101 * Win32DnD.cs: Removed compilation warnings
29103 2005-06-05 Peter Bartok <pbartok@novell.com>
29105 * Control.cs (CreateParams): Since we don't know if one of the
29106 properties we use is overridden, lets make sure if we fail accessing
29107 we continue with a backup plan
29109 2005-06-05 Peter Bartok <pbartok@novell.com>
29112 - Removed debug output
29113 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29115 - Plugged resource leak
29116 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29119 2005-06-05 Peter Bartok <pbartok@novell.com>
29121 * XplatUIWin32.cs: Removed DnD code
29122 * Win32DnD.cs: Implemented drop source and drop target functionality
29124 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29126 * UpDownBase.cs: remove duplicate addition of event, enable some code
29127 that was commented out.
29128 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29129 Validate input when a key is pressed. It works fine now for every
29130 combination of Hexadecimal. Only missing some drawing love when sharing
29131 space with other controls.
29133 2005-06-04 Peter Bartok <pbartok@novell.com>
29136 - We need to pass a window for DragDrop, so enable callback events
29137 - Added DnD callback events when being a DragSource
29138 * XplatUI.cs (StartDrag): Added window handle argument
29139 * XplatUIDriver.cs (StartDrag): Added window handle argument
29140 * QueryContinueDragEventArgs: Made fields internally accessible so
29141 drivers can set them
29142 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29145 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
29147 * DataGridTextBoxColumn.cs: column text editing
29148 * DataGridTableStyle.cs: Respect columns styles created by the user
29149 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29150 * DataGridBoolColumn.cs: bool column editing
29151 * DataGrid.cs: fixes to scrolling, properties, etc
29152 * DataGridTextBox.cs: handle keyboard
29153 * DataGridColumnStyle.cs: fixes
29155 2005-06-02 Jackson Harper <jackson@ximian.com>
29157 * ImageListStreamer.cs: Somewhat broken implementation of
29158 GetObjectData. The RLE needs some work to match MS properly.
29160 2005-06-02 Jackson Harper <jackson@ximian.com>
29162 * X11Dnd.cs: Attempting to keep at least one file in MWF
29165 2005-06-02 Peter Bartok <pbartok@novell.com>
29167 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29170 2005-06-02 Peter Bartok <pbartok@novell.com>
29172 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29173 * XplatUI.cs: Added DoDragDrop() method
29174 * XplatUIDriver.cs: Added DoDragDrop() method
29176 2005-06-02 Jackson Harper <jackson@ximian.com>
29178 * Splitter.cs: Implement BorderStyle.
29180 2005-06-02 Jackson Harper <jackson@ximian.com>
29182 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29183 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29186 2005-06-02 Peter Bartok <pbartok@novell.com>
29189 - Added Data setter
29190 - Fixed broken insertion code for SetData, now also
29191 overwrites any existing entry of the same format name
29192 * Hwnd.cs: Added list of pointers that automatically gets
29193 freed when the window is disposed
29194 * XplatUI.cs: Call driver initialization method when loading
29197 - OnDragLeave takes EventArgs, not DragEventArgs
29198 - Added setting of WS_EX_ACCEPTFILES style when dropping is
29200 - Forces style update when drop state changes
29201 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29202 not perfect since we cannot (yet) call the IDataObject.GetData()
29203 method, we keep getting 0x80004005 error, dunno why)
29205 2005-06-02 Peter Bartok <pbartok@novell.com>
29207 * DragEventArgs.cs: Make fields internal so we can cache the
29208 object and re-set the fields from XplatUI
29210 2005-06-02 Jackson Harper <jackson@ximian.com>
29212 * Control.cs: Add some internal methods so the DnD subsystem can
29213 raise DnD events. Also call into the driver when AllowDrop is set.
29215 * XplatUIDriver.cs: New method for setting whether or not a window
29216 is allowed to accept drag and drop messages.
29218 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
29220 * ScrollBar.cs: Make sure that values sent in Scroll events
29221 are always between Maximum and Minimum.
29223 2005-06-01 Marek Safar <marek.safar@seznam.cz>
29225 * Menu.cs: Call MenuChanged when menuitem visibility has been
29227 * MenuItem.cs: Rebuild menu when item is (not) visible.
29228 * MainMenu.cs: MainMenu has special MenuChanged.
29229 * Theme.cs: Caption and FrameBorderSize are not fixed.
29230 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29231 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29233 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29234 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29236 2005-05-30 Jackson Harper <jackson@ximian.com>
29238 * DataFormat.cs: We can't statically initialize this stuff because
29239 it calls into the xplatui and could create a loop. So we lazy init
29242 2005-05-28 Jackson Harper <jackson@ximian.com>
29244 * Control.cs: Proper implementation of Product(Name/Version).
29246 2005-05-27 Jackson Harper <jackson@ximian.com>
29248 * DataObject.cs: Dont crash if no data is found.
29250 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29251 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29252 as per status page, guessing it should be set to true
29254 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
29256 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29257 * DataGridTableStyle.cs: set proper formatting text, def header text
29258 * ThemeWin32Classic.cs: new themable paramaters
29259 * DataGridBoolColumn.cs: paint check box, get data, fixes
29260 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29261 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29262 * DataGridColumnStyle.cs: fixes
29263 * Theme.cs: new themable paramaters
29265 2005-05-26 Peter Bartok <pbartok@novell.com>
29267 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29269 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29270 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29272 2005-05-24 Peter Bartok <pbartok@novell.com>
29274 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29275 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29276 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29277 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29278 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29279 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29280 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29281 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29282 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29283 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29284 missing attributes, etc
29285 * DataGridPreferredColumnWidthTypeConverter.cs: Added
29287 2005-05-24 Peter Bartok <pbartok@novell.com>
29289 * Help.cs: Added, implemented trivial functions, throws up MessageBox
29290 when user tries to get help
29291 * DataObject.cs, DataFormats.cs, LinkArea.cs,
29292 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29293 to suppress warnings
29294 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29295 avoid unreachable code warning
29297 2005-05-20 Peter Bartok <pbartok@novell.com>
29299 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29301 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29303 * DataGridTextBoxColumn.cs: Basic painting methods
29304 * DataGridTableStyle.cs: Set table style in the column
29305 * ThemeWin32Classic.cs: Use Theme for colors
29306 * DataGridDrawingLogic.cs: Implement more drawing
29307 * DataGrid.cs: drawing, theming, enhacements, fixes
29308 * DataGridColumnStyle.cs: fixes, drawing
29309 * Theme.cs: theming for Datagrid
29311 2005-05-20 Peter Bartok <pbartok@novell.com>
29313 * Cursor.cs: Implemented GetObjectData() method
29315 2005-05-20 Peter Bartok <pbartok@novell.com>
29317 * Cursors.cs: Added setting of cursor name
29319 - Implemented constructors
29320 - Implemented Draw and DrawStretched
29321 - Implemented Current property
29322 - Implemented == and != operators
29323 - Implemented Dispose()
29324 - Implemented ToString
29325 - Added missing attributes
29327 - Added missing reset for OverrideCursor when DoEvents is called
29328 - Fixed creation of cursor, logic was wrong
29330 - Added missing reset for OverrideCursor when DoEvents is called
29331 - Fixed creation of cursor, bit arrays were swapped
29332 * Clipboard.cs: Removed obsolete MonoTODO attribute
29334 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29336 * ComboBox.cs: fixes OnSelectedItemChanged
29337 * ControlBindingsCollection.cs: fixes item range check
29339 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29342 - Calc preferred height properly
29343 - Implement missing properties
29345 * NumericUpDown.cs: Implement missing events
29347 2005-05-19 Jackson Harper <jackson@ximian.com>
29349 * TabControl.cs: New method that resizes the tab pages before
29350 redrawing them. This as needed as the control is double buffered
29351 and sizing will not be recalculated unless ResizeTabPages is
29353 * TabPage.cs: Set base.Text instead of Text in the constructor so
29354 that UpdateOwner does not get called. Use the new Redraw method of
29355 TabControl instead of Refresh so the sizing is recalculated.
29356 * ThemeWin32Classic.cs: Draw the text for button tabs.
29358 2005-05-19 Jackson Harper <jackson@ximian.com>
29360 * Control.cs: Paint control background images. Fix typo where
29361 PaintControlBackground was not getting called correctly.
29363 2005-05-19 Peter Bartok <pbartok@novell.com>
29365 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29366 I can investigate, apparently I broke FileDialog
29368 2005-05-19 Marek Safar <marek.safar@seznam.cz>
29370 * AxHost.cs: Some simple properties.
29371 * Control.cs: window must be accessible after ctor.
29372 * Form.cs: Added TransparencyKey property.
29373 * TextBoxBase.cs: Implemented Clear. Text property can be null.
29374 * XplatUIWin32.cs: SetBorderStyle implemented.
29376 2005-05-18 Peter Bartok <pbartok@novell.com>
29378 * DataObject.cs: Entries are not global but particular to the
29379 DataObject, now it behaves that way
29380 * XplatUIWin32.cs: Implemented Clipboard methods
29381 * Clipboard.cs: Implemented
29382 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29383 * XplatUIOSX.cs: Updated to final clipboard prototypes
29384 * XplatUIX11.cs: Implemented Clipboard methods
29385 * XplatUIDriver.cs: Updated to final clipboard prototypes
29386 * XplatUIStructs.cs:
29387 - Added BITMAPINFOHEADER struct
29388 - Added ClipboardFormats enum
29390 - Added ClipboardStruct
29391 - Added Atom enum items for clipboard types
29392 - Fixed atom types for Selection event structures
29394 - Added internal properties and methods for drivers to enumerate
29396 - Switched initialization method to allow drivers to assign their
29397 own IDs even for the MS predefined clipboard IDs
29398 * XplatUI.cs: Updated to final clipboard interface
29400 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29401 * PropertyGridView.cs: Fixed compiler warnings.
29403 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29404 * PropertyGrid.cs: Added some event calls
29405 * PropertyGridView.cs: Change drawing code to use double buffering
29406 * PropertyGridTextBox.cs: Changed Text property name
29407 * GridItem.cs: Added Bounds property.
29408 * GridEntry.cs: Added Bounds property.
29410 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
29412 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29413 since GetType() may not return the correct type if the object is
29416 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
29418 * TreeNodeCollection.cs: fixes get/set item ranges
29420 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29422 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29424 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29426 * ComboBox.cs: Fix item range comparation
29427 * ListView.cs: Fix item range comparation
29429 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29432 - Clear example panel when OnPaint is called
29433 - Better solution for displaying the example panel text
29434 - Select default indexes in the ListBoxes
29436 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29438 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
29440 2005-05-11 Peter Bartok <pbartok@novell.com>
29442 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29443 * SelectionRangeConverter.cs: Implemented
29444 * PropertyGrid.cs: Fixed attribute value
29446 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29447 - Added Sebastien Pouliot's CAS Stack Propagation fixes
29448 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29449 that's common to all drivers. First methods to go there are
29450 Sebastien Pouliot's CAS Stack Propagation helper methods
29451 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29452 Sebastien Pouliot for CAS Stack Propagation
29454 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29457 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29459 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
29461 * DataGridTextBoxColumn.cs: fixed some members
29462 * GridColumnStylesCollection.cs: indexed column is case insensitive
29463 * DataGridTableStyle.cs: fixes
29464 * ThemeWin32Classic.cs: add new theme parameter
29465 * Theme.cs: add new theme parameter
29466 * DataGridDrawingLogic.cs: Datagrid's drawing logic
29467 * DataGrid.cs: fixes, new internal properties, etc.
29468 * DataGridColumnStyle.cs: allows to set grid value
29471 2005-05-10 Peter Bartok <pbartok@novell.com>
29473 * AccessibleObject.cs:
29474 - Removed MonoTODO attribute on help, method is correct
29475 - Fixed Bounds property
29476 * AxHost.cs: Moved MonoTODO
29477 * ButtonBase.cs: Now setting AccessibleObject properties
29478 * RadioButton.cs: Setting proper AccessibleObject role
29479 * CheckBox.cs: Setting proper AccessibleObject role
29480 * ControlBindingsCollection.cs: Added properties, methods and attributes
29481 * DataFormats.cs: Fixed awkward internal API, and changed to enable
29482 userdefined DataFormats.Format items as well
29483 * ListControl.cs: Removed data_member from the public eye
29484 * OpenFileDialog.cs:
29485 - Made class sealed
29486 - Added missing attributes
29487 * SaveFileDialog.cs: Added missing attributes
29488 * ImageListStreamer.cs: Fixed code that caused warnings
29489 * LinkLabel.cs: Removed unreachable code
29490 * TreeView.cs: Fixed code that caused warnings
29491 * PropertyGridView.cs: Fixed code that caused warnings
29492 * GridColumnStylesCollection.cs: Added missing attributes
29493 * GridTableStylesCollection: Added missing attribute
29494 * PropertyManager: Added .ctor
29495 * SecurityIDType: Added
29496 * DataObject.cs: Implemented class
29497 * LinkArea.cs: Added missing attribute
29499 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
29501 * RadioButton.cs: call base method to allow to fire OnClick event
29502 * UpDownBase.cs: OnMouseUp call base method
29503 * CheckedListBox.cs: call base method before returning
29504 * TrackBar.cs: call base method before returning
29507 2005-05-10 Peter Bartok <pbartok@novell.com>
29509 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29512 2005-05-10 Peter Bartok <pbartok@novell.com>
29514 * DataFormats.cs: Implemented
29515 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29516 XplatUIX11.cs: Added Clipboard APIs
29517 * XplatUIWin32.cs: Implemented Clipboard APIs
29518 * FolderBrowserDialog.cs: Added missing event, attributes
29520 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
29522 * CheckBox.cs: call base method to allow to fire OnClick event
29524 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
29526 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29528 2005-05-06 Peter Bartok <pbartok@novell.com>
29530 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29531 * Screen.cs: Implemented
29532 * HelpNavigator.cs: Added
29533 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29535 * HelpProvider.cs: Implemented all we can do until we have a CHM
29536 help library (which means that "What's This" does work now)
29538 2005-05-06 Jackson Harper <jackson@ximian.com>
29540 * XplatUIX11.cs: Fix waking up the main loop.
29542 2005-05-05 Peter Bartok <pbartok@novell.com>
29544 * XplatUI.cs: Updated revision
29545 * Form.cs: Removed enless loop
29546 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29547 * Label.cs (OnPaint): Added call to base.OnPaint()
29548 * ToolTip.cs: Made ToolTipWindow reusable for other controls
29549 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29550 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29552 * ButtonBase.cs: Moved base.OnPaint() call to end of method
29553 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29554 to ToolTip.ToolTipWindow for drawing and size methods; this allows
29555 reuse of ToolTipWindow by other controls
29556 * SizeGrip.cs: Moved base.OnPaint() call to end of method
29557 * XplatUIX11.cs: Now clipping drawing area (experimental)
29558 * PictureBox.cs: Moved base.OnPaint() call to end of method
29559 * Theme.cs: Fixed ToolTip abstracts to match new format
29560 * ErrorProvider.cs: Implemented
29562 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
29564 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29568 - Implements LinkBehavior
29569 - Fixes many issues
29571 2005-05-03 Jackson Harper <jackson@ximian.com>
29573 * ListView.cs: Calculate the scrollbar positioning on resize and
29574 paint, so they get put in the correct place.
29576 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29578 * ColorDialogs.cs: The small color panels are now handled by
29579 SmallColorControl. This fixes drawing of the focus rectangle
29580 and adds a 3D border.
29582 2005-05-03 Peter Bartok <pbartok@novell.com>
29584 * Control.cs: Modified version of Jonathan Chamber's fix for
29587 2005-05-03 Jackson Harper <jackson@ximian.com>
29589 * ListView.cs: Remove redraw variable. Control now handles whether
29590 or not a redraw needs to be done, and will only raise the paint
29591 event if redrawing is needed.
29593 2005-05-03 Jackson Harper <jackson@ximian.com>
29595 * Splitter.cs: No decorations for the splitter form. Cache the
29598 2005-05-03 Jackson Harper <jackson@ximian.com>
29600 * TreeView.cs: Use dashed lines to connect nodes. Use the
29601 ControlPaint method for drawing the focus rect instead of doing
29604 2005-05-02 Peter Bartok <pbartok@novell.com>
29606 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29608 2005-04-29 Jackson Harper <jackson@ximian.com>
29610 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29611 entire image buffer. Just clear the clipping rectangle.
29613 2005-04-29 Jackson Harper <jackson@ximian.com>
29615 * ThemeWin32Classic.cs: Don't draw list view items that are
29616 outside the clipping rectangle.
29618 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
29620 * ListBox.cs: added horizontal item scroll
29622 2005-04-29 Jackson Harper <jackson@ximian.com>
29624 * ThemeWin32Classic.cs: Remove some old debug code that was
29625 causing flicker with the new double buffering code.
29627 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
29629 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29630 behave like combobox and comboboxlist (still not sure if this is
29633 2005-04-28 Jackson Harper <jackson@ximian.com>
29635 * ThemeWin32Classic.cs: Don't fill the middle of progress
29636 bars. This fills areas outside of the clip bounds that don't need
29639 2005-04-28 Jackson Harper <jackson@ximian.com>
29641 * Control.cs: Don't expose functionality to touch the image buffers.
29643 * ListView.cs: We do not need to (and no longer can) manipulate
29644 the image buffers directly. All of this is handled by Control.
29646 2005-04-28 Peter Bartok <pbartok@novell.com>
29648 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29649 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29650 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29652 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
29655 - Adjust control's height for non-simple comboboxes (bug fix)
29657 * MenuAPI.cs: remove unused var
29658 * ScrollBar.cs: remove unsed var
29660 * ListBox.cs: unselect items when clearing
29662 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
29664 * ListControl.cs: honors OnPositionChanged and default Selected Item
29665 * ListBox.cs: unselect items when clearing
29667 2005-04-27 Jackson Harper <jackson@ximian.com>
29669 * X11Keyboard.cs: Initialize a default keyboard and give a warning
29670 if a "correct" keyboard is not found. This will make us not crash,
29671 but might give some users bad keyboard layouts...seems to be the
29672 same thing rewind does.
29674 2005-04-27 Jackson Harper <jackson@ximian.com>
29676 * BindingManagerBase.cs: Attach the current/position changed
29677 handlers to their respective events.
29679 2005-04-27 Jackson Harper <jackson@ximian.com>
29681 * Control.cs: Make sure that the first WM_PAINT does a full draw,
29683 * ThemeWin32Classic.cs: Don't fill the background for picture
29684 boxes. This could overright user drawing.
29685 * ComboBox.cs: Just fill the clipping rect not the entire client
29686 rect when drawing the background. This prevents pieces of the
29687 image buffer from getting overwritten and is theoretically faster.
29689 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
29691 * ComboBox.cs: Databinding support fixes, fire missing events
29692 * ListControl.cs: implement missing methods and properties, fixes
29693 * ThemeWin32Classic.cs: Databiding support on Drawing
29694 * CheckedListBox.cs: Databinding support fixes, fire missing events
29695 * ListBox.cs: Databinding support fixes, fire missing events
29697 2005-04-25 Peter Bartok <pbartok@novell.com>
29699 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29701 2005-04-25 Jackson Harper <jackson@ximian.com>
29703 * TreeView.cs: Use the horizontal scrollbars height not width when
29704 determining how much of the client area is available.
29706 2005-04-25 Jackson Harper <jackson@ximian.com>
29708 * Control.cs: Double buffering is handled differently now. As per
29709 the spec, the extra buffer is created in the WM_PAINT message and
29710 passed down to the control's drawing code.
29718 * PropertyGridView.cs:
29730 * DateTimePicker.cs:
29732 * TreeView.cs: Update to new double buffering system.
29733 * MonthCalendar.cs: Uncomment block, as Capture is now
29734 working. Update to new double buffering
29735 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29736 * PaintEventArgs.cs: New internal method allows us to set the
29737 graphics object. This is used for double buffering.
29738 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29739 rectangle. The internal paint_area var has been removed from
29740 StatusBar. The clipping rect should be used instead.
29741 * Theme.cs: Give the PictureBox drawing method a clipping rect.
29742 * TabPage.cs: The RefreshTabs method was removed, so just call the
29743 tab controls Refresh method now.
29744 * TabControl.cs: Update to new double buffering. Make sure the
29745 handle is created before sizing the tab pages, otherwise we will
29746 get stuck in a loop.
29748 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
29750 * LinkLabel.cs: Fix typo, bug #74719; patch
29751 from Borja Sanchez Zamorano
29753 2005-04-22 Jackson Harper <jackson@ximian.com>
29755 * TreeNode.cs: Implement Handle stuff.
29756 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29758 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
29760 * DataGridTextBoxColumn.cs: call base constructors, fixes
29761 * GridColumnStylesCollection.cs: missing events, methods, and functionality
29762 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29763 * DataGridTableStyle.cs: implements create default column styles
29764 * DataGridBoolColumn.cs: which types can handle
29765 * DataGrid.cs: missing methods, fixes, new functionality
29766 * DataGridColumnStyle.cs: fixes
29768 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
29769 * FolderBrowserDialog.cs:
29770 - Use a thread to fill the TreeView
29771 - Adjusted some sizes
29773 2005-04-19 Peter Bartok <pbartok@novell.com>
29775 * LinkLabel.cs: (Re-)create the pieces when setting the Text
29776 property. Fixes #74360.
29778 2005-04-19 Jackson Harper <jackson@ximian.com>
29780 * XEventQueue.cs: Lock when getting the lockqueue size.
29781 * PictureBox.cs: Call base OnPaint
29783 2005-04-19 Peter Bartok <pbartok@novell.com>
29785 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29786 messages were no longer being processed (this broke BeginInvoke)
29789 2005-04-18 Jackson Harper <jackson@ximian.com>
29791 * TreeView.cs: buglet that caused node images to get drawn
29792 regardless of whether or not they were in the clipping rectangle.
29794 2005-04-18 Jackson Harper <jackson@ximian.com>
29796 * CurrencyManager.cs: There are four rules for GetItemProperties:
29797 - If the type is an array use the element type of the array
29798 - If the type is a typed list, use the type
29799 - If the list contains an Item property that is not an object, use
29801 - use the first element of the list if there are any elements in
29804 2005-04-17 Jackson Harper <jackson@ximian.oom>
29806 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29807 click. This handles offsets for scrolling properly and reduces
29808 memory. Also fixed GetNode to not offset now that TopNode works
29810 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29812 2005-04-17 Jackson Harper <jackson@ximian.com>
29814 * CursorConverter.cs: Initial implementation.
29816 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
29818 * ListControl.cs: work towards complex data binding support on ListControl
29819 * CurrencyManager.cs: work towards complex data binding support on ListControl
29820 * ListBox.cs: work towards complex data binding support on ListControl
29823 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
29825 * GridTableStylesCollection.cs: fixes name and constructor
29826 * DataGridTableStyle.cs: fixes
29827 * DataGridBoolColumn.cs: fixes names and constructors
29828 * DataGrid.cs: define methods and properties. Some init implementations
29829 * DataGridCell.cs: define methods and properties. Some init implementations
29830 * GridTablesFactory.cs: Define methods and properties
29832 2005-04-15 Geoff Norton <gnorton@customerdna.com>
29834 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
29835 graphics port changes. We still want the coordinates in global screen
29838 2005-04-14 Jackson Harper <jackson@ximian.com>
29840 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29841 check plus minus or checkbox clicks unless those features are enabled.
29843 2005-04-14 Jackson Harper <jackson@ximian.com>
29845 * TreeView.cs: Add methods for setting the top and bottom visible
29846 nodes. TreeNode::EnsureVisible uses these methods.
29847 * TreeNode.cs: Implement EnsureVisible
29849 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
29851 * Form.cs: Pospone menu assignation if the window has not been created yet
29852 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29855 2005-04-12 Jackson Harper <jackson@ximian.com>
29857 * TreeView.cs: Set the TopNode properly when scrolling
29858 occurs. This has the added benifit of reducing the amount of
29859 walking that needs to be done when drawing. Also removed an old
29861 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
29863 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
29865 * Timer.cs: fixes interval setting when the timer is already enabled
29867 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
29869 * FolderBrowserDialog.cs: First approach
29871 2005-04-09 Peter Bartok <pbartok@novell.com>
29873 * FolderBrowserDialog: Added
29875 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
29877 * LinkLabel.cs: move drawing code into the theme
29878 * ThemeWin32Classic.cs: drawing code and painting background bugfix
29879 * Theme.cs: define DrawLinkLabel method
29881 2005-04-05 Jackson Harper <jackson@ximian.com>
29883 * BindingContext.cs: Use weak references so these bad actors don't
29884 stay alive longer then they need to.
29886 2005-04-05 Jackson Harper <jackson@ximian.com>
29888 * ListControl.cs: Basic implementation of complex databinding.
29890 * ListBox.cs: Add calls to ListControl databinding methods.
29892 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
29895 - Don't change PopupButtonState to Normal when the
29896 PopupButton gets pressed several times.
29897 - Renamed ButtonPanel to PopupButtonPanel
29899 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
29901 * ColorDialog.cs: Use cached objects instead of creating them
29902 * LinkLabel.cs: Use cached objects instead of creating them
29903 * Splitter.cs: Use cached objects instead of creating them
29904 * FontDialog.cs: Use cached objects instead of creating them
29905 * PropertyGridView.cs: Use cached objects instead of creating them
29906 * MessageBox.cs: Use cached objects instead of creating them
29907 * FileDialog.cs: Use cached objects instead of creating them
29908 * ThemeWin32Classic.cs: Use cached objects instead of creating them
29909 * TreeView.cs: Use cached objects instead of creating them
29911 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
29913 * Control.cs: use Equals to compare the font since no == op
29914 * ScrollBar.cs: use Equals to compare the font since no == op
29916 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
29918 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
29920 2005-04-01 Jackson Harper <jackson@ximian.com>
29922 * Binding.cs: Implement IsBinding.
29923 * BindingManagerBase.cs:
29924 * PropertyManager.cs:
29925 * CurrencyManager.cs: Add IsSuspended property.
29927 2005-04-01 Jackson Harper <jackson@ximian.com>
29929 * Binding.cs: Had some IsAssignableFrom calls backwards.
29931 2005-04-01 Jackson Harper <jackson@ximian.com>
29933 * Binding.cs: Handle null data members when pulling data.
29934 * PropertyManager.cs: Handle the data member being a property that
29937 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29939 * DataGridTextBoxColumn.cs: fixes signature
29940 * DataGrid.cs: calls right constructor
29942 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29944 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29945 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29946 * GridTableStylesCollection.cs: implements GridTableStylesCollection
29947 * DataGridTableStyle.cs: implements DataGridTableStyle
29948 * DataGridBoolColumn.cs: implements DataGridBoolColumn
29949 * DataGridTextBox.cs: implements DataGridTextBox
29950 * DataGridColumnStyle.cs: implements DataGridColumnStyle
29952 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
29954 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
29956 2005-03-29 Peter Bartok <pbartok@novell.com>
29959 - Properly implemented CompanyName property
29960 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
29961 returns a path that includes CompanyName, ProductName and
29962 Version (fixes bug #70330)
29964 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
29966 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
29969 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
29971 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
29973 - Added ReadOnly CheckBox
29974 - Further refactoring: moved some code from Open-/SaveFileDialog
29977 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
29979 * OpenFileDialog.cs: Fixed CheckFileExists
29981 Moved FileView and DirComboBox outside FileDialog class.
29982 They can now be used outside FileDialog
29984 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
29986 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
29987 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
29989 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
29991 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29992 - Added missing CreatePrompt property in SaveDialog
29993 - Overall SaveDialog handling should be better now
29994 - Added non standard ShowHiddenFiles property
29995 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
29996 - Added InitialDirectory and RestoreDirectory support
29998 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
30000 * FileDialog.cs: Made dirComboBox usable
30002 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
30004 * FileDialog.cs: Added Filter support (case sensitiv)
30006 2005-03-24 Jackson Harper <jackson@ximian.com>
30008 * TabControl.cs: Need a couple more pixels for the lines.
30010 2005-03-23 Jackson Harper <jackson@ximian.com>
30012 * TabControl.cs: Give the tab page focus when it is selected.
30014 2005-03-23 Jackson Harper <jackson@ximian.com>
30016 * TabControl.cs: Account for the drawing of tabs borders when
30017 invalidating. If the slider was clicked dont do click detection on
30020 2005-03-23 Jackson Harper <jackson@ximian.com>
30022 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30024 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
30026 * CategoryGridEntry.cs: Added
30027 * GridItem.cs: Added helper properties
30028 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30029 * GridEntry.cs: Updated code for collection
30030 * PropertyGrid.cs: Cleaned up some formatting
30031 * PropertyGridView.cs: Added drop down functionality for enums.
30032 * GridItemCollection.cs: Added enumerator logic
30033 * PropertyGridEntry.cs: Added
30035 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30038 - Removed unnecessary commented code
30039 - Fixed handling for entering the filename manually in the combobox
30041 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30043 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30045 2005-03-18 Peter Bartok <pbartok@novell.com>
30047 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30048 them being touching the border
30050 2005-03-18 Peter Bartok <pbartok@novell.com>
30052 * TextControl.cs: Quick hack to center text better
30054 2005-03-18 Peter Bartok <pbartok@novell.com>
30057 - Don't throw NotImplemented exceptions, just print a notice once
30058 instead (requested by Miguel). This makes running existing SWF
30061 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30062 - Added context menu trigger on right click
30063 * Panel.cs: Trigger invalidate on resize
30065 - Removed old double-buffer drawing
30066 - Added ResizeRedraw style to force proper update of statusbar
30068 - Removed debug output
30069 * ThemeWin32Classic.cs:
30070 - Fixed drawing of status bar, now draws Text property if there
30071 are no defined panels
30073 2005-03-18 Jackson Harper <jackson@ximian.com>
30075 * ImageList.cs: When the image stream is set pull all the images
30077 * ImageListStreamer.cs: Implement reading image list streams.
30079 2005-03-18 Peter Bartok <pbartok@novell.com>
30081 * ThemeWin32Classic.cs (DrawPictureBox):
30082 - Fixed calculations for centered drawing
30083 - Fixed drawing for normal mode, not scaling the image on normal
30085 2005-03-18 Peter Bartok <pbartok@novell.com>
30087 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30090 - Made Open/Save button the accept button for FileDialog
30091 - Tied the cancel button to the IButtonControl cancel button
30092 - Save/Open now properly builds the pathname
30093 - Now handles user-entered text
30094 - Preventing crash on right-click if no item is selected
30095 - Fixed Text property, now uses contents of textbox
30096 - Fixed SelectedText property, now just returns the text part that
30097 is selected in the text box
30099 2005-03-18 Jackson Harper <jackson@ximian.com>
30101 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30102 rect, make sure to de-adjust the interior rect after drawing the
30105 2005-03-18 Peter Bartok <pbartok@novell.com>
30107 * MenuAPI.cs: Remove menu *before* executing selected action to
30108 prevent the menu from 'hanging around'
30110 2005-03-17 Geoff Norton <gnorton@customerdna.com>
30112 * XplatUIOSX.cs: Implemented WorkingArea property
30114 2005-03-17 Peter Bartok <pbartok@novell.com>
30116 * XplatUIX11.cs: Fixed menu coord calculations
30117 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30118 for calculating offsets
30120 2005-03-17 Peter Bartok <pbartok@novell.com>
30122 * Hwnd.cs: Do not consider menu presence for default client
30123 rectangle location/size
30124 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30125 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30126 translation functions
30127 * FileDialog.cs: Fixed (what I presume is a) typo
30129 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
30131 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30132 X access (avoids X-Async errors)
30134 2005-03-16 Jackson Harper <jackson@ximian.com>
30136 * TabControl.cs: Raise the SelectedIndexChanged event.
30138 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
30140 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30141 - Removed vertical ToolBar and replaced it with a custom panel
30142 (desktop and home button already work)
30143 - Added Help button (some controls get resized or relocated then)
30144 - Draw correct text depending on Open or Save.
30145 - Fixed some typos...
30147 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
30150 - Only change Maximum and Minimum when need it (bug fix)
30152 2005-03-15 Peter Bartok <pbartok@novell.com>
30154 * Form.cs: Use Handle for icon, to trigger creation if
30155 the window does not yet exist
30157 - CanSelect: Slight performance improvement
30158 - Focus(): Preventing possible recursion
30159 - Invalidate(): Removed ControlStyle based clear flag setting
30160 - WM_PAINT: fixed logic for calling OnPaintBackground
30161 - WM_ERASEBKGND: Fixed logic, added call to new driver method
30162 EraseWindowBackground if the control doesn't paint background
30164 - Moved EraseWindowBackground() method to internal methods
30165 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30166 is sent via SendMessage on BeginPaint call on Win32
30168 - Added EraseWindowBackground() method
30169 - No longer sends WM_ERASEBKGND on .Expose, but on call to
30170 PaintEventStart, which more closely matches Win32 behaviour
30171 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30172 - Fixed SetFocus() to properly deal with client and whole windows
30173 * Hwnd.cs: Added ErasePending property
30174 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30175 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30177 2005-03-12 Geoff Norton <gnorton@customerdna.com>
30180 - Fix hard loop when timers exist.
30181 - Fix bugs with middle and right click for 3 button mice.
30183 2005-03-11 Peter Bartok <pbartok@novell.com>
30186 - get_WorkingArea: Need to call X directly, GetWindowPos only
30187 returns cached data now
30188 - Added sanity check to GetWindowPos hwnd usage
30190 2005-03-11 Jackson Harper <jackson@ximian.com>
30192 * BindingManagerBase.cs: This method isn't used anymore as
30193 PullData now updates the data in the control.
30195 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
30197 * Form.cs: fixes menu drawing on X11
30198 * MenuAPI.cs: fixes menu drawing on X11
30200 2005-03-11 Peter Bartok <pbartok@novell.com>
30202 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30203 from Jonathan Gilbert; should fix bug #73606
30204 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30205 in Screen coordinates. Thanks, Jordi.
30206 * Form.cs: Added missing attribute
30208 2005-03-11 Peter Bartok <pbartok@novell.com>
30211 - Rudimentary Mdi support
30212 - Removed outdated FormParent code
30213 - Implemented lots of missing properties and methods, still missing
30214 transparency support
30215 - Added missing attributes
30216 - Implemented support for MaximumBounds
30217 - Added firing of various events
30218 * XplatUI.cs: Added SetIcon() method
30219 * XplatUIDriver.cs: Added SetIcon() abstract
30220 * XplatUIOSX.cs: Stubbed out SetIcon() method
30222 - Implemented SetIcon() support
30223 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30224 - Switched to unix line endings
30226 - Made POINT internal so for can access it as part of MINMAX
30227 - Implemented SetIcon() support
30228 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30229 native Mdi support again, might have to go managed)
30230 * Control.cs: Now fires the StyleChanged event
30231 * MdiClient.cs: Added; still mostly empty
30233 2005-03-10 Peter Bartok <pbartok@novell.com>
30235 * SaveFileDialog.cs: Added emtpy file
30237 2005-03-08 Peter Bartok <pbartok@novell.com>
30239 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30240 in turn triggers OnCreateContro) when creating a handle for the
30242 * TextControl.cs: Fixed endless loop in certain cases when
30243 replacing the current selection
30245 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
30248 - Honors NewValue changes in Scroll events allowing apps to change it
30249 - Adds First and Last Scroll events
30250 - Fixes Thumb events
30252 2005-03-07 Peter Bartok <pbartok@novell.com>
30254 * Hwnd.cs: Added DefaultClientRectangle property
30255 * XplatUI.cs: Now using the X11 driver Where() method, which provides
30256 more detailed debug information
30258 - Fixed size-change feedback loop, where we would pull an old size
30259 off the queue and mistakenly change our window's size to an
30261 - Now compressing ConfigureNotify events, to reduce looping and
30263 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30266 2005-03-07 Jackson Harper <jackson@ximian.com>
30268 * Binding.cs: Push data pushes from data -> property. Check if the
30269 property is readonly when attempting to set it.
30271 2005-03-07 Jackson Harper <jackson@ximian.com>
30273 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30274 instead of IsSubclassOf. Pulling data now sets the value on the
30276 * PropertyManager.cs:
30277 * CurrencyManager.cs: Just need to pull data when updating now,
30278 because PullData will set the value on the control.
30280 2005-03-04 Jackson Harper <jackson@ximian.com>
30282 * Binding.cs: Implement data type parsing and converting on pulled
30283 data. TODO: Are there more ways the data can be converted?
30285 2005-03-04 Jackson Harper <jackson@ximian.com>
30287 * Binding.cs: Support <Property>IsNull checks. Also bind to the
30288 controls Validating method so we can repull the data when the
30289 control loses focus.
30291 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
30294 - Fixes null string format
30297 - Adds enum type checks
30298 - Fixes redrawing and recalc need after changing some properties
30299 - Fixes on focus_item set after the event
30300 - Fixes adding columns after the control has been created
30302 * ThemeWin32Classic.cs:
30303 - Fixes CheckBox focus rectangle
30304 - Fixes ColumnHeader drawing
30307 2005-03-03 Jackson Harper <jackson@ximian.com>
30309 * Binding.cs: Bind to <Property>Changed events so we can detect
30310 when properties are changed and update the data.
30312 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
30315 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30316 - Fixes ImageList constructor with ImageList container
30317 - Fixes image scaling (wrong parameters at DrawImage)
30319 2005-02-02 Jackson Harper <jackson@ximian.com>
30321 * Binding.cs: Make property searches case-insensitive. Eliminate
30322 some duplicated code.
30324 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
30327 - Handle focus event
30328 - Fix scrollbar events
30329 - Discard highlighted item if remove it
30330 - Fixes SelectedItem with strings
30332 2005-03-01 Peter Bartok <pbartok@novell.com>
30335 - Fixed Visible property, now follows (once again) parent chain
30336 to return false if any control in the chain is visible=false
30337 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30338 - Fixed several places where is_visible instead of Visible was used
30339 - Implemented FIXME related to focus selection when setting focused
30340 control to be invisible
30342 * XplatUIWin32.cs: Now using proper method to find out if window is
30343 visible. Thanks to Jordi for pointing it out
30345 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
30347 * ComboBox.cs: show/hide scrollbar instead of creating it
30349 2005-02-27 Jackson Harper <jackson@ximian.com>
30351 * CurrencyManager.cs: Add PositionChanged stuff.
30353 2005-02-27 Peter Bartok <pbartok@novell.com>
30355 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30356 * XplatUIOSX.cs: Added GetMenuOrigin() stub
30357 * XplatUIWin32.cs: Implemented GetMenuOrigin()
30359 - Implemented GetMenuDC()
30360 - Implemented GetMenuOrigin()
30361 - Implemented ReleaseMenuDC()
30362 - Implemented generation of WM_NCPAINT message
30363 - Implemented generation and handling of WM_NCCALCSIZE message
30364 * Form.cs: Added debug helper message for Jordi's menu work
30366 - Modified ClientRect property; added setter, fixed getter to handle
30367 setting of ClientRect
30368 - Added MenuOrigin property
30370 2005-02-26 Peter Bartok <pbartok@novell.com>
30373 - Destroys the caret if a window that's being destroyed contains it
30374 - Ignores expose events coming from the X11 queue for windows that
30375 already are destroyed
30376 - Now uses the proper variable for handling DestroyNotify, before we
30377 marked the wrong window as destroyed
30378 - Improved/added some debug output
30380 2005-02-26 Peter Bartok <pbartok@novell.com>
30382 * X11Keyboard.cs: Fixes to work on 64bit systems
30384 2005-02-26 Peter Bartok <pbartok@novell.com>
30387 - Now calling OnHandleDestroyed from DestroyHandle()
30388 instead of Dispose()
30389 - Removed bogus call to controls.Remove() from DestroyHandle()
30391 2005-02-26 Peter Bartok <pbartok@novell.com>
30393 * Control.cs: Properly destroy child windows when our handle is
30396 2005-02-25 Peter Bartok <pbartok@novell.com>
30399 - Added 'DriverDebug' define to allow tracing XplatUI API calls
30400 - Alphabetized Static Methods and Subclasses
30403 - Added XException class to allow custom handling of X11 exceptions
30404 - Created custom X11 error handler, tied into XException class
30405 - Added support for MONO_XEXCEPTIONS env var to allow the user
30406 to either throw an exception on X errors or continue running
30407 after displaying the error
30408 - Added handling of DestroyNotify message
30409 - Added handler for CreateNotify message (still disabled)
30410 - Improved (tried to at least) Where method to provide file and lineno
30412 - Added XErrorHandler delegate
30413 - Added XRequest enumeration (to suppor translation of errors)
30415 2005-02-25 Jackson Harper <jackson@ximian.com>
30417 * PropertyManager.cs: Implement editing features
30418 * CurrencyManager.cs:
30419 * Binding.cs: First attempt at UpdateIsBinding
30420 * BindingManagerBase.cs: Call UpdateIsBinding before
30421 pushing/pulling data.
30423 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
30425 * MenuAPI.cs: Respect disabled items
30426 * ThemeWin32Classic.cs
30427 - Caches ImageAttributes creation for DrawImageDisabled
30428 - Fixes vertical menu line drawing
30429 - Draws disabled arrows in disable menu items
30431 2005-02-24 Peter Bartok <pbartok@novell.com>
30434 - Added UserData property to allow associating arbitrary objects
30436 - Fixed leak; now removing Hwnd references from static windows array
30438 - Fixed Graphics leak in PaintEventEnd
30439 - Removed usage of HandleData, switched over to Hwnd class
30440 * HandleData.cs: Removed, obsoleted by Hwnd.cs
30442 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30444 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30445 * ScrollBar.cs: Fixes bug
30446 * TrackBar.cs: removes death code, clipping, mimize refreshes,
30447 keyboard navigation enhancements
30449 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30451 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30452 * GroupBox.cs: Add control styles
30453 * Label.cs: Add control styles
30454 * UpDownBase.cs: Add control styles
30455 * ListBox.cs: Add control styles
30456 * XplatUIWin32.cs: Fixes wrong parameter order
30459 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
30461 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30463 2005-02-23 Jackson Harper <jackson@ximian.com>
30465 * PropertyManager.cs: Implement property binding. This doesn't
30466 seem to work yet though as (I think) there are some bugs in
30467 System.ComponentModel.PropertyDescriptor.
30468 * BindingContext.cs: Use new PropertyManager constructor.
30470 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
30472 * ProgressBar.cs: use clip region in ProgressBar
30473 * ThemeWin32Classic.cs: use clip region in ProgressBar
30475 2004-02-22 Jackson Harper <jackson@ximian.com>
30477 * BindingsCollection.cs: Remove some debug code.
30479 2005-02-22 Jackson Harper <jackson@ximian.com>
30481 * BindingContext.cs:
30482 * ControlBindingsCollection.cs:
30483 * CurrencyManager.cs:
30485 * BindingManagerBase.cs: Initial implementation
30486 * BindingsCollection.cs: Add an internal contains method that the
30487 BindingManagerBase uses to ensure bindings aren't added twice to
30489 * PropertyManager.cs: Stubbed out.
30491 * ContainerControl.cs: Hook up databinding
30493 2005-02-22 Geoff Norton <gnorton@customerdna.com>
30496 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30497 Fixed Invalidate/Update chain.
30498 Fixed tons of other minor bugs (this is almost a complete rewrite).
30500 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
30502 * ComboBox.cs: do subcontrol creation when the control is created
30504 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30506 * Label.cs: fixes image drawing (image and imagelist)
30507 * ThemeWin32Classic.cs: cache brushes
30509 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30511 * Form.cs: Move menu drawing code to Theme class
30512 * ComboBox.cs: Move ComboBox drawing code to Theme class
30513 * MenuItem.cs: Move menu drawing code to Theme class
30514 * MenuAPI.cs: Move menu drawing code to Theme class
30515 * ThemeWin32Classic.cs: New methods
30516 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30517 * ListBox.cs: Move Listbox drawing code to Theme class
30518 * Theme.cs: New methods
30520 2005-02-20 Peter Bartok <pbartok@novell.com>
30523 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30524 only process mnemonics on those)
30525 - Fixed event sequence for key handling; first calling
30526 ProcessKeyEventArgs now
30528 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30529 for processing non-character keys
30530 - Fixed WM_CHAR to generate proper event sequence before processing
30531 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30534 2005-02-19 Peter Bartok <pbartok@novell.com>
30536 * UserControl.cs: Added TextChanged event; added attributes
30537 * SizeGrip.cs: Implemented resizing and optional display of grip
30538 * Form.cs: Fixed attribute
30539 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30540 Changed meaning of ScrollWindow bool argument; instead of the
30541 clear attribute (which will be true usually anyway), it gives the
30542 option of moving child controls as well.
30544 - Changed to match new ScrollWindow argument
30545 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30546 now handles the implicit parent window a WM puts around us
30547 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30549 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30550 * TreeView.cs: Adjusted to new ScrollWindow arguments
30552 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30554 * Form.cs: Menu integration with non-client area
30555 * MenuItem.cs: Menu integration with non-client area
30556 * MenuAPI.cs: Menu integration with non-client area
30558 2005-02-18 Peter Bartok <pbartok@novell.com>
30560 * MethodInvoker.cs: Added
30561 * MdiLayout.cs: Added
30562 * SendKeys.cs: Started implementation
30563 * ErrorIconAlignment.cs: Added
30565 2005-02-18 Peter Bartok <pbartok@novell.com>
30567 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30568 * Form.cs: Added handling for Menu-related Non-client messages
30570 2005-02-17 Peter Bartok <pbartok@novell.com>
30572 * UpDownBase.cs: Fixed typo, compilation errors
30573 * DomainUpDown.cs: Fixed attribute value
30575 2005-02-16 Miguel de Icaza <miguel@novell.com>
30577 * UpDownBase.cs: Attach entry events.
30579 Add ForeColor property, Focused, InterceptArrowKeys (interception
30580 does not work yet).
30582 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
30585 - Redraw non client are on Setmenu
30586 - Calc proper menu starting point
30588 2005-02-17 Peter Bartok <pbartok@novell.com>
30590 * Application.cs: Fixed message_filter check
30592 2005-02-17 Peter Bartok <pbartok@novell.com>
30594 * Application.cs: Now calls registered message filters
30595 * DockStyle.cs: Fixed attribute
30596 * Form.cs: Fixed attribute
30597 * Menu.cs: Fixed attribute
30598 * ToolTip.cs: Fixed attribute
30599 * TreeNode.cs: Added missing attributes and arranged in regions
30600 * PropertyGrid.cs: Fixed signatures
30601 * TreeNodeCollection.cs: Added attributes
30602 * Splitter.cs: Added missing attributes; arranged into regions
30603 * TabPage.cs: Added missing attributes; arranged into regions
30604 * TextBoxBase.cs: Added missing attributes
30605 * TextBox.cs: Added missing attributes
30606 * ArrangeDirection.cs: Added missing attributes
30607 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30608 * ToolBarButton.cs: Fixed attributes
30609 * AnchorStyles.cs: Fixed attribute
30610 * TrackBar.cs: Fixed attributes
30611 * TabControl.cs: Added missing attributes and arranged into regions
30612 * ToolBar.cs: Fixed attribute
30613 * StatusBar.cs: Fixed signature, organized into regions and added
30615 * StatusBarPanel.cs: Fixed attributes
30616 * ContentsResizedEventArgs.cs: Implemented
30617 * ContentsResizedEventHandler.cs: Implemented
30618 * DateBoldEventArgs.cs: Implemented
30619 * DateBoldEventHandler.cs: Implemented
30620 * UpDownEventArgs.cs: Implemented
30621 * UpDownEventHandler.cs: Implemented
30623 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
30625 * Form.cs: first Menu NC refactoring
30626 * MenuAPI.cs: first Menu NC refactoring
30628 2005-02-16 Peter Bartok <pbartok@novell.com>
30630 * ImeMode.cs: Added missing attributes
30631 * Menu.cs: Fixed attribute
30632 * GroupBox.cs: Fixed attribute
30633 * Label.cs: Fixed attribute
30634 * ColorDialog.cs (RunDialog): Removed TODO attribute
30635 * ComboBox.cs: Fixed attributes
30636 * ListControl.cs: Added missing attributes
30637 * PropertyGrid.cs: Fixed attributes
30638 * Control.cs: Fixed attributes
30639 * ListViewItem.cs: Added TypeConverter attribute
30640 * NotifyIcon.cs: Fixed attributes
30641 * ListView.cs: Fixed attributes
30642 * ButtonBase.cs: Fixed attribute
30643 * ImageList.cs: Added missing attributes
30644 * ContainerControl.cs: Fixed signature
30645 * CheckedListBox.cs: Fixed attribute; added missing attributes
30646 * Panel.cs: Fixed attributes
30647 * PropertyTabChangedEventArgs.cs: Added missing attribute
30648 * PropertyValueChangedEventArgs.cs: Added missing attribute
30649 * Binding.cs: Fixed attribute
30650 * ListViewItemConverter: Implemented ListViewSubItemConverter class
30651 * ListBox.cs: Fixed attribute; added missing attributes;
30652 * ScrollableControl.cs: Added missing attributes
30653 * PictureBox.cs: Added missing attributes; implemented missing property
30654 * DateTimePicker.cs: Added missing attributes
30655 * Theme.cs (ToolWindowCaptionHeight): Fixed type
30656 * MonthCalendar.cs: Fixed attributes
30657 * StatusBarPanel.cs: Added missing attributes
30658 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30660 2005-02-16 Peter Bartok <pbartok@novell.com>
30662 * TextBoxBase.cs: The previous method to enforce height yet remember
30663 the requested high was less than ideal, this is an attempt to do
30665 * Control.cs: Added comment about possible problem
30666 * Copyright: Updated format
30667 * GridItemType.cs: Fixed swapped values
30669 2005-02-15 Jackson Harper <jackson@ximian.com>
30671 * BaseCollection.cs: Use property so we never access an
30672 uninitialized list. Also initialize the list in the property.
30674 2005-02-15 Peter Bartok <pbartok@novell.com>
30676 * GroupBox.cs (ProcessMnemonic): Implemented
30677 * Label.cs (ProcessMnemonic): Implemented
30678 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30681 2005-02-15 Peter Bartok <pbartok@novell.com>
30683 * RadioButton.cs (ProcessMnemonic): Implemented
30684 * CheckBox.cs (ProcessMnemonic): Implemented
30686 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30688 - Added internal method to allow calling ProcessMnemonic from other
30690 * ContainerControl.cs:
30691 - Started support for handling validation chain handling
30692 - Implemented ProcessMnemonic support
30693 - Added Select() call to Active, to make sure the active control
30695 * Form.cs: Setting toplevel flag for Forms (this was lost in the
30696 FormParent rewrite)
30697 * ThemeWin32Classic.cs:
30698 - DrawCheckBox(): Fixed stringformat to show hotkeys
30699 - DrawRadioButton(): Fixed stringformat to show hotkeys
30700 * CommonDialog.cs: Removed WndProc override, not needed
30702 2005-02-14 Peter Bartok <pbartok@novell.com>
30704 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30705 missed those in the rewrite
30707 2005-02-14 Miguel de Icaza <miguel@novell.com>
30709 * NumericUpDown.cs (Increment, ToString): Add.
30710 (DecimalPlaces): implement.
30714 * UpDownBase.cs: Add the designer attributes.
30716 2005-02-13 Peter Bartok <pbartok@novell.com>
30718 * Panel.cs: Removed border_style, now in Control
30719 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30720 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30722 2005-02-13 Peter Bartok <pbartok@novell.com>
30724 * MouseButtons.cs: Added missing attributes
30725 * XplatUIStructs.cs: Added enumeration for title styles
30726 * LeftRightAlignment.cs: Added missing attributes
30727 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30728 it compatible with Graphics.FromHwnd()
30729 * SelectedGridItemChangedEventArgs.cs: Fixed property type
30730 * Keys.cs: Added missing attributes
30731 * SelectionRange.cs: Added missing attributes
30732 * SelectionRangeConverter.cs: Added
30734 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30735 ReleaseMenuDC methods
30736 - Renamed ReleaseWindow to UngrabWindow
30737 - Added proper startup notice to allow version identification
30739 - Added missing attributes
30740 - Removed FormParent concept
30741 * Label.cs: Removed border_style field, now in Control
30742 * RadioButton.cs: Now properly selects RadioButton when focus is
30744 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30746 - Added missing attributes
30747 - Added borderstyle handling
30748 - Removed FormParent concept support
30749 - Fixed calls to XplatUI to match changed APIs
30750 - Fixed bug that would case us to use disposed Graphics objects
30751 - Removed unneeded internal methods
30752 - PerformLayout(): Fixed to handle DockStyle.Fill properly
30753 - SelectNextControl(): Fixed to properly check common parents
30754 * TextBoxBase.cs: Removed border_style field (now in Control)
30756 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30757 fixed calculations for form size
30758 - Added support for localized strings and icons
30759 - Improved form size calculations, added border
30760 * ListView.cs: Removed border_style field (now in Control)
30761 * X11Structs.cs: Moved several structs from X11 driver here
30762 * X11Keyboard.cs: Changed debug message
30763 * Application.cs: Removed FormParent concept support
30765 - Resetting end_modal flag
30766 - Removed FormParent concept support
30767 * NativeWindow.cs: Removed FormParent concept support
30768 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30769 Client area and Non-Client whole window to allow support for WM_NC
30771 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30772 prevent using it until it supports Hwnd as per Geoff Norton's request
30773 * ToolBar.cs: Fixed drawing, was not doing proper drawing
30774 * PictureBox.cs: Removed border_style field, now in Control
30775 * XplatUIWin32.cs: Added new driver methods
30777 2005-02-12 Peter Bartok <pbartok@novell.com>
30779 * OpacityConverter.cs: Implemented
30780 * Hwnd.cs: Internal class to support drivers that need to emulate
30781 client area/non-client area window behaviour
30783 2005-02-11 Peter Bartok <pbartok@novell.com>
30785 * KeysConverter.cs: Implemented
30787 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
30789 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30790 * LinkLabel: Added missing attributes
30791 * MainMenu.cs: fixes ToString
30792 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30793 * ListBox.cs: fixes event position
30794 * TrackBar.cs: adds missing attributes and events
30796 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
30798 * MenuItem.cs: Use SystemInformation and bug fixes
30799 * MenuAPI.cs: Use SystemInformation and bug fixes
30801 2005-02-09 Jackson Harper <jackson@ximian.com>
30803 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30804 their keystate otherwise things like VK_MENU get stuck "on".
30806 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
30808 * ListBox.cs: Fixes AddRange bug
30810 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
30813 - Add missing attributes
30814 - Add missing method
30816 * CheckedListBox.cs: Added missing attributes
30817 - Add missing attributes
30818 - Remove extra method
30820 * ComboBox.cs: Added missing attributes
30821 * VScrollBar.cs: Added missing attributes
30822 * ScrollBar.cs: Added missing attributes
30823 * ListBox.cs: Fixes signature, add missing consts
30824 * LinkArea.cs: Added missing attributes
30827 2005-02-08 Peter Bartok <pbartok@novell.com>
30829 * Menu.cs: Added missing attributes
30830 * MainMenu.cs: Added missing attributes
30831 * GroupBox.cs: Added missing attributes
30832 * Label.cs: Added missing attributes
30833 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30835 - Added Instance and Options properties
30836 - Added missing attributes
30837 * Cursor.cs: Made Serializable
30838 * NotifyIcon: Added missing attributes
30839 * MenuItem.cs: Added missing attributes
30840 * TextBoxBase.cs: Implemented AppendText() and Select() methods
30841 * Panel.cs: Added Missing attributes
30842 * MonthCalendar.cs: Fixed CreateParams
30844 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
30848 - Fixes issues with links
30849 - Adds the class attributes
30851 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
30854 - Fixes button when no items available in dropdown
30855 - Fixes repainting problems
30856 - Adds the class attributes
30858 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30860 * XplatUIOSX.cs: Detect the menu bar and title bar height from
30861 the current theme. Cache these on startup.
30863 2005-02-07 Jackson Harper <jackson@ximian.com>
30865 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
30866 the scrollbar buttons when they are depressed.
30868 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30870 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
30871 Get the display size from the main displayid. We currently dont
30872 support multiple display configurations.
30874 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30876 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
30878 2005-02-07 Miguel de Icaza <miguel@novell.com>
30880 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
30882 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
30884 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
30886 2005-02-04 Jackson Harper <jackson@ximian.com>
30888 * ThemeWin32Classic.cs: Respect the clipping rect when
30889 drawing. Only fill the intersection of clips and rects so there
30890 isn't a lot of large fills.
30891 * ScrollBar.cs: Pass the correct clipping rect to the theme
30892 engine. Remove some debug code.
30894 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
30896 * DateTimePicker.cs:
30897 - Fixed crash on DateTime.Parse, use Constructor instead
30899 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
30903 - Owner draw support (MeasureItem and DrawItem)
30905 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
30908 - Implements FindMergePosition and MergeMenu functions (very poor documented)
30909 - Fixes MenuItems.Add range
30911 - MergeMenu and Clone and CloneMenu functions
30913 2005-02-03 Jackson Harper <jackson@ximian.com>
30915 * ScrollBar.cs: Make abstract
30916 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
30919 2005-02-03 Jackson Harper <jackson@ximian.com>
30921 * ScrollBar.cs: First part of my scrollbar fixups. This removes
30922 all the unneeded refreshes and uses invalidates with properly
30925 2005-02-03 Peter Bartok <pbartok@novell.com>
30927 * ComponentModel.cs: Added
30928 * IDataGridEditingService.cs: Added
30929 * Timer.cs: Added missing attributes
30930 * ToolTip.cs: Added missing attributes
30932 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
30934 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30936 2005-02-03 Peter Bartok <pbartok@novell.com>
30938 * ListBox.cs: Added missing attributes
30940 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
30943 - Fixes font height after font change
30944 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30946 2005-02-02 Peter Bartok <pbartok@novell.com>
30948 * HandleData.cs: Introduced static methods to allow class
30949 to be more self-contained and track it's own HandleData objects
30950 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
30951 HandleData to use new static methods
30953 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
30956 - Fixes default size and PreferredHeight
30958 - ObjectCollection.Insert implementation
30964 - ObjectCollection.Insert implementation
30965 - No selection after clean
30968 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
30970 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
30972 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
30975 - Caches ItemHeight calculation for OwnerDrawVariable
30976 - Handles dropdown properly
30977 - Fixes several minor bugs
30979 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
30982 - Fixes 71946 and 71950
30983 - Fixes changing Multicolumn on the fly
30984 - Fixes keyboard navigation on Multicolumn listboxes
30986 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30988 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
30989 crash reporter log.
30991 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30993 * XplatUIOSX.cs: Allow applications to actually exit.
30995 2005-01-31 Geoff Norton <gnorton@customerdna.com>
30997 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
30998 their parent at creation time rather than lazily later. Fixes a major
30999 regression we were experiencing.
31001 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31003 * ThemeWin32Classic.cs: more date time picker painting fixes
31004 * DateTimePicker.cs: more monthcalendar drop down fixes
31005 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31007 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31010 - When moving the thumb going outside the control should stop the moving
31011 - Adds the firing of missing events
31012 - Fixes no button show if Size is not specified
31013 - End / Home keys for keyboard navigation
31015 2005-01-30 Peter Bartok <pbartok@novell.com>
31017 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31018 sanity check to prevent theoretical loop
31019 * XplatUIWin32.cs (SetVisible): Removed debug output
31020 * XplatUIX11.cs (SystrayChange): Added sanity check
31021 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31022 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31023 behaviour, valid until the X11 client window rewrite is done
31024 * TextBox.cs (ctor): Setting proper default foreground and background
31027 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
31029 * Theme: Added DrawDateTimePicker to interface
31030 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31031 * DateTimePicker.cs: Created (still needs keys and painting code)
31032 * DateTimePickerFormat.cs: added
31033 * MonthCalendar.cs: fixed CreateParams for popup window mode
31035 2005-01-29 Peter Bartok <pbartok@novell.com>
31037 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31038 this should also the calculations for ligher/darker
31039 * Theme.cs: Fixed defaults for ScrollBar widths/heights
31041 2005-01-29 Peter Bartok <pbartok@novell.com>
31043 * ArrangeDirection.cs: Added
31044 * ArrangeStartingPositon.cs: Added
31045 * SystemInformation.cs: Implemented
31046 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31047 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31048 used by SystemInformation class
31049 * X11Strucs.cs: Added XSizeHints structure
31051 - Fixed CreateParams to make sure the menu window is always visible
31052 - TrackPopupMenu: Added check to make sure we don't draw the
31055 2005-01-29 Peter Bartok <pbartok@novell.com>
31057 * HandleData.cs: Added method for altering invalid area
31058 * TextBoxBase.cs: Implemented TextLength
31060 2005-01-28 Peter Bartok <pbartok@novell.com>
31062 * XplatUIX11.cs: Improvement over last patch, not sending
31063 the WM_PAINT directly anymore, instead we scroll any pending
31064 exposed areas and let the system pick out the WM_PAINT later
31066 2005-01-28 Peter Bartok <pbartok@novell.com>
31068 * SWF.csproj: Deleted, no longer used. Instead,
31069 Managed.Windows.Forms/SWF.csproj should be used
31070 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31071 directly, to avoid a potential race condition with the next
31074 2005-01-28 Peter Bartok <pbartok@novell.com>
31076 * XplatUI.cs: Made class internal
31078 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
31080 * CheckedListBox.cs:
31083 - Missing methods and events
31085 2005-01-27 Peter Bartok <pbartok@novell.com>
31087 * Application.cs (Run): Don't use form if we don't have one
31089 2005-01-27 Peter Bartok <pbartok@novell.com>
31091 * TextBoxBase.cs (get_Lines): Fixed index off by one error
31093 2005-01-27 Peter Bartok <pbartok@novell.com>
31095 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31096 * GridItem.cs: Added; Patch by Jonathan S. Chambers
31097 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31098 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31099 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31100 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31101 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31102 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31103 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31104 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31105 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31106 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31108 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31111 - Draw focus on Simple Combobox
31112 - Fixes drawing issues
31115 2005-01-27 Peter Bartok <pbartok@novell.com>
31118 - Place window in default location, instead of hardcoded 0/0
31119 - Send initial LocationChanged event
31121 - UpdateBounds after creation to find out where the WM placed us
31122 - Make sure that if the ParentForm changes location the Form
31124 * XplatUIX11.cs: XGetGeometry will not return the coords relative
31125 to the root, but to whatever the WM placed around us.
31126 Translate to root coordinates before returning toplevel
31128 * XplatUIWin32.cs: Removed debug output
31129 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31130 flag to GetWindowPos, to allow translation of coordinates on X11
31132 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31134 * ListBox.cs: connect LostFocus Event
31136 2005-01-27 Peter Bartok <pbartok@novell.com>
31138 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31139 XplatUIX11.cs: Extended the Systray API
31140 * Form.cs: Removed debug output
31141 * Application.cs: Fixed focus assignment, always need to call
31142 XplatUI.Activate() since Form.Activate() has rules that may
31144 * NotifyIcon.cs: Should be complete now
31145 * ToolTip.cs: Worked around possible timer bug
31147 2005-01-27 Jackson Harper <jackson@ximian.com>
31150 - Only invalidate the effected tabs when the
31151 selected index changes. This reduces drawing and gets rid of some
31153 - Only refresh if the tabs need to be shifted, otherwise only
31154 invalidate the slider button.
31155 - On windows the tabs are not filled to right if the slider is
31158 2005-01-27 Jackson Harper <jackson@ximian.com>
31160 * TabControl.cs: Only refresh on mouseup if we are showing the
31161 slider. Also only invalidate the button whose state has changed.
31163 2005-01-26 Peter Bartok <pbartok@novell.com>
31165 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31166 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31167 and SystrayRemove() methods
31168 * XplatUIOSX.cs: Stubbed Systray methods
31170 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31172 - Fixed broken XChangeProperty calls (marshalling messed up things)
31173 * X11Structs.cs: Added enums and structs required for Size hinting
31174 * NotifyIcon.cs: Added & implemented
31176 2005-01-26 Jackson Harper <jackson@ximian.com>
31178 * TabControl.cs: Space vertically layed out tabs properly.
31180 2005-01-26 Peter Bartok <pbartok@novell.com>
31182 * Form.cs (CreateClientParams): Always set the location to 0,0
31183 since we're a child window.
31185 * Control.cs (SetVisibleCore): Always explicitly setting the location
31186 of a toplevel window, apparently X11 doesn't like to move windows
31187 while they're not mapped.
31189 2005-01-26 Jackson Harper <jackson@ximian.com>
31191 * TabControl.cs: Implement FillToRight size mode with vertically
31194 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31196 * ControlPaint.cs, ThemeWin32Classic.cs
31197 - Fixes DrawFocusRectangle
31199 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31202 - MenuBar tracking only starts when item is first clicked
31203 - Fixes menu hidding for multiple subitems
31204 - Unselect item in MenuBar when item Executed
31207 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
31210 - IsInputKey for ListBox
31213 - Shift and Control item selection
31214 - Implement SelectionMode.MultiExtended
31215 - Fixes RightToLeft
31217 - IsInputKey implemented
31218 - Do not generate OnTextChangedEdit on internal txt changes
31220 2005-01-23 Peter Bartok <pbartok@novell.com>
31222 * AccessibleObject.cs: Partially implemented Select()
31223 * MonthCalendar.cs: Added missing attributes and events
31224 * Form.cs: Fixed CreateParams behaviour, now controls derived from
31225 form can properly override CreateParams.
31226 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31227 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31228 Control performs Invalidate & Update
31229 * NativeWindow (CreateHandle): Added special handling for Form
31230 and Form.FormParent classes to allow overriding of From.CreateParams
31232 - ControlNativeWindow: Renamed 'control' variable to more intuitive
31234 - ControlNativeWindow: Added Owner property
31235 - Removed usage of Refresh() on property changes, changed into
31236 Invalidate(), we need to wait until the queue is processed for
31237 updates, direct calls might cause problems if not all vars for
31238 Paint are initialized
31239 - Added call to UpdateStyles() when creating the window, to set any
31240 styles that CreateWindow might have ignored.
31241 - Added support for Form CreateParent overrides to UpdateStyles()
31242 * MessageBox.cs: Removed no longer needed FormParent override stuff,
31243 CreateParams are now properly overridable
31244 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31245 CreateParams are now properly overridable
31247 2005-01-23 Miguel de Icaza <miguel@ximian.com>
31249 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31252 Capture LostFocus and OnTextBoxChanged. The later introduces a
31253 recursive invocation that I have not figured out yet.
31255 Reset the timer when not using (it was accumulating).
31258 (OnTextBoxChanged): Set UserEdit to true here to track whether the
31259 user has made changes that require validation.
31261 Reset changing to avoid loops.
31263 2005-01-22 Miguel de Icaza <miguel@ximian.com>
31265 * NumericUpDown.cs: Display value at startup.
31267 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31270 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31271 filled in. Added some basic parsing of text.
31273 Still missing the OnXXX method overrides, and figuring out the
31274 events that must be emitted.
31276 * UpDownBase.cs: Handle UserEdit on the Text property.
31278 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
31281 - Fixes IntegralHeight
31284 2005-01-21 Jackson Harper <jackson@ximian.com>
31286 * TabControl.cs: Set the SelectedIndex property when SelectedTab
31287 is set so that the page visibility is updated and the tabs are
31290 2005-01-21 Jackson Harper <jackson@ximian.com>
31292 * TabControl.cs: Use cliping rectangle for blitting. Give the
31293 theme the clipping rect so we can do clipping while
31294 drawing. Remove some debug code.
31296 2005-01-21 Jackson Harper <jackson@ximian.com>
31298 * TabPage.cs: Add a new method so tab pages can force the tab
31299 control to recalculate the tab page sizes.
31300 * TabControl.cs: UpdateOwner needs to make the tab control recalc
31303 2005-01-20 Jackson Harper <jackson@ximian.com>
31305 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31307 2005-01-20 Jackson Harper <jackson@ximian.com>
31309 * TreeView.cs: Set the bounds for nodes properly. They were
31310 getting screwed up when checkboxes were not enabled, but images
31313 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
31316 - Owner draw support
31319 2005-01-20 Jackson Harper <jackson@ximian.com>
31321 * XplatUIStructs.cs: More misc keys
31322 * X11Keyboard.cs: Ignore some control keys.
31324 2005-01-20 Jackson Harper <jackson@ximian.com>
31326 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31327 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31329 2005-01-19 Peter Bartok <pbartok@novell.com>
31331 * Control.cs: Un-selecting the control when it is loosing focus
31333 2005-01-19 Jackson Harper <jackson@ximian.com>
31335 * TreeView.cs: Hook up to the text controls leave event so we can
31336 end editing when the users clicks outside the text box.
31338 2005-01-19 Jackson Harper <jackson@ximian.com>
31340 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31341 get set in the conversion array.
31343 2005-01-19 Peter Bartok <pbartok@novell.com>
31345 * Application.cs (ModalRun): Added a call to CreateControl to ensure
31346 focus is properly set
31348 - Added missing attributes
31349 - removed styles, those are already set in the base class
31351 - Added missing attributes
31352 - Added clip window styles
31353 * CheckBox.cs: Added missing attributes
31355 - FormParentWindow.CreateParams: Added required clip styles
31356 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31357 also filters modifier keys
31359 - Added assignment of Accept and Cancel button to enable Enter
31360 and Esc keys in MessageBox dialogs
31361 - FormParentWindow.CreateParams: Added required clip styles
31362 * RadioButton.cs: Added missing attributes
31363 * TextControl.cs: No longer draws selection if control does not
31366 - Now draws simple rectangle around test area to make it obvious
31367 there's a control. This is a hack until we properly support borders
31368 - A few simple fixes to support selections better, now erases selected
31369 text when typing, and resets selection when using movement keys
31371 2005-01-19 Miguel de Icaza <miguel@ximian.com>
31373 * UpDownBase.cs: Added some new properties.
31375 * DomainUpDown.cs: Implement a lot to get my test working.
31377 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31379 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31381 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31383 * OSXStructs (WindowAttributes): Fixed csc complaints
31385 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31388 OSXStructs.cs: Initial refactor to move enums and consts into
31389 OSXStructs and use them in the driver for greater readability.
31391 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31393 * XplatUIOSX.cs: Initial support for Standard Cursors.
31394 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31396 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
31398 * ComboBox.cs: ability to change style when the ctrl is already
31399 created, missing methods and events, bug fixes, signature fixes
31401 2005-01-19 Peter Bartok <pbartok@novell.com>
31403 * Cursors.cs (ctor): Added ctor to fix signature
31405 2005-01-18 Peter Bartok <pbartok@novell.com>
31407 * Button.cs: Implemented DoubleClick event
31409 - Fixed keyboard handling to behave like MS, where the press of
31410 Spacebar is equivalent to a mousedown, and the key release is
31411 equivalent to mouseup. Now a spacebar push will give the same
31412 visual feedback like a mouse click.
31413 - Added missing attributes
31414 - Added ImeModeChanged event
31415 - Added support for generating DoubleClick event for derived classes
31417 - Implemented DoubleClick event
31418 - Added missing attributes
31419 * CommonDialog.cs: Added missing attribute
31420 * ContextMenu.cs: Added missing attributes
31422 - AutoChecked buttons do not allow to be unselected when clicked
31423 (otherwise we might end up with no selected buttons in a group)
31424 - Added missing attributes
31425 - Implemented DoubleClickEvent
31426 * ThreadExceptionDialog.cs: Enabled TextBox code
31428 2005-01-18 Peter Bartok <pbartok@novell.com>
31430 * Form.cs: Removed debug output
31431 * Button.cs: Added support for DoubleClick method
31433 2005-01-18 Peter Bartok <pbartok@novell.com>
31436 - Added method to parent window that allows triggering size
31437 calculations when a menu is added/removed
31438 - set_Menu: Cleaned up mess from early days of Form and Control,
31439 now properly triggers a recalc when a menu is added/removed
31440 - Added case to select form itself as focused form if no child
31442 - Added PerformLayout call when showing dialog, to ensure properly
31445 - Select(): Made internal so Form can access it
31446 - Focus(): Only call Xplat layer if required (avoids loop), and sets
31448 * Application.cs (Run): Removed hack and calls PerformLayout instead
31449 to trigger calculation when Form becomes visible
31451 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
31453 * ComboBox.cs: fixes for ownerdraw
31455 2005-01-18 Peter Bartok <pbartok@novell.com>
31458 - Sentinel is no longer static, each Document gets it's own, this
31459 avoids locking or alternatively overwrite problems when more
31460 than one text control is used simultaneously.
31461 - Switched to use Hilight and HilightText brushes for text selection
31463 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31465 2005-01-18 Peter Bartok <pbartok@novell.com>
31468 - Hooked up the following events:
31476 o SystemColorsChanged
31477 o ParentFontChanged
31479 - Removed debug output
31480 - Added a call to the current theme's ResetDefaults when a color change
31482 * Form.cs: Now setting the proper ImeMode
31483 * Theme.cs: Defined a method to force recreation of cached resources
31484 and rereading of system defaults (ResetDefaults())
31485 * ThemeWin32Classic.cs: Added ResetDefaults() stub
31487 2005-01-17 Peter Bartok <pbartok@novell.com>
31489 * Control.cs: Added missing attributes
31491 2005-01-17 Jackson Harper <jackson@ximian.com>
31493 * TreeNode.cs: Implement editing. Add missing properties selected
31495 * TreeView.cs: Implement node editing. Also some fixes to use
31496 Invalidate (invalid area) instead of Refresh when selecting.
31498 2005-01-17 Peter Bartok <pbartok@novell.com>
31501 - Implemented InvokeGotFocus() method
31502 - Implemented InvokeLostFocus() method
31503 - Implemented InvokePaint() method
31504 - Implemented InvokePaintBackground() method
31505 - Implemented InvokeClick() method
31506 - Implemented FindForm() method
31507 - Implemented RectangleToClient() method
31508 - Implemented ClientToRectangle() method
31509 - Implemented ResetBackColor() method
31510 - Implemented ResetCursor() method
31511 - Implemented ResetFont() method
31512 - Implemented ResteForeColor() method
31513 - Implemented ResetImeMode() method
31514 - Implemented ResetLeftToRight() method
31515 - Implemented ResetText() method
31516 - Implemented Scale() methods
31517 - Implemented ScaleCore() method
31518 - Implemented Update() method
31519 - Removed unused variables
31520 - Stubbed AccessibilityNotifyClients and
31521 ControlAccessibleObject.NotifyClients() methods (dunno what to do
31523 - Now setting proper default for RightToLeft property
31524 - Fixed bug in SetClientSizeCore that would cause windows to get
31526 - Now sending Click/DoubleClick events
31527 - Now selecting controls when left mouse button is clicked on
31529 * AccessibleEvents.cs: Added
31530 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31531 * XplatUIOSX.cs: Stubbed UpdateWindow() method
31532 * XplatUIWin32.cs: Implemented UpdateWindow() method
31533 * XplatUIX11.cs: Implemented UpdateWindow() method
31534 * Form.cs: Removed stray semicolon causing CS0162 warning
31535 * ThemeWin32Classic.cs: Fixed unused variable warnings
31536 * ScrollableControl.cs: Now calls base method for ScaleCore
31537 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31538 style to avoid interference with internal click handler (which is
31539 different than standard Control click handling)
31541 - Now unchecks all sibling radio buttons when control is
31542 selected (Fixes #68756)
31543 - Removed internal tabstop variable, using the one inherited from
31546 2005-01-17 Jackson Harper <jackson@ximian.com>
31548 * NavigateEventArgs.cs: Fix base type.
31549 * LinkLabel.cs: Sig fix
31551 2005-01-17 Jackson Harper <jackson@ximian.com>
31553 * TreeView.cs: Only invalidate the effected nodes bounds when
31556 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31558 * XplatUIWin32.cs: fixes Win32 marshaling
31559 * XplatUIX11.cs: fixes method signature
31561 2005-01-17 Peter Bartok <pbartok@novell.com>
31563 * XplatUIX11.cs: Clean up resources when we no longer need them
31565 2005-01-17 Peter Bartok <pbartok@novell.com>
31567 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31568 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31569 and DestroyCursor() methods.
31570 * Cursor.cs: Partially implemented, now supports standard cursors;
31571 still contains some debug code
31572 * Cursors.cs: Implemented class
31574 - WndProc(): Added handling of WM_SETCURSOR message, setting the
31576 - Implemented Cursor property
31577 - Replaced break; with return; more straightforwar and possibly
31579 - Now properly setting the result for WM_HELP
31580 * X11Structs.cs: Added CursorFontShape enum
31581 * XplatUIStructs.cs:
31582 - Added StdCursor enum (to support DefineStdCursor() method)
31583 - Added HitTest enum (to support sending WM_SETCURSOR message)
31585 - Now sends the WM_SETCURSOR message
31586 - Implemented new cursor methods
31587 * XplatUIOSX.cs: Stubbed new cursor methods
31589 - Implemented new cursor methods
31590 - Added GetSystemMetrics function and associated enumeration
31592 2005-01-15 Peter Bartok <pbartok@novell.com>
31595 - WndProc(): Now handles EnableNotifyMessage
31596 - SelectNextControl(): Fixed bug where if no child or sibling
31597 controls exist we looped endlessly
31599 2005-01-14 Jackson Harper <jackson@ximian.com>
31601 * TreeView.cs: Recalculate the tab pages when a new one is added
31602 so that the proper bounding rects are created.
31604 2005-01-14 Jackson Harper <jackson@ximian.com>
31606 * TreeView.cs: Draw a gray box instead of a grip in the lower
31607 right hand corner when there are both horizontal and vertical
31610 2005-01-14 Jackson Harper <jackson@ximian.com>
31612 * Control.cs: When erasing backgrounds use FromHwnd instead of
31613 FromHdc when there is a NULL wparam. This occurs on the X driver.
31614 * XplatUIX11.cs: Set the wparam to NULL.
31616 2005-01-13 Jackson Harper <jackson@ximian.com>
31618 * PictureBox.cs: Implement missing methods (except ToString, need
31619 to test that on windows) and events. When visibility is changed we
31620 need to redraw the image because the buffers are killed. When size
31621 is changed refresh if the sizemode needs it.
31623 2005-01-13 Peter Bartok <pbartok@novell.com>
31625 * Control.cs (SelectNextControl): Was using wrong method to select
31628 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31630 * ComboBox.cs: fixes dropstyle
31632 2005-01-13 Peter Bartok <pbartok@novell.com>
31635 - Implemented Select() override
31636 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31637 - Now sets keyboard focus on startup
31638 * Control.cs (SelectNextControl): Now properly handles directed=true
31640 - WndProc: Now passes tab key on to base if AcceptTabChar=false
31641 - Added (really bad) focus rectangle (mostly for testing)
31642 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31643 to enforce redraw on focus changes
31644 * ContainerControl.cs:
31645 - Fixed detection of Shift-Tab key presses
31646 - Fixed traversal with arrow keys
31647 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31648 gonna keep this or if it's complete yet
31650 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31652 * ComboBox.cs: missing properties, fixes
31654 2005-01-13 Peter Bartok <pbartok@novell.com>
31656 * Panel.cs (ctor): Setting Selectable window style to off
31657 * Splitter.cs (ctor): Setting Selectable window style to off
31658 * GroupBox.cs (ctor): Setting Selectable window style to off
31659 * Label.cs (ctor): Setting Selectable window style to off
31661 2005-01-12 Miguel de Icaza <miguel@ximian.com>
31663 * UpDownBase.cs (InitTimer): If the timer has been already
31664 created, enable it.
31666 Use a TextBox instead of a Label.
31668 2005-01-12 Jackson Harper <jackson@ximian.com>
31670 * TreeView.cs: Refresh the tree after sorting the nodes. Always
31671 draw the connecting node lines (when ShowLines is true).
31672 * TreeNode.cs: The nodes index can now be updated. This is used
31673 when a node collection is sorted.
31674 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31675 insert or an existing unsorted node collection can be sorted.
31677 2005-01-12 Peter Bartok <pbartok@novell.com>
31679 * ContainerControl.cs: Implemented ProcessDialogKeys()
31681 2005-01-12 Peter Bartok <pbartok@novell.com>
31684 - Implemented SelectNextControl() method
31685 - Several focus related bug fixes
31686 - Fixed Docking calculations to match MS documentation and
31689 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
31691 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31694 2005-01-12 Peter Bartok <pbartok@novell.com>
31697 - Fixed broken Contains() method
31698 - Implemented GetNextControl() method. Finally. This is the pre-
31699 requisite for focus handling.
31701 2005-01-12 Peter Bartok <pbartok@novell.com>
31703 * OSXStrucs.cs: Added
31705 2005-01-12 Peter Bartok <pbartok@novell.com>
31708 - Removed PeekMessageFlags
31709 - Implemented SetWindowStyle() method
31710 * XplatUIStructs.cs: Added PeekMessageFlags
31711 * X11Structs: Added missing border_width field to XWindowChanges struct
31713 - PeekMessage: Now throws exception if flags which are not yet
31714 supported are passed
31715 - Implemented SetWindowStyle() method
31716 - Fixed SetZOrder to handle AfterHwnd properly
31717 * XplatUI.cs: Added SetWindowStyle() method
31718 * XplatUIDriver.cs: Added SetWindowStyle() abstract
31720 - Implemented UpdateStyles() method
31721 - Implemented UpdateZOrder() method
31722 * XplatUIOSX.cs: Added SetWindowStyle() stub
31724 2005-01-12 Geoff Norton <gnorton@customerdna.com>
31726 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31730 2005-01-11 Jackson Harper <jackson@ximian.com>
31732 * TreeView.cs: Still need to draw lines to siblings even if out of
31733 the current node is out of the clip.
31735 2005-01-11 Jackson Harper <jackson@ximian.com>
31737 * TreeView.cs: When setting the hbar/vbar/grip position use
31738 SetBounds so that perform layout is only called once. Also suspend
31739 and resume layout so layout is only done once for all controls.
31740 - Removed some debug fluff
31741 * SizeGrip.cs: Call base implmentation in overriding methods.
31742 - When visibility is changed the drawing buffers are killed so we
31745 2005-01-11 Jackson Harper <jackson@ximian.com>
31747 * TreeView.cs: Calculate the open node count while drawing. This
31748 saves us an entire tree traversal for every paint operation. Use
31749 a member var for the open node count so less vars are passed around.
31751 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
31753 * MonthCalendar.cs:
31754 - fixed selection to use mousemove, not mouse polling on timer
31755 * ThemeWin32Classic.cs
31756 - removed redundant unused variable "no_more_content"
31758 2005-01-11 Peter Bartok <pbartok@novell.com>
31760 * XplatUIX11.cs (DoEvents): Needs to return when no more events
31761 are pending, so it now calls PeekMessage instead of GetMessage;
31762 implemented a incomplete version of PeekMessage
31764 2005-01-11 Peter Bartok <pbartok@novell.com>
31766 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31768 * TextBoxBase.cs: Added sending of TextChanged event
31770 2005-01-10 Jackson Harper <jackson@ximian.com>
31772 * TreeView.cs: Try not to draw outside the clipping rectangle on
31775 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
31777 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31779 2005-01-10 Jackson Harper <jackson@ximian.com>
31782 - Implement fast scrolling. Now only the newly
31783 exposed nodes are drawn and the old image is moved using the
31784 XplatUI::ScrollWindow method.
31785 - Factor in height of nodes when calculating whether or not the
31786 node is in the clipping rect.
31788 2005-01-10 Jackson Harper <jackson@ximian.com>
31790 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31792 2005-01-10 Peter Bartok <pbartok@novell.com>
31794 * Application.cs: Added temporary hack to resolve all our resize
31795 required issues on startup. This will get fixed properly at
31796 some point in the future
31798 2005-01-10 Jackson Harper <jackson@ximian.com>
31800 * SizeGrip.cs: New internal class that is used as a sizing
31801 grip control...hence the name.
31803 2005-01-10 Peter Bartok <pbartok@novell.com>
31805 * Control.cs: Implemented proper TabIndex handling, now assigning
31806 a tabindex when a control is added to a container
31807 * GroupBox.cs (ctor): Now sets the Container style bit, required
31808 for Control.GetNextControl()
31810 2005-01-09 Jackson Harper <jackson@ximian.com>
31812 * TextBoxBase.cs: Clear window when scrolling (fixes build).
31814 2005-01-09 Peter Bartok <pbartok@novell.com>
31816 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31817 XplatUIX11.cs: Added ability to control ScrollWindow expose and
31818 an overload for ScrollWindow to allow only scrolling a rectangle
31820 2005-01-09 Peter Bartok <pbartok@novell.com>
31823 - Implemented SetDesktopBounds method
31824 - Implemented SetDesktopLocation method
31826 2005-01-08 Jackson Harper <jackson@ximian.com>
31828 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31829 the node count has changed, this removes to VScroll::Refresh calls
31832 2005-01-08 Geoff Norton <gnorton@customerdna.com>
31834 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31836 2005-01-07 Jackson Harper <jackson@ximian.com>
31838 * TreeNode.cs: Just update the single node when it is
31839 checked. Don't refresh after toggling, the Expand/Collapse already
31841 * TreeView.cs: Respect clipping a little more when drawing. Try
31842 not to redraw things that don't need to be redrawn. Just hide the
31843 scrollbars when they are no longer needed instead of removing
31844 them, so they don't have to be created again and again.
31846 2005-01-07 Geoff Norton <gnorton@customerdna.com>
31848 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
31849 coordinates to window space to place the caret properly, FIXED.
31850 Implement GetWindowState & SetWindowState
31852 2005-01-06 Peter Bartok <pbartok@novell.com>
31855 - Implemented ClientSize property
31856 - Implemented DesktopBounds property
31857 - Implemented DesktopLocation property
31858 - Implemented IsRestrictedWindow property
31859 - Implemented Size property
31860 - Implemented TopLevel property
31861 - Implemented FormWindowState property
31863 - Implemented GetTopLevel() method
31864 - Implemented SetTopLevel() method
31865 * X11Structs.cs (Atom):
31866 - Added AnyPropertyType definition
31867 - Added MapState definiton and updated XWindowAttribute struct
31868 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
31869 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
31870 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
31872 - Implemented GetWindowState() and SetWindowState() methods
31873 - Fixed Win32GetWindowLong return type
31875 - Introduced central function for sending NET_WM messages
31876 - Implemented GetWindowState() and SetWindowState() methods
31877 * TextBoxBase.cs (set_Lines):
31878 - Now uses Foreground color for text added via Text property (Duh!)
31879 - Added code to remember programmatically requested size (fixes
31880 behaviour when Multiline is set after Size)
31881 - Added AutoSize logic
31883 2005-01-06 Jackson Harper <jackson@ximian.com>
31885 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
31887 2005-01-06 Jackson Harper <jackson@ximian.com>
31889 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
31890 set to less then 0.
31892 2005-01-06 Jackson Harper <jackson@ximian.com>
31894 * ScrollableControl.cs: Lazy init the scrollbars.
31896 2005-01-06 Jackson Harper <jackson@ximian.com>
31898 * Theme.cs: Speed up getting pens and solid brushes, by using
31899 their ARGB as a hash instead of tostring and not calling Contains.
31901 2005-01-06 Peter Bartok <pbartok@novell.com>
31904 - Implemented OnActivated and OnDeactivate event trigger
31905 - Implemented Activate() method
31906 - Fixed ShowDialog() to activate the form that was active before
31907 the dialog was shown
31909 - Added global active_window var that tracks the currently active
31911 - Now always grabs Property changes from the root window to always
31912 catch changes on the active window property
31913 - Added code to PropertyNotify handler to send Active/Inactive
31914 messages when state changes. This puts X11 and Win32 en par on
31915 WM_ACTIVATE notifications (except for double notifications when
31916 the user clicks away from our modal window to another one of our
31919 2005-01-05 Jackson Harper <jackson@ximian.com>
31921 * ImageList.cs: Implment ctor
31923 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31925 * XplatUIOSX.cs: Implement Activate/SetTopmost
31927 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31929 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
31931 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31933 * XplatUIOSX.cs: Implement GetActive/SetFocus.
31935 2005-01-05 Peter Bartok <pbartok@novell.com>
31937 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31938 XplatUIOSX.cs: Added GetActive method to return the currently
31939 active window for the application (or null, if none is active)
31941 - Implemented ActiveForm
31942 - Commented out owner assignment for modal dialogs (causes problems
31943 on Win32, since the owner will be disabled)
31944 - Reworked some Active/Focus handling (still incomplete)
31945 * CommonDialog.cs: Commented out owner assignment for modal dialogs
31946 (causes problems on Win32, since the owner will be disabled)
31947 * IWin32Window: Added ComVisible attribute
31949 2005-01-05 Peter Bartok <pbartok@novell.com>
31951 * ToolTip.cs (WndProc): Enable setting focus now that we have the
31952 required XplatUI functions.
31954 2005-01-05 Peter Bartok <pbartok@novell.com>
31956 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
31957 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
31958 to implement focus and activation handling; still incomplete and
31961 2005-01-04 Peter Bartok <pbartok@novell.com>
31963 * TextBoxBase.cs: Changed access level for Document property to
31964 match switch to internal for TextControl
31966 2005-01-04 Peter Bartok <pbartok@novell.com>
31968 * AccessibleObject: Added ComVisible attribute
31970 2005-01-04 Jackson Harper <jackson@ximian.com>
31972 * X11Keyboard.cs: Remove unneeded var.
31974 2005-01-04 Jackson Harper <jackson@ximian.com>
31976 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
31978 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
31979 ClientMessage. This makes apps exit cleanly (more often).
31981 2005-01-04 Jackson Harper <jackson@ximian.com>
31983 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
31984 handling focus, return correct colors and fonts,
31985 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
31986 handle selection, horizontal scrolling, and mouse interaction.
31988 2005-01-04 Peter Bartok <pbartok@novell.com>
31990 * ICommandExecutor.cs: Added
31991 * IDataGridColumnStyleEditingNotificationService.cs: Added
31992 * IFeatureSupport.cs: Added
31993 * IFileReaderService.cs: Added
31994 * IDataObject.cs: Added ComVisible attribute
31995 * AmbientProperties.cs: Added
31996 * BaseCollection.cs: Added missing attributes
31997 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
31998 * BaseCollection.cs: Added missing attributes
31999 * Binding.cs: Added TypeConverter attribute
32000 * BindingContext.cs: Added DefaultEvent attribute
32001 * BindingsCollection.cs: Added DefaultEvent attribute
32002 * Button.cs: Added DefaultValue attribute
32003 * DragEventArgs.cs: Added ComVisible attribute
32004 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32005 * KeyEventArgs.cs: Added ComVisible attribute
32006 * KeyPressEventArgs.cs: Added ComVisible attribute
32007 * MouseEventArgs.cs: Added ComVisible attribute
32008 * NavigateEventArgs.cs: Added
32009 * NavigateEventHandler.cs: Added
32010 * FeatureSupport.cs: Added
32011 * OSFeature.cs: Added
32012 * Theme.cs: Added abstract Version property to support OSFeature
32013 * ThemeWin32Classic.cs: Added Version property to
32014 support OSFeature.Themes
32015 * ProgressBar.cs: Removed OnPaintBackground override, not required since
32016 the proper styles to avoid background drawing are set, also doesn't
32018 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32019 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32020 * ScrollEventArgs.cs: Added ComVisible attribute
32021 * SplitterEventArgs.cs: Added ComVisible attribute
32022 * AccessibleSelection.cs: Added Flags attribute
32023 * Appearance.cs: Added ComVisible attribute
32024 * Border3DSide.cs: Added ComVisible attribute
32025 * Border3DStyle.cs: Added ComVisible attribute
32026 * BorderStyle.cs: Added ComVisible attribute
32027 * DragAction.cs: Added ComVisible attribute
32028 * ErrorBlinkStyle.cs: Added
32029 * ScrollEventType.cs: Added ComVisible attribute
32030 * AnchorStyles.cs: Added Editor attribute
32031 * DockStyle.cs: Added Editor attribute
32032 * HorizontalAlignment.cs: Added ComVisible attribute
32033 * HelpEventArgs.cs: Added ComVisible attribute
32034 * PaintEventArgs.cs: Added IDisposable
32036 2005-01-04 Peter Bartok <pbartok@novell.com>
32038 * TextControl.cs: Switched Line, LineTag and Document classes to
32041 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32043 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32044 Simple mode, fixes, IntegralHeight, etc.
32046 2005-01-04 Peter Bartok <pbartok@novell.com>
32048 * TextBoxBase.cs: Using proper font variable now
32050 2005-01-04 Peter Bartok <pbartok@novell.com>
32052 * Form.cs (ShowDialog): Set parent to owner, if provided
32053 * GroupBox.cs: Removed unused vars
32055 - Added GetHashCode() for Document and LineTag classes
32056 - Removed unused variables
32057 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32058 to allow translation between continuous char position and line/pos
32059 * CheckBox.cs: Removed vars that are provided by base class
32060 * RadioButton.cs: Removed vars that are provided by base class, added
32061 new keyword where required
32062 * LinkLabel.cs: Added new keyword where required
32063 * Control.cs (WndProc): Removed unused variable
32065 - Finished SelectionLength property
32066 - Implemented SelectionStart property
32067 - Implemented Text property
32068 - Removed unused vars
32069 * MessageBox.cs: Added new keyword where required
32070 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32072 * MenuAPI.cs: Added new keyword where required
32073 * ButtonBase.cs: Removed vars that are provided by base class, added
32074 new keyword where required
32075 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32076 argument to double, to allow compiling with csc 2.0 (Atsushi ran
32078 * Application.cs (Run): Now triggers the ThreadExit event
32079 * CommonDialog.cs: Added new keyword where required; now properly sets
32080 parent (owner) for dialog
32081 * XplatUIX11.cs: Commented out unused vars
32082 * StatusBar.cs: Fixed signature for Text property
32083 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32085 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32087 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32088 TrackBar.cs, MonthCalendar.cs: remove unused vars
32090 2005-01-03 Jackson Harper <jackson@ximian.com>
32092 * ThemeWin32Classic.cs:
32093 * X11Keyboard.cs: Remove unused vars.
32095 2005-01-03 Peter Bartok <pbartok@novell.com>
32098 - set_Text: Tied into TextControl
32099 - set_TextAlignment: Tied into TextControl
32101 - Added alignment properties and implemented alignment handling
32102 and drawing (still has a bug, not generating proper expose events)
32103 - Added new Line() constructor to allow passing the line alignment
32104 - Fixed selection setting, properly handling end<start now
32105 - Added aligment considerations to RecalculateDocument()
32107 - Now properly enforces control height for single line controls
32108 - Added support for CharacterCasing
32109 - Added IsInputKey override
32110 - Fixed Keys.Enter logic
32111 - Added SetBoundsCore override
32112 - Fixed mouse selection handling
32114 2005-01-03 Jackson Harper <jackson@ximian.com>
32117 - Collapse and uncheck all nodes when CheckBoxes is disabled.
32118 - Checkboxes are always aligned to the bottom of the node,
32119 regardless of item height.
32120 - Use the node bounds to draw the text so we can center it when
32121 the item height is greater then the font height.
32122 - Node::Bounds are only the text part of the node.
32123 * TreeNode.cs: New method to combine collapsing and unchecking all
32126 2005-01-02 Jackson Harper <jackson@ximian.com>
32128 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32129 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32130 tree when a check is changed. TODO: Only refresh the checked node.
32132 2004-12-30 Jackson Harper <jackson@ximian.com>
32134 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32135 * TreeNode.cs: When collapsing make sure to never collapse the
32138 2004-12-29 Jackson Harper <jackson@ximian.com>
32140 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32142 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
32144 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32146 2004-12-28 Peter Bartok <pbartok@novell.com>
32148 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32151 2004-12-28 Peter Bartok <pbartok@novell.com>
32153 * Control.cs (WndProc): Added WM_HELP handler, now generates
32154 HelpRequested event
32155 * Form.cs: Added HelpButton property and required support code
32156 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32158 2004-12-28 Peter Bartok <pbartok@novell.com>
32161 - Made DialogForm.owner variable internal
32162 - Added check to ensure owner form is set before setting
32163 owner properties in CreateParams
32165 2004-12-28 Geoff Norton <gnorton@customerdna.com>
32167 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
32168 swizzling. Implement ClientToScreen and ScreenToClient. Implement
32169 GetCursorPos. Fix major visibility issues. Rework the windowing
32170 system to support borderless/titleless windows (implements menus).
32171 Fix GetWindowPos. Implement initial background color support for
32174 2004-12-28 Peter Bartok <pbartok@novell.com>
32176 * Form.cs (get_CreateParams): Make sure we have an owner before using
32177 the owner variable. Implement proper default if no owner exists
32179 2004-12-28 Peter Bartok <pbartok@novell.com>
32181 * In preparation for making Managed.Windows.Forms the default build target
32182 for System.Windows.Forms, the following stubbed files were added.
32183 Dialogs are currently being implemented by contributors and are only
32184 short-term place holders.
32185 * ColorDialog.cs: Initial check-in (minmal stub)
32186 * DataGrid.cs: Initial check-in (minimal stub)
32187 * DataGridLineStyle.cs: Initial check-in (minimal stub)
32188 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32189 * DataGridTableStyle.cs: Initial check-in (minimal stub)
32190 * FontDialog.cs: Initial check-in (minimal stub)
32191 * FileDialog.cs: Initial check-in (minimal stub)
32192 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32193 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32194 * OpenFileDialog: Initial check-in (minimal stub)
32195 * IComponentEditorPageSite.cs: Initial check-in
32196 * Splitter.cs: Initial check-in (for Jackson)
32197 * SplitterEventArgs.cs: Initial check-in (for Jackson)
32198 * SplitterEventHandler.cs: Initial check-in (for Jackson)
32199 * TextBox.cs: Initial check-in; still needs some wiring to
32200 TextControl backend
32201 * Form.cs: Implemented ControlBox property
32202 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32203 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32204 * TextControl.cs: Added selection functionality; added todo header
32206 - Implemented Lines property
32207 - Implemented TextHeight property
32208 - Implemented SelectedText property
32209 - Implemented SelectionLength property
32210 - Implemented SelectAll method
32211 - Implemented ToString method
32212 - Removed and cleaned up some debug code
32213 - Implemented (still buggy) mouse text selection
32215 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
32217 * ComboBox.cs: Complete DropDownList implementation, fixes.
32219 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
32221 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32222 * ComboBoxStyle.cs: ComboBoxStyle enum
32223 * ComboBox.cs: Initial work on ComboBox control
32225 2004-12-21 Peter Bartok <pbartok@novell.com>
32227 * Control.cs (ctor, CreateParams): Moved setting of is_visible
32228 forward so that anything that creates a window gets the default,
32229 also no longer uses Visible property in CreateParams to avoid
32230 walking up the parent chain and possibly get the wrong visible
32231 status. Fixed IsVisible to no longer walk up to the parent.
32233 2004-12-21 Peter Bartok <pbartok@novell.com>
32235 * Form.cs (ShowDialog): Unset modality for the proper window
32237 2004-12-20 Peter Bartok <pbartok@novell.com>
32239 * CommonDialog.cs: Initial check-in
32241 2004-12-20 Peter Bartok <pbartok@novell.com>
32243 * Control.cs (Visible): Now uses the parent window instead of the
32244 client area window for the property
32247 - ShowDialog(): Now uses the proper window for modality
32248 - The default visibility state for the form parent is now false. This
32249 will prevent the user from seeing all the changes to the form and
32250 its controls before the application hits Application.Run()
32251 - Removed some stale commented out code
32254 - Added FindWindow() method to have a method to check for existence
32256 - Added ability to override default exception handling (for example
32257 when debugging with VS.Net; to do this the ExternalExceptionHandler
32259 - Removed some useless debug output
32262 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32263 not working as expected
32264 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32265 property to allow switching back to the modal window if focus is
32266 given to another one of our windows (Application Modal)
32267 - Now only sets override_redirect if we create a window
32269 - Moved EventMask selection before mapping of newly created window
32270 so we can catch the map event as well
32271 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32272 - Added various Atom related DllImports
32273 - Implemented Exit() method
32274 - .ctor() : No longer shows window if WS_VISIBLE is not defined
32275 in the CreateParams
32277 * MessageBox.cs: Now properly deals with the FormParent window by
32278 providing an override the FormParent CreateParams property to
32279 set as POPUP instead of OVERLAPPED window.
32281 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32283 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
32284 Minor code cleanup.
32286 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32288 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32290 2004-12-18 Peter Bartok <pbartok@novell.com>
32292 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32293 implementing SetModal() method
32295 2004-12-18 Peter Bartok <pbartok@novell.com>
32297 * X11Structs.cs (XGCValues): Fixed type of function element
32298 * XplatUI.cs: Added ScrollWindow() method
32299 * XplatUIDriver.cs: Added ScrollWindow() abstract
32300 * XplatUIWin32.cs: Implemented ScrollWindow() method
32301 * XplatUIX11.cs: Implemented ScrollWindow() method
32302 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32304 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32306 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
32307 Some more keyboard support (INCOMPLETE)
32309 2004-12-17 Peter Bartok <pbartok@novell.com>
32312 - Added color attribute to line tags.
32313 - Added color argument to all functions dealing with tags
32314 - Added color argument support to various functions
32315 - Fixed miss-calculation of baseline/shift in certain circumstances
32317 * TextBoxBase.cs: Added new color option to test code
32319 2004-12-17 Jackson Harper <jackson@ximian.com>
32322 * MonthCalendar.cs: Signature fixes
32324 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32326 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32327 keyboard event moved it. Create a new graphics context for each paint resolves this
32329 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32331 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32332 Make caret exist and go blink blink. Initial keyboard support.
32333 Fix exception handler, Add Invalidate support. Change way RefreshWindow
32336 2004-12-17 Jackson Harper <jackson@ximian.com>
32338 * XplatUIStructs.cs: Updated set of virtual keycodes.
32339 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32341 2004-12-17 Jackson Harper <jackson@ximian.com>
32343 * XplatUIX11.cs: Prune old keyboard code.
32345 2004-12-17 Jackson Harper <jackson@ximian.com>
32347 * XplatUIX11.cs: When generating mouse wparams get the modifier
32348 keys from the ModifierKeys property.
32350 2004-12-17 Jackson Harper <jackson@ximian.com>
32352 * X11Keyboard.cs: Send up/down input when generating
32353 messages. Remove some unused vars.
32355 2004-12-17 Jackson Harper <jackson@ximian.com>
32358 * TreeView.cs: get rid of warnings.
32360 2004-12-17 Jackson Harper <jackson@ximian.com>
32362 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32364 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
32366 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32367 CheckedListBox.cs: Implementation
32369 2004-12-17 Peter Bartok <pbartok@novell.com>
32371 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32373 2004-12-16 Peter Bartok <pbartok@novell.com>
32376 - InsertCharAtCaret(): Fixed start pos fixup
32377 - CaretLine_get: No longer derives the line from the tag, the tag
32378 could be stale if lines in the document have been added or deleted
32379 - RebalanceAfterDelete(): Fixed bug in balancing code
32380 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32381 - Line.Streamline(): Now can also elminate leading empty tags
32382 - DumpTree(): Added a few more tests and prevented exception on
32384 - Added Debug section for Combining lines
32385 - Delete(): Now copies all remaining properties of a line
32388 - Left mousebutton now sets the caret (and middle button still acts
32389 as formatting tester, which must go away soon)
32390 - Added Debug section for Deleting/Combining lines
32391 - Fixed calculations for UpdateView after Combining lines
32393 2004-12-16 Peter Bartok <pbartok@novell.com>
32395 * TextControl.cs: Now properly aligns text on a baseline, using the
32396 new XplatUI.GetFontMetrics() method. Simplified several calculations
32397 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32400 2004-12-16 Peter Bartok <pbartok@novell.com>
32402 * XplatUI.cs: Added GetFontMetrics() method
32403 * XplatUIDriver.cs: Added GetFontMetrics() abstract
32404 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32405 into libgdiplus, our private GetFontMetrics function
32406 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32407 * XplatUIWin32.cs: Implemented GetFontMetrics() method
32409 2004-12-16 Jackson Harper <jackson@ximain.com>
32411 * XplatUIStruct.cs: Add enum for dead keys
32412 * X11Keyboard.cs: Map and unmap dead keys.
32414 2004-12-16 Jackson Harper <jackson@ximian.com>
32416 * X11Keyboard.cs: Detect and use the num lock mask.
32418 2004-12-16 Peter Bartok <pbartok@novell.com>
32420 * Control.cs (CreateGraphics): Added check to make sure the
32421 handle of the window exists before calling Graphics.FromHwnd()
32423 2004-12-16 Peter Bartok <pbartok@novell.com>
32425 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32426 contains a lot of code that's not supposed to be there for the
32427 real thing, but required for developing/testing the textbox
32430 2004-12-16 Peter Bartok <pbartok@novell.com>
32433 - Fixed Streamline method
32434 - Added FindTag method to Line
32435 - Added DumpTree method for debugging
32436 - Added DecrementLines() method for deleting lines
32437 - Fixed UpdateView to update the cursor to end-of-line on single-line
32439 - Added PositionCaret() method
32440 - Fixed MoveCaret(LineDown) to move into the last line, too
32441 - Added InsertChar overload
32442 - Fixed InsertChar tag offset calculations
32443 - Added DeleteChar() method
32444 - Added Combine() method for folding lines
32445 - Fixed Delete() method, no longer allocates wasted Line object and
32446 now copies all properties when swapping nodes
32447 - Delete() method now updates document line counter
32449 2004-12-15 Jackson Harper <jackson@ximian.com>
32451 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32452 * X11Keyboard.cs: Expose the currently selected modifier keys
32453 through a property.
32455 2004-12-15 Peter Bartok <pbartok@novell.com>
32457 * TextControl.cs: Initial check-in. Still incomplete
32459 2004-12-15 Jackson Harper <jackson@ximian.com>
32462 * TreeView.cs: Fix build on csc (second time today ;-))
32464 2004-12-15 Jackson Harper <jackson@ximian.com>
32466 * TreeView.cs: Store the treenodes plus/minus box bounds when it
32467 is calculated and use this for click testing.
32468 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32470 2004-12-15 Jackson Harper <jackson@ximian.com>
32472 * TreeView.cs: Pass the nodes image index to the image list when
32473 drawing that image.
32475 2004-12-15 Jackson Harper <jackson@ximian.com>
32477 * X11Keyboard.cs: Set messages hwnd.
32478 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32479 post_message calls.
32481 2004-12-15 Jackson Harper <jackson@ximian.com>
32483 * X11Keyboard.cs: Fix to compile with csc.
32485 2004-12-15 Jackson Harper <jackson@ximian.com>
32487 * X11Structs.cs: Add key mask values
32488 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32489 * X11Keyboard.cs: New file - Extrapolates and interpolates key
32490 down/up foo into WM_CHAR foo
32491 * KeyboardLayouts.cs: Common keyboard layouts
32492 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32493 post messages into the main queue.
32495 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
32497 * Button.cs: implement ProcessMnemonic
32498 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32500 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32501 * ButtonBase.cs: Show HotkeyPrefix (not the &)
32503 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
32505 * MonthCalendar.cs: Implemented click-hold for next/previous month
32508 2004-12-11 Peter Bartok <pbartok@novell.com>
32511 - Added XKeyboardState (moved from XplatUIX11.cs)
32512 - Added XCreateGC related enums and structures
32513 - Added GXFunction for XSetFunction
32515 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32517 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32518 CaretVisible() calls
32520 * ToolTip.cs: Added code to prevent stealing focus from app windows
32522 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32523 DestroyCaret, SetCaretPos and CaretVisible)
32526 - Added implementation for caret functions
32527 - Moved hover variables into a struct, to make it a bit easier
32528 on the eyes and to debug
32529 - Removed XKeyboardState (moved to XplatUIX11.cs)
32530 - Moved Keyboard properties into the properties region
32532 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32533 call to get a graphics context for our control
32535 * XplatUIOSX.cs: Added empty overrides for the new caret functions
32537 * TreeView.cs: Fixed bug. No matter what color was set it would always
32538 return SystemColors.Window
32540 * XplatUIWin32.cs: Implemented caret overrides
32542 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
32544 * ListBox.cs: fire events, implement missing methods and properties,
32547 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
32549 * MonthCalendar.cs: invalidation bug fixing
32550 * ThemeWin32Classic.cs: paint fixing
32552 2004-12-09 Geoff Norton <gnorton@customerdna.com>
32554 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32555 prepare the CGContextRef there now.
32557 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
32559 * MonthCalendar.cs:
32560 - optimisationL only invalidate areas that have changed
32561 * ThemeWin32Classic.cs:
32562 - only paint parts that intersect with clip_area
32564 2004-12-09 Peter Bartok <pbartok@novell.com>
32566 * Application.cs: Undid changes from r37004 which cause problems
32569 2004-12-09 Ravindra <rkumar@novell.com>
32571 * ToolBar.cs: Added support for displaying ContextMenu
32572 attached to a button on ToolBar.
32573 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32576 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32578 * Label.cs: autosize works in text change and removes unnecessary
32581 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32583 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32586 2004-12-08 Geoff Norton <gnorton@customerdna.com>
32588 * XplatUIOSX.cs: Added mouse move/click/grab support
32589 Remove some debugging WriteLines not needed anymore.
32590 Add window resizing/positioning.
32591 Fix visibility on reparenting.
32593 2004-12-08 Peter Bartok <pbartok@novell.com>
32595 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32597 2004-12-07 Geoff Norton <gnorton@customerdna.com>
32599 * XplatUIOSX.cs: Initial checkin
32600 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32602 2004-12-03 Ravindra <rkumar@novell.com>
32604 * ListView.cs: Added some keybindings and fixed scrolling.
32605 ScrollBars listen to ValueChanged event instead of Scroll
32606 Event. This would let us take care of all changes being
32607 done in the scrollbars' values programmatically or manually.
32608 * ListView.cs (CanMultiselect): Added a check for shift key.
32609 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32610 * ListViewItem.cs (Clone): Fixed. We need to make a copy
32611 of ListViewSubItemCollection as well.
32613 2004-12-06 Peter Bartok <pbartok@novell.com>
32615 * Control.cs (Parent): Added check and exception to prevent
32618 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
32620 * ListBox.cs: implemented clipping, selection single and multiple,
32623 2004-12-03 Ravindra <rkumar@novell.com>
32625 * ListView.cs (ListView_KeyDown):
32626 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32627 when CTRL key is pressed.
32628 * ListViewItem.cs (Selected): Fixed setting the property.
32630 2004-12-03 Marek Safar <marek.safar@seznam.cz>
32632 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32634 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32635 MinimizeBox, ShowInTaskbar, TopMost properties.
32637 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32638 will be implemented).
32640 2004-12-03 Marek Safar <marek.safar@seznam.cz>
32642 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32644 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32647 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32649 * TreeView.cs: BackColor is Colors.Window.
32651 2004-12-01 Jackson Harper <jackson@ximian.com>
32653 * TreeView.cs: When resizing the tree if the user is making it
32654 smaller we don't get expose events, so we need to handle adding
32655 the horizontal scrollbar in the size changed handler as well as
32656 the expose handler.
32658 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
32660 * DrawItemState.cs: fixes wrong enum values
32662 2004-12-01 Jackson Harper <jackson@ximian.com>
32664 * TreeView.cs: Resize the hbar as well as the vbar on resize.
32666 2004-12-01 Jackson Harper <jackson@ximian.com>
32668 * NodeLabelEditEventArgs.cs:
32669 * NodeLabelEditEventHandler.cs:
32670 * OpenTreeNodeEnumerator.cs:
32672 * TreeNodeCollection.cs:
32674 * TreeViewAction.cs:
32675 * TreeViewCancelEventArgs.cs:
32676 * TreeViewCancelEventHandler.cs:
32677 * TreeViewEventArgs.cs:
32678 * TreeViewEventHandler.cs: Initial implementation.
32680 2004-12-01 Ravindra <rkumar@novell.com>
32682 * ListView.cs (CalculateListView): Fixed scrolling related
32683 calculations. Also, removed some debug statements from other
32685 * ListViewItem.cs: Changed access to 'selected' instance variable
32686 from private to internal.
32687 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32689 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
32691 * ThemeWin32Classic.cs: remove cache of brush and pens for
32692 specific controls and use the global system, fixes scrollbutton
32693 bugs (for small sizes, disabled, etc)
32695 * ScrollBar.cs: does not show the thumb for very small controls
32696 (as MS) and allow smaller buttons that the regular size
32698 2004-12-01 Miguel de Icaza <miguel@ximian.com>
32700 * UpDownBase.cs: Add abstract methods for the interface.
32701 Add new virtual methods (need to be hooked up to TextEntry when it
32703 Add override methods for most features.
32704 Computes the size, forces the height of the text entry.
32706 * NumericUpDown.cs: Put here the current testing code.
32708 * Set eol-style property on all files that do not have mixed line
32709 endings, to minimize the future problems. There are still a few
32710 files with mixed endings, and someone should choose whether they
32711 want to move it or not.
32713 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
32715 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32718 2004-11-30 Ravindra <rkumar@novell.com>
32720 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32721 drawing and replaced use of SystemColors by theme colors.
32722 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32723 * ListView.cs (ListViewItemCollection.Add): Throw exception when
32724 same ListViewItem is being added more than once.
32726 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
32728 * MonthCalendar.cs:
32729 - ControlStyles love to make the control not flicker
32731 2004-11-30 Peter Bartok <pbartok@novell.com>
32733 * CharacterCasing.cs: Added
32735 2004-11-29 Peter Bartok <pbartok@novell.com>
32737 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32738 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32739 I am removing these files as they conflict with already completed
32740 work. While it is fantastic to get contributions to MWF, I
32741 respectfully ask that everyone please coordinate their contributions
32742 through mono-winforms-list or #mono-winforms at this time. We're
32743 explicitly avoiding stubbing and don't want controls that don't have
32744 their basic functionality implemented in svn. Please also see
32745 http://www.mono-project.com/contributing/winforms.html
32748 2004-11-29 Marek Safar <marek.safar@seznam.cz>
32750 * Application.cs (ModalRun): Don't hang after exit.
32752 * Theme.cs: New TreeViewDefaultSize property.
32754 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32755 with less hardcoded SystemColors constant.
32756 Implemented TreeViewDefaultSize.
32758 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32759 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32762 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
32764 * MonthCalendar.cs:
32765 - Fix NextMonthDate and PrevMonthDate click moving calendar
32767 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
32769 * MonthCalendar.cs:
32770 - Fix usage of ScrollChange Property when scrolling months
32772 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
32774 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32775 - Fixes menu destroying
32776 - Support adding and removing items on already created menus
32778 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
32780 * MonthCalendar.cs:
32781 - Re-worked all bolded dates handling to match win32
32782 * ThemeWin32Classic.cs:
32783 - Fixed rendering with bolded dates
32785 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
32787 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32788 - Horizontal scroolbar
32793 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
32795 * MonthCalendar.cs:
32796 - Fix Usage of MaxSelectionCount from SelectionRange
32797 - Fixed Shift + Cursor Selection
32798 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32799 - Fixed normal cursor selection to be compat with win32
32800 - Fixed Shift + Mouse Click selection
32802 2004-11-24 Peter Bartok <pbartok@novell.com>
32804 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32805 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32807 - CreatedKeyBoardMsg now updates keystate with Alt key
32808 - Added workaround for timer crash to CheckTimers, Jackson will
32809 develop a proper fix and check in later
32810 - Implemented DispatchMessage
32811 - Removed calling the native window proc from GetMessage (call
32812 now moved to DispatchMessage)
32814 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32815 the keydata (Fixes bug #69831)
32818 - (DispatchMessage): Switched to return IntPtr
32819 - Added DllImport for SetFocus
32821 2004-11-24 Ravindra <rkumar@novell.com>
32823 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32824 background drawing.
32825 * ListViewItem.cs: Fixed various properties, calculations
32826 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32827 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32828 and some internal properties. Fixed MouseDown handler and Paint
32831 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32833 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32835 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32837 * ContainerControl.cs: correct accidental check in of local changes
32839 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32841 * ThemeWin32Classic.cs:
32842 - Fixed Drawing Last month in grid (sometimes not showing)
32843 * MonthCalendar.cs:
32844 - Fixed title width calculation bug (makeing title small)
32846 2004-11-23 Peter Bartok <pbartok@novell.com>
32849 - Added generation of WM_MOUSEHOVER event
32850 - Added missing assignment of async_method atom
32851 - Fixed WM_ERASEBKGND; now only redraws the exposed area
32853 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
32855 * ThemeWin32Classic.cs:
32856 - Fixed Drawing of today circle when showtodaycircle not set
32857 - fixed drawing of first and last month in the grid (gay dates)
32858 * MonthCalendar.cs:
32859 - Fixed Drawing of today circle
32860 - Fixed drawing of grady dates
32861 - Fixed HitTest for today link when ShowToday set to false
32862 - Fixed DefaultSize to obey ShowToday
32864 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
32866 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
32867 * System.Windows.Forms/Theme.cs
32868 * MonthCalendar.cs: added for MonthCalendar
32869 * SelectionRange.cs: added for MonthCalendar
32870 * Day.cs: added for MonthCalendar: added for MonthCalendar
32871 * DateRangeEventArgs.cs: added for MonthCalendar
32872 * DateRangeEventHandler.cs: added for MonthCalendar
32874 2004-11-22 Ravindra <rkumar@novell.com>
32876 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
32879 2004-11-22 Miguel de Icaza <miguel@ximian.com>
32881 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
32884 * NumericUpDown.cs: Added new implementation.
32885 * UpDownBase.cs: Added new implementation.
32887 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
32890 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
32893 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
32896 2004-11-21 Miguel de Icaza <miguel@ximian.com>
32898 * Timer.cs (Dispose): Should call the base dispose when
32901 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
32903 * ScrollBar.cs: updates thumb position when max, min or increment
32906 2004-11-21 Ravindra <rkumar@novell.com>
32908 * ListView.cs: Implemented item selection, activation and
32909 column header style. Fixed properties to do a redraw, if
32910 required. Added support for MouseHover, DoubleClick, KeyDown
32911 and KeyUp event handling and some minor fixes.
32912 * ListViewItem.cs: Fixed constructor.
32913 * ThemeWin32Classic.cs: Improved drawing for ListView.
32915 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
32917 * ThemeWin32Classic.cs: initial listbox drawing code
32918 * DrawMode.cs: new enumerator
32919 * ListControl.cs: stubbed class
32920 * ListBox.cs: initial implementation
32921 * Theme.cs: new methods definitions
32922 * SelectionMode.cs: new enumerator
32924 2004-11-17 Peter Bartok <pbartok@novell.com>
32926 * XplatUIWin32.cs: Added double-click events to the class style
32927 * Control.cs (WndProc):
32928 - Added handling of click-count to MouseDown/ MouseUp events.
32929 - Added handling of middle and right mouse buttons
32930 - Removed old debug code
32932 2004-11-17 Jackson Harper <jackson@ximian.com>
32934 * XplatUIX11.cs: Use the new Mono.Unix namespace.
32936 2004-11-17 Ravindra <rkumar@novell.com>
32938 * ListView.cs: Added event handling for MouseMove/Up/Down.
32939 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32940 * ThemeWin32Classic.cs: We need to clear the graphics context and
32941 draw column header in a proper state.
32944 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
32946 * Menu.cs: fixes signature
32948 2004-11-16 Peter Bartok <pbartok@novell.com>
32950 * XplatUIX11.cs (GetMessage): Implemented generation of
32951 double click mouse messages
32953 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
32955 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
32958 2004-11-11 Peter Bartok <pbartok@novell.com>
32960 * HandleData.cs: Added Visible property
32961 * XplatUIX11.cs (IsVisible): Now uses Visible property from
32963 * XplatUIX11.cs: Removed old debug leftovers
32964 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
32965 * Control.cs (WndProc): Removed old debug leftovers,
32966 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
32967 needed WM_SIZE handling
32969 2004-11-11 Jackson Harper <jackson@ximian.com>
32971 * OwnerDrawPropertyBag.cs:
32972 * TreeViewImageIndexConverter.cs: Initial implementation
32974 2004-11-10 Jackson Harper <jackson@ximian.com>
32976 * ThemeWin32Classic.cs:
32977 * TabControl.cs: instead of moving tabs by the slider pos just
32978 start drawing at the tab that is offset by the slider. This way
32979 scrolling always moves by exactly one tab.
32981 2004-11-10 Jackson Harper <jackson@ximian.com>
32983 * TabControl.cs: You can only scroll left when the slider has
32984 already ben moved right.
32986 2004-11-10 Jackson Harper <jackson@ximian.com>
32988 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
32991 2004-11-10 Jackson Harper <jackson@ximian.com>
32993 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
32996 2004-11-09 Jackson Harper <jackson@ximian.com>
32998 * TabControl.cs (CalcXPos): New helper method so we can determine
32999 the proper place to start drawing vertical tabs.
33000 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33002 2004-11-09 Jackson Harper <jackson@ximian.com>
33004 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33005 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33006 and Bottom, left and right are illegal values for this and
33007 multiline is enabled when the alignment is set to left or right.
33008 (DrawTab): Each alignment block should draw the text itself now
33009 because Left requires special love. Also add rendering for Left
33012 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
33014 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33015 does not destroy the windows, removes debugging messages
33017 2004-11-09 jba <jba-mono@optusnet.com.au>
33019 * ThemeWin32Classic.cs
33020 (DrawButtonBase): Fix verticle text rect clipping in windows
33021 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33022 rendering and incorrect text rect clipping
33023 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33024 rendering and incorrect text rect clipping
33026 2004-11-08 Jackson Harper <jackson@ximian.com>
33028 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33029 bottom when they are bottom aligned so the bottoms of the tabs get
33031 * TabControl.cs (DropRow): Move rows up instead of down when the
33032 tab control is bottom aligned.
33034 2004-11-08 13:59 pbartok
33037 - Added handling for various window styles
33038 - Added handling for popup windows
33039 - Added SetTopmost handling
33041 2004-11-08 13:55 pbartok
33044 - Added argument to SetTopmost method
33045 - Fixed broken ClientToScreen function
33047 2004-11-08 13:53 pbartok
33049 * XplatUIStructs.cs:
33050 - Added missing WS_EX styles
33052 2004-11-08 13:53 pbartok
33054 * XplatUI.cs, XplatUIDriver.cs:
33055 - Added argument to SetTopmost
33057 2004-11-08 13:52 pbartok
33060 - Added XSetWindowAttributes structure
33061 - Improved XWindowAttributes structure
33062 - Added SetWindowValuemask enum
33063 - Added window creation arguments enum
33064 - Added gravity enum
33065 - Added Motif hints structure
33066 - Added various Motif flags and enums
33067 - Added PropertyMode enum for property functions
33069 2004-11-08 13:50 pbartok
33072 - Fixed arguments for updated SetTopmost method
33074 2004-11-08 13:49 pbartok
33077 - Fixed arguments for updated SetTopmost function
33078 - Fixed usage of PointToClient
33080 2004-11-08 13:44 pbartok
33083 - Added Clipping of children and siblings
33085 2004-11-08 13:41 pbartok
33088 - Removed SetMenuBarWindow call. We do this in Form.cs
33090 2004-11-08 13:40 jackson
33092 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33093 scrolling jimmi in the correct location with bottom aligned tabs
33095 2004-11-08 13:36 pbartok
33097 * ContainerControl.cs:
33098 - Implemented BindingContext
33099 - Implemented ParentForm
33101 2004-11-08 12:46 jackson
33103 * TabControl.cs: Put bottom rendered tabs in the right location
33105 2004-11-08 07:15 jordi
33107 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33110 2004-11-05 17:30 jackson
33112 * TabControl.cs: When selected tabs are expanded make sure they
33113 don't go beyond the edges of the tab control
33115 2004-11-05 14:57 jackson
33117 * TabControl.cs: Reset show_slider so if the control is resized to
33118 a size where it is no longer needed it's not displayed anymore
33120 2004-11-05 13:16 jackson
33122 * TabControl.cs: Make tab pages non visible when added to the
33125 2004-11-05 12:42 jackson
33127 * TabControl.cs: Implement SizeMode.FillToRight
33129 2004-11-05 12:16 jackson
33131 * Control.cs: Do not call CreateHandle if the handle is already
33134 2004-11-05 11:46 jackson
33136 * TabControl.cs: Remove superflous call to CalcTabRows
33138 2004-11-05 09:07 jackson
33140 * XplatUIX11.cs: Update for Mono.Posix changes
33142 2004-11-05 07:00 ravindra
33144 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33147 2004-11-04 22:47 jba
33149 * ThemeWin32Classic.cs:
33150 - Fix Button rendering for FlatStyle = Flat or Popup
33151 - Fix RadioButton and CheckBox rendering when Appearance = Button
33152 (normal and flatstyle).
33153 - Correct outer rectangle color when drawing focus rectangle
33154 - Adjust button bounds to be 1 px smaller when focused
33155 - Make button not draw sunken 3d border when pushed (windows compat)
33156 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33157 - Offset the text in RadioButton and Checkbox when being rendered as
33159 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33161 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33162 - Fixed disabled text rendering for normally rendered radiobuttons
33164 2004-11-04 10:26 jackson
33166 * TabControl.cs: Recalculate tab rows when resizing
33168 2004-11-04 07:47 jordi
33170 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33171 collection completion, drawing issues, missing features
33173 2004-11-04 05:03 ravindra
33176 - We need to recalculate the Thumb area when
33177 LargeChange/maximum/minimum values are changed.
33178 - We set the 'pos' in UpdatePos() method to minimum, if it's less
33179 than minimum. This is required to handle the case if large_change is
33180 more than max, and use LargeChange property instead of large_change
33182 - We return max+1 when large_change is more than max, like MS does.
33184 2004-11-04 04:29 ravindra
33186 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33187 - Changed default value signatures (prefixed all with ListView).
33188 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33190 - Fixed calculations for ListViewItem and implemented Clone()
33193 2004-11-04 04:26 ravindra
33195 * Theme.cs, ThemeWin32Classic.cs:
33196 - Changed default ListView values signatures (prefixed all with
33198 - Fixed default size values for VScrollBar and HScrollBar.
33199 - Fixed DrawListViewItem method.
33201 2004-11-04 04:05 ravindra
33203 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33205 2004-11-04 04:04 ravindra
33207 * ImageList.cs: Implemented the missing overload for Draw method.
33209 2004-11-03 19:29 jackson
33211 * TabControl.cs: Handle dropping rows on selection properly
33213 2004-11-03 11:59 jackson
33215 * TabControl.cs: remove debug code
33217 2004-11-03 11:52 jackson
33219 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33220 the scrolly widgerywoo
33222 2004-11-02 13:52 jackson
33224 * TabControl.cs: Resize the tab pages and tabs when the tab control
33227 2004-11-02 13:40 jackson
33229 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33230 selected tab to the bottom
33232 2004-11-02 13:39 jackson
33234 * TabPage.cs: Store the tab pages row
33236 2004-11-02 12:33 jordi
33238 * MenuItem.cs: fixes handle creation
33240 2004-11-02 11:42 jackson
33242 * TabControl.cs: signature fix
33244 2004-11-02 08:56 jackson
33246 * TabControl.cs: Calculate whether the tab is on an edge properly.
33247 Remove top secret debugging code
33249 2004-11-01 19:57 jackson
33251 * TabControl.cs: Add click handling, and proper sizing
33253 2004-11-01 19:47 jackson
33255 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33258 2004-11-01 19:39 jackson
33260 * TabPage.cs: add internal property to store the bounds of a tab
33263 2004-10-30 04:23 ravindra
33265 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33268 2004-10-30 04:21 ravindra
33270 * ListView.cs, ListViewItem.cs: Added support for scrolling and
33271 fixed calculations.
33273 2004-10-30 03:06 pbartok
33276 - Removed extension of DllImported libs
33278 2004-10-29 09:55 jordi
33280 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33281 navigation, itemcollection completion, menu fixes
33283 2004-10-27 22:58 pbartok
33286 - Now throws a nice error message when no X display could be opened
33288 2004-10-26 13:51 jordi
33290 * ListView.cs: removes warning
33292 2004-10-26 03:55 ravindra
33294 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33295 ThemeWin32Classic.cs: Some formatting for my last checkins.
33297 2004-10-26 03:36 ravindra
33299 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33300 control and default values.
33302 2004-10-26 03:35 ravindra
33304 * Theme.cs: Added some default values for ListView control.
33306 2004-10-26 03:33 ravindra
33308 * ToolBar.cs: ToolBar should use the user specified button size, if
33309 there is any. Added a size_specified flag for the same.
33311 2004-10-26 03:33 ravindra
33313 * ColumnHeader.cs: Added some internal members and calculations for
33316 2004-10-26 03:32 ravindra
33318 * ListViewItem.cs: Calculations for ListViewItem.
33320 2004-10-26 03:31 ravindra
33322 * ListView.cs: Added some internal members and calculations for
33325 2004-10-22 13:31 jordi
33327 * MenuAPI.cs: speedup menus drawing
33329 2004-10-22 13:16 jackson
33331 * XplatUIX11.cs: Make sure to update exposed regions when adding an
33334 2004-10-22 11:49 jackson
33338 2004-10-22 11:41 jackson
33340 * Control.cs: Check to see if the window should have its background
33341 repainted by X when drawing.
33343 2004-10-22 11:31 jackson
33345 * XplatUIX11.cs: When invalidating areas only use XClearArea if
33346 clear is true, this way we do not get flicker from X repainting the
33349 2004-10-22 11:28 jackson
33351 * XEventQueue.cs: Queue properly
33353 2004-10-21 09:38 jackson
33355 * XEventQueue.cs: Fix access modifier
33357 2004-10-21 09:36 jackson
33359 * XEventQueue.cs: Don't loose messages
33361 2004-10-21 09:22 jackson
33363 * XEventQueue.cs: Don't loose messages
33365 2004-10-20 04:15 jordi
33367 * BootMode.cs: enum need it by SystemInfo
33369 2004-10-19 21:58 pbartok
33372 - Small sanity check
33374 2004-10-19 21:56 pbartok
33377 - Added private FormParentWindow class which acts as the container
33378 for our form and as the non-client area where menus are drawn
33379 - Added/Moved required tie-ins to Jordi's menus
33380 - Fixed/Implemented the FormStartPosition functionality
33382 2004-10-19 21:52 pbartok
33385 - Removed unneeded locals
33386 - Added code to all size and location properties to understand and
33387 deal with the parent container of Form
33389 2004-10-19 21:33 pbartok
33392 - Fixed to deal with new Form subclasses for menus
33394 2004-10-19 17:48 jackson
33396 * XEventQueue.cs: commit correct version of file
33398 2004-10-19 16:50 jackson
33400 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33402 2004-10-19 16:15 jordi
33404 * MenuAPI.cs: MenuBarCalcSize returns the height
33406 2004-10-19 08:31 pbartok
33409 - Added missing call to PreProcessMessage before calling OnXXXKey
33412 2004-10-19 00:04 ravindra
33414 * ToolTip.cs: Fixed constructor.
33416 2004-10-18 09:31 jordi
33418 * MenuAPI.cs: menuitems in menubars do not have shortcuts
33420 2004-10-18 09:26 jordi
33422 * MenuItem.cs: fixes MenuItem class signature
33424 2004-10-18 08:56 jordi
33426 * MenuAPI.cs: prevents windows from showing in the taskbar
33428 2004-10-18 00:28 ravindra
33430 * ToolTip.cs: Suppressed a warning message.
33432 2004-10-18 00:27 ravindra
33434 * Control.cs: Default value of visible property must be true.
33436 2004-10-17 23:19 pbartok
33439 - Complete implementation
33441 2004-10-17 23:19 pbartok
33444 - Added EnableWindow method
33445 - Added SetModal stub
33446 - Added generation of WM_ACTIVATE message (still needs testing)
33447 - Added SetTopMost stub
33448 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33450 2004-10-17 23:17 pbartok
33453 - Removed VirtualKeys to XplatUIStructs
33454 - Implemented SetTopMost method
33455 - Implemented EnableWindow method
33456 - Bugfix in ScreenToClient()
33457 - Bugfixes in ClientToScreen()
33459 2004-10-17 22:51 pbartok
33461 * XplatUIStructs.cs:
33462 - Added WS_EX styles to WindowStyles enumeration
33464 2004-10-17 22:50 pbartok
33466 * XplatUI.cs, XplatUIDriver.cs:
33467 - Added method for enabling/disabling windows
33468 - Added method for setting window modality
33469 - Added method for setting topmost window
33471 2004-10-17 22:49 pbartok
33473 * ThemeWin32Classic.cs:
33474 - Added ToolTip drawing code
33476 2004-10-17 22:49 pbartok
33479 - Added ToolTip abstracts
33481 2004-10-17 22:47 pbartok
33484 - Fixed Form.ControlCollection to handle owner relations
33485 - Added Owner/OwnedForms handling
33486 - Implemented Z-Ordering for owned forms
33487 - Removed unneeded private overload of ShowDialog
33488 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33490 - Fixed Close(), had wrong default
33491 - Added firing of OnLoad event
33492 - Added some commented out debug code for Ownership handling
33494 2004-10-17 22:16 pbartok
33497 - Fixed/implemented flat list of controls
33499 2004-10-17 22:14 pbartok
33502 - Added code to simulate modal dialogs on Win32
33504 2004-10-17 16:11 jordi
33506 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33509 2004-10-17 13:39 jordi
33511 * MenuAPI.cs: menu drawing fixes
33513 2004-10-15 09:10 ravindra
33515 * StructFormat.cs: General Enum.
33517 2004-10-15 09:09 ravindra
33519 * SizeGripStyle.cs: Enum for Form.
33521 2004-10-15 09:08 ravindra
33523 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33524 in Theme for ListView.
33526 2004-10-15 09:06 ravindra
33528 * ColumnHeader.cs: Flushing some formatting changes.
33530 2004-10-15 09:05 ravindra
33532 * ListViewItem.cs: Implemented GetBounds method and fixed coding
33535 2004-10-15 09:03 ravindra
33537 * ListView.cs: Implemented Paint method and fixed coding style.
33539 2004-10-15 07:34 jordi
33541 * MenuAPI.cs: fix for X11
33543 2004-10-15 07:32 ravindra
33545 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33546 - Renamed Paint() method to Draw() for clarity. Also, moved
33547 DrawImage() to OnPaint().
33549 2004-10-15 07:25 ravindra
33551 * CheckBox.cs, RadioButton.cs:
33552 - Removed Redraw (), we get it from ButtonBase.
33553 - Implemented Paint (), to do class specific painting.
33555 2004-10-15 07:16 ravindra
33558 - Redraw () is not virtual now.
33559 - Added an internal virtual method Paint (), so that
33560 derived classes can do their painting on their own.
33561 - Modified OnPaint () to call Paint ().
33563 2004-10-15 06:43 jordi
33565 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33566 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33568 2004-10-15 00:30 ravindra
33571 - MessageBox on windows does not have min/max buttons.
33572 This change in CreateParams fixes this on Windows. We
33573 still need to implement this windowstyle behavior in
33576 2004-10-14 05:14 ravindra
33579 - Changed Redraw () to do a Refresh () always.
33580 - Fixed the MouseMove event handling when mouse is pressed,
33581 ie drag event handling.
33582 - Replaced the usage of ToolBarButton.Pressed property to
33583 ToolBarButton.pressed internal variable.
33585 2004-10-14 05:10 ravindra
33587 * ToolBarButton.cs:
33588 - Added an internal member 'inside' to handle mouse move
33589 with mouse pressed ie mouse drag event.
33590 - Changed 'Pressed' property to return true only when
33591 'inside' and 'pressed' are both true.
33592 - Some coding style love.
33594 2004-10-14 00:17 ravindra
33596 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33599 2004-10-14 00:15 ravindra
33601 * ButtonBase.cs: Redraw () related improvements.
33603 2004-10-14 00:14 ravindra
33605 * MessageBox.cs: Moved InitFormSize () out of Paint method and
33606 removed unnecessary calls to Button.Show () method.
33608 2004-10-13 17:50 pbartok
33612 - Removed destroying of window until we solve the problem of X
33613 destroying the window before us on shutdown
33615 2004-10-13 16:32 pbartok
33618 - Now Redraws on MouseUp for FlatStyle Flat and Popup
33620 2004-10-13 14:18 pbartok
33623 - Added code to destroy the X window
33625 2004-10-13 14:18 pbartok
33628 - Added code to destroy a window
33630 2004-10-13 14:12 pbartok
33633 - Added the Redraw on Resize that got dropped in the last rev
33635 2004-10-13 09:06 pbartok
33637 * ThemeWin32Classic.cs:
33638 - Path from John BouAntoun:
33639 * Fix check rendering (centre correctly for normal style, offset
33640 correctly for FlatStyle).
33641 * Fix border color usage (use backcolor) for FlatStyle.Popup
33642 * Use checkbox.Capture instead of checkbox.is_pressed when
33643 rendering flatstyle states.
33645 2004-10-12 21:48 pbartok
33647 * ThemeWin32Classic.cs:
33648 - Removed all occurences of SystemColors and replaced them with the
33649 matching theme color
33651 2004-10-12 21:41 pbartok
33653 * ThemeWin32Classic.cs:
33654 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33655 him using the function for flatstyle drawing
33656 - Changed functions to use the new version of CPDrawBorder3D
33658 2004-10-12 21:15 pbartok
33661 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33662 match MS documentation. They need to return defined colors if the
33663 passed color matches the configured control color. Thanks to John
33664 BouAntoun for pointing this out.
33666 2004-10-12 20:57 pbartok
33669 - Fix from John BouAntoun: Raise ForeColorChanged event when text
33672 2004-10-12 20:46 pbartok
33675 - Fix from John BouAntoun: Now properly sets the Appearance property
33677 2004-10-12 20:45 pbartok
33679 * ThemeWin32Classic.cs:
33680 - Fixes from John BouAntoun: now handles forecolors and backcolors
33681 for flatstyle rendered controls much better; It also fixes normal
33682 checkbox rendering when pushed or disabled.
33684 2004-10-08 02:50 jordi
33686 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33689 2004-10-07 08:56 jordi
33691 * ThemeWin32Classic.cs: Removes deletion of cached brushes
33693 2004-10-06 03:59 jordi
33695 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33696 XplatUIWin32.cs: removes warnings from compilation
33698 2004-10-05 12:23 jackson
33700 * RadioButton.cs: Fix ctor
33702 2004-10-05 11:10 pbartok
33705 - Partial implementation by Benjamin Dasnois
33707 2004-10-05 10:15 jackson
33709 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33712 2004-10-05 03:07 ravindra
33715 - Removed a private method, Draw ().
33716 - Fixed the ButtonDropDown event handling.
33717 - Fixed MouseMove event handling.
33719 2004-10-05 03:04 ravindra
33721 * ThemeWin32Classic.cs:
33722 - Added DrawListView method and ListViewDefaultSize property.
33723 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33724 - Changed DOS style CRLF to Unix format (dos2unix).
33726 2004-10-05 03:03 ravindra
33729 - Added DrawListView method and ListViewDefaultSize property.
33731 2004-10-05 02:42 ravindra
33733 * ToolBarButton.cs: Added an internal member dd_pressed to handle
33734 clicks on DropDown arrow.
33736 2004-10-04 22:56 jackson
33738 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33739 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33740 Control handle the buffers, derived classes should not have to
33741 CreateBuffers themselves.
33743 2004-10-04 21:20 jackson
33745 * StatusBar.cs: The control handles resizing the buffers now.
33747 2004-10-04 21:18 jackson
33749 * Control.cs: When resizing the buffers should be invalidated. This
33750 should be handled in Control not in derived classes.
33752 2004-10-04 14:45 jackson
33756 2004-10-04 02:14 pbartok
33758 * LeftRightAlignment.cs:
33761 2004-10-04 01:09 jordi
33763 * ThemeWin32Classic.cs: fixes right button position causing right
33764 button not showing on horizontal scrollbars
33766 2004-10-02 13:12 pbartok
33769 - Simplified the Invalidate method by using an X call instead of
33770 generating the expose ourselves
33771 - Added an expose when the window background is changed
33772 - Implemented ClientToScreen method
33774 2004-10-02 13:08 pbartok
33777 - Added Win32EnableWindow method (test for implementing modal
33779 - Added ClientToScreen method and imports
33781 2004-10-02 13:07 pbartok
33783 * XplatUI.cs, XplatUIDriver.cs:
33784 - Added ClientToScreen coordinate translation method
33786 2004-10-02 13:06 pbartok
33788 * KeyPressEventArgs.cs:
33789 - Fixed access level for constructor
33791 2004-10-02 13:06 pbartok
33794 - Changed access level for the window_collection hash table
33796 2004-10-02 13:05 pbartok
33799 - Added KeyPreview property
33800 - Added Menu property (still incomplete, pending Jordi's menu work)
33801 - Implemented ProcessCmdKey
33802 - Implemented ProcessDialogKey
33803 - Implemented ProcessKeyPreview
33805 2004-10-02 13:02 pbartok
33808 - Added private method to get the Control object from the window
33810 - Implemented ContextMenu property
33811 - Implemented PointToScreen
33812 - Implemented PreProcessMessage
33813 - Implemented IsInputChar
33814 - Implemented IsInputKey
33815 - Implemented ProcessCmdKey
33816 - Completed ProcessKeyEventArgs
33817 - Fixed message loop to call the proper chain of functions on key
33819 - Implemented ProcessDialogChar
33820 - Implemented ProcessDialogKey
33821 - Implemented ProcessKeyMessage
33822 - Implemented ProcessKeyPreview
33823 - Added RaiseDragEvent stub (MS internal method)
33824 - Added RaiseKeyEvent stub (MS internal method)
33825 - Added RaiseMouseEvent stub (MS Internal method)
33826 - Added RaisePaintEvent stub (MS Internal method)
33827 - Added ResetMouseEventArgs stub (MS Internal method)
33828 - Implemented RtlTranslateAlignment
33829 - Implemented RtlTranslateContent
33830 - Implemented RtlTranslateHorizontal
33831 - Implemented RtlTranslateLeftRight
33832 - Added generation of KeyPress event
33834 2004-10-02 05:57 ravindra
33836 * ListViewItem.cs: Added attributes.
33838 2004-10-02 05:32 ravindra
33840 * ListView.cs: Added attributes.
33842 2004-10-01 11:53 jackson
33844 * Form.cs: Implement the Close method so work on MessageBox can
33847 2004-09-30 14:06 pbartok
33852 2004-09-30 11:34 jackson
33854 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33856 2004-09-30 07:26 ravindra
33858 * ListViewItemConverter.cs: Converter for ListViewItem.
33860 2004-09-30 07:26 ravindra
33862 * SortOrder.cs: Enum for ListView control.
33864 2004-09-30 07:25 ravindra
33866 * ColumnHeader.cs: Supporting class for ListView control.
33868 2004-09-30 07:24 ravindra
33870 * ListView.cs, ListViewItem.cs: Initial implementation.
33872 2004-09-30 07:20 ravindra
33874 * ItemActivation.cs: Enum for ListView Control.
33876 2004-09-29 20:29 pbartok
33879 - Added lookup of pixel value for background color; tries to get a
33880 color 'close' to the requested color, it avoids having to create a
33881 colormap. Depending on the display this could mean the used color
33882 is slightly off the desired color. Might have to change it to a more
33883 resource intensive colormap approach, but it will work as a
33884 workaround to avoid red screens.
33886 2004-09-29 14:27 jackson
33888 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
33890 2004-09-28 12:44 pbartok
33892 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
33893 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
33894 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
33895 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
33896 TrackBar.cs, VScrollBar.cs:
33897 - Streamlined Theme interfaces:
33898 * Each DrawXXX method for a control now is passed the object for
33899 the control to be drawn in order to allow accessing any state the
33900 theme might require
33902 * ControlPaint methods for the theme now have a CP prefix to avoid
33903 name clashes with the Draw methods for controls
33905 * Every control now retrieves it's DefaultSize from the current
33908 2004-09-28 12:17 jackson
33910 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
33913 2004-09-24 14:57 jackson
33915 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
33916 Gives us a nice little performance boost.
33918 2004-09-24 12:02 jackson
33920 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
33921 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
33922 Control and supporting classes. Initial checkin
33924 2004-09-23 13:08 jackson
33926 * Form.cs: Temp build fixage
33928 2004-09-23 01:39 ravindra
33930 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
33931 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33932 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33933 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33934 EventHandlers needed by ListView Control.
33936 2004-09-22 14:12 pbartok
33938 * ScrollableControl.cs:
33939 - Implemented DockPadding property
33940 - Implemented AutoScroll property
33941 - Implemented AutoScrollMargin property
33942 - Implemented AutoScrollMinSize property
33943 - Implemented AutoScrollPosition property
33944 - Implemented DisplayRectangle property (still incomplete)
33945 - Implemented CreateParams property
33946 - Implemented HScroll property
33947 - Implemented VScroll property
33948 - Implemented OnVisibleChanged property
33950 2004-09-22 14:09 pbartok
33953 - Added Form.ControllCollection class
33954 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
33955 RemoveOwnedForm (still incomplete, missing on-top and common
33956 minimize/maximize behaviour)
33957 - Added StartPosition property (still incomplete, does not use when
33959 - Added ShowDialog() methods (still incomplete, missing forcing the
33962 2004-09-22 14:05 pbartok
33965 - Added message loop for modal dialogs
33967 2004-09-22 14:02 pbartok
33970 - Fixed wrong types for events
33972 2004-09-22 14:00 pbartok
33974 * Shortcut.cs, FormWindowState.cs:
33975 - Fixed wrong values
33977 2004-09-22 12:01 jackson
33979 * Control.cs: Text is never null
33981 2004-09-20 22:14 pbartok
33984 - Fixed accessibility level for Idle handler
33986 2004-09-20 18:54 jackson
33988 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33989 XplatUIX11.cs: New message loop that uses poll so we don't get a
33992 2004-09-17 10:43 pbartok
33995 - Fixed behaviour of arrow buttons. Now properly behaves like
33996 Buttons (and like Microsoft's scrollbar arrow buttons)
33998 2004-09-17 10:14 pbartok
34001 - Added missing release of keyboard/mouse capture
34003 2004-09-17 06:18 jordi
34005 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34006 Theme.cs: Very early menu support
34008 2004-09-16 17:45 pbartok
34011 - Fixed sending a window to the front
34012 - Added overload for SetWindowPos to avoid casting
34014 2004-09-16 17:44 pbartok
34017 - Added SendToBack and BringToFront methods
34019 2004-09-16 07:00 ravindra
34021 * Copyright: Added Novell URL.
34023 2004-09-16 07:00 ravindra
34025 * ToolBar.cs: Invalidate should be done before redrawing.
34027 2004-09-15 21:19 ravindra
34029 * ColumnHeaderStyle.cs: Enum for ListView Control.
34031 2004-09-15 21:18 ravindra
34033 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34036 2004-09-13 18:26 jackson
34038 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34041 2004-09-13 18:13 jackson
34043 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34044 a second thread and post messages into the main threads message
34045 queue. This makes timing much more consistent. Both win2K and XP
34046 have a minimum timer value of 15 milliseconds, so we now do this
34049 2004-09-13 15:18 pbartok
34051 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34053 - Added Z-Ordering methods
34055 2004-09-13 10:56 pbartok
34058 - Fixed #region names
34059 - Moved properties and methods into their proper #regions
34061 2004-09-13 10:51 pbartok
34064 - Added Accept and CancelButton properties
34065 - Added ProcessDialogKey() method
34067 2004-09-13 08:18 pbartok
34069 * IWindowTarget.cs:
34072 2004-09-10 21:50 pbartok
34075 - Added DoDragDrop() [incomplete]
34076 - Properly implemented 'Visible' handling
34077 - Added SetVisibleCore()
34078 - Implemented FindChildAtPoint()
34079 - Implemented GetContainerControl()
34080 - Implemented Hide()
34082 2004-09-10 19:28 pbartok
34085 - Moved methods into their appropriate #regions
34086 - Reordered methods within regions alphabetically
34088 2004-09-10 18:57 pbartok
34090 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34091 - Added method to retrieve text from window
34093 2004-09-10 18:56 pbartok
34096 - Moved some internal functions into the internal region
34097 - Implemented FontHeight
34098 - Implemented RenderRightToLeft
34099 - Implemented ResizeRedraw
34100 - Implemented ShowFocusCues
34101 - Implemented ShowKeyboardCues
34102 - Implemented FromChildHandle
34103 - Implemented FromHandle
34104 - Implemented IsMnemonic
34105 - Implemented ReflectMessage
34106 - All public and protected Static Methods are now complete
34108 2004-09-10 16:54 pbartok
34111 - Implemented remaining missing public instance properties
34112 - Alphabetized some out of order properties
34114 2004-09-10 05:51 ravindra
34116 * PictureBox.cs: Added a check for null image.
34118 2004-09-10 00:59 jordi
34120 * GroupBox.cs: remove cvs tag
34122 2004-09-09 05:25 ravindra
34124 * ToolBar.cs: Make redraw accessible from ToolBarButton.
34126 2004-09-09 05:23 ravindra
34128 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34131 2004-09-09 02:28 pbartok
34133 * ThemeWin32Classic.cs:
34134 - Improve disabled string look
34136 2004-09-09 01:15 jordi
34138 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34141 2004-09-08 23:56 ravindra
34143 * ItemBoundsPortion.cs: It's enum, not a class!
34145 2004-09-08 23:47 ravindra
34147 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34150 2004-09-08 21:13 ravindra
34152 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34155 2004-09-08 21:03 ravindra
34157 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34160 2004-09-08 21:01 ravindra
34162 * ScrollableControl.cs: Removed unreachable code.
34164 2004-09-08 06:45 jordi
34166 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34168 2004-09-08 01:00 jackson
34170 * XplatUIX11.cs: Only run the timers when updating the message
34171 queue. This effectively gives X messages a higher priority then
34172 timer messages. Timers still need love though
34174 2004-09-07 14:01 jackson
34176 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34177 this for us and the handle is no longer valid.
34179 2004-09-07 13:59 jackson
34181 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34182 loop that manages to not crash. TODO: Add poll and cleanup timers
34184 2004-09-07 11:12 jordi
34186 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34188 2004-09-07 03:40 jordi
34190 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34191 fixes, methods, multiple links
34193 2004-09-06 06:55 jordi
34195 * Control.cs: Caches ClientRectangle rectangle value
34197 2004-09-05 02:03 jordi
34199 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34202 2004-09-04 11:10 jordi
34204 * Label.cs: Refresh when font changed
34206 2004-09-02 16:24 pbartok
34209 - Added sanity check to creation of double buffer bitmap
34211 2004-09-02 16:24 pbartok
34214 - Fixed selection of text color
34215 - Fixed handling of resize event; now properly recreates double
34217 - Added missing assignment of TextAlignment
34218 - Added proper default for TextAlignment
34220 2004-09-02 14:26 pbartok
34223 - Added missing RadioButton.RadioButtonAccessibleObject class
34225 2004-09-02 14:26 pbartok
34228 - Added missing Control.ControlAccessibleObject class
34229 - Started to implement Select()ion mechanisms, still very incomplete
34231 2004-09-02 14:25 pbartok
34233 * AccessibleObject.cs:
34234 - Added missing methods
34236 2004-09-02 14:23 pbartok
34238 * AccessibleNavigation.cs, AccessibleSelection.cs:
34241 2004-09-02 10:32 jordi
34243 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34244 pool for pens, brushes, and hatchbruses
34246 2004-09-01 15:30 jackson
34248 * StatusBar.cs: Fix typo
34250 2004-09-01 14:44 pbartok
34255 2004-09-01 14:39 pbartok
34257 * Button.cs, RadioButton.cs:
34258 - Functional initial check-in
34260 2004-09-01 14:01 pbartok
34263 - Added missing default
34264 - Added missing region mark
34266 2004-09-01 09:10 jordi
34268 * Label.cs: fixes method signatures, new methods, events, fixes
34271 2004-09-01 07:19 jordi
34273 * Control.cs: Init string variables with an empty object
34275 2004-09-01 04:20 jordi
34277 * Control.cs: fires OnFontChanged event
34279 2004-08-31 20:07 pbartok
34282 - Enabled display of strings
34284 2004-08-31 20:05 pbartok
34287 - Added (partial) implementation of DialogResult; rest needs to be
34288 implemented when the modal loop code is done
34290 2004-08-31 19:55 pbartok
34293 - Fixed to match the removal of the needs_redraw concept
34295 2004-08-31 19:55 pbartok
34298 - Removed the rather odd split between 'needs redraw' and redrawing
34299 - Now handles the events that require regeneration (ambient
34300 properties and size)
34302 2004-08-31 19:41 pbartok
34305 - Added firing of BackColorChanged event
34306 - Added TopLevelControl property
34307 - Fixed handling of WM_ERASEBKGRND message
34309 2004-08-31 12:49 pbartok
34315 2004-08-31 12:48 pbartok
34318 - Finished (famous last words)
34320 2004-08-31 04:35 jordi
34322 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34323 scrolling bugs, adds new methods
34325 2004-08-30 14:42 pbartok
34328 - Implemented CheckBox drawing code
34330 2004-08-30 14:42 pbartok
34333 - Made Redraw() and CheckRedraw() virtual
34334 - Improved mouse up/down/move logic to properly track buttons
34336 2004-08-30 09:44 pbartok
34339 - Updated to fix broken build. Not complete yet.
34341 2004-08-30 09:28 pbartok
34346 2004-08-30 09:17 pbartok
34351 2004-08-27 16:12 ravindra
34353 * ToolBarButton.cs: Added TypeConverter attribute.
34355 2004-08-27 16:07 ravindra
34357 * ImageIndexConverter.cs: Implemented.
34359 2004-08-27 14:17 pbartok
34362 - Removed unneeded stack vars
34363 - First attempt to fix sizing issues when layout is suspended
34365 2004-08-25 15:35 jordi
34367 * ScrollBar.cs: more fixes to scrollbar
34369 2004-08-25 14:04 ravindra
34371 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34372 Added the missing divider code and grip for ToolBar Control.
34374 2004-08-25 13:20 pbartok
34377 - Control now properly passes the ambient background color to child
34380 2004-08-25 13:20 jordi
34382 * ScrollBar.cs: small bug fix regarding bar position
34384 2004-08-25 12:33 pbartok
34387 - Now only calls SetTimer or KillTimer if the enabled state has
34390 2004-08-25 12:33 pbartok
34393 - Fixed timer handling, now seems to work
34394 - Improved error message for window creation
34396 2004-08-25 12:32 pbartok
34399 - Fixed generation of MouseUp message
34401 2004-08-25 12:29 jordi
34403 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34404 and fixes for progressbar
34406 2004-08-24 18:43 ravindra
34408 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34409 in ToolBar control.
34411 2004-08-24 17:15 pbartok
34415 - Added missing events
34418 2004-08-24 17:14 pbartok
34420 * StatusBar.cs, PictureBox.cs:
34421 - Now uses Control's CreateParams
34423 2004-08-24 16:36 pbartok
34426 - Fixed background color handling
34427 - Fixed sending of enter/leave events on a grab
34429 2004-08-24 16:35 pbartok
34432 - Refined definitions for CrossingEvent
34434 2004-08-24 12:37 jordi
34436 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34437 formmating, methods signature, and adds missing events
34439 2004-08-24 12:24 jordi
34441 * Control.cs: fire OnEnabledChanged event
34443 2004-08-24 11:17 pbartok
34446 - Implemented SetTimer() and KillTimer()
34448 2004-08-24 11:16 pbartok
34451 - Now uses Remove instead of Add to kill the timer
34453 2004-08-24 10:16 jackson
34455 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34456 picture boxes in the theme now. Draw picture box borders and obey
34459 2004-08-24 05:49 jackson
34461 * Timer.cs: Remove top secret debugging code
34463 2004-08-24 05:34 jackson
34465 * PictureBox.cs: Temp hack to make picture boxes draw their full
34468 2004-08-24 05:29 jackson
34470 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34471 XplatUIX11.cs: Move timers to the driver level. On X they are
34472 queued by the driver and checked on idle.
34474 2004-08-24 01:07 jackson
34476 * XplatUIX11.cs: Use a queue for async messages instead of passing
34477 them as ClientMessages since that was totally broken. Also simply
34478 check for events and return an idle message if none are found. This
34479 gives us an idle handler, and prevents deadlocking when no messages
34482 2004-08-23 18:19 ravindra
34484 * XplatUIWin32.cs: Removed the unwanted destructor.
34486 2004-08-23 17:27 pbartok
34489 - Finishing touches. Works now, just needs some optimizations.
34491 2004-08-23 16:53 jordi
34493 * ScrollBar.cs: small fix
34495 2004-08-23 16:45 pbartok
34498 - Removed debug output
34501 2004-08-23 16:43 jordi
34503 * ScrollBar.cs: [no log message]
34505 2004-08-23 16:10 pbartok
34508 - Fixed handling of WM_CLOSE message
34509 - Removed debug output
34511 2004-08-23 16:09 pbartok
34514 - Added handling of Idle event
34515 - Added handling of form closing
34516 - Fixed reporting of MessageLoop property
34517 - Removed some unneeded code, should provide a bit of a speedup
34519 2004-08-23 15:22 pbartok
34522 - Added InitLayout() method
34523 - Added code to properly perform layout when Anchor or Dock property
34525 - Changed 'interpretation' of ResumeLayout. MS seems to have a
34526 LAMESPEC, tried to do it in a way that makes sense
34528 2004-08-23 14:10 jordi
34530 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34531 properties and methods
34533 2004-08-23 13:55 pbartok
34536 - Properly fixed Jordi's last fix
34537 - Now uses Cursor's Position property instead of calling XplatUI
34540 2004-08-23 13:44 jordi
34542 * PaintEventHandler.cs: Adding missing attribute
34544 2004-08-23 13:39 pbartok
34547 - Implemented Position property
34549 2004-08-23 13:39 pbartok
34551 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34552 - Added method to move mouse cursor
34554 2004-08-23 13:39 pbartok
34557 - Fixed setting of background color
34558 - Added method to move mouse cursor
34560 2004-08-23 13:16 jordi
34562 * Control.cs: avoids null exception
34564 2004-08-22 17:46 jackson
34566 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34569 2004-08-22 17:40 jackson
34571 * XplatUIX11.cs: Add some missing locks
34573 2004-08-22 15:10 pbartok
34575 * Control.cs, Form.cs:
34576 - Removed OverlappedWindow style from Control, instead it's default
34578 - Made form windows OverlappedWindow by default
34580 2004-08-22 13:34 jackson
34582 * ScrollBar.cs: Update the position through the Value property so
34583 the OnValueChanged event is raised.
34585 2004-08-22 12:04 pbartok
34588 - Added Cursor.cs and UserControl.cs
34590 2004-08-22 12:03 pbartok
34593 - Started implementation, not usable yet
34595 2004-08-22 12:00 pbartok
34598 - Implemented UserControl (complete)
34600 2004-08-21 19:20 ravindra
34602 * ToolBar.cs: Correcting the formatting mess of VS.NET.
34604 2004-08-21 18:49 ravindra
34606 * ToolBar.cs: Probably this completes the missing attributes in
34609 2004-08-21 18:03 ravindra
34611 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34612 Fixed toolbar control signatures.
34614 2004-08-21 16:32 pbartok
34619 2004-08-21 16:30 pbartok
34624 2004-08-21 16:19 pbartok
34626 * Control.cs, Label.cs:
34629 2004-08-21 15:57 pbartok
34632 - Added loads of debug output for development
34633 - Fixed typo in method name
34635 2004-08-21 15:52 pbartok
34637 * ToolBarButtonClickEventArgs.cs:
34638 - Added missing base class
34640 2004-08-21 14:53 pbartok
34643 - Updated to match new GrabWindow signature
34645 2004-08-21 14:51 pbartok
34647 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34648 - Added method to get default display size
34650 2004-08-21 14:23 pbartok
34652 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34653 - Added method to query current grab state
34654 - Added argument to allow confining a grab to a window
34656 2004-08-21 14:22 pbartok
34659 - Added [Flags] attribute so that modifiers can be used in bitwise
34662 2004-08-21 14:21 pbartok
34664 * TrackBar.cs, ScrollBar.cs:
34665 - Replaced direct XplatUI calls with their Control counterpart
34667 2004-08-21 13:32 pbartok
34670 - Implemented Created property
34672 2004-08-21 13:28 pbartok
34675 - Implemented ContainsFocus
34677 2004-08-21 13:26 pbartok
34680 - Implemented CausesValidation
34682 2004-08-21 13:21 pbartok
34685 - Implemented CanFocus
34686 - Implemented CanSelect
34687 - Implemented Capture
34689 2004-08-21 12:35 pbartok
34692 - Fixed bug with Async message handling
34693 - Implemented getting the ModifierKeys
34695 2004-08-21 12:32 jackson
34697 * AsyncMethodResult.cs: Make sure we have the mutex before we
34698 release it. Fixes BeginInvoke on windows
34700 2004-08-21 11:31 pbartok
34702 * XplatUIWin32.cs, XplatUIX11.cs:
34703 - Drivers now return proper mouse state
34705 2004-08-21 10:54 jackson
34707 * Control.cs: Implement EndInvoke
34709 2004-08-21 10:48 jackson
34711 * Timer.cs: Remove unneeded finalizer
34713 2004-08-20 19:52 ravindra
34715 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34716 in mouse event handling in the ToolBar control.
34718 2004-08-20 19:50 ravindra
34720 * ImageList.cs: Changed draw method to use the arguments passed in
34723 2004-08-20 18:58 pbartok
34725 * XplatUIStructs.cs:
34726 - Added private message for async communication
34728 2004-08-20 17:38 ravindra
34730 * Control.cs: Made RightToLeft property virtual and removed a
34733 2004-08-20 14:39 jordi
34735 * ThemeGtk.cs: use style_attach
34737 2004-08-20 14:39 pbartok
34740 - Added jackson's Async code from X11 to Win32
34742 2004-08-20 14:09 pbartok
34745 - Added all new files
34747 2004-08-20 14:09 pbartok
34750 - Added call to set window background color
34752 2004-08-20 14:03 pbartok
34754 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34755 - Added method for setting the window background
34757 2004-08-20 14:02 pbartok
34760 - Added method for setting the background color
34761 - Added handling for erasing the window background
34763 2004-08-20 13:45 jordi
34765 * TrackBar.cs: fixes timer, new properties and methods
34767 2004-08-20 13:34 jackson
34769 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34772 2004-08-20 13:22 jackson
34774 * Timer.cs: Timer Tick events are now handed through Controls Async
34775 mechanism so the callbacks are executed in the same thread as X
34777 2004-08-20 13:19 jackson
34779 * XplatUIDriver.cs: Expose functionality to send async messages
34782 2004-08-20 13:18 jackson
34784 * Control.cs: Implement Begininvoke
34786 2004-08-20 13:14 jackson
34788 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34789 messages through the driver
34791 2004-08-20 13:12 jackson
34793 * XplatUIX11.cs: Lock before all X operations. Also added Async
34794 method functionality through XSendEvent
34796 2004-08-20 13:11 jackson
34798 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34799 This will screw up on 64 bit systems)
34801 2004-08-20 13:10 jackson
34803 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34804 Async messages through X/Win32
34806 2004-08-19 19:39 pbartok
34809 - Updated code to match new HandleData.DeviceContext type
34811 2004-08-19 19:38 pbartok
34814 - Made DeviceContext a generic object to allow usage from various
34816 - Added support for queueing Windows messages
34818 2004-08-19 19:37 pbartok
34821 - Added generation of MouseEnter, MouseLeave and MouseHover events
34822 - Added cleanup on EndPaint
34824 2004-08-19 19:17 pbartok
34827 - Added handling of WM_MOUSEHOVER
34828 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34831 2004-08-19 18:55 jordi
34833 * ThemeGtk.cs: fixes button order
34835 2004-08-19 18:12 jordi
34837 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34839 2004-08-19 17:09 pbartok
34842 - Added Right property
34843 - Added RightToLeft property
34845 2004-08-19 16:27 jordi
34847 * ThemeGtk.cs: experimental GTK theme support
34849 2004-08-19 16:26 jordi
34851 * ITheme.cs, Theme.cs: move themes from an interface to a class
34853 2004-08-19 16:25 jordi
34855 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34858 2004-08-19 16:04 pbartok
34861 - Added colormap basics
34862 - Added a way to re-initialize with a different display handle
34863 - Fixed setting of the window background color
34864 - Added various X11 imports related to colors and colormaps
34866 2004-08-19 15:51 pbartok
34869 - Removed packing hints (Paolo suggested this a while back)
34870 - fixed colormap type
34871 - Added default Atom types
34872 - Added Screen and color structs and enums
34874 2004-08-19 15:39 pbartok
34877 - Added missing Draw() method
34878 - Added missing RecreateHandle event
34880 2004-08-19 15:30 pbartok
34883 - Added handling of WM_CLOSE
34885 2004-08-18 13:16 jordi
34887 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
34890 2004-08-18 09:56 jordi
34892 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
34894 2004-08-17 15:31 ravindra
34896 * SWF.csproj: Updated project.
34898 2004-08-17 15:25 pbartok
34901 - Drawing improvement; don't call UpdateBounds if we are not visible
34902 (or have been minimized)
34904 2004-08-17 15:24 pbartok
34907 - Finished IsVisible
34908 - Added Win32GetWindowPlacement
34910 2004-08-17 15:08 jackson
34912 * Panel.cs: Initial checkin of the Panel
34914 2004-08-17 14:25 pbartok
34917 - Fixed broken handling of default window sizes
34919 2004-08-17 13:29 jackson
34921 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
34922 has a large startup time.
34924 2004-08-17 10:25 jackson
34926 * HandleData.cs: union areas properly
34928 2004-08-17 10:12 jackson
34930 * HandleData.cs: union areas properly
34932 2004-08-16 20:00 ravindra
34934 * ToolBar.cs, ToolBarButton.cs: Added attributes.
34936 2004-08-16 18:48 ravindra
34938 * ToolBar.cs: Added attributes.
34940 2004-08-16 17:17 ravindra
34942 * SWF.csproj: Updated project.
34944 2004-08-16 17:16 jackson
34946 * XplatUIX11.cs: Check for more expose events before sending a
34947 WM_PAINT so they can all be grouped together. This makes dragging a
34948 window across another window redraw in a sane way.
34950 2004-08-16 15:47 pbartok
34953 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
34954 support OnMouseEnter/Leave()
34955 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
34958 2004-08-16 15:46 pbartok
34960 * XplatUIStructs.cs, XplatUIX11.cs:
34961 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
34962 OnMouseEnter/Leave()
34964 2004-08-16 15:34 jackson
34966 * XplatUIX11.cs: Group multiple expose events in HandleData, make
34967 sure messages get the message field set to WM_NULL if they are not
34970 2004-08-16 15:24 jackson
34972 * HandleData.cs: HandleData is used for storing message information
34975 2004-08-15 17:23 ravindra
34977 * ColorDepth.cs: Added attribute.
34979 2004-08-15 17:23 ravindra
34981 * SWF.csproj: Updated project for ToolBar Control.
34983 2004-08-15 17:20 ravindra
34985 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
34986 control and also dos2unix format.
34988 2004-08-15 17:13 ravindra
34990 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
34991 ToolBarButtonClickEventArgs.cs,
34992 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
34993 ToolBarTextAlign.cs: First Implementation of ToolBar control.
34995 2004-08-15 15:31 pbartok
34998 - First (mostly) working version
35000 2004-08-13 16:15 pbartok
35003 - Fixed Anchor default
35005 2004-08-13 15:43 pbartok
35008 - Changed GetCursorPos signature
35010 2004-08-13 15:42 pbartok
35012 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35013 - Changed signature for GetCursorPos
35015 2004-08-13 15:25 pbartok
35019 - Fixed resizing/exposure handling
35021 2004-08-13 15:22 jordi
35023 * ThemeWin32Classic.cs: removes redundant code and fixes issues
35026 2004-08-13 14:55 jordi
35028 * TrackBar.cs: change from wndproc to events
35030 2004-08-13 13:00 jordi
35032 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35033 XplatUIX11.cs: implements PointToClient (ScreenToClient)
35035 2004-08-13 12:53 pbartok
35038 - Changed GetWindowPos to also provide client area size
35039 - Fixed broken prototypes for several win32 functions
35041 2004-08-13 12:53 pbartok
35043 * XplatUI.cs, XplatUIDriver.cs:
35044 - Changed GetWindowPos to also provide client area size
35046 2004-08-13 12:52 pbartok
35049 - Added generation of WM_POSCHANGED
35050 - Changed GetWindowPos to also provide client area size
35052 2004-08-13 12:52 pbartok
35055 - Added Dispose() and destructor
35056 - Fixed resizing and bounds calculation
35058 - Added memory savings for invisible windows
35060 2004-08-13 12:46 jordi
35062 * TrackBar.cs: adds timer and grap window
35064 2004-08-13 10:25 jackson
35066 * Timer.cs: SWF Timer
35068 2004-08-12 16:59 pbartok
35070 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35071 - Implemented method to get current mouse position
35073 2004-08-12 14:29 jordi
35075 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35076 enhancement, fix mouse problems, highli thumb, etc
35078 2004-08-12 13:31 pbartok
35081 - Fixed Anchoring bugs
35083 2004-08-12 13:01 jackson
35085 * StatusBar.cs: Don't forget things
35087 2004-08-12 12:54 jackson
35089 * ThemeWin32Classic.cs: Handle owner draw status bars
35091 2004-08-12 12:54 jackson
35093 * StatusBar.cs: Implement missing properties, events, and methods.
35094 Handle mouse clicking
35096 2004-08-12 10:19 jackson
35098 * StatusBarPanelClickEventArgs.cs,
35099 StatusBarPanelClickEventHandler.cs: Classes for handling status
35100 bar panel click events
35102 2004-08-12 10:10 jackson
35104 * Control.cs: Add missing properties
35106 2004-08-12 09:46 pbartok
35108 * BindingsManagerBase.cs:
35109 - Name changed to BindingManagerBase.cs
35111 2004-08-12 09:25 jordi
35113 * ScrollableControl.cs: calls ctrlbase instead of exeception
35115 2004-08-11 16:28 pbartok
35117 * InputLanguageChangingEventArgs.cs:
35118 - Never check in before compiling. Fixes the last check-in
35120 2004-08-11 16:26 pbartok
35122 * InputLanguageChangingEventArgs.cs:
35123 - More signature fixes
35125 2004-08-11 16:20 pbartok
35127 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35128 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35129 ImageListStreamer.cs, InputLanguage.cs,
35130 InputLanguageChangedEventArgs.cs,
35131 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35132 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35133 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35134 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35137 2004-08-11 16:16 pbartok
35141 - Added .Net 1.1 method
35143 2004-08-11 15:25 pbartok
35146 - Fixed BindingManagerBase.cs filename
35148 2004-08-11 15:22 pbartok
35150 * BindingManagerBase.cs:
35151 - Was checked in with wrong filename
35153 2004-08-11 14:50 pbartok
35158 2004-08-11 13:41 jordi
35160 * XplatUIWin32.cs: Fixes ClientRect
35162 2004-08-11 13:19 pbartok
35164 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35166 - We had SetWindowPos and MoveWindow to set window positions and
35167 size, removed MoveWindow. We have GetWindowPos, so it made sense to
35168 keep SetWindowPos as matching counterpart
35169 - Added some X11 sanity checking
35171 2004-08-11 12:59 pbartok
35174 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35175 (It seems that SetBounds is just a front for SetBoundsCore and
35176 SetBoundsCore updates the underlying window system and
35177 UpdateBounds is responsible for updating the variables associated
35178 with the Control and sending the events)
35179 - Major cleanup of Size handling; we now have two sizes, client_size
35180 and bounds. Bounds defines the window with decorations, client_size
35183 2004-08-11 12:55 pbartok
35185 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35186 - Added method to calculate difference between decorated window and
35189 2004-08-11 12:54 pbartok
35192 - Forcing redraw on resize
35194 2004-08-11 11:43 pbartok
35197 - Removed disposing of the actual images when the list is disposed
35199 2004-08-11 09:13 pbartok
35202 - Now properly reparents windows
35204 2004-08-11 08:37 pbartok
35209 2004-08-11 07:47 pbartok
35212 - Rewrote the collection stuff. Might not be as fast now, not
35213 keeping the number of children around and accessible directly, but
35214 it's more straightforward
35216 2004-08-11 07:44 pbartok
35218 * AccessibleObject.cs:
35219 - Fixed to match ControlCollection rewrite
35221 2004-08-11 07:43 pbartok
35224 - Added missing creation of the collection list
35226 2004-08-10 20:08 jackson
35228 * StatusBar.cs: Get the paint message from WndProc
35230 2004-08-10 19:31 jackson
35232 * ThemeWin32Classic.cs: Create Brushes as little as possible
35234 2004-08-10 19:20 jackson
35236 * UICues.cs: Add Flags attribute
35238 2004-08-10 19:19 jackson
35240 * StatusBarPanel.cs: Signature cleanup
35242 2004-08-10 19:10 jackson
35244 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35245 Initial implementation of status bar item drawing
35247 2004-08-10 17:27 jordi
35249 * TrackBar.cs: add missing methods, properties, and restructure to
35252 2004-08-10 16:24 jackson
35254 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35255 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35258 2004-08-10 13:21 jordi
35260 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35261 enhancements and standarize on win colors defaults
35263 2004-08-10 12:52 jackson
35265 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35266 ThemeWin32Classic.cs: Implement DrawItem functionality
35268 2004-08-10 12:47 jordi
35270 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35272 2004-08-10 12:32 jordi
35274 * Control.cs: throw ontextchange event
35276 2004-08-10 11:43 pbartok
35279 - Added more to the still unfinished Dock/Anchor layout code
35281 2004-08-10 11:39 pbartok
35283 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35284 - Added GetWindowPos method
35286 2004-08-10 11:36 pbartok
35289 - Implemented several methods
35291 2004-08-10 09:47 jackson
35293 * TrackBar.cs: Allow control to handle buffering
35295 2004-08-10 09:41 jackson
35297 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35299 2004-08-10 09:24 jackson
35301 * Label.cs, LinkLabel.cs: Let Control handle buffering.
35303 2004-08-10 09:09 jackson
35305 * StatusBar.cs: Let Control handle all the buffering.
35307 2004-08-10 09:08 jackson
35309 * Control.cs: Control will now handle the buffering code, so each
35310 control does not have to implement this.
35312 2004-08-10 08:34 jackson
35314 * XplatUIDriver.cs: Use default colors from the theme
35316 2004-08-09 17:12 pbartok
35319 - Fixed several bugs Ravindra pointed out
35321 2004-08-09 16:11 pbartok
35324 - Added incomplete dock layout code
35325 - Added support for mouse wheel
35327 2004-08-09 16:09 pbartok
35330 - Added handling for middle and right mousebutton
35331 - Added handling for mouse wheel
35332 - Added handling for key state and mouse state and position
35333 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35336 2004-08-09 15:40 jackson
35338 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35339 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35342 2004-08-09 15:37 jackson
35344 * StatusBar.cs: Initial implementation of StatusBar
35346 2004-08-09 15:36 jackson
35348 * ITheme.cs: Add support for drawing status bar and getting status
35351 2004-08-09 15:35 pbartok
35356 2004-08-09 15:34 jackson
35358 * ThemeWin32Classic.cs: Add support for drawing status bar and get
35359 status bar item sizes
35361 2004-08-09 15:21 jackson
35363 * ThemeWin32Classic.cs: Use known colors for default control
35366 2004-08-09 15:12 jackson
35368 * ThemeWin32Classic.cs: Make the default font static, it is static
35369 in control so this doesn't change functionality and creating fonts
35372 2004-08-09 14:56 pbartok
35375 - Added GrabMode enum
35377 2004-08-09 14:55 pbartok
35379 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35380 - Removed Run method, was only required for initial development
35382 2004-08-09 14:51 pbartok
35384 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35385 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35388 2004-08-09 13:48 pbartok
35391 - Fixed default sizing for child windows
35393 2004-08-09 12:56 pbartok
35396 - Added generation of WM_DESTROY message
35397 - Added handling of window manager induced shutdown
35399 2004-08-09 11:31 jackson
35401 * ThemeWin32Classic.cs: New names for control properties
35403 2004-08-09 11:25 jackson
35405 * Control.cs: Use new color names
35407 2004-08-09 11:02 jackson
35409 * XplatUI.cs: Get default window properties from the theme
35411 2004-08-09 11:01 jackson
35413 * ITheme.cs: The theme engine now controls default window
35416 2004-08-09 11:00 jackson
35418 * ThemeWin32Classic.cs: Add default window color properties
35420 2004-08-09 10:17 jackson
35422 * ThemeWin32Classic.cs: Use correct default back color
35424 2004-08-09 10:05 jackson
35426 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35429 2004-08-09 09:56 jackson
35431 * XplatUI.cs: Remove defaults, these are handled by the theme now.
35433 2004-08-09 09:54 jackson
35435 * Control.cs: Get default properties from the theme.
35437 2004-08-09 09:53 jackson
35439 * ITheme.cs: Themes now handle default control properties
35441 2004-08-09 09:53 jackson
35443 * ThemeWin32Classic.cs: Themes now handle default control
35444 properties so coloring will be consistent
35446 2004-08-08 16:54 jordi
35448 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35450 2004-08-08 15:08 jordi
35452 * XplatUIX11.cs: fixes keyboard crash
35454 2004-08-08 13:47 jordi
35456 * Label.cs: add cvs header info
35458 2004-08-08 12:09 jackson
35460 * ThemeWin32Classic.cs: Add pen_buttonface
35462 2004-08-08 11:52 jordi
35464 * Label.cs, LinkLabel.cs: [no log message]
35466 2004-08-08 11:34 jordi
35468 * ThemeWin32Classic.cs: Use Windows Standard Colours
35470 2004-08-07 17:32 jordi
35472 * TrackBar.cs: throw exceptions of invalid enums values
35474 2004-08-07 17:31 jordi
35476 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35479 2004-08-07 16:56 jackson
35481 * HorizontalAlignment.cs: Initial checkin
35483 2004-08-07 13:16 jordi
35485 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35488 2004-08-07 13:05 jordi
35490 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35491 GetSysColor defines
35493 2004-08-06 18:01 pbartok
35495 * ThemeWin32Classic.cs:
35496 - Fixed some rounding issues with float/int
35498 2004-08-06 18:00 jackson
35500 * DockStyle.cs, AnchorStyles.cs:
35502 Add flags and serializable attributes.
35504 2004-08-06 17:46 pbartok
35507 - Implemented GetParent
35509 2004-08-06 17:18 pbartok
35512 - Fixed some rounding issues with float/int
35514 2004-08-06 17:17 pbartok
35516 * X11Structs.cs, XplatUIX11.cs:
35517 - Fixed Refresh and Invalidate
35519 2004-08-06 15:30 pbartok
35521 * Control.cs, X11Structs.cs, XplatUIX11.cs:
35522 - Fixed recursive loop when resizing
35523 - Improved/fixed redrawing on expose messages
35525 2004-08-06 09:53 jordi
35527 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35528 keyboard navigation
35530 2004-08-06 08:02 pbartok
35532 * X11Structs.cs, XplatUIX11.cs:
35533 - Fixed reparenting
35534 - Fixed window border creation
35536 2004-08-05 15:38 pbartok
35539 - Attempted fix for reparenting problems
35541 2004-08-04 15:14 pbartok
35544 - Fixed Invalidation bug (calculated wrong client area)
35545 - Added ClientSize setter
35547 2004-08-04 15:13 pbartok
35550 - Added AutoScale properties
35552 2004-08-04 15:13 pbartok
35555 - Added latest files
35557 2004-08-04 14:11 pbartok
35559 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35561 - Added Invalidate handling
35563 2004-08-03 17:09 jordi
35565 * XplatUIDriver.cs: fixes spelling mistake
35567 2004-07-27 09:53 jordi
35569 * TrackBar.cs: fixes trackbar events, def classname, methods
35572 2004-07-27 09:29 jordi
35574 * ScrollBar.cs: fixes scrollbar events
35576 2004-07-27 04:38 jordi
35578 * Control.cs: changes to be able to run winforms samples
35580 2004-07-26 11:42 jordi
35582 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35583 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35585 2004-07-26 05:41 jordi
35587 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35588 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35591 2004-07-22 09:22 jordi
35593 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35594 check link overlapping, implement events, and fixes
35596 2004-07-21 10:28 jordi
35598 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35600 2004-07-21 10:19 jordi
35602 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35603 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35604 LinkLabelLinkClickedEventArgs.cs,
35605 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35606 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35609 2004-07-19 13:09 jordi
35611 * Control.cs, Label.cs: label control re-written: added missing
35612 functionlity, events, and properties
35614 2004-07-19 10:49 jordi
35616 * Control.cs: fixes SetBounds logic
35618 2004-07-19 01:29 jordi
35620 * Control.cs: Call RefreshWindow only if the window has created
35622 2004-07-15 14:05 pbartok
35624 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35625 - Implemented ImageList and ImageList.ImageCollection classes
35626 - Added ColorDepth enumeration
35627 - Updated SWF VS.Net project
35629 2004-07-15 11:06 jordi
35631 * XplatUIStructs.cs: added MsgButons enum
35633 2004-07-15 11:03 jordi
35635 * Control.cs: added basic mouse handeling events
35637 2004-07-15 03:38 jordi
35639 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35640 Vertical TrackBar control implementation
35642 2004-07-13 09:33 jordi
35644 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35646 2004-07-13 09:31 jordi
35648 * Control.cs, Form.cs: commit: new properties and fixes form size
35651 2004-07-09 14:13 miguel
35653 * ProgressBar.cs: Spelling
35655 2004-07-09 11:25 pbartok
35658 - Removed usage of Rectangle for drawing. Miguel pointed out it's
35661 2004-07-09 11:17 miguel
35663 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
35665 * ProgressBar.cs: Fixed spelling for `block'
35667 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35670 Avoid using the += on rect.X, that exposed a bug in the compiler.
35672 2004-07-08 23:21 pbartok
35674 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35675 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35676 BaseCollection.cs, Binding.cs, BindingContext.cs,
35677 BindingMemberInfo.cs, BindingsCollection.cs,
35678 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35679 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35680 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35681 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35682 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35683 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35684 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35685 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35686 FrameStyle.cs, GiveFeedbackEventArgs.cs,
35687 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35688 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35689 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35690 InputLanguageChangedEventArgs.cs,
35691 InputLanguageChangedEventHandler.cs,
35692 InputLanguageChangingEventArgs.cs,
35693 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35694 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35695 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35696 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35697 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35698 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35699 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35700 QueryAccessibilityHelpEventArgs.cs,
35701 QueryAccessibilityHelpEventHandler.cs,
35702 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35703 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35704 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35705 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35706 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35707 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35708 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35709 XplatUIX11.cs, lang.cs: