1 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
3 * IDeviceContext.cs: Added Dispose.
5 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
7 * Control.cs: Added OnSizeInitializedOrChanged.
8 * Form.cs: OnLoadInternal: Added a call to
9 Control.OnSizeInitializedOrChanged.
10 * InternalWindowManager.cs:
11 * HandleTitleBarMouseMove: No longer invalidates the parent window.
12 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
13 * TitleButton: Added Entered.
14 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
15 * MdiWindowManager.cs:
16 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
17 move over the maximized title buttons causes a change.
18 * IsActive: Can now be called before the window is added to a MDI parent.
19 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
20 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
21 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
22 * ThemeWin32Classic.cs:
23 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
24 * DrawTitleButton takes a new form parameter.
25 * Added ManagedWindowTitleButtonHasHotElementStyle,
26 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
28 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
30 * ThemeEngine.cs: ThemeVisualStyles is now selected if
31 Application.EnableVisualStyles has been called, even if the current system
32 configuration does not support rendering with Visual Styles.
33 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
34 Styles should not be used.
36 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
38 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
39 ComboBox in FormsTest.
41 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
43 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
44 for fixed toolwindows.
46 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
48 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
50 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
52 * Control.cs: CreateControl just returns if the Control is diposed
53 and doesn't throw ObjectDisposedException.
56 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
58 * Control.cs: Do not create the control if the parent isn't created
59 yet, e.g in the case of a parented form on which .Show is called.
60 It will be created when the parent is made visible/created.
63 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
65 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
66 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
69 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
71 * Form.cs: When disposed set owner to null. Improves #402446.
73 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
75 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
76 use children's PreferredSize if in AutoSize mode and ExplicitBounds
78 * Form.cs: Take the Padding into account for the PreferredSize.
81 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
83 * TabControl.cs: Since we don't support more than one direction in
84 TabControl rows alignment (this is, the row becomes the
85 bottom row when selected), make Direction return always 1. This way
86 the layout doesn't get confused about a bad calculation.
89 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
91 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
92 so that the wparam is properly set.
93 Fixes form moving in the test case in bug 402446.
95 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
97 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
98 the full tree instead of nothing. [Improves bug #406584]
100 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
102 * ThemeWin32Classic.cs: Adjusted minimized window painting.
104 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
106 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
109 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
111 * TreeView.cs: Add a null check when using CollapseAll on an
112 empty tree. [Fixes bug #406449]
114 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
116 * Form.cs: Make OnMenuComplete internal so we can call it.
117 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
120 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
122 * TabControl.cs: Handle Up and Down keys when TabControl is in
126 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
128 * TabControl.cs: Invalidate when we remove a tab. Guard against
129 an AOORE when trying to remove a tabpage that is not owned by the
133 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
135 * ScrollBar.cs: Change the LargeChange calculation to be correct.
136 Ensure we are using LargeChange instead of large_change so we our
137 calculations are correct.
140 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
142 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
143 we need to ensure the ColumnCount/RowCount gets set.
146 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
148 * ListBox.cs: When handling item navigation, if selection mode is
149 None, call EnsureVisible, since scrolling is normally handled by
150 selection, that we are not calling in this case.
153 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
155 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
156 a null check to our focus walking code. [Fixes bug #394332]
158 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
160 * ComboBox.cs: Case missed in bug 379596 "Support item
161 navigation by entering text": On _close_ drop-down select
162 the first item matching the text in the textbox. [Fixes bug #397265]
164 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
166 * DataGridView.cs: Fix a crash when sorting by column headers,
167 mentioned in bug #404841. Remove some dead switch cases.
169 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
172 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
173 uses the AutoComplete support in the internal TextBox. Also TextBox
174 can store a reference to ComboBox, in case AutoCompleteSource is set
175 to ListItems (this is, ComboBox's items, and we don't want to pass an
176 additional collection).
178 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
180 * ListViewItem.cs: Restore the initial value of bounds rect to
181 Rectangle.Empty, and is this value for Layout detection in virtual
182 mode. Fixes the tests.
184 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
186 * XPlatUI.cs: Remove references to "new" X11 backend.
188 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
190 * Control.cs: Add an internal virtual OnDragDropEnd method
191 to allow controls such as ListBox, which depend on a sequence
192 of MouseDown+Move+End events, to handle the lack of a MouseUp
193 when a DnD operation is started in MouseDown.
194 * ListBox.cs: If a DnD operation is started in MouseDown we won't
195 get a MouseUp, so reset our state whenever a DnD operation ends.
197 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
199 * PropertyGrid.cs: Clear the root griditem first thing when
200 new object/s is/are selected. Fixes some rare cases where
201 the View will get a paint request and won't know that the
202 grid is in the process of repopulating.
204 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
206 * XplatUIX11.cs, InternalWindowManager.cs:
207 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
208 doesn't automagically update the FormBorderStyle, so we must
209 double check the CreateParams explicitly to determine if the
210 window is a toolwindow.
211 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
212 instead of doing custom checks.
214 Fixes toolwindows for the test case in bug #402446
216 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
218 * Control.cs: Visibility of the control should be false
219 when the handle is destroyed in WmDestroy and not immediately
220 in Dispose(). This is effectively where the disposing process
221 ends even though the control is marked as Disposed immediately
222 after calling Dispose().
225 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
227 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
228 when the textbox gets focus.
231 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
233 * PropertyGridTextBox.cs, PropertyGridView.cs:
234 - Alt + Down should show the drop down editor.
235 - Focus the editor when showing it
238 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
240 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
241 that are not the first panel.
242 * StatusBar.cs: Ensure that the X coordinate of panels is always
243 stored. Fix IList implementation of StatusBarPanelCollection to
244 call the regular methods.
245 [Fixes bug #403599, #402165]
247 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
249 * ThemeWin32Classic.cs: Fix position calculation for centered
250 text on status bar panels. [Fixes bug #402165]
252 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
254 * Splitter.cs: Fix Splitter to:
255 - Work for arbitrary splitter size
256 - Handle MinSize and MinExtra properly
257 - Get rid of absolute positioning during drag and use relative
258 - Multiple other fixes
261 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
263 * Cursor.cs: Show shouldn't hide the cursor.
265 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
267 * ListViewItem.cs: When invalidating, add some extra space to bounds,
268 since focus rectangle and selection can add some space and need to
269 take into account those small offsets - specially in Details view.
270 * ListView.cs: Instead of invalidate using item Bounds directly, call
271 item.Invalidate, to have the code centralized.
272 Fixes focused/selection garbage when selecting and deselecting items
275 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
277 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
278 mode we can check whether we have to force a Layout or not, and can
279 cache based on this, instead of avoiding caching all the the time. Do
280 this check in GetBounds and TextBounds.
281 Fixes selection in Details view.
283 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
285 * ListView.cs: Make HeaderControl internal, thus the theme engine can
286 get its *real* height instead of trying to infere it.
287 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
288 get the position of them, since it's in general a bad idea in general,
289 and because we can't do that in virtual mode. Instead get the first
290 visible item as well as item height, and draw them.
293 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
295 * ToolStripSplitButton.cs: We can't add in extra width if
296 the button is not AutoSize. [Fixes bug #401279]
298 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
300 * PaddingConverter.cs:
301 - Implement conversion to InstanceDescriptor
302 - Handle "All" in CreateInstance by using the supplied
303 ITypeDescriptorContext.
304 [Fixes bugs #396076 and #396078]
306 Patch by Andy Hume <andyhume32@yahoo.co.uk>
307 Code contributed under MIT/X11 license.
309 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
311 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
313 Add Category attributes.
314 Code is contributed under the MIT/X11 license.
316 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
319 - Fix a NRE when unparenting a form.
320 - Do not recreate or destroy a parented form when
323 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
325 * TextBox.cs: Implement basic support for AutComplete with custom
328 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
330 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
331 DropDownButtonBounds should be from the origin of the button, not the
332 ToolStrip. [Fixes bug #401279]
334 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
336 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
337 running gtk_init_check. This prevents GAIL from loading
338 unnecessarily, which was breaking UIA support. Initial fix for bug
340 * Application.cs: Add UIA support to Winforms. New static constructor
341 uses reflection to initialize UIAutomationWinforms assembly. Added
342 PreRun event so UIA can initialize before the mainloop starts, and
343 FormAdded event so UIA can provide a11y support for new Forms in an
346 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
348 * DataGridView.cs: When binding to a dataset, subscribe to table
349 and column change events. Unsubscribe to these when we clear bindings.
352 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
354 [DataGrid drawing refactory]
356 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
358 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
359 must be handle by Theme, now it call DataGridPaintColumnHeader.
361 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
362 test cases must be also fixed because it checks for wrong size.
364 * ThemeWin32Classic.cs:
365 - Draw the bottom line of grid caption.
366 - Prevent to draw caption text when it is empty.
367 - Use CPDrawBorder3D for 3D efects to simplify code.
368 - Uses 3D (when not flat) to paint corner shared between row and column
370 - Fix header drawing issues on win32, now borders are drawing.
371 - Fix column header paint issues to mimic win32.
372 - Adjust header drawing for last column, like first one it must be draw
374 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
376 - DataGridPaintColumnHeader created to draw column headers, it also
377 paint stuff right on Win32.
378 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
382 - DataGridPaintRowHeaderStar method added.
383 - DataGridPaintColumnHeader method added.
385 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
387 * Control.cs: Don't reset to Dock style layout if DockStyle is
388 set to none. [Fixes bug #399316]
390 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
392 * Win32DnD.cs: Fix the check for control not equal null.
393 Fixes bug #341420 and #381886.
395 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
397 * DataGridViewRowCollection.cs: Update the indexes of rows after
398 one has been removed.
399 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
400 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
401 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
402 rows for the Rows collection, or deleting rows from the bound DataSet.
404 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
406 * DataGridView.cs: Listen to a DataSet's changed event even
407 when autogeneratecolumns is false. Refactor the changed event's
408 add row code to use the same as the existing add row code.
411 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
413 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
414 much any time the caret moves and there is text, not just when
415 the selection changes as one would think.
416 * RichTextBox.cs: Override RaiseSelectionChanged and fire
420 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
422 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
423 instead of trying to duplicate the code.
424 * ListBox.cs: Make method internal so we can send keyboard events.
427 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
429 * TextBoxBase.cs: When pasting and checking the max length,
430 subtract the selected text length (the text we will be replacing) from
432 * TextControl.cs: Ensure every character insertion is reflected in
433 charcount, so max length will work properly.
436 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
438 * ListBox.cs: Ensure scrollbars are updated when a single
439 column listbox with an already set top-index is created.
442 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
444 * FontDialog.cs: Typing in the font/style textboxes should search
445 the list boxes case-insensitively. [Fixes bug #398343]
447 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
449 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
450 widths of icon and buttons instead of hard coded values.
452 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
454 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
455 as well as generating a SelectedIndexChanged event, just like .Net does
459 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
461 * ListBox.cs: When navigating items visually, use FocusedItem as the
462 reference point instead of SelectedIndex, since even in
463 SelectionMode.None we need to support navigation, and in that case we
464 just can't use SelectedIndex.
465 Fixes part of #398345.
467 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
469 * Control.cs: Make a SetBoundsInternal that avoids the new
471 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
472 SetBoundsInternal instead of SetBoundsCoreInternal.
474 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
476 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
477 SetBounds for the scrollbars.
479 2008-06-10 Andreia Gaita <avidigal@novell.com>
481 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
482 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
483 OnMouseMove, OnMouseOver, OnMouseUp
484 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
485 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
486 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
487 to the WebControl object to pass to new collection objects
488 * HtmlHistory.cs: Implement support for individual window histories.
489 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
490 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
491 GotFocus, LostFocus, OnLoad, OnUnload
492 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
494 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
495 security level changes and context menu event support.
497 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
499 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
500 as happens with Esc, patch my Andy Hume.
503 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
505 * MdiWindowManager.cs: DrawMaximizedButtons now uses
506 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
507 * Theme.cs: Made MenuButtonSize platform dependent. Added
508 ManagedWindowButtonSize.
509 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
510 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
512 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
514 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
515 Added support for rendering with VisualStyles.
517 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
519 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
520 support for rendering the border with VisualStyles.
522 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
524 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
525 the icon is not shown.
526 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
529 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
531 * InternalWindowManager.cs: Draw minimized windows even if they don't have
534 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
536 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
538 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
540 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
543 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
545 * ComboBox.cs: When snaping height -because of IntegralHeight set to
546 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
547 if the requested height leaves the listbox area with *less* than the
548 required are to see one item. We were setting it to PreferredHeight
549 even for values matching the height for a single item.
552 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
554 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
556 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
558 * DataGridViewCell.cs: Use property instead of field.
560 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
562 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
565 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
567 * Theme.cs: Added #region around the managed window code. Made the managed
568 window methods abstract.
569 * ThemeWin32Classic.cs: Added #region around the managed window code.
571 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
573 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
575 * ThemeWin32Classic.cs: Removed HasBorders checks in
576 DrawManagedWindowDecorations.
578 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
580 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
581 Extracted ManagedWindowGetTitleBarIconArea.
583 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
585 * DataGridViewCellStyle.cs: Don't clone the font.
587 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
589 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
591 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
593 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
594 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
597 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
599 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
600 Use Format/FormatProvider before trying converters.
601 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
602 are 'set'. Change constructor to not use ApplyStyle since it wants
603 everything applied. Clone the Font.
604 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
607 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
609 * ListView.cs: We need to calculate the scrollbars even if the handle
610 hasn't been created - this is needed when methods using scrollbars
611 info, such EnsureVisible, are called before control has been created.
614 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
616 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
617 only if the elements are defined.
619 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
621 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
622 section. Also, when setting bounds, snap height as well as save the
623 requested height if Dock has any value affecting the height: Left,
624 Right and Bottom - important if using IntegralHeight as true.
626 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
628 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
629 passed to SetBounds to reflect the new adjusted height (Integral-wise),
630 instead of doing that only in our SetBoundsCore override, since the
631 bounds cached can be the same as saved one and we could not get the
635 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
637 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
638 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
639 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
640 ToolWindowCaptionButtonSize.
641 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
643 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
645 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
647 * Theme.cs: Made DoubleClickTime plaform dependent.
649 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
651 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
652 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
653 ToolWindowCaptionHeight.
655 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
657 * InternalWindowManager.cs: The adjustment to ensure positive client area
658 sizes is now platform dependent (disabled on Windows).
659 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
660 RequiresPositiveClientAreaSize.
662 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
664 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
666 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
668 * InternalWindowManager.cs: Changed IconicSize to use
669 SystemInformation.MinimizedWindowSize.
670 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
671 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
673 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
675 * ComboBox.cs: If the combobox is anchored both on top and bottom,
676 adjust height if IntegralHeight is true when calling SetBoundsCore (as
677 likely the height was modified even if Height wasn't specified in
678 BoundsSpecified parameter).
679 Fixes part of #396297.
681 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
683 * InternalWindowsManager.cs: Changed minimum window size while resizing to
684 SystemInformation.MinWindowTrackSize.
685 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
686 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
688 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
690 * MenuItem.cs: Fixed Dispose.
692 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
694 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
695 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
696 EnteredHeaderCell, PressedHeaderCell: Added.
697 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
698 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
699 theme a chance to override default painting.
700 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
701 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
702 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
703 ListView and DataGridView header rendering.
705 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
707 * RichTextBox.cs: GetPositionFromCharIndex should return the
708 visual position of the character relative to the viewport.
709 [Fixes part of bug #396664]
711 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
713 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
714 and not just for the existance of an UITypeEditor. In some cases
715 there is an editor associated just to do PaintValue, but which
716 doesn't actually support editing.
719 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
721 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
722 if needed, instead of 0 - this should help us in the corner case where
723 we have more than one item but we are only partially showing 1 item.
724 Fixes part of #374713.
726 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
728 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
729 control, return immediately if the any parent control's handle hasn't
730 been created or isn't visible, as well as avoiding creating the parent
731 Form if the handle hasn't been previously created.
734 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
736 * TableLayoutPanel.cs: Use border sizes when calculating the
737 panel's preferred size. [Fixes part of bug #396433]
739 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
742 - Fix SplitterDistance to update only if needed.
743 - Make it force min and max validation.
744 - Handle properly mouse moves outside the resizeable area.
747 2008-06-02 Andreia Gaita <avidigal@novell.com>
749 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
750 (which also suppresses all popup dialogs). Throw NotSupported
751 exceptions for activex getters/setters.
752 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
753 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
754 StatusText, Version, GoSearch
755 * HtmlDocument.cs: Add DocType support
757 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
759 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
762 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
764 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
766 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
768 * TableLayoutPanel.cs: When calculating preferred size, use the
769 actual number of columns and rows, not what the user set them to.
772 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
774 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
777 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
779 * XplatUIX11.cs: When detecting areas obscured in a control by other
780 toplevel windows while scrolling, return if the control hasn't a
784 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
786 * XplatUIX11.cs: Properly detect the visible area of a control being
787 scrolled (obscured by other winforms controls and any X toplevel
788 windows), to mark as invalid the requested area to be scrolled that
789 isn't visible and thus can't be copied.
792 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
794 * ListBox.cs: Compute the precise amount to vertically scroll when
795 using DrawMode.OwnerDrawVariable.
796 Patch by jkeymer (j.keymer@gmx.net).
798 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
800 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
801 to avoid setting an invalid value for the verticall scrollbar
802 when navigating items. And, duh, also remove my silly debug messages
803 from previous commits.
806 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
808 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
809 make it MS compatible.
811 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
813 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
814 - Allow the editing of entries even if their parent is read-only.
815 - Do not render expandable properties read-only.
816 - Refactor expansion checks form PropertyGrid into PropertyGrid.
818 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
820 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
821 support for the hover style.
823 2008-05-29 Andreia Gaita <avidigal@novell.com>
825 * ContainerControl.cs: Check for null dead-end when traversing the tree
828 [Fixes #394332, patch by Ernesto Carrea]
830 2008-05-29 Geoff Norton <gnorton@novell.com>
832 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
833 constant that it is. Fixes #393981
835 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
837 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
838 that the user probably doesn't want to set this.
840 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
842 * ThemeWin32Classic.cs: Don't let the text size be bigger than
843 the control size for CheckBox/RadioBox.
844 [Fixes part of bug #394645]
846 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
848 * PropertyGrid.cs: Update the state of the sorting buttons in
849 the toolbar if PropertySort is set programatically.
851 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
853 * GridItemCollection.cs: Add multiple items with conflicting names
854 support and also preserve name ordering.
857 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
859 * GridItemCollection.cs: Revert my multiple items with same
862 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
864 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
866 Fixes part of #393908.
868 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
870 * ToolStripDrowDown.cs: When using the Show () methods that have a
871 Control parameter, set the menu owner to that Control.
874 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
876 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
879 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
881 * GridItemCollection.cs: Refactor to support multiple items with the
885 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
887 * Control.cs: The 2.0 check for illegal cross thread calls in
888 Control.Handle were throwing an exception when we were getting
889 the Handle in order to invoke correctly. Created a private
890 version that does not contain this check.
893 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
895 * PropertyGrid.cs: Respect DefaultTabType.
897 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
899 * ListView.cs: SPACE selects an item.
902 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
904 * ListView.cs: Reset the search string whenever the items are
908 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
910 * ListControl.cs: For the first added item PositionChanged is fired
911 _before_ ItemChanged, which leave us in a temporary invalid state - so
912 we need to set the selected index from ItemChanged handler *if* we
913 know that the first item has just been added *and* the items have been
914 actually added to the ListControl.
917 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
919 * TabControl.cs: Only clicks with the left button should be
923 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
927 * TextBox.cs: Expose an internal method in TextBox to restore the
928 original context menu, and call it from ComboBox to re-use it in the
929 combobox containing the file name in FileDialog.cs.
930 Fixes part of #393775.
932 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
934 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
937 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
939 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
942 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
944 * ComboBox.cs: Minor correction to previous patch: PageDown should
945 also *try* to move by one item if the computed offset is negative,
946 just like the PageUp case.
948 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
950 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
951 should be done for at least 1 item, and not stay at the same item.
952 Fixes part of #374713.
954 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
956 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
957 directories. [Fixes bug #393931]
959 2008-05-22 Andreia Gaita <avidigal@novell.com>
961 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
962 Don't fire events until the initial about:blank page has finished
963 loading. Clean up events.
965 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
967 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
968 FocusIn() too. This should fix the issue on switching
971 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
973 * X11Keyboard.cs : set XIM font size to somewhat reasonable
974 number (ideally the input textbox size, but that could be
977 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
979 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
980 the ToolStripItem's TextChanged. [Fixes bug #393597]
982 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
984 * TabControl.cs: When invalidating in SelectedIndex and we need to
985 inflate to take into account the border of the tabs, make sure that
986 the invalidated rect doesn't overflow the control bounds, since that
987 would avoid updating at all.
989 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
991 * TabControl.cs: Don't substract scroller width from the row width,
992 since we need to take into account the total width of the control when
993 calculating the position of the tabs. This avoids showing scroller
994 when it is actually not needed.
995 Fixes part of #322325.
997 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
999 * ThemeVisualStyles.cs: Added support for TextBoxBase.
1001 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1003 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1004 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1006 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1008 * DataGridView.cs: Only paint the top left header cell if there
1011 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1013 * DataGridView.cs: When binding to a BindingSource, get the underlying
1014 list to bind to. [Fixes bug #345483]
1016 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
1018 * DataGridView.cs: Do not bind to collection properties.
1021 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1023 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1025 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1027 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
1030 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1032 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
1034 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1036 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
1039 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1041 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
1043 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1045 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
1048 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1050 * TabControl.cs: Extended to handle the hot style.
1052 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
1054 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1055 Extended UpDownBase code to handle hot and disabled styles.
1057 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1059 * DataGridView.cs: Handle databinding to generic list type things.
1062 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1064 * DataGridViewCellCollection.cs: Add a method to find the cell
1065 with the given DataPropertyName.
1066 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1067 * DataGridViewColumnCollection.cs: Add a method to clear all
1068 autogenerated columns.
1069 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1073 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1075 * DataGridView.cs: Don't try to update the RowTemplate with
1076 a null CellTemplate.
1078 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1080 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1081 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1082 * DataGridView.cs: Lots of fixes/enhancements to databinding to
1085 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
1087 * Control.cs: Remove invalidating implicit child controls when
1088 control is invalidated. It was causing too many redraws on
1089 controls with implicit scrollbars.
1090 * ListView.cs: Listen to the Invalidated event and invalidate
1093 2008-05-20 Andreia Gaita <avidigal@novell.com>
1095 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1096 * HtmlDocument.cs: Check for nulls
1098 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1100 * Control.cs: In ControlCollection.RemoveInternal, remove the
1101 internal control before calling PerformLayout and OnControlRemoved,
1102 which was leaving us in an invalid state and causing a X error (bad
1103 match). Observe that Remove () call has the same order.
1104 Fixes an X error changing ComboBoxStyle.DropDownStyle.
1106 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1108 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1109 being fired if ControlStyles.UserPaint style is activated.
1112 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1114 * GridEntry.cs: Don't be so strict when setting the value -
1115 do not check if what we set is what we get.
1118 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1120 * XplatUIX11.cs: If there are no timers timeout should be 0
1123 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1125 * Control.cs: As a followup to invalidating implicit children when
1126 a control is invalidated, only invalidate them if they are in the
1129 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1131 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1133 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1135 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1137 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1139 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1140 * XplatUIWin32.cs: Made Win32DeleteObject public.
1142 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
1144 * GridEntry.cs: Determine HasDefaultValue more strictly by using
1145 PropertyDescriptor.ShouldSerializeValue.
1148 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1150 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1151 in the classic theme.
1153 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1155 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1157 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1158 ScrollBarHasPressedThumbStyle.
1160 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1162 * TextRenderer.cs: Included some methods in the 1.1 profile.
1164 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
1166 * Control.cs: When we make a control visible, it may have been
1167 previously visible and while it wasn't visible, the z-order of
1168 things may have been shuffled, so the control needs to have its
1169 z-order updated just in case. [Fixes bug #391518]
1171 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1173 * ThemeVisualStyles.cs: Added support for GroupBox.
1175 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
1177 * GroupBoxRenderer.cs: Included in the 1.1 profile.
1179 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
1181 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1182 bug #389996; XSelectInput() behaved as mouse handler robber,
1183 so remove extra call to it.
1185 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1187 * Control.cs: Simplify ControlCollection.Contains method.
1189 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1191 * DataGridViewRow.cs: Implement GetPreferredSize.
1193 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1195 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
1197 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
1199 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1200 painting and edit control fixes.
1202 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1204 * DataGridView.cs, DataGridViewCell.cs: Work around some external
1205 checks to make sure we are in an actual row/col for top left header cell.
1206 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1208 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1210 * Control.cs: Use long instead of int when handling WParam from
1211 mousewheel scrolling. Int was overflowing on Win64.
1213 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1215 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1216 flow panel without scrolling first, and then calculate the
1217 scrolling based on the new layout. [Fixes bug #390149]
1219 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
1221 * ListBox.cs: Invalidate after scrolling up when selected index
1222 changes. [Fixes bug #390151]
1224 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1226 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1227 set, default height to 150. I tried first with DefaultSize, but this
1228 is not generating a SetBoundsCore call before handle creation time, so
1229 we can take it into account. This is just what .net does.
1231 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1233 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1234 as it broke some stuff. Calberto is filing a bug for eno to
1237 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1239 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1240 to 0 is the current value is -1, and if style is not Simple, just
1241 return, like .net does.
1242 Fixes part of #374713.
1244 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
1246 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1247 progress bar stuffs, use doubles instead of ints to prevent
1248 overflow. [Fixes bug #389798]
1250 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1252 * XplatUIX11.cs, X11Keyboard.cs :
1253 Significant refactoring on XIM support. Now IM engine UI
1254 should show up, at mostly-correct preedit position.
1255 - Eliminated use of FocusWindow, as it is never mapped
1256 and hence blocks correct preedit position. XIC is now
1257 created per window, and it must be destroyed too when
1258 the window is destroyed.
1259 - WM_QUIT messages should not be filtered even when hwnd
1260 is zombie. Filtering it could cause endless loop.
1261 - Preedit position must move only when the window is alive.
1262 - Make it IDisposable and make sure to release XIM/XICs.
1264 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
1266 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1267 XplatUIX11.cs, XplatUIWin32.cs :
1268 fix for bug #325033 and #387693;
1269 - WM_QUIT should not be sent when no running application
1271 - SetTimer/KillTimer (especially on win32) should be
1272 invoked for the window that the timer is/will_be attached.
1273 - There could be unattached timers to a window when it's
1274 started. For those timers, hold pending timers and when
1275 a window is mapped, attach them to it.
1276 - WaitForHwndMessage() could run into loop when
1277 WM_SHOWWINDOW is handled before this method is called.
1278 So, strictly check wm_showwindow state.
1279 - Tick handler should not be invoked while one Tick handler
1280 call is still running (introduced Busy state).
1282 2008-05-13 Andreia Gaita <avidigal@novell.com>
1284 * WebBrowserBase.cs: Override Internal alternative methods for
1285 SetBoundsCore and OnResize instead of the protected ones.
1286 * Control.cs: Move SetBoundsCore and OnResize implementations to
1287 SetBoundsCoreInternal and OnResizeInternal, so they can be
1288 overriden internally (WebBrowserBase needs to catch them but can't
1289 override the protected methods without api compat problems)
1291 2008-05-13 Andreia Gaita <avidigal@novell.com>
1293 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1295 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1298 * ListView.cs: Remove debug messages.
1300 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1302 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1303 area is empty. Also calculate scrollbars in Simple mode based in area
1304 height and total number of items, not in MaxDropDownItems.
1305 Fixes part of #371991.
1307 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1309 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
1311 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1313 * BindingSource.cs: GetListSortDescription is not public.
1315 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1317 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1319 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1321 * HtmlElement.cs: Fix parameter names to match MS.
1322 * HtmlWindowCollection.cs: Should not be sealed.
1324 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1326 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1327 button, because the thumb button will not get drawn if the scrollbar
1328 is disabled. [Fixes bug #389262]
1330 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1332 * ListBox.cs: Handle End key for multi-column listboxen.
1335 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1337 * ListBox.cs: Fix algorithm to determine which column our item is in.
1340 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1342 * ListBox.cs: Invalidate when the listbox is resized.
1345 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1347 * ListBox.cs: There is always at least one row in the ListBox (if
1348 we are doing these calculations.) [Fixes bug #389253]
1350 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
1352 * ListBox.cs: There is always at least one column in the ListBox.
1355 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1357 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1358 ensure in Simple mode that the height is exactly the requested one.
1359 Also add the ComboBoxListControl to the controls collection in Simple
1360 mode even if handle hasn't been created.
1361 Fixes part of #371991.
1363 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1365 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1366 our ComboBox owner instead of giving it back to the previous control (
1367 as done in other controls). Also remove the empty override of Select
1368 method, since we want to be selected *and* give focus to our owner.
1369 This should let the user do keys-navigation in Simple mode.
1371 2008-05-10 Geoff Norton <gnorton@novell.com>
1373 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1374 problems with rapid scrolling of treeviews. Fixes #381084
1376 2008-05-10 Geoff Norton <gnorton@novell.com>
1378 * XplatUICarbon.cs: Deactivate the active window before
1379 activating the desired window. Completes fixing #386504
1381 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1383 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1384 SmallChange to the item size width plus the padding, to match .net.
1386 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1388 * FileDialog.cs: Apply the custom filter typed by the user in the file
1389 name combobox as much as possible while navigating in the file dialog.
1392 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1394 * Binding.cs: Actually use NullValue if the retrieved value of
1395 data source is null or DBNull. Makes a test pass.
1397 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
1399 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1400 * MimeIcon.cs: Provide a way to get icons from resources.
1402 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1404 * Binding.cs: When the value retrieved from the control to be assigned
1405 to the data source is null, actually use the 2.0 DataSourceNullValue
1406 value. Make pass a data binding test.
1408 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1410 * Control.cs: We need to invalidate implicit children even when
1411 invalidate is called with invalidatechildren = false. (Implicit
1412 children are really part of the parent.)
1413 * ListView.cs: Double-buffer internal child controls for less
1415 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1416 owner ListView subitems for greatly increased performance.
1419 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1421 * FileDialog.cs: When the user types a wildcard character in the
1422 filename combobox, update the contents of the folder using the text as
1424 Fixes part of #385261.
1426 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1428 * ListBox.cs: Various fixes for MultiColumn listboxen.
1431 2008-05-08 Andreia Gaita <avidigal@novell.com>
1433 * HtmlElement.cs: Implement Style property
1435 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
1437 * ListBox.cs: Respect checkboxes when measuring item size.
1438 * ThemeWin32Classis.cs: When drawing list items, don't draw
1439 text outside of the item's bounds to prevent overlapping.
1440 (.Net actually overlaps, but that's just silly.)
1443 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
1445 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1446 Gert Driesen. Fixes bug #324830.
1448 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
1450 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1453 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1455 * BindingSource.cs: When calling IsSynchronized, return the value of
1456 the related IList list.
1458 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1460 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1463 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1465 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
1466 navigation to scroll the grid if the current cell is not visible.
1468 2008-05-07 Andreia Gaita <avidigal@novell.com>
1470 * HtmlElement.cs: Implement TabIndex
1472 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
1474 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1475 properties, even when there are no items.
1478 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
1480 * NativeWindow.cs: Add support for multiple handles per window.
1481 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
1482 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
1483 directly - use FromHandle instead.
1486 2008-05-07 Andreia Gaita <avidigal@novell.com>
1488 * HtmlElement.cs: Implement InnerHTML setter
1490 2008-05-07 Andreia Gaita <avidigal@novell.com>
1492 * HtmlDocument.cs: Implement Focused
1494 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1496 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1497 methods, as well as add messages to the exceptions.
1499 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1501 * BindingSource.cs: Setting DataSource should only reset DataMember if
1502 the previous value was null (make pass a not working test).
1504 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1506 * BindingSource.cs: When EndInit call is postponed and is called until
1507 DataSource.EndInit is called, remove the handler for data source.
1509 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1511 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1513 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1515 * ToolStripManager.cs: Store references to toolstrips as
1516 weak references so they do not prevent forms from getting collected.
1519 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1521 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1522 on .Net. So do the same thing in WndProc.
1524 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1526 * TrackBar.cs: Commit patch from Andy Hume that corrects
1527 the clickable areas to better match .Net.
1530 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1532 * TrackBar.cs: Commit patch from Andy Hume that adds the
1533 ResizeRedraw control flag so the track bar repaints itself
1534 when it is resized. [Fixes bug #387072]
1536 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
1538 * TrackBar.cs: Commit patch from Andy Hume that adds better
1539 support for keyboard navigation when the TrackBar is vertical.
1542 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1544 * BindingSource.cs: Implement ISupportInitializeNotification support.
1546 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1548 * ThemeVisualStyles.cs: Added support for ToolBar.
1550 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
1552 * ToolBar.cs: Made the Vertical property internal.
1554 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1556 * ThemeVisualStyles.cs: Added support for TrackBar.
1558 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1560 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1561 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1562 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1563 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1564 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1565 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1567 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1569 * ThemeVisualStyles.cs: Added support for UpDownBase.
1571 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
1573 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1574 Extracted Theme.UpDownBaseDrawButton.
1576 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1578 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1579 removed from the static toolstrips collection in ToolStripManager
1580 when they are disposed. Provides a workaround for bug #386483.
1582 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
1584 * GridEntry.cs: Read-only properties with Editor with
1585 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1588 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
1590 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1591 the menu key and there are no items on the menu.
1594 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
1596 * Control.cs: Avoid calling ToString on a string.
1597 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1598 * GroupBox.cs: In FlatStyle property throw, not just create, the
1599 exception. Avoid calling ToString on a string.
1600 * ProgressBar.cs: Avoid calling ToString on a string.
1601 * ScrollBar.cs: Avoid calling ToString on a string.
1602 [All issues were found using Gendarme]
1604 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1606 * NotifyIcon.cs: Prevent click events to be trigger after double click
1607 events. Fixes remaining issues of bug #324832.
1609 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
1611 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1612 to mimic win32 behavior. Partially fixes bug #324832.
1614 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1616 * BindingSource.cs: Implement Find methods.
1618 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1620 * BindingSource.cs: Implement Sort, ApplySort overloads, and
1623 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1625 * ListBindingHelper.cs: When calling GetListItemProperties and the
1626 passed object is ITypedList, return the result of
1627 ITypedList.GetItemProperties instead.
1629 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1631 * LinkLabel.cs: Set default value of name on constructor of Link class
1632 only for 2.0 profile.
1634 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1636 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1637 Fixes remaining issues of bug #346154.
1639 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1641 * LinkLabel.cs: Set a default value for name on internal contructor of
1642 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1644 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
1646 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1647 and refer all instances to owner.links. Partially fixes #346154.
1649 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1651 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
1652 length equal zero. Also called CreateLinkPieces in constructor. It fixes
1653 the LinkLabel test 'TestLinkArea'.
1655 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1657 * Form.cs: Remove menu before close form to prevent form to be not gaced.
1660 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1662 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1665 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1667 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1670 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1672 * MenuAPI.cs: Remove unused ProcessCmdKey method.
1674 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1676 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
1679 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1681 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1684 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
1686 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1687 sometimes we open a conext menu on mouse down of some controls and the mouse
1688 up is dispatched to menu and dont need to. It fix remaining issues of
1689 #363711 and other problems related to menu mouse click events.
1691 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1693 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1694 some var names to better fit changes, now we have month_menu and today_menu
1695 vars. Fixes bug #363711.
1697 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1699 * MonthCalendar.cs: Handle every right mouse click to open context menu,
1700 right now the default month menu but it will be change to have "Go to today"
1703 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1705 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1707 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
1709 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1711 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1713 * ThemeVisualStyles.cs: Added support for TreeView.
1715 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1717 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1718 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1720 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1722 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1724 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1726 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1727 Implement 2.0 SP1 stuffs.
1729 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1731 * FileDialog.cs: Implement 2.0 SP1 stuffs.
1733 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1735 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1736 Implement CanEnableIme property. (2.0 SP1)
1738 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1740 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1743 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1745 * Control.cs: Provide an internal way for a control to override
1746 the setting of Height.
1747 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1748 set height using new method.
1750 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1752 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1754 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1756 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1757 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1759 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1761 * ThemeVisualStyles.cs: Added support for StatusBar.
1763 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1765 * DataObject.cs: Add the other IDataObject interface.
1767 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
1769 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1770 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1772 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1774 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1775 * ListView.cs: Hide non-public API.
1776 * MaskedTextBox.cs: Remove extra attribute.
1778 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
1780 * DataGridViewImageCell.cs: Use formatted value instead of value
1781 to calculate preferred size.
1783 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1785 * ListBox.cs: Move some initialization around so that selected_indices
1786 is not accessed before it is created.
1788 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1790 * InputLanguageCollection.cs: Implement the collection better.
1793 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1795 * ToolStripDropDownItem.cs: Get the correct event object for
1796 DropDownItemClicked.
1797 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1800 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
1802 * DataGridViewRowCollection.cs: We don't currently support shared
1803 rows. Should fix test failures caused by previous commit.
1805 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1807 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1808 datagridview gets set. Only paint cells in visible columns.
1809 * DataGridViewCell.cs: Draw border after cell content.
1810 * DataGridView.cs: Invalidate after setting some properties. Only
1811 use visible columns. Fit hit test bug with areas in the col/row header
1812 area but not in a row or col. Implement UpdateCell/Row methods.
1814 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1816 * DataGridViewElement.cs: Don't throw NIEX.
1817 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1818 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1819 * DataGridViewCheckBoxColumn.cs: Implement ToString.
1820 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1821 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1822 if the user filled in the formatting Value, use it.
1824 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
1826 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1829 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1831 * BindingSource.cs: Some corrections to Filter property, as well as
1832 setting it for our list when resetting it.
1834 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
1836 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1837 than the maximum. Fixes reopened bug #384182.
1839 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1841 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1842 Fixes remaining issues of #367490.
1844 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1846 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
1847 SystemInformation.WorkingArea to get max_screen value.
1849 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1851 * BindingSource.cs: Implement Filter and RemoveFilter.
1853 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1855 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1857 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1859 * X11Dnd.cs: When trying to convert data and we know we started the
1860 dnd loop, don't try to use the cached data if the loop is not running,
1861 which means that the data has been resetted.
1864 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1866 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1869 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1871 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1872 it to drawn off screen edge. Fixes bug #367490.
1874 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1876 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1877 menu position to have only one assignment of Location var.
1879 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
1881 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1882 for this patch. Fixes bug #384115.
1884 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1886 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1887 the same. If LargeChange is zero, set a minimum size for the scroll
1888 thumb grip. [Fixes bug #384182]
1890 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1892 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1895 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
1897 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
1899 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1901 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1902 patch from Ernesto).
1904 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1906 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1908 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1910 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
1912 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1914 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
1916 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
1918 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
1920 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
1922 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
1924 2008-04-27 Andreia Gaita <avidigal@novell.com>
1926 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
1927 supposed to return a reference to an mshtml interface, which we
1929 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
1930 reference to an mshtml interface, which we don't support). Code
1932 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
1933 DomDocument getter (it's supposed to return a reference to an
1934 mshtml interface, which we don't support). Code formatting cleanup.
1936 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1938 * ListView.cs: Ouch, forgot to commit.
1940 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
1945 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1947 * ListView.cs: When calculating box selection for virtual mode, don't
1948 look for intersection with item's text, but item bounds, since that
1949 would mean read ListViewItem's text for _every_ item, and that's
1950 something we just can't do in virtual mode (items are only requested
1953 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
1955 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
1956 partial support for managed windows (based on the patch from Ernesto).
1958 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1960 * ListView.cs: When doing a key search use FindItemWithText method
1961 instead of doing the search by ourselves, this way we avoid
1962 duplicating the code and also we handle the special case for virtual
1963 mode. To achieve that make our private overload of FindItemWithText
1964 internal and also have a 'roundtrip' parameter.
1966 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1968 * ListView.cs: When doing the layout don't request the
1969 ListViewItem instance if we are in virtual mode (since we can't request it
1970 until the item is actully drawn).
1972 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1974 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
1977 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1979 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
1980 the patch from Ernesto).
1982 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1984 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1985 * ThemeVisualStyles.cs: Added.
1987 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1989 * IDeviceContext.cs: Added a missing using.
1991 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1993 * ButtonBase.cs: Made IsDefault protected internal.
1994 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1996 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
1998 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1999 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2000 RadioButtonRenderer.cs: Included in the 1.1 profile.
2001 * IDeviceContext.cs: Added.
2002 * TextRenderer.cs: Included a member in the 1.1 profile.
2004 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
2006 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2008 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2010 * ErrorProvider.cs: Make the error icons come after the control
2011 they refer to. It isn't the way the MS does it, but its better
2012 than what we were doing. See bug #368587.
2014 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2016 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2017 from Eric Albright that lazy loads the input language as ensures
2018 everything gets properly initialized. Fixes bug #373871.
2020 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
2022 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2023 implicit mnemonics. [Fixes bug #383000]
2025 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2027 * X11Dnd.cs: When canceling the operation, automatically restore the
2028 default cursor - normally the default cursor is restored when the
2029 mouse buttons are released, but we should be able to restore it even
2030 if the buttons are still pressed (for example, when pressing ESC to
2034 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2036 * X11Dnd.cs: When starting a new drad and drop operation, set control
2037 field to null, just as the other fields, to avoid calling any
2038 operation on a previous control. Also, when calling DndLeave on a
2039 control, set it to null, thus we don't fire that event multiple times
2043 2008-04-23 Geoff Norton <gnorton@novell.com>
2045 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
2046 the whole_window object. Fixes #377084.
2048 2008-04-23 Andreia Gaita <avidigal@novell.com>
2050 * HtmlElement.cs: Implement RaiseEvent (event injection into the
2053 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
2055 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2057 2008-04-23 Andreia Gaita <avidigal@novell.com>
2059 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2062 2008-04-23 Andreia Gaita <avidigal@novell.com>
2064 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2067 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2069 * X11Dnd.cs: When the drop was cancelled, or could just not be
2070 performed, return DragDropEffect.None always (match .net).
2072 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2074 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2076 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2078 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2080 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
2082 * DataGridView.cs: Add support for error icon tool tips.
2083 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2084 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2086 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
2088 * X11Structs.cs: Add mouse button masks enum.
2089 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
2090 WM_EXITSIZEMOVE only once at the beginning and at the end of the
2091 form resize/move operation instead of for each step of it.
2092 [Fixes bug #346529 for the x11 backend]
2094 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2096 * DataGridView*: Implement support for drawing error icons.
2098 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2100 * TreeView.cs: Make vbar and hbar internal.
2101 * TreeNode.cs: If collapsing the node removes one of the TreeView's
2102 scrollbars, invalidate the whole thing.
2105 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2107 * TreeView.cs: Calling Sort() sets Sorted = true.
2108 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2109 if the nodes need to be sorted.
2112 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
2114 * Form.cs: Fire SizeChanged for both when the form is minimized and
2116 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
2117 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2119 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
2121 * ComboBox.cs: If the combobox is disabled, draw a disabled
2122 background before painting anything else.
2125 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2127 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2128 forget to send a Leave event to the target window - just as .net does
2129 when cancelling dnd operations.
2131 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2133 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2134 soon as possible - this happens when we send the drop message to the
2135 target window. This way we avoid firing any DragOver _after_ drop finished.
2138 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2140 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2141 * Form.cs: Handle form minimization as a special state, where size doesn't
2142 change, but we have to fire SizeChanged.
2143 [Fixes bug #325122 for the win32 and x11 backends]
2145 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2147 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
2148 if the handle is disabled.
2151 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2153 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
2154 for forms with FormBorderStyle.None.
2157 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
2159 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
2161 [Fixes bug #346529 for the X11 backend]
2163 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2166 - Send a mouse Enter message after say dragging the mouse with a
2167 button down and then release it in another client.
2168 - Reset the cursor to prevent X11 from remembering it and setting it
2169 before the control gets WM_SETCURSOR.
2170 - Qeueue a mouse move after a mouse enter like win32.
2173 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2175 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
2176 It's sent when the form gets moved, resized, closed.
2177 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2178 [Fixes bug #359193 for X11]
2180 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2182 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
2185 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
2187 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
2188 group. Fixes the 1.1 build.
2190 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2192 * ListView.cs: Use display indexes for selection in Details view, as
2193 well as do the proper layout based on display indexes for that view
2196 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198 * ListView.cs: Focused item information is now stored as a display
2199 index, and display indexes are used all over the place for selection,
2200 instead of ListViewItem.Index values, which doesn't give us enough
2201 information to modify the selection in groups mode, and was broken.
2203 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
2205 * Control.cs: Do not fire MouseDown if validation of the control has
2207 * Form.cs: Validate the form before closing.
2208 [Fixes bugs #330501 and #353310]
2210 2008-04-18 Andreia Gaita <avidigal@novell.com>
2212 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2213 CreateWebBrowserSiteBase implementations
2214 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2215 Style and TabIndex setters
2217 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2219 * ListViewGroup.cs: When returning the actual item count, return the
2220 proper count for default group.
2223 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2226 * ListViewGroup.cs: When calculating groups layout, get the actual
2227 number of items per group, since groups added to the group BUT not
2228 added to the ListView are just ignored, and can cause some nasty
2229 exceptions because of the lack of synchronization. Also for
2230 ListViewGroup don't use lazy initialization for items, since we
2231 the common scenario is to use it always - and it helps us to refactor
2232 and clean the .ctor overloads.
2234 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2236 * ListView.cs: When adding an item to a ListViewItemCollection
2237 belonging to a group (ListViewGroup.Items), don't generate a redraw if
2238 the added item hasn't beeen previously added to the ListView instance
2239 refered by the group, since it will be ignored. This should avoid some
2240 really nasty flickering.
2242 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2244 * ListView.cs: When accessing an item in a specific display
2245 position, use the helper method GetItemAtDisplayIndex, instead of
2246 direct access to the reordered_items_indices array. When doing layout
2247 for groups set the correct Items index for the display position (since
2248 in groups mode items don't have the same position as in Items
2250 * ListViewGroup.cs: Add a field to store the starting item number,
2251 which is later used when calculating the layout.
2255 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
2257 * Application.cs: Fixed ProductVersion to fallback to the assembly
2258 version. Fixes regression for bug #325413.
2260 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2262 * ListView.cs: New helper method to retrieve an item in a _specific
2263 display_ position (the items can be displayed in a different order
2264 than one of Items collection).
2265 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2266 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2267 specific display position (again remember that items can be sorted
2268 different than Items).
2270 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2272 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2273 list and update it when the collection changes. We were recreating
2274 this several times per row paint and for every pixel the mouse moved
2276 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2279 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2281 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2282 list to use generics.
2283 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2284 and remove unneccessay casts.
2286 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
2288 * DataGridViewBand.cs: Add internal way to set displayed variable.
2289 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2290 * DataGridView.cs: Make sure we always keep track of Displayed
2291 rows and columns, and only draw things that are displayed.
2293 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
2295 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2296 whether the key events are filtered or not. Introduced
2297 PreFilter() process for this purpose. This fixes atokx3/iiimx
2300 2008-04-16 Andreia Gaita <avidigal@novell.com>
2302 * HtmlHistory.cs: Implement Length property
2304 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
2306 * DataGridView.cs: Call EndEdit when a sort is performed so we take
2307 away the edit textbox. Refactor to reuse column sort code.
2309 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
2311 * MenuAPI.cs: Remove the code that save and restore capture status of
2312 grab_control, this fixes some Menu and Context menu bugs but maybe it can
2313 cause some others, I cant figure the possible problems of this patch but
2314 right now remove the code looks to be better than keep it. This patch fixes
2315 bugs #357638, #378721 and #379570.
2317 2008-04-12 Andreia Gaita <avidigal@novell.com>
2319 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2320 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2321 add missing properties and event handlers.
2323 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
2325 * ListBox.cs: Make sure the LargeChange we are setting is at least
2326 zero, to prevent an IOORE. [Fixes bug #379531]
2328 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
2330 * ComboBox.cs: Support item navigation by entering text. Firstly,
2331 in DropDownList mode, for each key-press select the next item
2332 starting with that letter.
2333 For other modes, when no item selected, on arrow-up/-down and open
2334 drop-down select the first item matching the text in the textbox.
2336 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
2338 * X11Keyboard.cs : Control.FromHandle() could return null
2339 in MoveCurrentCaretPos().
2341 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2343 * ListView.cs: When changing the size in VirtualMode, also Reset the
2345 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2346 changing selection info for VirtualMode.
2349 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2351 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2352 view, don't use LineLimit for the first item - use NoWrap *always*
2353 instead, since ListView.LabelWrap is not used for this view.
2356 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2358 * Binding.cs: Call UpdateIsBinding when setting control - probably
2359 Binding is already usable and we don't need to wait to check the
2360 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2361 Created, just like 2.0 does.
2362 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2364 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2366 * Binding.cs: Just realized we don't need to have a handler for
2367 BindingContextChanged, since this info should be now consumed directly
2368 in the BindingManagerBase. And also, the manager.IsBindingSuspended
2369 state info is checked directly, instead of caching it.
2371 * CurrencyManager.cs: IsSuspended should return always false if Count
2374 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376 * Binding.cs: When calling PushData, return if manager.Count == 0,
2377 since we just don't have data to be read. Also, when setting the
2378 Control for binding, hook up some events to refresh the IsBinding
2379 state when BindingContext change or control gets created; use
2380 Control.IsHandleCreated instead of Control.Created check to set
2381 IsBinding state - we *actually* need to modify IsBinding when control
2382 is created, but we don't have any Created event, only HandleCreated.
2383 Fixes part of #349364.
2385 2008-04-11 Geoff Norton <gnorton@novell.com>
2387 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
2388 warping a null Caret.
2390 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2392 * DataGridView.cs: Implement row/column autosizing methods. Implement
2394 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2395 * DataGridViewRowCollection.cs: Add an internal sorting method.
2397 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2399 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2400 value in ListView drawing code.
2402 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
2404 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2405 is clicked. Respect the user setting Cancel in FileOk.
2407 2008-04-11 Geoff Norton <gnorton@novell.com>
2409 * ListView.cs: Avoid setting and resetting control Width/Heights and
2410 calculate the final value and set it once. Prevents a feedback loop
2413 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2415 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2418 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
2420 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2421 Add some on-the-spot code, but it seems we don't need it.
2423 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2425 * Form.cs: Add method for DataGridView to trigger focus cues
2426 even when it handles the tab keypress.
2428 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
2430 * DataGridView.cs: More keyboard handling, tab, esc.
2431 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2432 when at the beginning or end of the text in the text box.
2434 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2436 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2438 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2440 * DataGridView.cs: Some fixups for showing and adding the edit control.
2441 * DataGridViewButtonColumn.cs: Implement ToString.
2442 * DataGridViewCell.cs: Size and position the control simultaneously.
2443 * DataGridViewTextBoxCell.cs: Use base to position control.
2445 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2447 * DataGridViewCell.cs: Fix up some formatting and painting code.
2448 * DataGridViewImageCell.cs: Implement some NIEX methods.
2450 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2452 * ToolStripItemCollection.cs: What moving an item from one owner
2453 to another, remove from source owner before adding to destination.
2456 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
2458 * PictureBox.cs: Call Load when ImageLocation is set.
2461 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
2463 * X11Keyboard.cs, XplatUIX11.cs :
2464 Implement over-the-spot mode (with some odd offsets).
2465 - set preedit position when caret is set.
2466 - Wrap XMoveResizeWindow() to move preedit position.
2468 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2470 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2473 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2475 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2476 and ScanTableIndex public, it fix compilations errors when compiling
2477 WinForms to generate keyboard layout resources.
2479 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
2481 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
2482 different element count than scan table. It prevents some errors in non
2485 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2487 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2489 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
2491 * DataGridView.cs: Call OnContentClick.
2492 * DataGridViewCell.cs: Do a null check on ValueType instead
2494 * DataGridViewCheckBoxCell.cs: Implement.
2496 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2498 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2500 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2502 * X11Keyboard.cs : Check XGetIMValues() return value in
2503 case it does not return input styles in some environment.
2505 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
2507 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2509 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2511 * BindingContext.cs: Stub UpdateBinding method.
2513 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
2515 * X11Structs.cs : added couple of structs for XIM support.
2517 Release XIM in case it failed to create XIC.
2518 Use consts for XNblah string.
2519 Add support for IM style customization and XIC creation
2520 for preedit-position and preedit-callback.
2521 Right now use MONO_WINFORMS_XIM_STYLE environment variable
2522 (list of: over-the-spot | on-the-spot | root). Only root
2525 (redoing r99172 with fix.)
2527 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2529 * TreeView.cs: Center the checkbox a little better.
2531 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2533 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2534 Apply very nice patch from Ernesto Carrea that simplifies our
2535 scrollbar drawing. [From bug #376146]
2537 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
2539 * TreeView.cs: Correct the location of the root node checkbox when
2540 ShowRootLines = false. Don't draw the root lines for the root node
2541 when ShowRootLines = false. [Fixes bug #377535]
2543 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2545 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2547 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2549 * MaskedTextBox.cs: Added missing attribute. Code formatting.
2550 * PageSetupDialog.cs: Added missing attribute. Code formatting.
2551 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2552 * ImeMode.cs: Added missing field.
2553 * HtmlWindow.cs: Code formatting. Fixed line endings.
2554 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2556 * HtmlHistory.cs: Code formatting. Fixed line endings.
2557 * HtmlDocument.cs: Code formatting. Fixed line endings.
2558 * ToolStripPanel.cs: Added missing IList implementation.
2559 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2561 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
2563 * BindingContext.cs: Changed argument names to fix corcompare errors.
2564 * DataGridView.cs: Removed extra explicit interface implementation
2565 of IDropTarget. Code formatting.
2566 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2567 * ComboBox.cs: Changed argument names to fix corcompare errors.
2568 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2570 * GridColumnStylesCollection.cs: Changed argument names to fix
2571 corcompare errors. Removed extra tabs.
2572 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2574 * Control.cs: Changed argument names to fix corcompare errors. Code
2575 formatting. Removed extra explicit IList implementation.
2576 * TextBox.cs: Changed argument names to fix corcompare errors. Code
2577 formatting. Use string.Empty instead of "".
2578 * GridItemCollection.cs: Changed argument names to fix corcompare
2579 errors. Code formatting.
2580 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2581 corcompare errors. Code formatting.
2582 * ImageList.cs: Changed argument names to fix corcompare errors.
2583 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2584 * DataGridViewRowCollection.cs: Changed argument names to fix
2585 corcompare errors. Code formatting.
2586 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2587 * DataGridViewSelectedCellCollection.cs: Changed argument names to
2588 fix corcompare errors. Code formatting.
2589 * DataGridViewComboBoxCell.cs: Changed argument names to fix
2590 corcompare errors. Code formatting.
2591 * LinkLabel.cs: Changed argument names to fix corcompare errors.
2592 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2594 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2596 * BindingSource.cs: Changed argument names to fix corcompare errors.
2597 Removed extra explicit interface implementations.
2598 * DataGridViewSelectedRowCollection.cs: Changed argument names to
2599 fix corcompare errors. Code formatting.
2600 * ToolStripItemCollection.cs: Removed extra explicit interface
2601 implementation of IList.ReadOnly.
2602 * DataGridViewColumnCollection.cs: Changed argument names to fix
2603 corcompare errors. Code formatting.
2604 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2605 * ListView.cs: Changed argument names to fix corcompare errors.
2606 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2608 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2610 * ListBindingHelper.cs: Changed argument names to fix corcompare
2612 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2613 fix corcompare errors. Code formatting.
2614 * ToolStripPanel.cs: Removed extra explicit implementation of
2615 IDropTarget interface.
2616 * ListBox.cs: Changed argument names to fix corcompare errors. Code
2617 formatting. Removed extra tabs and spaces.
2618 * DataGridViewCellCollection.cs: Changed argument names to fix
2620 * Help.cs: Changed argument names to fix corcompare errors. Code
2622 * TabControl.cs: Changed argument names to fix corcompare errors.
2623 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2625 * TableLayoutSettings.cs: Changed argument names to fix corcompare
2628 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2630 * ListBindingHelper.cs: When returning properties, only return those
2631 that are browsable. Also, don't do a linear search of the properties,
2632 but use the indexer of the PropertyDescriptorCollection class.
2634 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2636 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2637 Dictionary containing the related (child) currency managers. Also,
2638 when setting DataSource, add datasource to our List if it is not a list.
2640 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2642 * PropertyGridTextBox.cs: Fix background color of the buttons.
2643 * PropertyGridView.cs: Make the entry less jumpy.
2645 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2647 * PropertyGrid.cs: Fix unused variable warnings.
2649 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
2651 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
2652 double-click. It expanded it once in the mouse down and then
2653 again in the double-click handler.
2655 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2657 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
2658 TypeConverter and UITypeEditors.
2660 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
2662 * Control.cs: Visibility should be set synchronously,
2663 so we must also redraw once it is and not rely on layouting or
2664 other code to repaint.
2667 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
2669 * DataGridViewCell.cs: Respect DataGridView.GridColor.
2671 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2673 * Control.cs: Invalidate when the alpha channel is less than 255,
2674 not only when control is transparent.
2676 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2678 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2679 Implement some painting convenience methods that threw NIEX.
2681 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
2683 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2684 * DataGridViewLinkCell.cs: Implement.
2686 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
2688 * GridEntry.cs: Report the conversion exception error description.
2691 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
2693 * PropertyGridView.cs: Do not scroll to item on resize.
2696 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2698 * BindingContext.cs: When retrieving a BindingManagerBase, if the
2699 dataSource parameter is ICurrencyManagerProvider, then return
2700 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2701 instead of creating a new one.
2703 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2705 * BindingSource.cs: Implement support for Type instances as
2708 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
2710 * DataGridView.cs: Minor cleanups and call CellMouseUp.
2711 * DataGridViewCell.cs: Make some painting routines internally virtual.
2712 * DataGridViewButtonCell.cs: Implement.
2714 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
2716 * Control.cs: We always need to invalidate our children with
2717 transparent backgrounds when we are invalidated.
2720 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2722 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2723 and CancelCurrentEdit on CurrencyManager respectively. Implement
2724 support for ICancelAddNew too.
2726 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2728 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2729 call EndNew/CancelNew if list is ICancelAddNew.
2731 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
2733 * DataGridView.cs: Guard against an exception while painting
2734 if there are no rows.
2736 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
2738 * DataGridView.cs: Implement a bunch of keyboard commands.
2740 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
2742 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
2743 isn't set, don't call OnPaint. [Fixes bug #375300]
2745 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2747 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2748 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2749 hookup the remaining events related to CurrencyManager, and fire
2750 OnListChanged also for the Clear () method.
2752 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2754 * BindingSource.cs: Use Current and Position implementations in
2755 CurrencyManager instead of using our own routines, since we need
2756 to be in synch with it. Count should NEVER return a -1 value, and
2757 also report ListChanged events for both simple IList data
2758 sources (manually) as well for IBindingList ones (by hooking up an
2759 event handler for it).
2761 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2763 * BindingSource.cs: Make one .ctor call the another, to avoid
2764 duplicate code. Add the CurrencyManager property, and also for AddNew
2765 throw the proper exceptions and show better error messages.
2767 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2769 * ComboBox.cs: Only adjust selectedindex if Handle has been
2770 created. Fixes failing test.
2772 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2774 * ComboBox.cs: Adjust selectedindex if we insert a new item
2775 above the current selectedindex in a sorted ComboBox.
2778 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2780 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2783 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
2785 * DataGridViewTextBoxCell.cs: Implement stuffs.
2787 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2789 * TreeView.cs: Create the scrollbars even earlier to be
2790 double dog certain they are created before they are accessed.
2792 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2794 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2796 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2798 * ScrollBar.cs: Create an internal safe Value setter so we
2799 won't crash if we try to set a value outside the min and max.
2800 * TextBoxBase.cs: Use safe value setter to guard against a
2801 potential NRE that is being reported by Reflector.
2803 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2805 * TreeView.cs: Create the scrollbars earlier in the constructor
2806 to attempt to guard against an NRE in SetTop in Reflector.
2808 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
2810 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2811 DataGridViewRowCollection.cs: Do not scroll column and row headers,
2812 show messagebox on data format error, use column display index
2813 correctly, make sure HitTest supports new layout stuff,
2814 make sure scrollbars support new layout stuff.
2816 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
2818 * XplatUIX11.cs : Patch by Doug Rintoul.
2819 For some IM engines, keypress events need to delay call
2820 to XPending() and XNextEvent() in the loop so that it
2821 does not mess the orders in XIM commit callback.
2822 Some KeyRelease events such as shift keys need to be
2823 processed both in the IM engine and winforms driver
2824 itself since winforms holds its own state check.
2826 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2828 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
2830 * X11Keyboard.cs, XplatUIX11.cs :
2831 add primitive support for XIM input support (preedit-
2832 nothing and status-nothing). It requires precise event
2833 capturing (XSelectInput/"filterEvents") and different
2834 call to XFilterEvent against root window.
2835 Get composed string and send dummy WM_IME_COMPOSITION.
2836 Free XIM and XIC instances in finalizer.
2838 (This first patch does not include suggested changes
2839 by Doug Rintoul. It will follow.)
2841 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2843 * DataGridView.cs: When binding to a property, if the property
2844 doesn't have a setter, set the column to readonly.
2847 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2849 * ComboBox.cs: Guard against NRE if an arrow key is hit while
2850 we aren't dropped down. Support Home/End in DropDownList mode.
2853 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
2855 * TreeNodeCollection.cs: Don't increment count until we've
2856 saved our index to return.
2859 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2861 * Label.cs: Add padding to the label's AutoSize calculation.
2864 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2866 * ListBindingHelper.cs: Actually implement GetListName method.
2868 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2870 * BindingSource.cs: Throw the propert expceptions for some methods, as
2871 well as detect the list item type for Add method if DataSource is null.
2873 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2875 * DataGridViewCell.cs: I don't know why I commented this out,
2876 putting it back for now.
2878 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2880 * DataGridViewCell.cs: Remove storage for owning column, just
2882 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2883 * DataGridViewColumnHeaderCell.cs: If the header text has been
2884 explicitly set, return it.
2887 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
2889 * DataGridViewRowCollection.cs: Disable row sharing when
2890 using data binding. Its a great feature, but lets work on
2891 getting DGV usable first before we worry about optimizations.
2893 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2895 * BindingSource.cs: When resetting our internal list, compute list
2896 item type information to be used for indirect list access. Also
2897 implement/tune some properties and methods related to the list access
2899 * ListBindingHelper.cs: Add a stub for GetListName method, used from
2902 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2904 * DataGridView.cs: If RowCount is increased while ColumnCount
2905 is zero, add a column. [Fixes bug #331649]
2907 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2909 * DataGridViewRowCollection.cs: When adding new rows for
2910 databinding, make sure they are place before the add row.
2913 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2915 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
2916 instead of Index order.
2918 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2920 * DataGridView.cs: If columns are added by increasing ColumnCount,
2921 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
2924 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2926 * DataGridView.cs: Turn off and on the "new row" when
2927 AllowUserToAddRows is toggled. When the handle is created,
2928 set current cell and selected cell/row/col.
2930 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
2932 * ComboBox.cs: When navigating the drop down by keyboard, we
2933 need to scroll the list box if our selection moves out of the
2934 currently shown items. [Fixes bug #371990]
2936 2008-03-24 Luke Page <luke.a.page@gmail.com>
2938 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
2939 on the control. Also now handles unicode compatibility characters and
2940 stores the unicode compatibility length on the stack. Fixes Bugs
2941 #355198 and #366436.
2943 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2945 * BindingSource..cs: Take into account DataMember when re-creating the
2946 List property, and also create a specific kind of list as needed.
2948 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2950 * ListBindingHelper.cs: Add a new case for GetList () method - when we
2951 get an empty IEnumerable, try to detect whether the datamember is
2952 valid or not for that type, if true, return null, and throw exception
2955 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
2957 * ComboBox.cs: Alt-Down should drop down the list, Esc should
2958 retract it. [Fixes bug #371989]
2960 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
2962 * PropertyGrid.cs: Initialize the sorting button as pushed.
2964 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
2967 - Visually select the PropertyTab.
2968 - Filter Properties by Attributes properly.
2970 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2972 * MenuItem.cs: Remove menu item from parent when disposed.
2975 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2977 * ToolBar.cs: Don't reset layout_type if Dock = None.
2979 2008-03-21 Andreia Gaita <avidigal@novell.com>
2981 * UserControl.cs: Select the first available control when we get focus.
2984 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2986 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2987 the content if we are in edit mode. [Fixes bug #343964]
2989 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
2991 * DataGridViewCell.cs: Fix border painting for column headers.
2993 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2995 * BindingSource.cs: When setting or resetting data source,
2996 use ListBindingHelper.GetList () method, since it will get the list in
2997 case datasource is IListSource.
2999 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3001 * DataGridViewCell.cs: Implement lots more stuffs.
3003 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3005 * PropertyGridView.cs, GridEntry.cs: Implement support for
3006 UITypeEditor.IsDropDownResizable.
3008 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
3010 * DataGridViewCell.cs: Remove unused variables, improve how
3011 several of the property getters work.
3012 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3013 get its size from the parent row/col.
3015 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3017 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
3018 user alters manually the PropertyTabs collection via the
3019 PropertyTabs property.
3021 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3023 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3024 new tests for them to be sure to be compatible with .net.
3026 2008-03-20 Andreia Gaita <avidigal@novell.com>
3028 * WebBrowserBase.cs: Fix attributes, add events
3029 * WebBrowser.cs: Fix Padding signature
3031 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
3033 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
3035 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
3037 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
3038 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3039 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
3040 passes the new suite of tests for it.
3042 2008-03-18 Andreia Gaita <avidigal@novell.com>
3044 * WebBrowser.cs: Add missing attributes, missing Padding and
3045 DefaultSize properties, remove extraneous getters
3047 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3049 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3052 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3054 * ComboBox.cs: Move resetting the selected index to keypress
3055 instead of textchanged. Changing the text programmatically
3056 should not trigger resetting the selected index. Fixes test.
3058 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3060 * ComboBox.cs: When the user types into the textbox, reset
3061 the selected index to -1. [Fixes bug #371672]
3063 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
3065 * FileDialog.cs: Support Control-A for selecting everything
3066 in an OpenFileDialog. [Fixes bug #371564]
3068 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
3070 * DataGridView.cs: When row/column visible/height properties
3071 change, invalidate. Take the NIEX out of InvalidateRow/Column
3072 etc. We don't support them yet, but we can just invalidate
3073 everything until we do support them. (Added MonoTODO). Set
3074 proper control styles.
3075 * DataGridViewRow.cs: Don't call PaintHeader if row headers
3078 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3080 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3082 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3084 * DataGridViewRow.cs: Only paint the white background in
3085 cell bounds, the row bounds extends past the cells if the
3086 grid width isn't as wide as the DGV.
3088 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
3090 * DataGridView*: Completely revamp the drawing to match the
3091 public API. Our grids now look better, and call all the
3092 appropriate methods and event to allow users to override
3093 the painting and do their own.
3095 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3097 * ListBindingHelper.cs: Implement 2.0 GetList methods.
3099 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3101 * DataGridView.cs: Implement BorderStyle.
3103 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3105 * FileDialog.cs: Apply patch from Andy Hume: Any time we
3106 are comparing attributes, make sure we only look at the
3107 one we are interested. These calls were failing if there
3108 were more than one attribute.
3111 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
3113 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3115 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3117 * PageSetupDialog.cs: Stub EnableMetric.
3118 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3119 * PrintPreviewDialog.cs: Add ProcessDialogKey,
3122 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3124 * MonthCalendar.cs: Remove unused variable.
3126 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
3128 * DataGridView*.cs: corcompare stuffs.
3130 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3132 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3133 The savings aren't worth the extra code to fix the optimization.
3136 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3138 * ToolBar.cs: Always call base.Dock in the Dock override so that
3139 Control's layout_type gets reset correctly.
3142 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
3144 * X11Dnd.cs: End DnD operation also for the middle mouse button.
3146 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3148 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3149 at the same time we do explicit ones, because we have to give all
3150 other controls on the container a chance to handle explicit ones
3151 first. If no one has an explicit mnemonic, then we can let the
3152 MenuStrip have a shot at implicit mnemonics.
3153 * MenuStrip.cs: Create an implicit mnemonic function.
3154 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3155 mnemonics for MenuStrips.
3158 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
3160 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3161 DataGridColumnStyle.cs: corcompare stuffs.
3163 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3165 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3166 Details - This is needed after we added the bits to use any available
3167 column also for List and SmallIcon view.
3169 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3171 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3172 at the proper place, not only when changing SelectedIndex and changing
3173 the selection using keys/mouse, as .net does.
3175 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3177 * ControlBindingsCollection.cs: Implement last 2.0
3178 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3179 in the new 2.0 Add methods.
3181 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3183 * ListBox.cs: When calling SelectedIndexCollection.Clear,
3184 return if no items are previously selected - this is done to avoid
3185 firing OnSelectedIndexChanged without need to do so. Also,
3186 when creating handle ensure that the focused item is visible (as
3189 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3191 * ListBox.cs: Rewrote/refactored most of selection code. We require
3192 the following things in selection: a) keep selection sorted (both
3193 indices and items), b) SelectedIndices automatically detect the
3194 selection mode, c) SelectedIndex should be the first selected item
3195 index, d) Need to Focus/adjust scroll bar when selecting a new item,
3196 not only for SelectedIndex, which is specially important in Multi*
3197 selection modes. To achieve this we are moving the selection core to
3198 SelectedIndexCollection and make depend all selection modifications on
3202 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3204 * ToolStrip.cs: Enable implicit mnemonics for drop down
3205 menu strips. [Fixes part of bug #367692]
3207 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3209 corcompare - fix parameter names [stragglers].
3210 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3211 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3214 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3216 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3217 was a mnemonic pressed as well as Alt. Also, if nothing handles a
3218 mnemonic, let the ToolStripManager have it even if it doesn't
3219 have a matching mnemonic.
3222 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3224 corcompare - fix warning about implicit implementation
3225 * ToolStrip.cs: Add IToolStripData interface.
3226 * IToolStripData.cs: Add.
3228 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
3230 corcompare - fix warning about implicit implementation
3231 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3234 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3236 corcompare - fix parameter names [N-Z].
3237 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3238 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3239 PropertyManager.cs, RichTextBox.cs,
3240 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3241 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3242 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3243 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3244 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3245 ToolStripContentPanel.cs, ToolStripDropDown.cs,
3246 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3247 ToolStripPanel.cs, ToolStripSeparator.cs,
3248 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3249 UICuesEventHandler.cs, UpDownBase.cs.
3251 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3253 corcompare - fix parameter names [G-M].
3254 GridColumnStylesCollection.cs, GridItemCollection.cs,
3255 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3256 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3257 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3258 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3259 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3261 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
3263 corcompare - fix parameter names [A-F].
3264 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3265 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3266 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3267 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3268 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3269 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3270 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3272 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3274 * GridEntry.cs: Do not convert not only if the types match,
3275 but also if the property type is assigneable from the value's
3279 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
3281 * PropertyGridView.cs:
3282 - Subscribe to the listbox only once and not everytime.
3283 - Update the textbox even if SetValue fails.
3284 - Close the listbox before calling TrySetValue just in case.
3287 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
3289 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3291 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3293 * ListView.cs: Implement support for custom column width based on
3294 Columns collection (we were previously using this collection only
3298 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3300 * ListViewItem.cs: For Tile view, always set bounds for the first
3301 subitem (which is the main one), and also don't let Width be larger
3302 than ListView.TileSize.Width. Improve code readibility also.
3303 * ThemeWin32Classic.cs: When painting the ListViewItem instances
3304 in Tile view, _always_ use the NoWrap flag.
3307 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
3309 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
3311 * GridEntry.cs: For MS compitability make all child properties
3312 readonly if the parent is readonly. Ugh.
3313 [Fixes bug #365945 and #365944]
3315 2008-02-29 Andreia Gaita <avidigal@novell.com>
3317 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3318 relative to the history
3320 2008-02-29 Andreia Gaita <avidigal@novell.com>
3322 * HtmlElement.cs: More handlers for mouse and key events
3324 2008-02-28 Andreia Gaita <avidigal@novell.com>
3326 * WebBrowserBase.cs: MouseClick sig changed.
3327 * HtmlHistory.cs: Implement history navigation
3328 * HtmlElement.cs: Add event handlers, and connect them.
3330 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
3333 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3334 so that DisplayNameAttribute doesn't get ignored.
3335 - Check for ParenthesizeNameAttribute and parenthesize the Label.
3336 - Add support for PasswordPropertyTextAttribute
3337 * PropertyGridView.cs: Check if an entry is a password.
3338 [Fixes bugs #365589, #365586, #365588]
3340 2008-02-28 Andreia Gaita <avidigal@novell.com>
3342 * PropertyGridView.cs: Revert the message filtering change, as we
3343 need it to block after all. Remove block parameter, unnecessary.
3345 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
3347 * UserControl.cs: Better implementation of GetPreferredSize.
3348 First step to fixing bug #361441.
3350 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3352 * Binding.cs: Actually implement data binding support for
3353 classes implementing IBindableComponent.
3354 * ControlBindingsCollection.cs: Likewise.
3356 2008-02-26 Andreia Gaita <avidigal@novell.com>
3358 * PropertyGridView.cs: Use a message filter to check when to
3361 2008-02-26 Andreia Gaita <avidigal@novell.com>
3363 * Application.cs: Change the message_filters loop so a filter
3364 can be removed while looping.
3366 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
3368 * GridEntry.cs: Optimization in ToggleValue so that it caches
3370 * PropertyGridView.cs: An optimization so that the property isn't
3371 re-read twice for each StandardValue added to the drop-down menu.
3372 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3376 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
3378 * Application.cs: Apply patch from Justin Cherniak to match
3379 MS better for ProductName, ProductVersion, and CompanyName.
3382 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3384 * Binding.cs: Actually implement 2.0 NullValue property. Also
3385 when changing the formatting related properties, only update the state
3386 if formatting_enabled is true (we don't mind otherwise).
3388 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
3390 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3393 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3395 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
3396 of GetType on the current value as it uses reflection to
3397 determine the type. This fixes the case where the new value is
3400 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
3402 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3405 2008-02-24 Luke Page <luke.a.page@gmail.com>
3407 * Line.cs, TextControl.cs: Implement offset x and y so that a
3408 document doesn't have to begin at (0,0) on the viewpoint.
3409 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3410 bars and switches the text alignment (and therefore is now
3411 implemented for textbox). Fixes #321383.
3413 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3415 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3416 properties. Also when changing FormattingEnabled update the control
3417 property -as .Net does-.
3419 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3421 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3422 * Binding.cs: Add stubs for the overloads of the Add method in
3425 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3427 * Binding.cs: PullData () returns a false value if we got an exception.
3428 Also when validating the control and we get an error, instead of
3429 setting the value of the previous one, cancel the event (tested in 1.1
3432 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
3434 * TreeView.cs: Make selected_node and highlighted_node internal.
3435 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3436 to null when Nodes.Clear is called.
3439 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3441 * FontDialog.cs: Ensure that when the Font is set in code,
3442 all the gui pieces are updated accordingly.
3445 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3447 * TextRenderer.cs: Respect proposed size for MeasureString.
3448 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3449 autosize, use a proposed width to force wrapping for long text.
3452 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3454 * TreeView.cs: Factor in checkboxes = false and state images in
3455 to HitTest. [Fixes bug #363360]
3457 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3459 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3460 when drawing the selected range.
3463 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
3465 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3466 ResizeRedraw control styles.
3469 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3471 * TreeView.cs: StateImages are basically custom checkboxes, so
3472 factor their size the same as real checkboxes when determining
3476 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3478 * MessageBox.cs: Make the message box wider if the form caption
3479 is longer than the text in the form.
3482 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3484 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3486 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3488 * TreeNode.cs: Guard against an NRE when the parent's
3489 StateImageList hasn't been set.
3492 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3494 * SplitContainer.cs: Add SupportsTransparentBackColor and
3495 OptimizedDoubleBuffering control styles.
3498 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3500 * Application.cs: For the app data paths and the registry key paths,
3501 ensure they are created before returning them to the user.
3504 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3506 * Application.cs: Guard against an NRE in CompanyName and
3509 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
3511 * Application.cs: For CompanyName, ProductName, and ProductVersion,
3512 make sure we handle all three cases correctly: attribute is present,
3513 attribute is present but is an empty string, and attribute is not
3516 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
3518 * PropertyGridView.cs:
3519 - Fix a NRE that caused a test failure
3520 - Another performance improvement - cache the standard values
3523 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3525 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3528 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
3530 * PropertyGridView.cs: Fix a big performance bug.
3532 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3534 * SelectionRange.cs: Apply patch from Andy Hume to make
3535 constructor behavior more accurate. [Fixes bug #362117]
3537 2008-02-19 Andreia Gaita <avidigal@novell.com>
3539 * Control.cs: Added a new flag is_disposing to track if the
3540 window is currently in the process of being disposed of.
3541 This is used so that, when firing visibility changes triggered
3542 by unparenting controls during Dispose, the control doesn't
3545 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
3547 * ComboBox.cs: Set height to preferred height when the handle
3548 is created. [Fixes bug #360862]
3550 2008-02-18 Andreia Gaita <avidigal@novell.com>
3552 * XplatUIX11.cs: Create FosterParent with border width at 0.
3553 With the previous value of 4, everytime a control got reparented
3554 from parent = null, it's location would be shifted right and
3555 down by 4, since these coordinates would be offset by the
3556 FosterParent's border width.
3558 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
3560 * Control.cs: During diposing firstly remove ourselfes from
3561 the parent and *then* destroy our handle, because removing
3562 ourselfes from the parent controls collection causes
3563 VisibilityChange, etc events, which require a handle and end
3564 up recreating the control.
3566 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
3568 * GridEntry.cs: Set expanded state before notifying that the
3569 expansion has taken place.
3570 * PropertyGridView.cs:
3571 - Set the propertygridtextbox text to the selected
3572 StandardValue before proceeding to setting it.
3573 - Scrolling bugfixes.
3575 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3578 - Fix ValueText to not return null.
3579 - Fix conversion error reporting to actually happen.
3580 * PropertyGridView.cs: Set entry only if the text has changed.
3583 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3586 - Fix handling of a null current value.
3587 - Swallow editor exceptions.
3590 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
3592 * PropertyGrid.cs: Clear current items first thing before
3593 repopulating subitems.
3595 - Handle null StandardValuesCollection.
3596 - Mark as not editable if there is no PropertyDescriptor and
3597 if the Converter cannot convert from string.
3598 [Part of fix for bugs #360666 and #358332]
3600 2008-02-15 Luke Page <luke.a.page@gmail.com>
3601 * MaskedTextBox.cs: Now skips non editable characters after a
3602 character has been entered and we are progressing to the next
3603 position in the MaskedTextBox.
3605 2008-02-15 Luke Page <luke.a.page@gmail.com>
3606 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3607 that it changes the selection rather than just repositioning the
3608 cursor. Fixes Bug #360873.
3610 2008-02-15 Luke Page <luke.a.page@gmail.com>
3611 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3612 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3613 correctly. See #359330
3615 2008-02-15 Andreia Gaita <avidigal@novell.com>
3617 * XplatUIX11.cs: If the handle is null when posting a message, use the
3618 current thread queue to post instead. Fixes #332409
3620 * SendKeys.cs: Slight optimization
3622 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
3624 * PropertyGrid.cs, PropertyGridView.cs:
3625 Fix multiple scrolling and sizing issues.
3628 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3630 * PropertyGridView.cs: Ensure that drop down editors are shown
3631 in the WorkingArea of the screen.
3634 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
3636 * GridEntry.cs: Fail silently when UITypeEditor is missing.
3639 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3641 * Binding.cs: Implement 2.0 DataSourceNullValue property.
3643 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3645 * PropertyGridView.cs:
3646 - Clear the controls in the drop down form after it is hidden.
3647 - Fix Width sizing of the dropdown editors to match MSFT.
3649 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3651 * PropertyGridView.cs:
3652 - Fix height for drawing the grid entry
3653 text value, so that it clips multiline text properly.
3654 - Fix unfocusing to match MSFT.
3656 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
3658 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3659 Fixes a bug where on repopulation after value changed items become
3662 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3664 * Binding.cs: For the 2.0 profile, look for a
3665 'PropertyChanged' event in the target control, and add checks for
3666 DataSourceUpdateMode property to change -or not- the data source
3667 from validation/control property change.
3669 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
3671 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3672 not compare struct with null in 2.0).
3674 2008-02-10 Luke Page <luke.a.page@gmail.com>
3676 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3677 updates the provider and if not using a provider, uses the internal document
3678 class implementation of password char. Also when showing text, uses display string
3679 from the provider, instead of the actual text.
3681 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3683 * Binding.cs: Ooooops, forgot to take into account the data_source
3684 and binding_member_info null case (it was breaking the Binding tests).
3686 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688 * Binding.cs: Implement support for data source changes exposed by
3689 'PropertyNameChanged' events, and update the control property as
3692 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3694 * Binding.cs: Implement 2.0 WriteValue method.
3696 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3698 Commit patch from James Purcell for better AutoScale implementation:
3700 * ScaleControl should call GetScaledBounds with the control's total size rather
3701 than client size. GetScaledBounds should handle ignoring the borders in its
3702 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
3703 (for the most part they just call the base code now since that is fixed).
3704 * Added ScaleChildrenInternal to allow controls to disable scaling of children
3705 without having to override ScaleChildren (since none of .NET's controls do).
3706 This is required for most controls in Mono that have scrollbars to prevent the
3707 scrollbars from being moved/resized.
3708 * Nested ContainerControls can have a different scale mode than their parent.
3709 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3710 designer produce different results both of which look incorrect).
3711 * Default AutoScaleMode for ContainerControl should be Inherit.
3712 * Simplified workaround for ComboBox scaling issue.
3713 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
3714 1.0 style auto scaling should scale the whole control's size instead of
3715 ignoring the borders (except for Form) and the rounding is done differently to
3716 preserve control alignment.
3717 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3719 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3720 * CurrentAutoScaleDimensions should round the estimated character width instead
3722 * ListBox's GetScaledBounds should always use the height it was set to instead
3723 of the height that was passed in. This prevents rounding errors from
3724 accumulating quickly with IntegralHeight.
3727 2008-02-08 Andreia Gaita <avidigal@novell.com>
3729 * Form.cs: Add a null check (darn it).
3731 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3733 * MdiClient.cs: Make sure the requesting form actually owns the
3734 control menu items before removing them. Also, use
3735 Suspend/ResumeLayout when adding or removing items so we only
3739 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
3741 * Control.cs: Guard against an NRE in ShowFocusCues.
3744 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3746 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3747 property, as well as stubbing DataSourceUpdateMode.
3749 2008-02-08 Andreia Gaita <avidigal@novell.com>
3751 * Form.cs: When closing forms, get focus back to the active control of the
3752 active form. [Fixes #341314, corner case]
3754 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3756 * MdiClient.cs: After we move the scrollbars, invalidate the NC
3757 area, so any old scrollbar artifacts are cleaned up.
3760 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3762 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3763 for our menus, display that control box menu instead of the 1.1
3766 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3768 * MdiControlStrip.cs: Add property to access the mdi form tied to
3770 * MdiClient.cs: Be smarter about removing and adding toolstripitems
3771 to the implicitly merged menu. Every time we clicked the form, items
3772 were getting removed and the re-added, causing the form to jump around
3773 as the menu resized.
3775 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3777 * MdiClient.cs: Make sure the NormalBounds always gets set. It
3778 was being reset by the implicit menu merge for menustrips.
3781 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3783 * Form.cs: Don't do the previous change when WindowState = Normal,
3784 or it messes up where the window is placed. Fixes test failure.
3786 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
3788 * Form.cs: When becoming visible, if we are an MDI child, call
3789 SetWindowState with a dummy old_state so that changes will actually
3791 [Fixes the 2nd part of bug #325473]
3793 2008-02-07 Andreia Gaita <avidigal@novell.com>
3795 * Control.cs: Reset properties to their pre parent-change values in case
3796 the new parent == null (in which case we're basically removing the control,
3797 and don't want any events fired due to fake property changes)
3800 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
3802 * PropertyGridView.cs:
3803 - Refactor SetValue to allow setting the value
3804 when a custom editor is used, but the entry is not editable.
3805 - Remove the custom editor control on CloseDropDown.
3808 2008-02-06 Andreia Gaita <avidigal@novell.com>
3810 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3811 reflection only on 1.1, this property is public on system.drawing on 2.0.
3814 2008-02-06 Andreia Gaita <avidigal@novell.com>
3816 * WebBrowser.cs: Do a normal page refresh by default.
3818 2008-02-05 Andreia Gaita <avidigal@novell.com>
3820 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
3821 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3822 platforms. Fixes #359036
3824 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
3825 platform-specific flags.
3827 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3829 * Binding.cs: Add 2.0 BindableComponent property - just return control
3832 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
3834 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3835 Jonathan for this patch. Fixes #358442.
3837 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
3839 * Form.cs: If we change the active MDI child form, let the others
3840 know they need to repaint their title bar so it will appear inactive.
3841 [Fixes part 1 of bug #325473]
3843 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
3845 * PropertyGridView.cs: Do not trucate custom editors' width
3846 and align them to the left.
3847 [Fixes #358353 and #358349]
3849 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3851 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3852 Also fix the arguments passed to CollectionChangeEventArgs in the
3855 2008-02-04 Geoff Norton <gnorton@novell.com>
3857 * Hwnd.cs: The conversion to Quartz coordinates happens in
3858 System.Drawing. Removing this translation from here.
3860 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
3862 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3863 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3864 GridItemCollection.cs:
3865 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3867 2008-02-04 Geoff Norton <gnorton@novell.com>
3869 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
3870 SYSKEYUP if any other key has been pressed in the mean time.
3873 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3875 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3876 when the item in current position is different than 0. Also, save the
3877 item index in the beginning of the operation, instead of getting the
3878 index of the item when the event is actually performed. Lastly clean
3879 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3883 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3885 * Form.cs: Alt-Minus for MDI children system menu should work
3886 with both the minus keys on the keyboard.
3889 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3891 * Control.cs: Don't invalidate on region change. The WM should
3892 take care of this automagically. Keeps us out of an infinite
3893 paint loop if someone changes the Region in the OnPaint.
3896 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
3898 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3900 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3902 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3903 down the MonthCalendar only on F4, not Alt+F4.
3904 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3907 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3909 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3910 if its part of a DateTimePicker, else, use the back color.
3913 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
3915 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
3918 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3920 * CurrencyManager.cs: When we get a ListChanged event from our source,
3921 always fire our own ListChanged event, as .Net does.
3923 2008-02-03 Luke Page <luke.a.page@gmail.com>
3925 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
3928 2008-02-03 Luke Page <luke.a.page@gmail.com>
3930 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
3931 property. Removed if for richtext property that was always true.
3932 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
3934 2008-02-03 Luke Page <luke.a.page@gmail.com>
3936 * TextBoxBase.cs - commited patch from James Purcell that
3937 correctly sets the FixedHeight control style when the MultiLine
3938 property is changed on a TextBox control. Fixes bug 358229.
3940 2008-02-02 Luke Page <luke.a.page@gmail.com>
3942 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
3943 Fixes bug 351938 - caret is positioned correctly when drawn
3944 and when calculating textual position of caret, no longer
3945 has a NRE in certain situations.
3947 2008-02-01 Geoff Norton <gnorton@novell.com>
3949 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
3950 get that region removed from the paint event.
3951 * XplatUICarbon.cs: Remove the window mapping after disposing of
3952 window. Prevents a crash with handle reuse. Optimize exposes
3953 only onto visible windows (rare; but possible).
3955 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3957 * UpDownBase.cs: Make sure the internal textbox calls the base's
3958 OnMouseDown and OnMouseUp so the textbox will function correctly.
3959 There were notes saying it doesn't chain up, but its an internal
3960 class, so our implementation may differ.
3963 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3965 * ListBox.cs: Fix a logic error and don't process MouseDown
3966 for mouse buttons other than Left.
3968 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3970 * Control.cs: Remove HeightInternal.
3971 * ListBox.cs: Commit patch from James Purcell that correctly
3972 calculates heights for ListBoxen.
3975 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3977 * Label.cs: Apply patch from James Purcell that corrects the
3978 signature of the AutoSize property.
3981 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
3983 * ListBox.cs: Don't throw [Mouse]Click events for buttons
3984 other than the left mouse button.
3986 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
3988 * Control.cs: Remove my awesome optimization as it caused some
3989 regressions with control ordering. :(
3992 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
3994 * PropertyGridView.cs: Fix a NRE on double click when there is no
3997 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3999 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4001 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
4003 * ListBox.cs: Call MouseClick and MouseDoubleClick.
4006 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4008 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4009 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4010 instead of Hwnd.bmp_g.
4012 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4014 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4015 Use the Hwnd one instead.
4017 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4019 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4021 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4023 * Form.cs: corcompare for RestoreBounds.
4025 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4027 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
4029 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
4031 * Form.cs: Handle Alt-Minus for MDI children forms.
4032 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
4033 Add mnemonics to the control menu.
4036 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4038 * Binding.cs: Initial implementation bits of FormattingEnabled
4039 property and BindingComplete event (2.0).
4040 * BindingCompleteEventArgs.cs: Internal methods for setting error text
4043 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4045 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
4046 table.Location. [Fixes bug #354672]
4048 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
4050 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4051 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
4053 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4055 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4056 of doing all the re-bound work, just invalidate and call SetControlText
4057 to set the updated text of selected item to our textbox.
4060 2008-01-28 Andreia Gaita <avidigal@novell.com>
4062 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
4063 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4064 missing properties and methods. Add Load, Unload, Error, GotFocus,
4065 LostFocus, Resize, Scroll events (only load and unload are connected)
4067 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
4069 * AccessibleObject.cs: Modified argument names to match MS.
4070 * Button.cs: Modified argument names to match MS.
4071 * BindingContext.cs: Modified argument names to match MS.
4072 * BindingMemberInfo.cs: Modified argument names to match MS.
4073 * ButtonBase.cs: Modified argument names to match MS.
4074 * ComboBox.cs: Modified argument names to match MS.
4075 * Control.cs: Modified argument names to match MS.
4076 * CheckedListBox.cs: Modified argument names to match MS.
4077 * CommonDialog.cs: Modified argument names to match MS.
4078 * DataGrid.cs: Modified argument names to match MS.
4079 * CursorConverter.cs: Modified argument names to match MS.
4080 * ControlPaint.cs: Modified argument names to match MS.
4081 * CheckBox.cs: Modified argument names to match MS.
4082 * ControlBindingsCollection.cs: Modified argument names to match MS.
4083 * BindingSource.cs: Modified argument names to match MS.
4084 * DataFormats.cs: Modified argument names to match MS.
4085 * ContainerControl.cs: Modified argument names to match MS.
4086 * CurrencyManager.cs: Modified argument names to match MS.
4087 * Application.cs: Modified argument names to match MS.
4088 * ContextMenuStrip.cs: Modified argument names to match MS.
4089 * ContextMenu.cs: Modified argument names to match MS.
4090 * BindingManagerBase.cs: Modified argument names to match MS.
4091 * WindowsFormsSection.cs: Fixed line ending.
4093 2008-01-27 Andreia Gaita <avidigal@novell.com>
4095 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4096 detecting that the dropdown toolwindow is hidden. EndLoop outside the
4099 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
4101 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4102 MS. Code formatting.
4104 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4106 * Binding.cs: Don't avoid the Format event if the control
4107 property type is object. Also, if the value retrieved by
4108 the data source is null _and_ the control proeprty type
4109 is object, return Convert.DBNull (match .Net).
4110 Fixes part of #324286.
4112 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4114 * ListControl.cs: Since we are getting two BinginContextChanged events
4115 for the same binding context instance (when the control is added to
4116 form, and when the form is actually shown), take it into account only the
4117 first time for a given binding context instance.
4118 Fixes part of #324286.
4120 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4122 * PropertryGridView.cs: Ops.
4124 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
4126 * PropertyGridView.cs: Close dropdown form if the owner form is
4130 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
4132 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
4133 RootGridEntry.cs, CategoryGridEntry.cs:
4134 PropertyGrid rewrite.
4135 - Rewrite all of the control logic in PropertyGrid.
4136 - Rewrite all of the ComponentModel logic in GridEntry.
4137 - Rewrite all UI work in PropertyGridView.
4138 - Many bugfixes, etc.
4140 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
4142 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4143 when all contained controls are autosize or dock-fill. Also take into
4144 account when the total percentage of column/row sizes is not 100%.
4147 2008-01-24 Andreia Gaita <avidigal@novell.com>
4150 - Save a reference to the IDocument in the instance and
4151 use that one instead of going to WebHost.Document; the document that the
4152 WebHost returns might not be the right one (in case of frames).
4153 - Use the hashcode returned from the IDocument interface.
4154 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
4155 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
4156 LinkColor, Url, VisitedColor, Window
4159 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
4160 set_Attribute, NextSibling, Parent, TagName, AppendChild,
4161 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4162 SetAttribute, Equals, equality operators.
4163 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
4164 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
4166 * HtmlElementCollection.cs: Change implementation to use a generic
4167 collection. Implemented Enumerator and CopyTo
4169 * HtmlHistory.cs: Add constructor, no implementation yet.
4171 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4172 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
4173 Equals, equality operators.
4175 * HtmlWindowCollection.cs: Implemented.
4177 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4178 has been deprecated).
4180 * WebBrowserBase.cs: Use Completed event to track document loading
4181 (Navigated has been deprecated)
4183 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
4185 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
4186 level MenuItems do not respect tabs.
4189 2008-01-23 Geoff Norton <gnorton@novell.com>
4191 * XplatUICarbon.cs: Ensure that windows are created in their initial
4192 FormWindowState. Finished fixing Fullscreen windows on Carbon
4194 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4196 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4197 be used as grab_control. Also save status of capture before show ContextMenu
4198 and restore it after close.
4200 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4202 * Control.cs: Internal FindRootParent method added to return high control
4205 2008-01-23 Geoff Norton <gnorton@novell.com>
4207 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4208 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4209 it work again. Handle HITTEST events.
4211 2008-01-23 Geoff Norton <gnorton@novell.com>
4213 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
4214 a crash in certain cases. Support for fullscreen windows in certain cases.
4216 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
4218 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4221 2008-01-23 Geoff Norton <gnorton@novell.com>
4223 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4225 2008-01-23 Geoff Norton <gnorton@novell.com>
4227 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
4229 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4231 * SplitContainer.cs: Remove unused declarations.
4232 * Binding.cs: Remove unused declarations.
4234 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4236 * Form.cs: Remove unused declaration of 'active' in Activate method.
4237 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
4238 prevent compilation warnings.
4239 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4240 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4241 * Bindings.cs: Remove unused formatting_enabled declaration.
4242 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4244 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
4246 * PropertyGridView.cs: Remove usused 'ex' declaration.
4247 * DataGridView.cs: Remove unused declarations.
4249 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4251 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4253 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
4254 to Control class, it makes possible to grab menu to controls that can't
4255 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4256 WmMouseMove removed since it was used only to track menu events.
4259 - Moved all active_tracker stuff from Form.
4260 - ProcessActiveTracker added to prevent code duplicity, now mouse events
4261 can call this method instead of reimplement all necessary code handle for
4263 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4267 - Remove special handle to ToolStripOverflow, now we can grab menu to
4268 controls that can't reach Form using parent tree.
4269 - Change type of grab_control from Form to Control.
4271 2008-01-22 Geoff Norton <gnorton@novell.com>
4273 * TextBoxBase.cs: Split up the sizing of controls and placing of
4274 controls. Fixes a bug where scrollbars in Reflector could be sized
4275 wrong and have non-working thumbers.
4277 2008-01-23 Geoff Norton <gnorton@novell.com>
4279 * XplatUI.cs: Refactor environment variables to default support to the
4280 Carbon driver on the Mac.
4282 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
4284 * Label.cs: Uses new LabelPainter for drawing operations.
4285 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4286 * Theme.cs: DrawLabel and LabelDefaultSize removed.
4288 2008-01-22 Geoff Norton <gnorton@novell.com>
4290 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4292 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4294 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4295 through the normal flat button code and don't draw the checkbox glyph.
4296 * Theme.cs: Button->ButtonBase signature change.
4299 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4301 * LinkLabel.cs: Uses new class LinkLabelPainter.
4303 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
4305 * MessageBox.cs: Adjust right border space, we don't need to add
4306 "space_border*2" two times.
4308 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4310 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4311 becomes a wrapper around Padding.
4312 [Fixes a part of bug #354676]
4314 2008-01-22 Geoff Norton <gnorton@novell.com>
4316 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
4317 acquired. Also ensure the buffer is large enough to grab the header
4318 we need on linux boxes.
4320 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
4322 * Control.cs: Implement a custom enumerator so people can delete
4323 from the Controls collection while in a foreach.
4326 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4328 * PropertyGridView.cs: Fix focusing behavior:
4329 - Tab should focus the grid text box.
4330 - Clicking on the labels shouldn't focus the grid text box.
4332 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4334 * PropertyGridView.cs: IsValueTypeGridItem should return true
4337 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
4339 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4340 - Renamed GridEntry.SelectedObjects to TargetObjects to better
4341 reflect the property name role.
4342 - PropertyGrid.GetTarget is not required as the target is known
4344 - Setting values will handle value types as a special case now and
4345 populate them up in the chain.
4348 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
4350 * Hwnd.cs: Create a public property for the Graphics we keep around.
4352 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4354 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
4355 when the current object selection changes.
4356 Fixes failing test SelectedObject_Null2.B5.
4358 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
4360 * PropertyGrid.cs: Process Browsable properties with
4361 DesignerSerializationVisibilityAttribute.Content as being expandable.
4362 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4363 will not be expandable. We should be nested components-friendly now.
4365 2008-01-21 Andreia Gaita <avidigal@novell.com>
4367 * WebBrowserBase.cs: Check if control was loaded properly,
4368 don't bind if it wasn't.
4370 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
4371 GetElementFromPoint, equality operators, OpenNew, Write.
4372 Remove extra set_Body
4374 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4376 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4377 that makes our AutoScale* stuff more tolerant to different orders
4378 of being set. [Fixes bug #354669]
4380 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4382 * PropertyGridView.cs, PropertyGridTextBox.cs:
4383 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4384 [Fixes #339005 and #348209]
4386 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
4388 * PropertyGridView.cs: Hide the grid text box before adjusting it
4389 for the newly selected GridItem.
4392 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
4394 * Form.cs: Give MDI children the opportunity to cancel the parent form
4395 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
4396 properly for both the parent and child.
4397 * Application.cs: Signature of internal method changed, pass the previous
4401 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4403 * PropertyGridView.cs: Set the property value only if it has changed.
4406 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4408 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4409 If the mouse hasn't actually moved, ignore these messages so the currently
4410 highlighted menuitem isn't reset to the one under the mouse.
4413 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
4415 * PropertyGridView.cs: When the property changes Invalidate the GridItem
4416 in order for the properties with UITypeEditor.GetPaintValueSupported == true
4417 to reflect the change visually.
4420 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
4422 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4423 to 2.0 button drawing.
4424 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
4425 the button text is tall enough for one line. LineLimit says it will
4426 always draw at least one line, but it is a lie.
4429 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
4431 * XplatUIStructs.cs, X11Keyboard.cs :
4432 added some more VK_* keys to be handled.
4434 2008-01-16 Andreia Gaita <avidigal@novell.com>
4436 * Control.cs: Check if there is a container before setting or getting
4437 the validation flag.
4439 2008-01-16 Andreia Gaita <avidigal@novell.com>
4441 * ContainerControl.cs: Add flag to track if a control cancels validation,
4442 so we don't fire click events.
4445 - (HandleClick) Check if validation was cancelled before firing the click
4446 events (doubleclicks are fired, but not clicks)
4447 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
4448 ContainerControl.set_ActiveControl, but in the case of non-selectable
4449 controls, like a Label, activecontrol is not set.
4451 * ButtonBase.cs: Only fire clicks if validation passes.
4455 2008-01-16 Geoff Norton <gnorton@novell.com>
4457 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4460 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
4462 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4463 SelectedPath, just display the default dialog instead of crashing.
4466 2008-01-16 Geoff Norton <gnorton@novell.com>
4468 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
4469 AddExpose instead of trusting apples compositing manager which doesn't
4470 work for our use case. Remove some dead code causing warnings and
4471 redecorate some other code to prevent warnings.
4473 2008-01-16 Geoff Norton <gnorton@novell.com>
4475 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
4476 carbon signals us to redraw. Fixes another portion of the flickering bug
4478 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4480 * Form.cs: Prevent the MdiParent property to be set when value is the same
4481 as value already set. Fixes bug #328019.
4483 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4485 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
4486 it prevents NRE when closing mdi child windows. Fixes bug #325211.
4488 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4490 * InternalWindowManager.cs: Invalidade close button after mouse up when
4491 mdi form is prevented to close.
4493 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
4495 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4496 thanks to Andy Hume. Fixes bug #325433.
4498 2008-01-16 Andreia Gaita <avidigal@novell.com>
4500 * LinkLabel.cs: Reset focused_index when resellecting the control.
4503 2008-01-15 Geoff Norton <gnorton@novell.com>
4505 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
4508 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4510 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4513 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
4515 * ContainerControl.cs: Setting AutoScaleMode to anything should set
4516 Form.AutoScale to false.
4517 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4518 AutoScaleBaseSize should be changed on Font change unless it has been
4522 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4524 * MenuAPI.cs: On instance of MenuTracker check if source control is
4525 ToolStripOverflow and use properly method to find form.
4528 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
4530 [Fixes bug #323241 Transparent toolbar support]
4532 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4535 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4536 defined in control style to mimic win32 behavior.
4538 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
4539 it will be transparent.
4541 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4543 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4544 CreateParams for ToolBar controls.
4546 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4548 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4549 FixedToolWindow, SizeableToolWindow, or None for border styles have
4550 different minimum sizes than regular forms. Implemented to fix
4551 regression in PDN with toolbox being too wide.
4553 2008-01-14 Andreia Gaita <avidigal@novell.com>
4555 * HtmlElementCollection.cs: Implemented
4557 * HtmlElement.cs: Implemented:
4565 * HtmlDocument.cs: Implemented GetElementsByTagName.
4567 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4569 * Screen.cs: Stub BitsPerPixel to always return 32.
4571 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4573 * Form.cs: Implement RestoreBounds.
4575 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
4577 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4578 Sebastien and his fabulous magical problem-finding machine:
4579 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
4580 respect the value set.
4582 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
4584 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4585 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
4587 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4589 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4590 messages (to match .Net), we need to remove the capture ourselves.
4592 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
4594 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4595 will process the message and close our window.
4598 2008-01-10 Geoff Norton <gnorton@novell.com>
4600 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
4601 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
4604 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4606 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
4609 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4611 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
4612 Linux doesn't care, having a minimum matches MS and keeps the window
4613 from becoming too small to use window decorations.
4616 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4618 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4619 ShowFocusCues. Make focus rectangles fit the text instead of the whole
4620 control. [Fixes bug #325419]
4622 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
4624 * ComboBox.cs: Guard against an NRE if the user open a new form from a
4625 SelectedIndexChanged event. This closes the combobox dropdown, and we
4626 were trying to dispose it. [Fixes bug #352830]
4628 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4630 * Control.cs, Form.cs: Implement the necessary semantics for
4631 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
4632 to determine if a focus rectangle should be drawn.
4633 * PropertyGrid.cs: Fix property visibility to match override.
4634 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4636 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
4638 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4641 2008-01-09 Geoff Norton <gnorton@novell.com>
4643 * XplatUICarbon.cs: Scroll windows in the correct direction.
4645 2008-01-09 Geoff Norton <gnorton@novell.com>
4647 * XplatUICarbon.cs: Track all created utility windows so we can hide them
4648 when the app is deactivated or spaces is enabled.
4650 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4652 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4653 extra separation pixel for the label rect origin if SmallImageList is
4654 null, and thus we don't need that separation between icon and label
4656 Patch by Ernesto Carrea.
4659 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
4661 * StatusStrip.cs: Invalidate after completing a layout. The base
4662 OnLayout does this, but we don't call the base.
4663 * ToolStripItem.cs: Revert the previous change to invalidate after
4665 [Fixes bug #351341 better.]
4667 2008-01-07 Geoff Norton <gnorton@novell.com>
4669 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
4670 not a notification to exit the application. Listen for WM_QUIT
4673 2008-01-07 Andreia Gaita <avidigal@novell.com>
4675 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4677 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
4679 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4680 so it can repaint at the correct location.
4683 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4685 * ListControl.cs: SelectedValue should return a null value if
4686 SelectedIndex is -1. Also, when setting it, it should throw an
4687 ArgumentNullException if the value is null, as well as taking
4688 into account the String.Empty value, instead of ignoring it (we have
4689 tests for that now).
4690 Fixes part of #324286.
4692 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
4694 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4695 SelectionStart is updated after pressing enter. Fixes bug #351918.
4697 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4699 * TextControl.cs: Revert a piece r92316 that prevented the fix
4700 from working when there were multiple tags in the text box.
4703 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4705 * TextControl.cs: Apply patch from Luke Page that prevents an
4706 NRE when determining the beginning of a paragraph.
4709 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4711 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4712 caret gets moved with clicking away from a selected block of
4713 text. Fixes bug #351885.
4715 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4717 * TextControl.cs: Apply patch from Luke Page that takes line
4718 alignment into account for mouse selection, so that center and
4719 right aligned text can be selected.
4722 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4724 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4725 issues after loading an RTF file by using the correct line feeds.
4728 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
4730 * TextControl.cs: When deleting multiple line selections, we need
4731 to invalidate every line beginning at the first line of the selection.
4732 Patch from Luke Page fixes bug #351791.
4734 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4736 * ListControl.cs: When getting a CurrencyManager.PositionChanged
4737 event, don't set SelectedIndex if the number of items is 1. This is
4738 because, for the first item, PositionChanged is fired _before_
4739 ItemChanged (the place where we actually populate the items), and
4740 leave us in a temporary invalid state (since items collection is
4744 2008-01-04 Geoff Norton <gnorton@novell.com>
4746 * XplatUICarbon.cs: Create native toolwindows instead of
4747 the managed drawing ones.
4749 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4751 * LineTag.cs: If the line doesn't have any characters, return
4752 0 for GetCharIndex. Fixes an AOORE exception after certain
4753 caret movements. Fixes bug #351683. Patch by Luke Page.
4755 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4757 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4758 is hit when there is selected text, only the selected text gets
4759 deleted, not the character in front of the selection as well.
4762 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4764 * ComboBox.cs: When the values are displayed, calculate the
4765 ComboListBox scrollbar's LargeChange based on the visible area's
4766 height and the actuall ItemHeight, instead of calculating it
4767 based on MaxDropItems value, since it's not used by our _current_
4771 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4773 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4774 Patch from Luke Page that fixes issues with font colors and styles
4775 not showing up in a readonly RichTextBox. Fixes bug #324354.
4777 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
4779 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4780 from Luke Page. This one fixes bug #349926.
4782 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4784 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4785 an item in the IBindingList source changes with
4786 ListChangedType.ItemAdded. Ignore for now firing the event for other
4787 changes, since we want to have tests for those cases as well.
4789 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4791 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4794 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4796 * TextBoxTextRenderer.cs: Implement a cache for measuring each
4797 character. This is effective because the typical usage of a
4798 TextBox is with a limited amount of fonts and characters, and
4799 the current implementation of TextBox measures everything one
4800 character at a time. Another second or two speedup for bug #347238.
4802 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4804 * Control.cs: Rewrite the Font getter to only query the parent's
4805 Font property once instead of twice. Since this operation is
4806 recursive, the queries were growing exponentially as the control
4807 tree got deeper. Another second or two speedup for bug #347238.
4809 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
4811 * Control.cs: Avoid setting a parent (and more importantly, updating
4812 the zorder of all its children) if the parent is already correct in
4813 WmShowWindow. Decreases the startup time of the test case on bug
4814 #347238 from 35 seconds to 11 seconds.
4816 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4818 * X11Dnd.cs: When the dnd operation has started and we are
4819 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4820 This is done to match .Net, which doesn't send those messages after
4821 dnd operation was completed/cancelled.
4824 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
4826 * ToolStrip.cs: Previous change should be != null, not == null.
4829 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
4831 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4832 user may have moved the mouse off the current item during the event.
4834 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4836 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4837 calling GetItemAt for every MouseMove event by also taking into
4838 account whether any mouse button is pressed (probably dragging);
4839 if so, we can call GetItemAt, and if not, try to not call it
4840 (GetItemAt can be quite expensive when used with a large number of items).
4842 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4844 * ListView.cs: Implement -finally- support for dnd, by calling
4845 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4847 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4848 simple calculation of distances for all the items in the owner
4851 2007-12-21 Geoff Norton <gnorton@novell.com>
4853 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
4854 for windows that are originally created as invisible. Fixes missing
4855 main window in paint-mono.
4857 2007-12-21 Geoff Norton <gnorton@novell.com>
4859 * XplatUICarbon.cs: Register our D&D handler. Register our custom
4860 subclass handler for com.novell.mwfview subclassing HIView. Implement
4861 Pasteboard and Dnd methods.
4863 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4865 * ListBox.cs: When we got focus, give focus to first item if there
4866 wasn't any pervious focused item. Also update navigation to depend on
4867 SelectedIndex rather than FocusedItem, just as .Net does.
4870 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4872 * ListBox.cs: Both FindString and FindStringExact methods must do an
4873 case insensitive search, should allow the last valid index to be
4874 passed in the overload taking an initial index, and should also
4875 continue searching from the top back to the specified index when it
4878 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4880 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4881 redraw issue, and allows RichTextBox to draw colored text even while
4882 disabled or readonly.
4884 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4886 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4887 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4888 and doesn't grey text in a disabled RichTextBox.
4890 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4892 * RichTextBox.cs: Apply patch from Luke Page that adds better support
4893 for many RTF commands: quad alignment, separate formatting for blocks
4894 inside groups, and ParDef support. Makes the test case from bug #324589
4897 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4899 * LineTag.cs: Fix an error in the new Draw method that caused
4900 a crash when rendering the document on bug #324589.
4902 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
4904 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4905 TextControl.cs: Apply patch from Luke Page that adds support
4906 for URL links in RichTextBox.
4907 [Fixes enhancement #342516]
4909 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
4911 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
4912 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
4914 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4916 * ListBox.cs: When a key gets pressed, try to find a string
4917 if the key is a character or a digit.
4920 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
4922 * TableLayoutPanel.cs: Remove some unused variables.
4924 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
4926 * DateTimePicker.cs: Commit patch from Luke Page that ensures
4927 we don't end up at an invalid date when we click the up/down
4928 spinner to change the month or year. Fixes bug #348682.
4930 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
4932 * Application.cs: Calling Exit in 2.0 should chain to the
4933 Exit (CancelEventArgs) version so it can be cancelled.
4934 * Form.cs: Create a flag to allow raising the Closing
4935 events to be skipped. We raise them once in Application.Exit
4936 and don't want to raise them again when the Form is actually
4937 closed. [Fixes bug #349073]
4939 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
4941 * ToolStripDropDown.cs: Guard against an NRE when there
4942 hasn't been a mainform set in the application context.
4945 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4947 * ListBox.cs: When SetBoundsCore gets called, besides
4948 calling UpdateScrollBars, update the value of
4949 last_visible_index, since we could need to show more items
4950 than before, and we need to let the paint routines know that.
4953 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4955 * ListView.cs: Add DesignerSerializationVisibility attribute to
4956 InsertionMark property.
4957 * ListViewItem.cs: Add same attribute to Position property.
4959 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4961 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
4964 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
4966 * ThemeWin32Classic.cs: Don't draw the background on a
4967 flat button if there is a background image.
4970 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4972 * ListBox.cs: If we remove the item currently selected,
4973 remove it not only from SelectedItems, but also
4974 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
4975 the items count decreased and focused_item has bigger value than that.
4977 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4979 * Control.cs: Perform our layout after we resize ourselves
4980 if we had to adjust our AutoSize. Missed commit for bug
4983 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
4985 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4986 we can provide an implementation of AutoSize.
4989 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4991 * ListBox.cs: Add the internal overload Sort (bool paint),
4992 to indicate whether we actually need a paint or we will
4993 call Refresh ourselves. This way we don't request a paint
4994 _before_ having an updated and valid layout.
4997 2007-12-12 Andreia Gaita <avidigal@novell.com>
4999 * XPlatUIX11.cs: Send paint messages when updating a systray icon
5000 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5001 properly invalidated.
5004 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5006 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5007 don't simply assign it to our internal group field, but instead
5008 use our Group property, which should do all the neccessary work
5009 required to support groups. Fixes an issue reported to me (mail) by a
5010 guy using this new feature.
5012 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
5014 * Control.cs: Use Scale instead of ScaleControl to ensure the
5015 whole hierarchy gets scaled.
5018 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5020 * DateTimePicker.cs: Don't set the internal MonthCalendar's
5021 Parent property. Doing this causes the control to be hosted by
5022 the Form instead of being a popup window.
5025 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5027 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
5028 at an index higher than Count, just use Add instead of Insert.
5031 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
5033 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
5034 DrawPictureBox, this is handled by Control.PaintBackground.
5037 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
5039 * MenuAPI.cs: When process menu keys return true by default only if menu is
5040 active. Fixes bug #342892.
5042 2007-12-09 Andreia Gaita <avidigal@novell.com>
5044 * Control.cs: check if windows are actually mapped before
5045 trying to zorder. Fixes #342509, #346955
5047 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5050 * ListViewInsertionMark.cs:
5051 * ThemeWin32Classic.cs: Implement the drawing side of the
5052 new 2.0 ListView.InsertionMark property.
5054 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
5056 * CurrencyManager.cs: Silence some debug spew.
5058 2007-12-07 Geoff Norton <gnorton@novell.com>
5060 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5061 masks for our children as well as siblings to avoid having to query
5062 Quartz for this information.
5063 * XplatUICarbon.cs: Implement a delegate based system to pass
5064 information to System.Drawing. Implement Async methods. Remove
5065 the hack for the resize thumb and imlpement a transparent Grow Box.
5066 Rework the messaging system to proplery create window's and messages,
5069 2007-12-06 Andreia Gaita <avidigal@novell.com>
5071 * X11Keyboard.cs: Use Xutf8LookupString to support international
5072 characters under alternate codepages. Patch from #340878
5074 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5076 * ListView.cs: When doing layout computations, set position in the
5077 ListView instances (we cache the position just as .Net does).
5078 * ListViewItem.cs: New internal setter method for Position. Also set
5079 position field as also available in 1.1, since we are going to use it
5080 now in the common case.
5082 2007-12-06 Andreia Gaita <avidigal@novell.com>
5084 * Control.cs: When removing controls, get the actual container
5085 to notify about active control changes. Fixes 341314.
5087 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5089 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5091 2007-12-05 Andreia Gaita <avidigal@novell.com>
5093 * Control.cs: When updating the zorder, ignore windows that are not
5094 mapped. Fixes #342509
5096 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5098 * ListViewItem.cs: Actually implement serialization on this class.
5100 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
5102 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5103 LinkCollection. Spaces to tabs, and removed extra tabs.
5105 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
5107 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5108 tests to fail (hopefully).
5110 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5112 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5113 the image margin so custom renderers can correctly place it.
5115 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5117 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5118 so custom renderers can correctly place it.
5120 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
5122 * Application.cs: Let WM_CHAR messages flow through to controls
5123 hosted in Strips. [Fixes bug #343972]
5125 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5127 * ToolStripManager.cs: Guard against an NRE I ran into.
5129 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
5131 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
5132 a Link is manually added to the Links collection, we need to set
5133 its owner, so it can invalidate properly.
5136 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5138 * ListView.cs: When changing ListViewItem.Position (which calls
5139 ListView.ChangeItemLocation), invalidate not only the area
5140 corresponding to the main item, but also to the area occupied
5141 by the items being moved.
5143 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5145 * ListView.cs: When changing the position of a given item,
5146 don't use item bounds, but item areas (which includes the item spacing
5147 between them). Also, use first/last position if the requested
5148 position is outside bounds (as .Net does). Invalidate the previous and
5149 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5150 in a specific position, instead of directly accessing Items collection
5151 (this is done to get the right item - remember an Item can have a
5152 different position in the grid than in the Items collection).
5154 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5156 * MessageBox.cs: Calculate text area instead of just top left, this rect
5157 area will be used in DrawString. Fixes bug #343364.
5159 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5161 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5162 screen width. Partially fixes bug #343364.
5164 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
5166 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5167 code inside recalculate, it makes code more simple.
5169 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
5171 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5172 between update or add icon. Fixes bug #324344.
5174 2007-11-21 Andreia Gaita <avidigal@novell.com>
5176 * XPlatUIX11.cs: Do not treat tool windows as if they have no
5177 window manager, since that stretches the drawing area to include
5178 the window decorations, and they get hidden. Reverts r84444 and fixes
5179 #335849 and #342790 (mdi and pdn3 regression)
5181 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5183 * ListView.cs: When setting focused item, try to give focus to the
5184 previous one _only_ if the previous one remains valid.
5187 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
5189 * Application.cs: Revert r89650, as it broke a common case to fix
5190 an obscure case. Fixes bug #342606.
5192 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5194 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5196 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
5198 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
5199 alignment. [Fixes #324228]
5201 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5203 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5206 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
5208 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5209 it prevent problems when empty captions. [Fixes #342141]
5211 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
5213 * Label.cs: Use Size instead of None. Fixes bug #342077.
5215 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5217 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5219 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5221 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5222 but there isn't a MdiContainer.
5225 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
5227 * TextControl.cs: Don't recalculate document if the recalc_start and
5228 recalc_end hasn't changed.
5231 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
5233 * DataGridViewTextBoxCell.cs: Removed CWL.
5235 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5237 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5239 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5241 * TextControl.cs: Missed some code for bug 341534 to trigger a
5242 recalculation when the font changes.
5244 2007-11-16 Andreia Gaita <avidigal@novell.com>
5246 * Control.cs: When updating the zorder, check if the child to update is
5247 the same control that is set to always be on top (i.e., scrollbars), and
5248 just put it on top directly. Fixes BadMatch error on pdn3
5250 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5252 * ListView.cs: Throw the needed exceptions for FindNearestItem.
5254 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
5256 * Control.cs: Don't perform a new layout when a label changes its text,
5257 cause label handles its own autosizing.
5260 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5262 * ListView.cs: Implement 2.0 FindNearestItem methods.
5264 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5266 * ToolStripPanel.cs: Make Join at least add the control to the panel,
5267 even if the rest of what Join does isn't supported. Add some more
5268 support for vertical toolbars.
5269 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5270 [Fixes the application breaking parts of bug #341998]
5272 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5274 * ToolStripItem.cs: When determining if we have a check/image margin,
5275 we need to look at ShowCheckMargin as well as ShowImageMargin.
5277 2007-11-15 Geoff Norton <gnorton@novell.com>
5279 * XplatUIOSX.cs: Rename to...
5280 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5281 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
5283 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
5285 * KeysConverter.cs: The default values should be an array of Keys, not
5286 strings. Also, the array has more values for 2.0.
5289 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5291 * Application.cs: Change ExecutablePath to use
5292 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5295 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5297 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5298 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5299 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5300 be ignored. Create a new GetLineEnding that can specify which types of
5301 line endings to look for. On Insert, only create new lines for \n and \r\n.
5304 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
5306 * TextBoxBase.cs: As we loop through each line changing the font, tell
5307 the document that the line needs to be recalculated. Fixes bug #341534.
5309 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
5310 [Another round of refactoring]
5311 * Line.cs: Add DeleteCharacters.
5312 * LineTag.cs: Add Delete.
5313 * TextBoxBase.cs: Update to use new methods.
5314 * TextControl.cs: Refactor the Delete* methods.
5316 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
5318 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5319 the patch. [Fixes #324856]
5321 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5324 * ListViewItem.cs: Add an initial implementation of
5325 2.0 ListViewItem.Position getter.
5327 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5329 * ListView.cs: Add a reordered_items_indices array, to allow us
5330 to have a different sorting than that of Items (the sorting in Items
5331 could not match the actual sorting in screen). This is needed to
5332 implement a pair of 2.0 features.
5333 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5334 actual position in the ListView grid, since it could have a position
5335 different than its Index (position in ListViewItemCollection).
5337 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5339 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
5340 not draw partial lines.
5341 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5342 LineLimit flag from the base is preserved.
5343 Fixes the windows part of bug #338965.
5345 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
5347 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5348 so that it can be canceled in KeyPress.
5351 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5353 * ListView.cs: In ItemControl, reset mouse-handling related
5354 fields even if we dont' have items (we still should reset them when
5355 we had items but then called Items.Clear). Partially based in a patch
5359 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
5361 * Application.cs: In ProductVersion first try AssemblyFileVersion
5362 before falling back to assembly version. Fixes bug #339787.
5364 2007-11-08 Andreia Gaita <avidigal@novell.com>
5366 * HtmlElement.cs: Implement InnerText setter.
5367 * WebBrowserBase.cs: Implement Navigated event support.
5368 Add flag to track when the browser "document" is ready to be retrieved.
5369 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5370 Make sure browser document is ready before retrieving it.
5371 Clean up cached objects (document) when moving to a new page through
5372 any of the navigation methods.
5373 Use the new Mono.WebBrowser.INavigation interface to control navigation.
5374 Implement OnNavigated event.
5376 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
5378 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5379 DrawLinkLabel, this is handled by OnPaintBackground.
5380 Fixes bug #339565, part II.
5382 2007-11-07 Andreia Gaita <avidigal@novell.com>
5384 * Control.cs: Revert r88915. Selecting text on a textbox depends on
5385 getting a Select call on click, so this call needs to be here for now.
5388 2007-11-07 Geoff Norton <gnorton@novell.com>
5390 * OSXStructs.cs: Add the kEventClassApplication constants.
5391 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
5392 application is deactivated otherwise Menu overlays linger on top of
5393 other application windows.
5395 2007-11-07 Geoff Norton <gnorton@novell.com>
5397 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5398 dont support cursors yet anyways. This allows Reflector to run.
5400 2007-11-07 Geoff Norton <gnorton@novell.com>
5402 * XplatUIOSX.cs: Implement DragSize.
5404 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5406 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5407 ItemControl, request the focus, as .Net does. This is needed after
5408 Control does not request focus anymore when it receives a
5411 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
5413 * Label.cs: Make DrawImage internal so it can be called from Theme code.
5414 Remove the DrawImage call from OnPaint.
5415 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5416 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5417 but before we draw the text for DrawLabel and DrawLinkLabel.
5420 2007-11-05 Andreia Gaita <avidigal@novell.com>
5422 * Control.cs: Remove select call on click. Fixes #325809
5424 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5426 * ListViewItem.cs: Add 2.0 Position property getter.
5428 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5430 * ListView.cs: Add 2.0 BackgroundImageTiled property.
5431 Also, to make it work properly, change item's BackColor and
5432 BackgroundImageLayout as needed.
5433 * ThemeWin32Classic.cs: Don't fill any background rectangle
5434 in ListView.ItemControl when drawing items; just let the Control
5435 base implementation fill it.
5437 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5439 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5440 as well as adding a custom 'dummy' Converter, as .net does.
5442 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5444 * PropertyGridView.cs: When clicking drop-down button,
5445 select an index in the listbox only if our standard values collection
5446 has one or more items.
5448 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5450 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5453 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5455 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5456 the value is not changed. This ensure a pushed button remains in that
5457 state when clicked again. When switching the value of PropertySort
5458 between Categorized and CategorizedAlphabetical, do not update the
5459 grid items and do not fire a PropertyChangedEvent. When clicking the
5460 sorting buttons, do not modify the PropertySort value when switching
5461 between Categorized and CategorizedAlphabetical but only update the
5464 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
5466 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5468 * PropertyGrid.cs: Also put Categorized button in pushed state when
5469 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5470 for help description label.
5472 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5474 * ListView.cs: When calculating the biggest item for a given column,
5475 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5478 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
5480 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5481 value for PropertySort on 1.0 profile. PropertySortChanged event
5482 should only be fired on 2.0 profile. Fixed NullReferenceException
5483 in UpdateSortLayout when PropertyGrid contains no items.
5485 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
5487 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5490 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5492 * ListViewItem.cs: Implement 2.0 IndentCount property.
5494 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5496 * X11Dnd.cs: When sending status in a dnd operation, compare current
5497 effect with the 'allowed' field instead of 'drag_data.Allowed', since
5498 the later is only created when a Winforms application is both the
5499 source and the target, but not when we are the target only.
5500 Fixes part of #324251.
5502 2007-11-01 Geoff Norton <gnorton@novell.com>
5504 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5506 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
5507 children out of the drawing view on mac.
5508 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
5509 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5511 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5513 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5514 on the non-hosted-control part of it shouldn't do anything.
5515 Fixes part of bug #327498.
5517 2007-11-01 Andreia Gaita <avidigal@novell.com>
5519 * WebBrowserBase.cs: revert previous change, resize can be called anytime
5521 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
5523 * Application.cs: When a toolstrip has the keyboard input loop, let messages
5524 it does not use flow through to controls that are hosted in menus.
5525 Same with mouse clicks.
5526 * Form.cs: Don't close all menus on click if the click is on a
5527 control hosted in a menu.
5528 Fixes part of bug #327498, and part of bug #325969.
5530 2007-10-31 Andreia Gaita <avidigal@novell.com>
5532 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5534 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
5536 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5537 Addresses an issue raised in bug #336218.
5539 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
5541 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5542 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
5544 2007-10-30 Andreia Gaita <avidigal@novell.com>
5546 * ContainerControl.cs: Check if the active control is a
5547 child of a removed control and update active_control accordingly.
5550 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5552 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5553 or the MaxDate. Fixed bug #337693.
5555 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5557 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5558 after calling SetWindowLong for a form, to force an immediate NC refresh.
5559 Fixes first part of bug #325150.
5561 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5563 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5564 simple. Fixes the last part of bug #322668.
5566 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
5568 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5569 needs to be TopMost as well, or else the MessageBox is under the form.
5570 Patch by George fixes bug #325300.
5572 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5574 * X11Dnd.cs: When starting a new drag operation, reset the static
5575 'dropped' field to false (previously the implementation didn't reset
5576 it and got confused after the first drag).
5579 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5581 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5582 items instead of re-creating them all. For this purpose we now cache
5583 both CategoryGridEntry items and the GridEntries for the main object's
5585 * GridItem.cs: Make SetParent method abstract.
5586 * GridEntry.cs: Override the SetParent method (already there, but now
5590 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5592 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5593 depending on its depth (as .Net does). Update the needed values in
5594 MouseDown handler. Also draw the plus/minus rect after the label,
5595 so we don't draw on top of it.
5597 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
5599 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5600 processed by forms or controls when menu is active. [Fixes #333548]
5602 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5604 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5605 parent doesn't have focus. This was causing ToolStripTextBoxes to take
5606 focus on mouse over.
5608 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5610 * TextControl.cs: Code cleaning, simplifying.
5612 2007-10-24 Geoff Norton <gnorton@novell.com>
5614 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5615 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5617 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
5619 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5620 the cap is maxvalue, not actually 0. [Fixes bug #336218]
5622 2007-10-24 Andreia Gaita <avidigal@novell.com>
5624 * SendKeys.cs: apply jpobst's patch to bug #332409
5626 2007-10-23 Andreia Gaita <avidigal@novell.com>
5628 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
5629 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5632 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5634 * PropertyGridView.cs: If a property has an UIEditor available,
5635 make the drop-down/editor button available only if the property
5638 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5640 * PropertyGridView.cs: Don't make the grid item textbox
5641 editable when a drop-down control is available, but
5642 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5643 true. The same bur the color of the grid item value's label.
5645 2007-10-22 Geoff Norton <gnorton@novell.com>
5647 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5648 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5649 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
5650 driver. Padd the bottom of all real windows so the resize thumb doesn't
5651 obscure scroll/status bars.
5653 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
5655 * WindowsFormsSection.cs: Implement.
5657 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5659 * MdiClient.cs: Maximize new active mdi child when a maximized child is
5660 closed see #325434 patch.
5662 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
5664 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5667 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5669 * PropertyGridView.cs: When showing the textbox for a grid item,
5670 have two local variables to store the read-only and non-editable
5671 status of a grid item (we were previously using just one variable
5672 to do this, when actually they are slightly different).
5673 Fixes part of #325023.
5675 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5677 * PropertyGridView.cs: When showing a drop-down list, try to get the
5678 values using TypeConverter.ConvertTo (to convert to a string). Fixes
5681 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5683 * PropertyGrid.cs: When updating a property and populating sub grid
5684 items, remove the previous ones, and invalidate the specific area.
5685 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5686 area behind a grid item.
5687 * GridItemCollection.cs: Add an internal Clear method, to allow us to
5688 clean the items if needed (specially for controls implementing
5689 ICustomTypeDescriptor and returning a variable number of properties).
5692 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
5694 * TextControl.cs: Clean up and document the Insert function.
5696 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5698 * TextControl.cs: Make sure we know our start point for updating the view
5699 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
5702 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5704 * ListView: Couple of corcompare fixes.
5706 2007-10-17 Geoff Norton <gnorton@novell.com>
5708 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
5709 the title caption of real window.
5711 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5713 * ErrorProvider.cs: Add the error provider's internal window to a
5714 containercontrol when the parent changes. [Fixes bug #329714]
5716 2007-10-17 Geoff Norton <gnorton@novell.com>
5718 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
5719 When we make a new window; restore the old active window - fixes dialogs.
5721 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5723 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5724 when modifying a property, and if found then invalidate as
5726 Fixes part of #324865.
5728 2007-10-17 Geoff Norton <gnorton@novell.com>
5730 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
5731 highly experimental. Fixed coordinate translation. Fixed window locations.
5732 Initial support for clipping. Implemented NC areas and menus. Support for
5733 launching from command line from Will Johansson (wjohansson@atacomm.com).
5734 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5735 wjohansson@atacomm.com)
5736 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5737 Hwnds now track the existence of all of their children for Mac clipping.
5738 * XplatUI.cs: Re-enabled the native driver on the Mac.
5740 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
5742 * Line.cs: Move the InsertString function to here.
5743 * TextControl.cs: Cleanup some duplicate code, move some InsertString
5744 functionality to Line.
5746 2007-10-17 Geoff Norton <gnorton@novell.com>
5748 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
5750 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
5752 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5753 always setting value to true.
5754 * Form.cs: When changing AcceptButton, notify new and original button.
5756 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
5758 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5759 a custom control that implements IButtonControl instead of an actual
5760 button. [Fixes bug #334244]
5762 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
5764 * Form.cs: Change SelectActiveControl to internal, we need to call it in
5767 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5768 active control when activate a new mdi window.
5772 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
5774 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5778 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5780 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5781 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
5782 so we always recalculate the whole document instead of just the new part.
5785 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5787 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5788 when the mouse was to the left of the first character in the line.
5790 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
5792 * TextBox.cs, TextBoxBase.cs: When setting the document's password
5793 character, use the property instead of the variable so that the
5794 UseSystemPasswordChar property is taken into account.
5797 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5799 * FolderBrowserDialog.cs: When a node is right clicked and the "New
5800 folder" contex menu appears, actually add the new folder to it, even
5801 if the node is not currently selected. Still use SelectedNode in case
5802 there wasn't found a node under the pointer.
5805 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5807 * ListViewItem.cs: When retrieving the focused state, the index check
5808 should be done only when ListView is in virtualmode, as it is an
5809 expensive check for normal mode.
5811 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5813 * ListViewItem.cs: Make the focus state information be stored
5814 in the ListView, not in the items. This is done to match the MS
5815 behaviour for items that are not yet part of a ListView control;
5816 besides that, since just one item can be focused at the same time,
5817 we save a little space in our items.
5818 Fixes part of #331643.
5820 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5822 * ComboBox.cs: When focus is lost, deselect the text. When setting
5823 text of control, select all text. Do not hide selection when control
5824 does not have focus. Fixes bug #333663.
5826 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5828 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5829 instead of ArgumentException when SelectionLength is set to negative
5830 value. Added same check to SelectionStart. Code formatting.
5832 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
5834 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5835 or SelectionStart. Code formatting.
5837 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5839 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5840 indicating that there was not a previous drag-and-drop operation going
5842 Fixes part of #325071.
5844 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5846 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5847 AllowedEffect, don't let the drop operation happen.
5850 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5852 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5854 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5856 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5859 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
5861 * Line.cs: Add a method that finds the tag that contains an x-coord.
5862 * LineTag.cs: Add a method that finds the character at an x-coord using
5863 a binary search, the old way was a linear search.
5864 * TextControl.cs: Change FindCursor to use the above new methods.
5866 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5868 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5869 value different than AllowedEffect). This should be possible to
5870 indicate that dragging is not possible in some control/area.
5872 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
5874 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
5875 descent internally when font changes instead of outside code being responsible
5877 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5878 instead of accessing internal variables.
5880 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
5882 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5883 remove special treatment for ArrangeIcons since it is already arranged.
5885 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5887 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5888 the Win32 backend uses Color.
5889 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5890 Refactor to store a Color instead of a Brush for Color.
5892 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5894 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5895 away. I didn't realize I needed this when I refactored these earlier.
5897 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5899 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5900 store a Color structure and use the ResPool for back color instead of
5901 holding onto brushes.
5903 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
5905 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5908 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5910 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
5911 to recalculate its size. Fixes a part of bug #331052.
5913 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5915 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
5916 button. Fixes a part of bug #331052.
5918 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5920 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
5922 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
5926 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5928 * TextBoxTextRenderer.cs: Don't make this a static class, as static
5929 doesn't exist in 1.1. (Thanks jb!)
5931 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
5933 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
5934 class to allow us to use different backends on different platforms.
5935 Linux uses the current [Draw|Measure]String backend. Windows uses
5936 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
5937 of GDI+. This leads to better looking text and more accurate measurements
5938 on Windows, fixing many of the reported issues.
5939 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
5941 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5943 * FolderBrowserDialog.cs: When running on Windows,
5944 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
5945 since we must match both "C:" and "C:\" forms. A little hackish, but
5949 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5951 * ListView.cs: When calling EndEdit (after editing an item),
5952 create a new instance of LabelEditEventArgs to keep clean the fields
5953 in case we get a new call to BeginEdit; also do Application.DoEvents
5954 to have focus in synch. This is a fix similar to TreeView's #325244.
5956 2007-10-07 Andreia Gaita <avidigal@novell.com>
5958 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
5959 * WebBrowserBase.cs: Added dialog support, calling the
5960 WebBrowserDialogs classes for each specific dialog type.
5962 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5964 * ListView.cs: When the last item is focused and is removed,
5965 move the focus to the previous item (in Items order). This is what MS
5969 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5971 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
5972 instead of the opposite (RemoveAt call Remove). This is a better
5973 approach since we don't need to to a pair of traversals when using
5976 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5978 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
5979 check that the node actually has nodes, and if not, move to the
5980 parent node instead.
5983 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5985 * TreeView.cs: Move the previous change to the general case (to
5986 call Application.DoEvents in cases where the method was called by
5989 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5991 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5992 call Application.DoEvents. This is neccessary when we get a call to
5993 BeginEdit from an AfterLabelEdit handler, because the focus always
5994 goes to the TreeView, even if we try to give it to our
5995 LabelEditTextBox. The call do Application.DoEvents seems to
5996 synchronize the focus, basically.
5999 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6001 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6002 should be false. This also removes some nasty recursive paths. Fixes
6005 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
6007 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6008 state to normal. Also resize window when cascading. Fixes #325433.
6010 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6012 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6013 DefaultForeColor, as drawing empty colored lines isn't very useful.
6014 [Fixes the not drawn lines part of bug #324358]
6016 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
6018 * TextControl.cs: Move Line and LineTag classes into separate files to
6019 make things easier to find.
6020 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6021 * RichTextBox.cs: Capitalize LineTag.Length property access.
6022 - This is purely an organizational/formatting change, no logic changed. -
6024 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6026 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6029 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6031 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
6034 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6036 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
6037 prevent calling of OnBackColorChanged. Fixes #325321.
6039 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
6041 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
6042 because control can be disabled because owner is disabled.
6044 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6046 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
6047 string.Empty, test failed from previous change.
6049 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
6051 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6052 is null, not String.Empty. See bug #323038.
6054 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
6056 * TextControl.cs: Change the margins to match MS a little better.
6057 Still not perfect for X11 due to some DrawString differences, but
6058 is still an improvement over the old stuff.
6059 Partially fixes #324467.
6061 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6063 * FolderBrowserDialog.cs: When using MyComputer as
6064 RootFolder, let absolute paths be considered as valid ones. Also, use
6065 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6066 for Windows compatibility.
6067 Partially fixes #325247.
6069 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6071 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6072 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6073 method, since it causes the dialog to not select folders directly
6074 under the root path (when setting SelectedPath property).
6076 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6078 * TreeNode.cs: When calling Expand/Collapse and need to call
6079 ExpandBelow/CollapseBelow respectively, take into account
6080 partially visible nodes (previously Expanding/Collapsing
6081 a partially visible node in the bottom was not updating its +- sign).
6083 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6085 * TreeView.cs: When calling Expand on a TreeNode, and we need to
6086 expand nodes below (ExpandBelow), scroll the entire Viewport
6087 area if the node is above it and not visible (instead of scrolling
6088 the area from node's Bottom, which applies only when the node is
6092 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6094 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6095 node in the bottom area (as .Net does). This is done to preserve the
6096 scroll position when ExpandAll is called before handle is created for
6097 the 1.1 profile (bottom area, as opposed to top area in 2.0).
6100 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6102 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
6103 bottom area if we are in fact not using the vertical scroll bar.
6106 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6108 * Control.cs: Comment out a double buffering optimization that doesn't
6109 take into account invalidates created in OnPaint, causing the control
6110 to never be redrawn. It would take quite a bit of work to work around
6111 this, but I left it commented with an explanation for later possible
6115 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
6117 * Control.cs: Ask parent to perform a layout if control is AutoSize and
6119 * RadioButton.cs: Implement GetPreferredSizeCore.
6122 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6124 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6127 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
6129 * Application.cs: Move the sync context stuff to Run instead of RunLoop
6130 so that it doesn't get uninstalled on modal forms.
6131 * Control.cs: Install a sync context when a control is created.
6132 * WindowsFormsSyncronizationContext.cs: Create a private static control
6133 to invoke on. This is easier than trying to find a created control we
6137 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
6139 * Application.cs: Install a WindowsFormsSynchronizationContext in the
6140 run loop, and uninstall it when done.
6141 * WindowsFormsSynchronizationContext.cs: Implement.
6142 [Fixes the common case in bug #327608]
6144 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
6146 * DataGridViewCellCollection.cs: Added argument checks for indexers.
6147 Use case-insensitive lookup of column name in indexer. Code
6150 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6152 * TreeNode.cs: When collapsing or expanding a node, check whether its
6153 change will affect the visible area (we were previously doing a
6154 IsVisible check, but that check is not enough since children nodes
6155 could be still visible). Fixes part of #325266.
6157 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6159 * TreeView.cs: Always select the first node when the TreeView gets
6160 focus if there is no currently selected node.
6163 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
6165 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6166 node being selected is null.
6167 [Patch from Yves Bastide fixes bug #326858]
6169 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6171 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6172 whether all the parent nodes are expanded.
6173 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6174 call RecalculateVisibleOrder if all previous nodes are expanded.
6175 Before that we were doing a IsVisible check, but sometimes the node
6176 is not in the visible area, but _should_already be ready, because of
6177 all previous nodes are expanded. Fixes #325259.
6179 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6181 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6182 portion of the item is clicked.
6184 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6186 * TextControl.cs: Do not tell the system to move the cursor if the
6187 textbox isn't focused. Fixes part of bug #322668.
6189 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6191 * ComboBox.cs: When there are no items, do not show the dropdown if
6192 the down arrow is clicked. Fixes part of bug #322668.
6194 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
6196 * ToolStripComboBox.cs: Manually set the size of this control in the
6197 constructor, as it doesn't seem to be the same as DefaultSize.
6198 Fixes a failing monobuild test.
6200 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6202 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6203 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
6205 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
6207 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6208 Desktop. This lets it work for people who have moved their desktops
6209 from the default location on windows. For people who have not, both
6210 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
6212 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6214 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6215 but when the base constructor sets this, the control is null. Set it
6216 again in the constructor. Fixes a failing monobuild test.
6218 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6220 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6222 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6225 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6227 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6228 will handle it themselves.
6229 * ToolStripItem.cs: When deciding what the text of a tooltip should
6230 be, use the Text property instead of the text field.
6231 * ToolStripTextBox.cs: Handle tooltips.
6232 [Fixes bugs #325417 and #325973]
6234 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6236 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6237 left click. Fixes the easy part of bug #325969.
6239 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
6241 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6242 bug #325406, but set a minimum for StatusStrip to 22 to keep
6243 bug #325390 fixed. I think this minimum would have been figured
6244 up automatically if the grip was actually a ToolStripItem, but it
6247 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6249 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6250 as this is apparently the actual value used by .Net. Also apply
6251 ItemPadding in Details view only, and decrease the general width padding,
6252 to have only the needed. This should fix #324340 in Windows too.
6254 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6256 * ListViewItem.cs: Don't Invalidate item if parent is inside
6257 a BeginUpdate/EndUpdate block. This prevents to have differences
6258 between the ListView and items state, as well as avoid some exceptions
6260 * ListView.cs: Make 'updating' field internal.
6262 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6264 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6265 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6266 size if appropriate.
6267 Fixes reopened bug #325414.
6269 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6271 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6272 * ToolStripItem.cs: Invalidate before and after our new autosize when
6274 Fixes reopened bug #325390.
6276 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6278 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6279 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
6282 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
6284 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
6286 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6288 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6289 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6292 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6294 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
6295 item to select when the ToolStrip is selected.
6296 * ToolStripControlHost: Realign the control when the bounds or visibility
6298 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6299 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6301 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6302 base.OnPaint. Was causing text not to be drawn.
6304 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
6306 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6308 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6310 * TreeView.cs: When creating the label edit text box,
6311 set is initially to Visible = false. This is done to
6312 prevent a confusion in the layout which makes it to lose
6313 focus when shown the first time. Fixes part of #82592.
6315 2007-09-13 Andreia Gaita <avidigal@novell.com>
6317 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6319 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6321 * ToolStrip.cs: Take Margin into account when calculating preferred
6322 size. Also, allow preferred size to get smaller than the explicit
6324 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6325 First step towards fixing bug #82747.
6327 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6329 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6330 full row select background over the plus/minus glyph. Also, turn
6331 off the focus rectangle for full row select since MS doesn't seem
6332 to ever paint it. [Fixes bug #81839]
6334 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6336 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6337 This was causing keyboard opened dropdowns to lose focus.
6340 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6342 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6343 ClientRectangle instead. [Fixes bug #82838]
6345 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
6347 * SplitContainer.cs: We can't reset Visible on every layout because
6348 someone may have set Visible = false explicitly on a SplitterPanel.
6349 Make sure when we switch orientation the SplitterDistance does not
6350 change. Fixes two failing tests.
6352 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6354 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6355 TextRenderer, since the latter is only available in 2.0.
6357 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
6359 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6360 * SplitContainer.cs: Implement FixedPanel layouting.
6362 2007-09-12 Andreia Gaita <avidigal@novell.com>
6364 * WebBrowserBase.cs: setup shutdown routine
6366 2007-09-12 Andreia Gaita <avidigal@novell.com>
6368 * Application.cs: Let keyboard events that are targetted
6369 to non-mwf windows hosted inside mwf (as in, webbrowser),
6370 propagate properly. Fixes keyboard handling on the webbrowser.
6372 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6374 * ListView.cs: When handling MouseUp event and we are
6375 highligting a node with the mouse right button, don't trigger
6376 Before/AfterSelecting event, since we are not actually selecting
6379 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6381 * TreeView.cs: When editing a node, modify the edit text box
6382 depending on the text length (as you are typing), like MS does.
6384 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6386 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
6387 Override GetPreferredSizeCore to perform calculations. Remove custom
6388 autosize logic. [Fixes bug #82739]
6390 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
6392 * TextBoxBase.cs: Modified should default to false.
6394 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6396 * Control.cs: Update the anchoring distances even when layout is supspended.
6397 Patch provided by George fixes bug #82805.
6399 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6401 * Control.cs: Provide a setter for ExplicitHeight.
6402 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6403 remove the hacks in here for requested_height.
6406 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6408 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6409 Maximum to lower that its current Value caused an ArgumentException by setting
6410 the Value to the new Maximum.
6412 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6414 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
6415 handle moves to the closest tick when it is being dragged.
6418 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
6420 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6421 can't let them count as real items when calculating where to merge in the
6422 user's items. [Fixed bug #82786]
6424 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6426 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6427 who want to add a menu item directly onto a toolstrip.
6428 [Fixes bug #82775, part II]
6430 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6432 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6433 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6434 don't set it to available.
6435 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6436 [Fixes bug #82727, part II]
6438 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6440 * StatusStrip.cs: Change item placement to None if not visible.
6441 * ToolStripItem.cs: Invalidate when InternalVisible changes.
6442 These should have been committed to fix 82723, but I missed them.
6444 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
6446 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6447 Click, and that it is only called once.
6448 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6449 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6453 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6455 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6457 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6458 instead of 8, just like above. Partially fixes #82734.
6460 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6462 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
6465 * ListView.cs: Remove extra space between rows in Details view (match
6467 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6470 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
6472 * Application.cs: Modified ProductVersion to return value of
6473 AssemblyInformationVersion if available, and fallback to assembly
6474 version. Fixes bug #82746. Code formatting.
6475 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6478 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6480 * Control.cs: When updating ZOrder for a child control,
6481 take into account the implicit ones (we need it in our controls
6482 using them). Fixes #82642.
6484 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6486 * ToolStripItem.cs: Add support for animated images.
6489 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
6491 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
6492 visible. [Fixes bug #82727]
6494 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6496 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6497 so we repaint using the new size. [Fixes bug #82723]
6499 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6501 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6502 option. [Fixes bug #81779]
6504 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6506 * TreeView.cs: Override HandleClick because the StandardClick style is
6507 set to false. According to MSDN (and testing), the click events should
6508 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
6510 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6512 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6513 the border will disappear. Fixes reopened #82653.
6515 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6517 * Control.cs: If the control is autosize, and its preferred size changes
6518 when it lays out its children, tell its parent so it can be re-layed out.
6519 Fixing some of the fallout from r85433.
6521 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6523 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6524 and CheckBox share some code.
6526 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6528 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6529 the TrackBar, not every mouse move. [Fixed bug #82718]
6531 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6533 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6534 under 2.0 rendering. [Fixes bug #82657]
6536 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6538 * TreeView.cs: If we found a TreeNode to display a context menu, but
6539 it doesn't have one to show, let the TreeView display its menu
6540 instead. [Fixes bug #82680]
6542 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
6544 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6545 OnPaintInternal instead. Give the internal TextBox a Border property
6546 so it can draw itself more correctly. [Fixes bug #82653]
6548 2007-09-06 Zoltan Varga <vargaz@gmail.com>
6550 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6552 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6554 * ComboBox.cs: Adjust combobox button state to reflect current state when
6555 back to enabled = true. Fixes first issue of #82654.
6557 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6559 * Control.cs: Fix last patch regression, prevent forms to update zorder when
6560 setting visible property.
6562 2007-09-05 Everaldo Canuto <everaldo@simios.org>
6564 * Control.cs: Update zorder after control creation in SetVisibleCore, it
6565 fix zorder for controls initially created as non visible. Fixes #82667.
6567 2007-09-04 Everaldo Canuto <everaldo@simios.org>
6569 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6570 mimic win32 look. Fixes #82656.
6572 2007-09-01 Zoltan Varga <vargaz@gmail.com>
6574 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
6575 Stubs for new net 3.5 classes.
6577 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6579 * ListViewItem.cs: In ListViewItemCollection operations calculate
6580 Layout for owner as well as invalidate it. Fixes part of #82642.
6582 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
6584 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6585 when returning Enabled. [Fixes bug #82651]
6587 2007-08-30 Everaldo Canuto <everaldo@simios.org>
6589 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6591 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6593 * ListView.cs: Put item padding info in a single place
6594 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6596 * ThemeWin32Classic.cs:
6597 * Theme.cs: Likewise.
6599 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6601 * ListView.cs: When a ListViewSubItem instance is invalidated,
6602 invoke Invalidate on parent ListViewItem, not parent ListView.
6605 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6607 * ListView.cs, ListViewItem.cs: corcompare stuffs.
6609 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6611 * BindingMemberInfo.cs: Implement == and != operators.
6613 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
6615 * HtmlElementEventArgs.cs: Implement properties.
6617 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6619 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6621 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6623 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6624 Add (string,string,string) to implement the imagekey. It turns out, we
6625 use the requested imagekey whereas .Net does not. So I broke ours to match
6628 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6630 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6632 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
6634 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6636 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
6638 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6639 up-to-date. Fixes bug #82618.
6641 2007-08-29 Everaldo Canuto <everaldo@simios.org>
6643 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6644 reflect document changes. Fixes #82367.
6646 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6648 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6649 as well as add new ones. This should make work the BackgroundImage
6650 property for ListView again.
6652 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6654 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6655 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6656 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6658 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6660 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6663 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6665 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6666 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6668 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
6670 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
6671 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6673 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
6675 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6677 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
6679 * GridEntry.cs: Implement GetService.
6681 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
6683 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6684 for label editting, make sure we focus back on the TreeView.
6687 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6689 * ListView.cs: Add some 2.0 overrides.
6691 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6693 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6694 because getter dont returns right value before handle creation. Thanks
6695 to George. Fixes #82569.
6697 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6699 * Theme.cs: Revert last patch, it causes error under win32.
6701 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
6703 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
6704 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
6705 logical Desktop rather than the physical file system location. Fixes #82603.
6707 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
6709 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6710 for the patch. Fixes #82568.
6712 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6714 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6717 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6719 * ListViewInsertionMark.cs: New stubbed class.
6721 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6723 * FolderBrowserDialog.cs: When adding folder, immediately create the
6724 directory with temporary name and rename the directory when editing
6725 finishes. This matches MS. Ensure the node for the new folder is
6726 selected and LabelEdit is disabled, when editing is either finished
6729 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6731 * TreeView.cs: When editing label of node, ensure node is visible.
6733 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
6735 * PropertyGridView.cs: Set the value only if it has changed.
6737 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6739 * ListView.cs: Some more code refactoring to add support sorting
6740 with groups (now for Details view). Remove unused code also.
6742 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6744 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6745 Not a big fan of reacting immediately to a field in an EventArg, but that's
6746 the way it's done. (This is part of the previous commit that got left out.)
6748 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
6750 * FolderBrowserDialog.cs: Removed need for separate description field.
6751 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6752 has focus when dialog box is displayed again, regardless of what
6753 button was pressed the previous time. Set RootFolder and SelectedPath
6754 each time dialog box is displayed. This ensures the treeview is
6755 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6756 when it does not have focus. Added support for more special folders.
6758 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6760 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
6761 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
6762 it resets the edit_args.
6763 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6766 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
6768 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6769 button to match MS. Provide more meaningful exception message for
6770 invalid RootFolder value. Use zero-length string when SelectedPath
6771 is set to null. Allow non-rooted paths in SelectedPath, but ignore
6772 them in FolderBrowserTreeView. Allow folders to be created in
6773 RootFolder. Fixes bug #82576.
6775 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6777 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6778 since we need to take into account the group headers and the margin
6780 * ListViewGroup.cs: Add a rows field to store the number of rows per
6783 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
6785 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6786 Anyways, let's just follow the lead.
6788 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6790 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6791 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
6792 controls in GetPreferredSizeCore.
6793 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6796 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
6798 * PrintDialog.cs: Need to instantiate the form variable here too.
6800 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6802 * ListView.cs: Do some reorganization to support sorting in groups,
6803 by doing the layout sequentially in ListView.Items. Also add support
6804 for the Default Group, which should be available for items with no
6806 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6807 for storing layout info also.
6808 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6809 collection, as well as providing internal members to do a traversal
6810 including the default group (needed when doing layout/drawing).
6811 * ThemeWin32Classic.cs: When drawing group headers use internal
6812 ListViewGroupCollection members to take into account the default
6815 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
6817 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
6819 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6821 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6822 been created. If handle is created, we want arror keys. If we are editing
6823 a node, we want things like enter, esc, home, end, page up, page down.
6824 Allows Esc to work for FolderBrowserDialog.
6826 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6828 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6829 they close when ESC is pressed. Thanks Andy!
6831 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6833 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6834 This way we can tell if this is a CommonDialog provided with mono, or one
6835 that is being implemented outside by a developer. If it is an external one,
6836 the developer is responsible for showing their own form. We were showing
6837 our blank form after the developer showed his.
6838 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6839 PageSetupDialog.cs: Instantiate form variable in our constructor.
6842 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6844 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6845 and always return true. [Fixes bug #81616]
6847 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
6849 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6850 TextBox. [Fixes bug #82549]
6852 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
6854 * FileDialog.cs: When Save/Open is clicked and no filename is selected
6855 or entered then do not close the dialog. Fixes bug #82539. Removed
6858 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
6860 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6861 code to this method. It is calling every time filter changes. This method
6862 will help to fix the bug #80887.
6864 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
6866 * CheckBox.cs: Implement AutoSize calculation.
6868 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
6870 * CheckBox.cs: Use new 2.0 rendering for 2.0.
6871 * Theme.cs: Method declarations for 2.0 rendering path.
6872 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6874 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6876 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6878 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6880 * ListViewGroupCollection.cs: Implement AddRange the right way, to
6881 only call Redraw on the parent one time.
6883 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6885 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6886 GetClipboardContent.
6887 * DataGridViewCell.cs: Implemented GetClipboardContent,
6888 GetEditedFormattedValue, GetFormattedValue.
6889 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6891 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
6893 * TableLayoutStyleCollection.cs: corcompare fix.
6895 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
6897 * DataObject.cs: Implemented retrieval of convertible / not convertible
6900 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
6902 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6903 ourselves. This ensures the entire old bounds are repainted, in case our new
6904 size is smaller. [Fixes bug #82518]
6906 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
6908 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6909 flag to make fast handle of mouse events, without this the mouse move is
6910 handled in some manner, whether it is a mouse move or not. Fixes #81588.
6912 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6914 * ListView.cs: When doing layout calculations don't use a ref
6915 param to keep the current item; instead use its Index value (this
6916 is specially important when doing the layout with Groups
6917 and Items being sparse). Also don't take into account items added to
6918 the Group but not yet added to the main ListView.Items collection.
6920 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6922 * ListViewGroupCollection.cs: Forgot to mimic an issue
6923 in the indexer (don't assign the ListView owner for new values).
6925 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6927 * ListViewGroupCollection.cs: Make the string indexer use
6928 the int based indexer to re-use code, instead of duplicate the code.
6929 Also Redraw as needed and take into account null values.
6931 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
6933 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
6936 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
6938 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
6939 when other buttons are clicked or navigated to.
6941 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6943 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
6944 it's XplatUIX11 that attaches them.
6946 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6948 * DataGridView.cs: If a column has been added, recreate the editing row.
6951 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6953 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
6954 of the tag to draw. Makes disappearing text show up again.
6956 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
6958 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
6959 Contents. Fixes #82487.
6961 2007-08-19 Andreia Gaita <avidigal@novell.com>
6963 * Added HtmlElement.cs, HtmlElementCollection.cs,
6964 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
6966 2007-08-19 Andreia Gaita <avidigal@novell.com>
6968 * BindingSource.cs: Implement this, dispose and getenumerator.
6969 * DataGridViewRowCollection.cs: Move the InvalidOperationException
6970 out of AddInternal, throw it only on public Add calls. The
6971 UsingWebBrowser sample was blowing up with this when setting the
6972 DataSource after adding DataBindings, so it's likely that .net
6973 only throws this exception when Add is called directly.
6975 * ToolStripControlHost.cs: Return the hosted control's text
6976 property, and not the ToolStripItem one (it would always return
6979 * HtmlDocument.cs: Implement GetElementById and All
6980 * WebBrowser.cs: Remove exception on set_DocumentStream.
6982 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6984 * Form.cs: Fix the max and min value for opacity (0~1).
6986 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6989 * DataGridTableStyle.cs: Default header font is now null, on getter it
6990 returns datagrid font when is null. On setter permits null.
6993 - When ResetHeaderFont set header font to null.
6994 - On EndInit set grid_style.DataGrid.
6996 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
6998 * TabControl.cs: Fix regression in default padding x.
7000 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7002 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7004 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
7006 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7007 not 2. Fixes #82229.
7009 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7011 * TabControl.cs: Fix tab size when image height is less than text height.
7012 Partially fixes #81837.
7014 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7016 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
7017 "alt + tab". It works only for Win32, for X11 theres no way to remove window
7018 from taskbar and keep it on "alt_tab". Fixes #81722.
7020 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7022 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7023 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
7024 Fixes #80877 and #79418.
7026 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7028 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
7029 between position and one of the screen borders. Fixes #82349.
7031 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7033 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
7034 the MessageBox in the taskbar. Fixes #82457.
7036 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
7038 * MessageBox.cs: Fix form size when icon is set and text height is bigger
7039 than icon. Fixes #82468.
7041 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
7043 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
7044 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
7045 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
7046 Refactored HandleNCCalcSize somewhat to avoid code duplication.
7047 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
7048 FormBorderStyle to decide if we're calculating a new size from the
7049 client size or not. CreateParams: Don't fake tool windows, only the X11
7050 backend manages toolwindows manually.
7052 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7054 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7055 ObjectDisposedException.
7057 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7059 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
7060 in OnLoad should not have any effect. [Fixes bug #82470]
7062 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7064 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7065 paint for controls that create their own ToolTipWindow instead of
7066 going through ToolTip.
7068 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7070 * ToolTip.cs: Make Hide internal instead of public to match MS API.
7072 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074 * ListViewGroupCollection.cs: Use generic List instead of an
7075 ArrayList, since this collection is 2.0 only.
7077 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
7079 * ToolTip.cs (Hide): Made public to make the build work (should
7080 this not be public?).
7082 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7084 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7086 * ToolTip.cs: Add an internal Visible property to facilitate transition.
7088 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
7090 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7091 PopupEventHandler.cs: Make these internal for 1.1.
7092 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7093 use ToolTipWindow internals.
7094 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
7095 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7097 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7099 * X11Dnd.cs: Add a null check.
7101 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7103 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7104 nothing else succeeds. Fixes #82453.
7106 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7108 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7109 rectangle if we're painting to another window than the one the paint
7110 message was generated on. Simplify the code somewhat, which makes
7111 PaintEventEnd also simpler.
7113 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7115 * Control.cs: When changing parent of a form, let the form decide whether
7116 XplatUI.SetParent should be called or not.
7117 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7118 recreating the handle. If the new parent's handle isn't created, don't
7119 recreate our handle, just destroy it. CreateParams: Check if the
7120 parent's handle is created before fetching it.
7122 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7124 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7125 Update calls to PaintEventStart/End to take a Message argument.
7126 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7127 take a Message argument.
7128 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7129 Message argument, and handle the case where we don't paint to the window
7130 for which the paint message was generated.
7132 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7134 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7135 Marshal.GetLastWin32Error. Plug nasty memory leak in
7136 PaintEventStart/End, we were creating a DC we weren't releasing.
7138 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7140 * ListView.cs: Add Groups support in Details view. Also have a small
7141 method to do the layout of the group header. Don't use a separate
7142 method to do the groups calculation in Icons view, since our methods
7143 are now a little simpler.
7144 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7146 * ThemeWin32Classic.cs: Likewise.
7148 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7150 * Application.cs: Add FilterMessage method and rework our message loop
7153 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
7155 * Application.cs: Add some methods and stub a few methods that are
7156 pretty much never used.
7158 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
7160 * TreeNode.cs: Add some serialization methods.
7162 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7164 * ListView.cs: In ListViewItemCollection have a
7165 'is_main_collection' field to not modify ListViewItem.ListView
7166 when using it as ListViewGroup.Items (and not ListView.Items)
7167 and also don't modify selection state (.Net behaviour).
7168 Instead, set group for items contained in a ListViewGroup.Items collection.
7169 * ListViewItem.cs: Simplify some code in Group setter.
7170 * ListViewGroup.cs: use the new .ctor to pass the current instance
7171 to the ItemsCollection.
7172 * ListViewGroup.cs: Set the ListView property for ListViewGroup
7173 instances when adding/removing. Also make Remove use RemoveAt, which
7174 should perform better.
7176 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7178 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7179 that crept into the 1.1 profile.
7181 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7183 * ToolBarButton.cs: Implement ImageKey.
7185 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
7187 * ToolBar.cs: Implement ScaleControl/ScaleCore.
7189 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7191 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7192 created, it might have gotten destroyed since we last checked. Fixes
7195 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
7197 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7198 tooltip will hide when mouse is moved off the control.
7201 2007-08-11 Andreia Gaita <avidigal@novell.com>
7203 * WebBrowserBase.cs, WebBrowser.cs: add implementation
7204 using Mono.Mozilla for loading and navigating webcontrol
7206 The initial implementation was done on
7207 /trunk/mozembed/tests/browser , and copied here.
7209 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
7211 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7212 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7214 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7216 * DataGridView.cs: Add support for an editing row. Fixes #82226.
7217 RowTemplateFull: throw an exception if a column doesn't have a template.
7218 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7219 add the row just before it.
7220 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7222 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7223 DataGridView field to be able to reach the grid's editing row.
7225 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7227 * ToolTip.cs: If the control's handle hasn't been created when it has a
7228 tooltip set on it, don't check to see if we need to show the tooltip. This
7229 check was causing the control's handle to be created.
7232 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7234 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7236 Handle Not Created -1 0
7240 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
7242 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7245 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7247 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7248 * ToolTip.cs: Implement some properties and owner draw.
7250 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7252 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7253 show them again, since setting visibility causes a paint, causing an
7254 endless loop (instead use a temporary and set it all when it's known if
7255 they should be shown or not). Fixes #79265.
7257 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7259 * DataGridView.cs: Only do a full column/row selection if a header was
7260 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7261 isn't pressed, deselect everything before selecting something.
7263 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7265 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7266 behaviour according to bug #81075 - they are returned in the order they
7267 are selected. Fix HitTest to check if the point is within any of the
7268 headers. Allow for row/column selection when in ColumnHeader or
7269 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7270 the row and column to call when their selected state changes, and
7271 updated selected_[rows|columns] whenever SetSelected* is called.
7272 * DataGridViewBand.cs: Initialize isRow correctly. Call
7273 SetSelected[Row|Column]CoreInternal when the selected state changes, and
7274 add a SelectedInternal to avoid StackOverflows.
7275 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7276 ReadOnly no matter what.
7277 * DataGridViewSelectedColumnCollection.cs,
7278 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7279 the items in reverse order (just as MS does...)
7281 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
7283 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7284 itself, not part of a mnemonic. [Fixes bug #82378]
7286 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7288 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7289 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7290 the DGV, the column, the row, or the cell itself is readonly.
7292 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7294 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7296 * FileDialog.cs: Same.
7297 * TextRendered.cs: Same.
7298 * FolderBrowserDialog.cs: Same.
7299 * TextBoxBase.cs: Same.
7300 * Application.cs: Same.
7302 * ThemeClearLooks.cs: Same.
7304 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
7306 * XplatUI.cs: Added RunningOnUnix property to be used by controls
7307 instead of duplicating these checks everywhere.
7308 * FileDialog.cs: Use case-insensitive comparison for populating the
7309 DirComboBox when not running on unix. Fixes bug #82385.
7310 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
7313 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7315 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7316 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7317 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7318 cell and column selection with ctrl and shift pressed. Call the correct
7319 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7320 the corresponding virtual method (PaintBackground to paint background,
7322 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7323 either the column, row or the cell itself is selected.
7324 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7326 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7327 here. When the row is selected, don't select all cells. Each cell now
7328 queries the row to see if the row is selected.
7330 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
7332 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7335 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7337 * ListView.cs: In ListViewItemsCollection check that owner is
7338 not null before trying to access it (this happens quite often
7339 using Groups). Also don't duplicate calls by calling CollectionChanged
7342 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7344 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
7345 when we are dismissed to clear keyboard mnemonics.
7346 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
7347 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7348 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7349 was activated by keyboard or the OS tells us to always draw them.
7350 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7351 [Fixes bugs #82376, #82377]
7353 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7355 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
7356 shot at having it because Alt was pressed.
7357 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7358 the first real menu item.
7359 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7360 a mnemonic if Text is null.
7363 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7365 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7366 search do check whether the item is already contained in the
7367 collection or not; instead check if the owner of the item is the same
7368 as ours. Also, remove a redundant check in the same method.
7370 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
7372 * Control.cs: Allow the clip region to be set back to null.
7373 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7374 [Fixes button still showing up in bug #82370 when Show Through is turned off]
7376 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
7378 * GridEntry.cs: Add a null check.
7379 * PropertyGrid.cs: When checking for existing grid entries, ignore category
7380 entries. Fixes #82297.
7382 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7384 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7387 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
7389 * ListBox.cs: Implement ScaleControl.
7391 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7393 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7395 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7396 parent has a menu strip. Fixes #81689.
7398 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7400 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7401 moments, so apply some fuzzy logic to determine if the mouse is still
7402 inside a control or not. Fixes #82288 (for the third time).
7404 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7406 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7407 Don't create the child if it has been disposed already (may happen if
7408 the user closes the form the Load event).
7410 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7412 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7415 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
7417 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7418 might call us after we've been destroyed, in which case our own private
7419 parent field is null. Fixes #82326.
7421 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7423 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7424 check for setting the dropdown's owner.
7426 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
7428 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7429 before removing system menu items.
7431 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
7433 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7435 * MdiControlStrip.cs: Added. These are the menu items used in mdi
7437 * ToolStrip.cs: Add a null check to mnemonics.
7438 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7440 [Fixes most of bug #81689]
7442 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7444 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7446 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
7448 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7450 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7452 * DataGridViewCell.cs: EditType: returns
7453 DataGridViewTextBoxEditingControl always.
7455 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
7457 * TextRenderer.cs: Remove the LineLimit string format flag from the
7458 DrawString fallback method so that things like buttons that aren't
7459 tall enough to draw a full line will still draw part of the text.
7460 [Fixes part of bug #82272]
7462 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7464 * DataGridView.cs: Implemented AutoResizeColumn(s).
7465 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7466 according to the Alignment.
7467 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7468 Implement alignment and padding when painting.
7469 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7471 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7473 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7476 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7478 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7481 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7483 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7484 hide GetPreferredSize from public API.
7485 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7486 * ToolStripItem.cs: Stub out drag and drop methods and events.
7487 * ToolStripManager.cs: Stub out Save/LoadSettings.
7488 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7489 * ToolStripPanel.cs: Fix corcompare error.
7490 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7491 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7492 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7494 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
7496 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7497 bounds height instead of PreferredHeight. Puts things back the way
7498 they were for height while still fixing the width. Fixes broken unit
7501 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7503 * Binding.cs: Implement 2.0 constructors and add a null check.
7505 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7507 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7508 and fix row index (off by one).
7510 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7512 * PropertyGridView.cs: Remove debug output.
7514 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
7516 * Control.cs: We need to reset the is_created flags when the handle is
7517 destroyed. Fixes #82187.
7518 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7519 client coordinates if the window doesn't have a parent.
7520 Win32GetParent returns the parent or the owner, and for top-level
7521 windows with no parent (but with an owner) we were calculating the
7522 location from the location of the owner.
7523 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7524 form has been disposed.
7525 * MdiClient.cs: Add a null-check.
7527 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7529 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7530 actually do auto-sizing. Override the internal GetPreferredSizeCore
7531 so we can provide an implementation that returns the current width
7532 and preferred height. Allows anchor = right to work with TextBox 2.0.
7535 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7537 * ListView.cs: Add support for navigating items in Groups mode, by
7538 creating a big matrix containing all rows and cols of all groups. When
7539 are in other mode than Details, pressing Up should have a similar
7540 behaviour as that one of Down (moving to the next available column if
7541 current one doesn't have an item in the requested row). Also, don't
7542 proceed to use groups if ShowGroups is false.
7543 * ListViewGroup.cs: Add an internal int field to store the starting
7544 row of the group (used by the big matrix used for navigating the
7546 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7549 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
7551 * ToolStripDropDown.cs: When we do Show, start with the
7552 DefaultDropDownDirection, but if our popup menu is going to off-screen,
7553 modify the direction to keep it on screen. [Fixes bug #82210]
7555 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
7557 * FileDialog.cs: Accept any FilterIndex value, and store it
7558 unmodified. When FilterIndex is less than 1, or greater than number
7559 of filters, then default to first filter. Only add filter extension to
7560 file if user did not specifiy an extension. When type of dialog is
7561 OpenFileDialog and DefaultExt is set, then only use filter extension
7562 if: CheckFileExists is true and no file wih the default extension
7563 exists, or CheckFileExists is false, and user specified file does not
7564 exist. When CheckFileExists is true, then add first extension of
7565 selected filter that matches existing file. Perform checks for
7566 existing file, overwrite and create after extension has been added to
7567 file name. When CheckFileExists is true and type is SaveFileDialog,
7568 then only consider first filter extension if DefaultExt is set.
7569 When CheckFileExists is true, then ignore DefaultExt if file with that
7570 extension does not exist. Also perform check for existing file when
7571 type is SaveFileDialog. Changed some field to constants.
7573 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7575 * ListView.cs: Take into account the region used by header
7576 control when doing the vertical scroll (this way we invalidate
7577 the precise area, and don't get any dirty one).
7579 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
7581 * FileDialog.cs: Check for valid filterIndex on button open/save.
7584 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7586 * ListView.cs: Update some layout calculations in details view
7587 and clean the code in a pair of assignations.
7589 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7591 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7592 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7593 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7594 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7596 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7598 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7599 performance of thread-safe Graphic methods. (Thanks rolf!)
7601 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7603 * ListView.cs: When doing the layout calculations, don't calculate
7604 scroll bars before handle is created. This is unnecessary and also
7605 calculating them before handle creation item causes a number of random
7606 bugs (which begin to appear after Chris' big patch for handle creation
7609 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
7611 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7612 for things that don't have a Graphics object. Currently, things just use
7613 the static Hwnd.bmp_g which is not thread safe.
7615 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7617 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7618 dialog. Fixes #82187.
7620 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
7622 * DataGridViewElement.cs: Initialize state.
7623 * DataGridView.cs: Forward a few Mouse events to cells. Add
7624 GetRowInternal and GetCellInternal that doesn't unshare rows.
7625 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7626 don't use the index, but look it up. Add
7627 DataGridViewControlCollection.RemoveInternal to remove controls
7628 that Remove won't remove (scrollbars, edit control).
7629 * DataGridViewColumn.cs: Initialize State correctly.
7630 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7631 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7633 * DataGridViewRowCollection.cs: Implemented shared rows.
7634 * DataGridViewRow.cs: Throw exceptions as MS do.
7635 * DataGridViewCell.cs: A few properties are implemented by a
7636 Get<Property> method, so move implementation there and remove the
7637 NIEX in the method. Add a bunch of OnXInternal that DataGridView
7638 calls when necessary.
7639 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7640 complicates matters.
7641 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7644 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7646 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7647 the children controls. Instead, we will just set up the proper docking for the
7648 children controls so we don't have to worry about it. [Fixes bug #82188]
7650 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7652 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7653 canceling and correct Before/AfterLabelEdit properties as layed out in bug
7654 81847. [Fixes bug #81847]
7656 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
7658 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7659 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
7660 an explicit size based on the design-time size of the text. Since our fonts
7661 may not match this explicit size, we tend to cut off the ends of people's labels.
7663 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
7665 * Menu.cs: Add some missing methods to MenuItemCollection.
7667 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7669 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7670 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7671 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7672 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7673 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7674 * DataGridViewElement.cs: State defaults to Visible.
7675 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7676 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7678 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
7680 * Control.cs: Minor 1.1 corcompare fix.
7682 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7684 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7685 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7687 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7689 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7690 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7691 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7692 DataGridViewSelectedColumnCollection.cs,
7693 DataGridViewSelectedRowCollection.cs: Corcompare work.
7695 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7697 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
7698 it is autoset by VS2005 designer and the effect is barely noticeable.
7700 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
7702 * TreeView.cs: Implement HitTest.
7704 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7706 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7707 manually adding and removing the control from the Controls
7709 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7710 EditingControlInternal property that tracks the editing control.
7711 Always keeping the scrollbars in the Controls collection, as MS
7712 testing confirms is the right behaviour.
7714 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7716 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7717 according to MSDN and new test.
7719 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7721 * TreeNode.cs: Implement ToolTipText.
7722 * TreeView.cs: Implement tooltips, NodeMouse* events.
7724 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7726 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7728 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7730 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7731 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7733 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
7735 * Control.cs, Form.cs, ContainerControl.cs,
7736 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
7737 for misc properties.
7739 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
7741 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7742 * TreeView.cs: Implement StateImageList.
7744 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7746 * Form.cs: Don't check if the current form is the active form before
7747 activating it. Fixes #81904.
7749 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7751 * Form.cs: Don't check if the current form is the active form before
7752 activating it. Fixes #81904.
7754 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7756 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7758 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7760 * Form.cs: Don't try to position the form after loading if the form was
7761 disposed. Fixes #81969.
7763 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7765 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7766 properties. Had to change ToolBar into ToolStrip, which required a
7769 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
7771 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7772 resized, fixes part of #79829 (vertical lines in toolbar).
7773 PropertyGrid: Refactored Populate* to something that's easier to
7774 follow at least for me, as well as splitting it up into several new
7775 methods, required to update only subitems when something has
7776 changed by a popup editor or listbox. Don't use events to check
7777 when any values are changed, since the events are unreliable (we're
7778 changing the objects the events are registered with, and if the
7779 event handling requires the objects to be immutable (objects stored
7780 in hashtables for instance), the events will never be raised).
7781 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7782 everytime we change a value, since events are unreliable.
7783 DropDownButtonClicked: For the same reason don't compare objects to
7784 check if it has changed or not, it would require all objects to
7785 derive Equals. Fix dialog location on windows, MS is doing weird
7786 things when creating parented forms.
7787 * GridEntry.cs: Add a SelectedObject setter.
7789 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
7791 * TreeNode.cs: Add some corcompare attributes.
7792 * TreeNodeCollection.cs: Implement 2.0 stuffs.
7793 * TreeView.cs: Implement some 2.0 stuffs.
7795 2007-07-18 Andreia Gaita <avidigal@novell.com>
7797 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7800 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
7802 * ListBox.cs: Implement custom tab offsets.
7804 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7806 * ToolStripContentPanel.cs: Support System renderer.
7807 * ToolStripControlHost.cs: Set RightToLeft to default to No.
7809 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7811 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7813 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7815 * CheckBox.cs: Chain TextAlign to base implementation instead of
7816 maintaining another one.
7818 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7820 * ButtonBase.cs: Fix an incorrect string constant.
7822 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7824 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7825 of creating one for measuring strings.
7827 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
7829 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
7830 Implement MaxItemSize.
7832 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
7834 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7835 for DeviceContext. Instead, use the static one available in Hwnd.
7836 Informal tests show this saves about 500k on formtest.exe.
7838 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
7840 * ContainerControl.cs: Implement 2.0 AutoScaling.
7842 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
7844 * ComboBox.cs: Work around bug #82120 (bug in mcs).
7846 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
7848 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7849 Darken the focus color.
7851 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
7853 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7855 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7856 X, Y instead of a rect for drawing text.
7857 - For ControlPaint.DrawCheckBox, center the check a little better when the
7858 checkbox is odd width. When drawing a flat checkbox, use a white background
7859 when state != inactive.
7860 [Fixes bugs #82097, 82100]
7862 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
7864 * ListControl.cs: When changing CurrencyManager, disconnect event
7865 handlers from previous one. Fixes bug #81771. Code formatting.
7867 2007-07-15 Andreia Gaita <avidigal@novell.com>
7869 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7870 full preview invalidation from layout invalidation, and only invalidate
7871 the layout when setting zoom or other properties. Invalidation should
7872 always be done even when resetting properties with the same values as
7873 what is there. Fixes #81744 and #79830.
7875 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7877 * ListView.cs: Implement initial support for Groups. Split some of the
7878 LayoutIcons code to render a partial list of the items (needed by
7879 items contained in ListViewGroup instances). Let the
7880 ListViewItemsCollection.ListView property be modifiable (needed when
7882 * ListViewGroup.cs: Use a Bounds property rather than a Location
7883 one. Also invalidate the bounds when they get changed.
7884 * ThemeWin32Classic.cs: When drawing items, also draw the group header
7885 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7888 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7890 * ListView.cs: When space gets pressed and CheckBoxes is true,
7891 don't invoke the Begin and EndUpdate methods. We are generating
7892 a redraw of the entire control without need to do so.
7894 2007-07-13 William Holmes <billholmes54@gmail.com>
7896 * Control.cs: Changing logic in FindFlatForward and
7897 FindFlatBackward to handle multiple Controls with
7899 This fixes bug 81687.
7901 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
7903 * OSFeature.cs: Enable IsPresent.
7905 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7907 * Control.cs: Don't do anything in WmShowWindow if the control has been
7908 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7909 control is created, put on a form, the control is disposed (the
7910 form is never shown), and then we get a MapNotify, triggering a
7912 * Form.cs: Exclude the current form when sending Deactivate to all
7914 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
7915 there was a race condition because assigning the handle raises
7916 events, we can get more messages, therefore trying to assign the
7917 handle again, which would fail if any of those event handlers
7918 closed/disposed the control.
7920 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
7922 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
7924 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
7926 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
7927 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
7929 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
7931 * DateTimePicker.cs: If there's no part format specifier, return an
7934 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
7936 * FlatButtonAppearance.cs: Throw NotSupportedException for a
7937 Transparent BorderColor.
7939 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
7941 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
7942 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
7943 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
7944 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
7945 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
7946 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
7947 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
7949 * X11Structs.cs: Remove warnings, add ToString implementations.
7951 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7953 * XplatUIX11.cs: Translate min/max size according to the actual min/max
7954 size, and not the current size. Fixes #81798.
7956 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7958 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
7959 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
7960 to the control yet).
7962 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7964 * PropertyGridTextBox.cs: Add a method that sends any forwarded
7965 mousedowns to the contained textbox.
7966 * X11Structs.cs: More ToString implementation.
7967 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
7970 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
7972 * PropertyGridView.cs: Add a null-check, fixes a few tests.
7974 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
7976 * TableLayoutPanelCellPosition.cs: TypeConverter.
7978 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7982 * PropertyGridTextBox.cs: Propagate any color changes to all contained
7984 * PropertyGridView.cs: A few color fixes.
7986 2007-07-10 Jackson Harper <jackson@ximian.com>
7988 * TextControl.cs: Remove some old unused text formatting stuff.
7990 2007-07-10 Jackson Harper <jackson@ximian.com>
7992 * TreeView.cs: Update full row select invalidation to match the
7993 newer DrawSelection... method.
7994 - Make sure to invalidate the entire width when selecting a new
7995 node, if we have full row selection enabled.
7997 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
7999 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8000 display of properties again.
8002 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
8004 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8005 to existing collections.
8007 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8009 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8010 that changed between 1.1 and 2.0.
8012 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8014 * PowerStatus.cs: Added. This is just a data class, it is filled
8015 in by SystemInformation.
8017 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8019 * Message.cs: Add op_Equality and op_Inequality.
8021 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8023 * MenuStrip.cs: Finish corcompare work.
8025 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8027 * LinkArea.cs: Add op_Equality and op_Inequality.
8029 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8031 * Application.cs: Add MessageLoopCallback delegate.
8033 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8035 * ListBox.cs: First set of 2.0 stuffs.
8037 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
8039 * Control.cs: Make an internal Height property we can override
8040 without messing up the public API.
8041 * ListBox.cs: Override HeightInternal to always return the size
8042 the user set. [Fixes bug #80466]
8044 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
8046 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
8047 paint cell borders if we haven't calculated where they go yet.
8048 [Fixes bugs #82040 and #82041]
8050 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8052 * ListView.cs: In Details view, set the location of item_control
8053 in the (0,0) position (and the header_control is thus on the
8054 item_control). This way the Bounds of the Items are relative to the
8055 ListView control (before this, they had a Bounds value without the
8056 header_control offset, which wasn't matching .Net). Fixes #82004.
8058 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8060 * ListControl.cs: When DataSource is set to null, pass an empty
8061 array of object to SetItemsCore. This is done to clean the items
8062 in the ListContol children. Fixes #81788.
8064 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8066 * ListControl.cs: Add 2.0 stuffs.
8068 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8070 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
8071 Refresh is overkill for just about every repaint request.
8073 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8075 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8076 so remove my custom Get method and fix the property getter.
8078 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8080 * Label.cs: DefaultMargin for 2.0.
8082 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8084 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
8085 reported issue where other controls with mnemonics would steal strokes
8086 from a selected ComboBox.
8088 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
8090 * ScrollOrientation.cs: Make internal for 1.1.
8091 * ScrollEventArgs.cs: Add 2.0 stuffs.
8093 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
8095 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8096 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8097 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8099 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8101 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8103 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8105 * ListView.cs: Implement the so-incredibly broken 2.0
8106 VirtualItemsSelectionRangeChanged event.
8108 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8110 * ListView.cs: When enter is pressed and selection is non empty,
8111 an OnItemActivate event must be fired.
8113 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8115 * ListView.cs: Store the FocusedItem information as an
8116 int instead of a ListViewItem (needed by VirtualMode).
8117 Update the calls to SetFocusedItem to pass an index instead of
8119 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8120 the Focused state from the owner ListView.
8122 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8124 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8125 property. Also, invalidate previous focused item in the mentioned
8126 property (match .Net).
8128 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8130 * ListView.cs: Implement 2.0 FocusedItem property setter.
8132 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8134 * ListView.cs: Implement 2.0 TopItem property setter.
8136 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
8138 * StatusStrip.cs: The default renderer is System.
8139 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
8140 if the user specifies it.
8141 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8142 if we are ManagerRenderMode.
8143 * ToolStripMenuItem.cs: Calculate our text color better.
8144 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8145 from Professional to the base class based off working with the System renderer.
8146 * ToolStripSystemRenderer.cs: Added.
8148 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8150 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8152 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
8154 * ToolTip.cs: Implement 2.0 Tag property.
8156 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8158 * ListView.cs: Implement 2.0 HitTest methods.
8160 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8162 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8163 item is under the pointer or not (sugar). Also remove the TODO
8164 regarding to the cursor changes in OneClick activation.
8165 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8166 the subitems use the parent's HotFont if UseItemStyleForSubItems is
8167 true; otherwise don't show the underline style.
8169 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8171 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8172 the code to retrieve the item at position only one time. Also
8173 change cursor when Activation is ItemActivation.OneClick as well
8174 as invalidate the item if HotTracking is true (to show/hide the
8175 underline style). Add an internal HotItemIndex property to retrieve
8176 the current hot item's index.
8177 * ListViewItem.cs: Add an internal HotFont property to cache the
8178 font used when HotTracking is true and the pointer moves within the
8180 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8181 HotFont depending on the hot state of the item.
8183 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8185 * ListView.cs: Implement 2.0 HotTracking property.
8187 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8189 * ToolStripControlHost.cs: If our hosted control never got created,
8190 don't try to dispose it. [Fixes bug #81909]
8192 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8194 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8196 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
8198 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
8200 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8202 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
8204 * DrawListViewColumnHeaderEventArgs.cs:
8205 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8206 using the DrawText () methods.
8208 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
8210 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8211 background which got erased in my changes yesterday.
8213 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8215 * ListViewItem.cs: Actually set bounds for subitems in Details view
8217 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8218 can invoke from the owner draw routines if we need it. Also, add
8219 support for Owner draw in Details view.
8221 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8223 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8224 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8225 ShowImageMargin setting, properly align text in a ToolStripLabel
8226 hosted on a ToolStripDropDown.
8228 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8230 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8231 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8233 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8235 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8237 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
8239 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8240 location to match ToolStripMenuItems.
8242 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8244 * DrawListViewColumnHeaderEventArgs.cs:
8245 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8246 column headers in ListView.
8248 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8250 * UserControl.cs: Implement AutoSize.
8252 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8254 * DrawListViewItemEventArgs.cs:
8256 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8259 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
8261 * ToolStripDropDownItemAccessibleObject.cs: Added.
8262 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8263 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8264 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8265 ToolStripTextBox.cs: corcompare work.
8267 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8269 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8270 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8271 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8274 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
8276 * OSFeature.cs: Add IsPresent.
8277 * PrintPreviewControl.cs: Add RightToLeft.
8278 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8279 * SplitterPanel.cs: Add AutoSizeMode.
8281 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8283 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8284 * MdiClient.cs: Add 2.0 ScaleControl.
8285 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8286 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8288 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8290 * Form.cs: Implement some scaling methods, stub some RTL methods,
8293 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8295 * Control.cs: corcompare work.
8296 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8298 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
8300 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8301 ControlPaint 2.0 stuffs.
8303 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8305 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8307 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8309 * UpDownBase.cs: Add 2.0 stuffs.
8311 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8313 * NumericUpDown.cs: Add 2.0 stuffs.
8315 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8317 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8319 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8321 * ErrorProvider.cs: Implement 2.0 stuffs.
8323 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8325 * DomainUpDown.cs: Implement 2.0 stuffs.
8327 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8329 * CheckedListBox.cs: Fix RefreshItems signature.
8331 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
8333 * PictureBox.cs: Implement 2.0 stuffs.
8335 2007-06-12 Andreia Gaita <avidigal@novell.com>
8337 * TabControl.cs: Check if there are tabpages before checking
8338 the selected index - fix #81802 (font changes raise a ResizeTabs
8339 call on controls.add, which blew up nicely with no tabpages)
8341 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8344 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8346 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8349 * ListViewItem.cs: In VirtualMode the selection information
8350 resides in the ListView, rather than in the Items. Also, throw
8351 InvalidOperationExceptions when VirtualMode is being used and
8352 CheckedItemCollection is accessed.
8354 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8356 * ComboBox.cs: Add ScaleControl.
8358 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8360 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8362 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8364 * GroupBox.cs: Add 2.0 stuffs.
8366 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
8368 * Panel.cs: Add autosize properties/event.
8370 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8373 - When we remove a control, remove it from the collection before performing the layout.
8374 - Setup an internal property for explicit_bounds.
8375 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8376 - Perform a layout when we set a new AutoSizeMode.
8378 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
8380 * ScrollableControl.cs: Add 2.0 stuffs.
8382 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8384 * ScrollBar.cs: Add 2.0 stuffs.
8386 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8388 * Splitter.cs: Add 2.0 stuffs.
8390 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8392 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8393 to have BindingContext simply use base implementation.
8395 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8397 * ColumnHeader.cs: corcompare fix.
8399 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8401 * Button.cs: corcompare fixes.
8402 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8404 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
8406 * Button.cs: Override GetPreferredSizeCore.
8407 * ButtonBase.cs: PerformLayout after changing properties that can affect
8408 AutoSize. Simplify some mouse/keyboard code.
8409 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8410 * MouseEventArgs.cs: Make Location internal for 1.1.
8411 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8412 * Theme.cs: Add CalculateButtonAutoSize.
8413 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8415 2007-06-05 Miguel de Icaza <miguel@novell.com>
8417 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8419 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8421 * ListViewItem.cs: We can't cache Bounds in VirtualMode
8422 since we can get different item instances every time we retrieve it.
8424 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8426 * ListView.cs: Work around for #81602, since an unkown an pretty
8427 infrequent condition appears only in some systems (old linux boxes, it
8430 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8432 * Button.cs: Completely reformat and a little refactor to bring
8433 this closer to Mono circa 2007.
8435 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8437 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8438 to be ButtonBase.Invalidate.
8440 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8442 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
8444 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
8446 * ButtonBase.cs: Completely reformat and a little refactor to bring
8447 this closer to Mono circa 2007.
8449 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
8451 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8452 values for autosize. Fixes #80137.
8454 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8456 * Control.cs: Don't perform layout when AutoSize changes.
8457 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
8458 directly when autosizing, use SetBounds with BoundsSpecified.None.
8459 Fixes unit tests my last commit broke.
8461 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8463 * Control.cs: Perform layout when AutoSize changes.
8464 * Form.cs: Implement AutoSizing.
8466 2007-06-01 Chris Toshok <toshok@ximian.com>
8468 * DataGrid.cs: remove the XXX'ed check at the top of
8469 ProcessGridKey. fixes #80464.
8471 2007-06-01 Chris Toshok <toshok@ximian.com>
8473 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8474 adding idempotent (add/remove in Edit()), and also make sure we
8475 don't add it until after we set the text, so it's not tripped in
8476 Edit(). Fixes unit test regression.
8478 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
8480 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8481 change is user explicit, not when the layout engine moves stuff. Fixes
8482 anchoring to bottom and right. [Fixes bug #81790]
8484 2007-06-01 Andreia Gaita <avidigal@novell.com>
8486 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8488 2007-06-01 Andreia Gaita <avidigal@novell.com>
8490 * ContainerControl.cs:
8491 Fire enter event for common ancestor if it is not a ContainerControl.
8492 Send focus to the active_control and not the 'value', the active
8493 control might have been changed in one of the events fired.
8494 Definitely fixes #80159.
8496 2007-06-01 Andreia Gaita <avidigal@novell.com>
8498 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8500 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8502 * PropertyGrid.cs: Anchor the help description to the bottom of the
8503 help panel and refactor SelectGridItem into a
8504 SelectGridItemInternal that can be set to null (and update it to
8505 clear the help texts when it is set to null). Set root item to null
8506 when there's no SelectedObject. Fixes #80438.
8507 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8508 when we're recalculating after a resize (only).
8510 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8512 * ListView.cs: Implement 2.0 RedrawItems method.
8514 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8516 * ListControl.cs: Disconnect PositionChanged and ItemChanged
8517 handlers from previous data manager when DataSource is set to
8520 2007-05-31 Jackson Harper <jackson@ximian.com>
8522 * TextBoxBase.cs: These seem to be the correct values.
8524 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
8526 * FileDialog.cs: When close dialog with ok set filterindex using combobox
8527 value. Fixes #81784.
8529 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
8531 * Control.cs: Implement 2.0 scaling methods.
8533 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8535 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8536 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8539 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8541 * ProgressBar.cs: Implemented missing 2.0 members.
8543 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8545 * Control.cs: Corcompare issues.
8546 * MessageBox.cs: Implemented missing 2.0 functions.
8548 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8550 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8551 Implemented more 2.0 members.
8553 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8555 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8556 null (strange, but it seems to happen when running unit tests).
8558 2007-05-30 Andreia Gaita <avidigal@novell.com>
8560 * ContainerControl.cs: Set active_control even earlier, before
8561 firing any events, and undo it if validation returns false.
8563 2007-05-30 Andreia Gaita <avidigal@novell.com>
8565 * ContainerControl.cs: Raise Validation and Enter/Leave events
8566 even if there is no Form and set active_control earlier, just
8567 before firing Enter events (toshok's patches). Fixes #80647.
8569 2007-05-30 Jackson Harper <jackson@ximian.com>
8571 * TextControl.cs: Redid the pageup/pagedown a little to simplify
8572 things and fix bug #81311.
8574 2007-05-30 Jackson Harper <jackson@ximian.com>
8576 * X11Dnd.cs: Now that we have our own event loop, we need to
8577 cancel when we get a mouseup but it won't be accepted.
8579 2007-05-30 Chris Toshok <toshok@ximian.com>
8581 * DataGrid.cs (set_CurrentCell): guard against negative
8584 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8585 array index syntax instead of looping over the property names.
8587 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8588 and set IsInEditOrNavigateMode to false there.
8590 2007-05-30 Jackson Harper <jackson@ximian.com>
8592 * TreeView.cs: Make sure we don't get a bad visible order when
8593 setting to the top node. Fixes some misc crashing in
8596 2007-05-30 Andreia Gaita <avidigal@novell.com>
8598 * UserControl.cs: Add 2.0 AutoSizeMode
8600 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8602 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8604 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8606 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8607 lines. Fixes #80285.
8609 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8611 * DataGridColumnStyle.cs: Add char trimming column header text format.
8613 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
8615 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
8618 2007-05-29 Jackson Harper <jackson@ximian.com>
8620 * TreeNode.cs: Fix off by one on calculating whether or not a node
8623 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
8625 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8626 * ScrollableControl.cs: Force an UpdateDistances when we move the
8630 2007-05-29 Andreia Gaita <avidigal@novell.com>
8632 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8633 update the page setup screen.
8635 2007-05-29 Andreia Gaita <avidigal@novell.com>
8637 * PageSetupDialog.cs: Fix landscape mode.
8639 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8641 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8642 IconSizeHorizontalSpacing.
8644 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8646 * ListView.cs: The declaration of prev_tooltip_item should be inside
8647 a NET_2_0 conditional (avoid a warning).
8649 2007-05-28 Andreia Gaita <avidigal@novell.com>
8651 * PageSetupDialog.cs: Implement PrintPreview control to display
8652 the preview thumbnail. Change unit conversion to use
8653 PrinterUnitConvert methods.
8655 Note: there is a huge bug in ms.net where the default margins are
8656 interpreted as centimeters (?), when in fact they are set in inches. When
8657 loading the page setup dialog initially (ms.net), the default margins
8658 are set to 1 inch, and the dialog shows them with value 10, when in fact
8659 it should be 25 (properly converted). Our dialog doesn't have this bug.
8661 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
8663 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8665 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8668 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8671 2007-05-28 Andreia Gaita <avidigal@novell.com>
8673 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8674 an IntPtr on csc (it builds fine on mcs, could it be a compiler
8675 bug?), convert the ptr to Int32 first.
8677 2007-05-28 Jackson Harper <jackson@ximian.com>
8679 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8680 recieved, we will exit the dnd tracking loop.
8682 2007-05-28 Jackson Harper <jackson@ximian.com>
8684 * X11Dnd.cs: Keep tracking until the xdnd finished event is
8685 recieved. TODO: I should probably stick a timer on the dropped
8686 event, and finish the drag if the XDND Finished event never shows
8687 (because some apps don't seem to send it).
8689 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
8691 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8694 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8696 * MonthCalendar.cs: Only mark the keypresses we actually handle as
8699 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8701 * MonthCalendar.cs: Set the size after initializing all the relevant
8702 variables. Fixes #81742.
8704 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
8706 * KeyEventArgs.cs: Fix typo.
8708 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
8710 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8711 to match MS. Fixed MinDate to only accept value less than or equal
8712 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8713 Removed TODO's that are now verified by unit tests.
8715 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
8717 * TreeNodeCollection.cs: Minor corrections to exceptions to match
8720 2007-05-25 Jackson Harper <jackson@ximian.com>
8722 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8723 it's own message loop.
8724 * XplatUIX11.cs: Remove some of the dnd hooks
8726 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
8728 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8729 instead of MinimizedWindowSize.
8731 2007-05-25 Jackson Harper <jackson@ximian.com>
8733 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8735 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
8737 * KeyEventArgs.cs: Added SuppressKeyPress.
8738 * Control.cs: Added support for SuppressKeyPress.
8740 2007-05-24 Andreia Gaita <avidigal@novell.com>
8742 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8743 problems with PieChart. suppress_validation should not be a counter,
8744 if there are several BeginInit calls, the first EndInit will
8745 activate validation. Fix exceptions thrown by set_Value.
8746 * UpDownBase.cs: ValidateText only if it's the user editing it.
8748 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8750 * ListControl.cs: FilterItemOnProperty should return the filtered
8751 item proeprty even if DataSource is null. The same applies for
8752 GetItemText. Fixes #80427.
8754 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8756 * Control.cs: If a control doesn't have a parent when it's Dock is
8757 set, but it has children, it needs to do a layout. Fixes some nested
8758 controls issues. [Fixes bug #81199]
8760 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8762 * ComboBox.cs: If there are few items in the drop down list, make it
8763 the exact size the items need, no bigger. Fixes #81612.
8765 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8767 * Application.cs: When we have captured the keyboard for a menu,
8768 check for mouse down events in case we need to close the menu.
8769 * Control.cs, Form.cs: Remove mouse down checks for menus.
8771 2007-05-24 Jackson Harper <jackson@ximian.com>
8773 * TextControl.cs: Handle tabs in non multiline mode a little
8776 2007-05-24 Jackson Harper <jackson@ximian.com>
8778 * TextControl.cs: We need to manually break apart tabbed text and
8779 move the tabs, since the system.drawing tabbing mechanism relies
8781 * TextBoxBase.cs: Move the caret properly when the user enters a
8784 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
8786 * ContainerControl.cs: Don't check CanSelect before calling
8788 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
8789 release a KeyboardActive on click if it's not ours.
8791 2007-05-23 Andreia Gaita <avidigal@novell.com>
8793 * ColumnHeader.cs: Add TypeConverter
8795 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8797 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8799 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8801 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8803 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8805 * LinkLabel.cs: Implement public Padding property.
8807 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8809 * LinkLabel.cs: Implement public FlatStyle.
8811 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
8813 * Control.cs: Apply patch from George to call parent.PerformLayout
8814 when Visible is changed. [Fixes bugs #81118, 81718]
8816 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8818 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8820 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8822 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8824 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
8826 * ContextMenu.cs: Implement Collapse.
8828 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
8830 * ToolBarButton.cs: Implement Name.
8832 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
8834 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8835 use current_item, it prevents some NRE. Fixes #81675.
8837 2007-05-22 Andreia Gaita <avidigal@novell.com>
8839 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8840 without updating the text.
8842 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
8844 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8845 without calling DeleteObject. [Should fix bug #81709]
8847 2007-05-22 Jackson Harper <jackson@ximian.com>
8849 * RichTextBox.cs: Set the line endings correctly, when flushing
8852 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
8854 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8857 2007-05-22 Jackson Harper <jackson@ximian.com>
8859 * TreeView.cs: Setting top with a null node should set to the very
8862 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8864 * Form.cs: ShowDialog: destroy the handle when message loop is
8865 finished, matches MS behaviour. Refactor parts of WmClose into
8866 RaiseCloseEvents, that only raises events if they haven't already
8867 been raised. Fixes #81688 and #81521.
8868 * Application.cs: Don't call close on the form when exiting a modal
8869 loop, it will raise all the (Form)Closed/Closing events again if
8870 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8871 which doesn'r raise any events it they have been raised before.
8873 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
8875 * Control.cs: Add OnPrint.
8876 * ToolStrip.cs: Add GetChildAtPoint.
8877 * ToolStripContainer.cs: Add OnRightToLeftChanged.
8878 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8880 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
8882 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
8884 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8886 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8887 isn't visible anymore. Fixes #81651.
8889 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8891 * Control.cs: WmShowWindow: Update children's z-order after setting
8892 their parent. SetParent may show the window, thereby corrupting
8893 z-order, since the window will be shown on top.
8894 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8895 multiple (and redundant) WM_SHOWWINDOW messages.
8896 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8897 event has already been raised.
8898 * Form.cs: Change is_changing_visible_state to a counter, since
8899 SetVisibleCore can be called recursively. CreateHandle: when
8900 creating mdi children, send (De)Activated events.
8901 * MdiClient.cs: Update use of is_changing_visible_state.
8902 * Application.cs: OnThreadException: Surround exception handling with
8903 try/finally to ensure we always reset the error-handling state
8906 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
8908 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
8911 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8913 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
8914 SmallIcon views, now that we have a standarized horizontal spacing.
8916 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
8917 4, just like the other views (Match .Net).
8919 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
8921 * Control.cs: Delay calculating anchor distances until we actually layout.
8922 Always query the WM for the actual size and location it put us at instead of
8923 only when we send negative values.
8924 [Fixes bugs #81694, 81695]
8926 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8928 * Application.cs: Avoid a possible stack overflow when trying to exit
8931 2007-05-19 Marek Safar <marek.safar@gmail.com>
8933 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
8936 2007-05-19 Andreia Gaita <avidigal@novell.com>
8938 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
8939 * NumericUpDownAcceleration.cs,
8940 NumericUpDownAccelerationCollection.cs: Added 2.0
8943 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
8945 * RichTextBox.cs: Recalculate the document after the ScrollBars
8946 property is changed. Fixes bug #81681.
8948 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
8950 * DataObject.cs: Implement 2.0 methods.
8952 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8954 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
8955 in the center of the checkbox, not in the left-top corner.
8958 2007-05-18 Jackson Harper <jackson@ximian.com>
8960 * RichTextBox.cs: Recalculate the document after the scrollbars
8961 property is changed.
8962 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
8965 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8967 * CreateParams.cs: Make HasWindowManager marginally faster.
8968 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
8969 into Hwnd so that other drivers can use it as well.
8970 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
8971 the default location from Hwnd. Fixes MDI client windows always
8972 showing up at (0,0) in Windows (Win32 won't set the default
8973 location since the window styles aren't correct).
8975 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
8977 * TreeView.cs: Modified DoubleBuffered to just use the base
8980 2007-05-18 Jackson Harper <jackson@ximian.com>
8982 * TreeView.cs: Set the top node to the last child node when
8984 - When we get focus, if there is no selected node, use the top
8987 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
8989 * KeysConverter.cs: Add CanConvertTo.
8990 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8991 * LinkConverter.cs: Added.
8993 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
8995 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8996 it prevents error when file dont have write access. Fixes #81669 and #81667.
8998 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9000 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
9001 button text. Fixes #79640.
9003 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9005 * Control.cs: According to MSDN controls created in the designer theres
9006 keyboard accelerators visible by default. So included check for design
9007 in ShowKeyboardCuesInternal.
9009 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9011 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
9014 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
9016 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9017 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
9019 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9021 * Control.cs: Finish implementation of UI State using WmChangeUIState
9022 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9023 in some controls to check for show_keyboard_cues to draw accell keys "_".
9025 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9027 * ListBox.cs: When calculating the horizontal scrollbar
9028 in single column mode, don't use values less than 0 for
9029 Maximum. Fixes #81474.
9031 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9033 * ListBox.cs: Throw the some missing exceptions in
9034 ListBox.ObjectCollection methods.
9036 2007-05-17 Jackson Harper <jackson@ximian.com>
9038 * TextBoxBase.cs: Recalculate the document when the word wrap
9039 value has changed. This fixes 81488.
9041 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9043 * Clipboard.cs: Implement missing GetText overload.
9045 2007-05-17 Chris Toshok <toshok@ximian.com>
9047 * Control.cs (CheckDataBindings): remove the binding_context arg
9050 * CurrencyManager.cs (OnItemChanged): fix this now that
9051 BindingManagerBase is fixed. also remove the comment telling where
9052 the fix should go. We set transfering_data to true/false around
9053 the call to PushData to keep UpdateIsBinding from being called.
9054 (ListChangedHandler): remove the extra OnMetaDataChanged call for
9055 PropertyDescriptorAdded in the 1.1 case. The extra call is
9056 actually generated by System.Data generating 2 metadata changed
9057 events of its own per column add. The fix should go there. Add a
9058 comment to that affect in our test's Assert.Ignore.
9060 * BindingManagerBase.cs: Rework PullData and PushData slightly.
9061 we keep a boolean flag (transfering_data) that keeps us from
9062 calling UpdateIsBinding multiple times if we re-enter either of
9065 * ControlBindingsCollection.cs (AddCore): remove the
9066 binding_context arg to binding.Check.
9068 * Binding.cs (IsBinding): don't check if we're binding here, just
9069 return our cached value. we update it in UpdateIsBinding.
9070 (Check): don't take the binding_context arg, we'll just use our
9071 control's. Also, for some reason MS doesn't use the data member
9072 field when getting the bindingmanager for this binding. it just
9073 uses the datasource. Make this method callable multiple times,
9074 and only do the is_null_desc stuff if manager.Position != -1 (so
9075 we don't get an exception accessing manager.Current).
9076 (UpdateIsBinding): move the code from IsBinding here.
9077 (PositionChangedHandler): call Check here to we can initialize
9078 things that require a non- -1 position.
9080 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9082 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9085 2007-05-17 Andreia Gaita <avidigal@novell.com>
9087 * TabControl.cs: Add 2.0 methods and events, including
9088 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9089 * TabPage.cs: Add 2.0 methods
9091 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
9093 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9094 keyboard_cues is properly handled by message method.
9096 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9098 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9100 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
9102 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9104 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
9107 - WmUpdateUIState added to handle state changes, it make call to
9108 OnChangeUICues event.
9109 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9112 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
9114 * ImageKeyConverter.cs: Added.
9115 * TreeViewImageKeyConverter.cs: Added.
9117 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9119 * ToolTips.cs: Update Text if SetToolTip is called for a control
9120 already showing the tooltip, as well as restarting its timer; show
9121 tooltip if we are inside the control bounds by the time of calling
9122 SetToolTip. Inside ShowTooltip remove the check to not show the
9123 tooltip again for the active control (it is allowed by .Net to
9124 show the tooltip on the same control multiple times).
9126 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9128 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9130 2007-05-16 Andreia Gaita <avidigal@novell.com>
9132 * ContainerControl.cs: only process tab key if there are no
9133 modifier keys present, otherwise the control does the
9134 tab processing, if it needs to. Fixes #81622
9135 * TabControl.cs: Fixes calculation for which tab to select on
9138 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
9140 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9142 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
9144 * Control.cs: Make IsInputCharInternal to allow controls to
9145 override it and still match MS API.
9146 * TextBoxBase.cs: Override IsInputCharInternal and always
9150 2007-05-15 Jackson Harper <jackson@ximian.com>
9152 * TextBox.cs: Disable some of the menu options when using a
9155 2007-05-15 Jackson Harper <jackson@ximian.com>
9159 * RichTextBox.cs: Some new 2.0 methods
9161 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
9163 * FileDialog.cs: On 1.0 profile, do not support multidotted
9166 2007-05-14 Jackson Harper <jackson@ximian.com>
9168 * TextBoxBase.cs: Implement some of the new 2.0 methods.
9169 * RichTextBox.cs: We need to override these methods on 2.0.
9170 * MaskedTextBox.cs: These are implemented now
9171 * TextControl.cs: This was off by one.
9173 2007-05-14 Jackson Harper <jackson@ximian.com>
9175 * TextControl.cs: Because the line endings are including in the
9176 text, we don't need to add them in anymore.
9178 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9180 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9181 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9183 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9185 * ToolBar.cs: Adjust size to default size when button theres no text and
9186 image, it fixes remaining issues from #81524.
9188 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9191 - When not flat call redraw to recalculate sizes on creare handle to match
9193 - Revert 77220 because it causes some regressions in toobar
9196 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9198 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9199 now actually enters a usable state.
9201 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9203 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9204 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9207 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9209 * ToolBar.cs: Save default_size on create handle to use later for buttons
9210 without text, needed to mimic win32 behavior.
9212 2007-05-11 Everaldo Canuto <everaldo@simios.org>
9214 * ToolBar.cs: Fix button layour to best fit width or height according to
9215 vertical or not. Fixes #81524.
9217 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9219 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9220 toolbar size info because different styles theres different sizes.
9223 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9225 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9226 if we are using checkboxes, checked is true, and we have less
9227 than two images in StateImageList; for the 1.1 in the same scenario
9228 draw the first image if we have at least one image in StateImageList.
9229 Fixes part of #81191.
9231 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9233 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9234 the owner's Items collection on merge.
9236 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9238 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9239 * ToolStripItemCollection.cs: Lots of fixes to when events get called
9240 and parent/owner gets changed based on gert's unit tests.
9242 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9244 * MaskedTextBox.cs: Started implementing parts of it.
9246 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9248 * ListView.cs: When clicking the checkbox on the items
9249 take into account the double clicks even if we have only
9250 one image in StateImageList (only for 1.0/1.1). Also
9251 generate an extra change of checked state when we receive
9252 the second click on checkbox (match .Net behaviour).
9253 Fixes part of #81191.
9255 2007-05-10 Everaldo Canuto <everaldo@simios.org>
9257 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9259 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
9261 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9262 even if OnLoad is overriden and base.OnLoad is not called.
9265 2007-05-10 Andreia Gaita <avidigal@novell.com>
9267 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
9268 shame. (I blame my ever-persisting and annoying cold)
9270 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9272 * ListView.cs: Don't eat navigation keys. Let them flow through to
9273 KeyDown/KeyPress routines. [Fixes bug #81569]
9275 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9277 * ListView.cs: When handling keys for selecting the item based off
9278 keyboard input, do not consider keys pressed with Alt or Control. Also,
9279 correctly handle keys when the Shift key is down. [Fixes bug #81578]
9281 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9283 * Control.cs: When using UseWaitCursor, we have to store the requested
9284 Cursor to use when UseWaitCursor is turned off.
9286 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
9288 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
9290 * Application.cs: Use PreProcessControlMessage instead of
9292 * PreProcessControlMessage.cs: Make internal for 1.1.
9294 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9296 * Control.cs: Add InternalContains focus property, which hast the same
9297 functionality of ContainsFocus, but also including implicit controls.
9298 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9299 since we need to know if the focus is contained in our implicit
9300 ItemControl when calculating Layout. Fixes part of #80888.
9302 2007-05-08 Everaldo Canuto <everaldo@simios.org>
9304 * ToolTip.cs: Remove center form string alignment as it must be align to
9307 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
9309 * ToolStripItemCollection.cs: Set the new item's parent and owner
9310 in Insert like we do in Add. [Fixes bug #81568]
9312 2007-05-08 Jackson Harper <jackson@ximian.com>
9314 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9315 - Off by one error in SetTop
9316 - Disable DoubeBuffering
9318 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
9320 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9321 control as much as necessary in order to make it entirely visible,
9322 instead of centering the control in the container (matches MS
9323 behaviour). CalculateCanvasSize: we need to take the current scroll
9324 position into account when calculating the maximum canvas,
9325 otherwise the following scenario will fail: resize so that the
9326 scrollbars appear, use the scrollbars to scroll, resize again
9327 smaller, and now the canvas size is too small. Recalculate: when
9328 showing scrollbars make sure they start off at 0, and try to scroll
9329 the active control into view. Fixes #79540. HandleScrollBar: don't
9330 scroll anywhere if the scrollbar isn't visible.
9332 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9334 * ListView.cs: When focus changed, call Layout/Invalidate
9335 in the focused item to update the selected state (should show
9336 entire label when ListView is focused, and a part of it if is not).
9337 * ListViewItem.cs: When doing layout for LargeIcon, take into account
9338 for displaying the entire label not only the Focused state of the
9339 item, but also the Focused state of the ListView (match .Net
9342 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9344 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9345 Implement UseWaitCursor.
9347 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9348 Applying contributed patch from Sergey Volk.
9350 * Clipboard.cs: Implement SetDataObject retry logic and new overload
9352 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9354 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9356 * Control.cs: Implement DrawToBitmap.
9358 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9359 Applying contributed patch from Stefan Noack.
9361 * Control.cs: Add [Get|Set]AutoSizeMode.
9363 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9365 * MdiClient.cs: Unmerge menus when the last child is closed.
9367 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
9369 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9370 * ToolStripManager.cs: Call Merge on DropDowns.
9373 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
9375 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9377 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9378 visibility. We can't create forms visible, since we have to set the
9379 owner before making the form visible (otherwise Win32 will do
9380 strange things with task bar icons). The problem is that we set the
9381 internal is_visible to true before creating the control, so
9382 is_changing_visible_state is the only way of determining if we're
9383 in the process of creating the form due to setting Visible=true -
9384 this works because SetVisibleCore explicitly makes the form
9385 visibile afterwards anyways. Fixes #80775.
9387 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9389 * ThemeWin32Classic.cs: When drawing ListViewItems,
9390 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9391 or LargeIcon _and_ item is not focused (match .Net behaviour).
9393 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9395 * Control.cs, Form.cs: Fix some obsolete method warnings.
9397 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
9399 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9400 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9402 2007-05-04 Andreia Gaita <avidigal@novell.com>
9404 * ContainerControl.cs: Fix active_control attribution when going
9405 up the parent chain so that the first parent container gets the control
9406 and the rest of the parent containers get the child containers (skips
9407 non-containers). Fixes #80729
9409 2007-05-04 Randolph Chung <tausq@debian.org>
9411 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9414 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9416 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9417 takes a size parameter, since the CreateParam's size isn't true for
9418 minimized forms. Fixes #81518,
9420 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9422 * Form.cs: Add OnDeactivateInternal.
9423 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9425 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
9427 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9428 accessing the parent. Fixes #81508.
9430 2007-05-03 Chris Toshok <toshok@ximian.com>
9432 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9433 2.0 block, pass listposition + 1 to ChangeRecordState when a row
9434 was added before the current listposition. Fixes the
9435 TestInsertRowBeforeCurrent unit test.
9437 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
9439 * Application.cs: Add RaiseIdle.
9440 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9441 XplatUIX11.cs: Implement RaiseIdle.
9443 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
9444 corcompare work: N - Z
9448 * ScrollableControl.cs
9452 * SystemInformation.cs
9454 * TableLayoutControlCollection.cs
9455 * TableLayoutPanel.cs
9460 * ToolStripComboBox.cs
9461 * ToolStripContainer.cs
9462 * ToolStripContentPanel.cs
9463 * ToolStripDropDown.cs
9464 * ToolStripDropDownItem.cs
9465 * ToolStripDropDownMenu.cs
9467 * ToolStripItemCollection.cs
9468 * ToolStripMenuItem.cs
9470 * ToolStripSplitButton.cs
9473 * TreeNodeCollection.cs
9474 * TreeNodeMouseHoverEventArgs.cs
9477 2007-05-01 Everaldo Canuto <everaldo@simios.org>
9479 * ContextMenu.cs: Add public method Show with alignment property to 2.0
9480 stuff. Thanks aatdark for the patch.
9482 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9484 * GridItem.cs: Implement 2.0 Tag property.
9486 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
9488 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9489 count instead of Nodes.Length. [Fixes bug #81448]
9491 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9493 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9496 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9497 corcompare work: A - M
9498 * BindingNavigator.cs
9503 * FlowLayoutPanel.cs
9509 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
9511 * Application.cs: Give toolstrips a chance to process mnemonics.
9512 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9513 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9514 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9516 2007-05-01 Jackson Harper <jackson@ximian.com>
9518 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9520 - Don't set the BoundsSpecified
9522 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9524 * Application.cs: When using the toolstrip shortcut mechanism, allow the
9525 message to pass through to a regular control if it hosted by a toolstrip.
9526 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9527 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9529 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9531 * TextRenderer.cs: Use the flags argument when using the MeasureString
9534 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
9536 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9537 the MDI menu item. [Fixes bug #81483]
9539 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
9541 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9542 string. When setting Name to null, use zero-length string instead.
9544 2007-04-29 Andreia Gaita <avidigal@novell.com>
9546 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
9547 DeselectTab). Implement missing 2.0 TabPageCollection methods
9548 (Add, ContainsKey, RemoveByKey, IndexOfKey)
9550 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
9552 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9554 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
9556 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9557 Fixes bug #81479. Include details of exception when LoadFile fails.
9559 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
9561 * DrawListViewSubItemEventArgs.cs: Added missing setter
9563 2007-04-27 Andreia Gaita <avidigal@novell.com>
9565 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
9566 Hide methods (not complete). Implement missing 2.0 OnPopup event.
9568 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9570 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9571 removed in ly last commit (it was breaking the Label edit feature).
9573 * ThemeWin32Classic.cs: When drawing a ListViewItem use
9574 StringAlignment.Near for LineAlignment (match .Net).
9576 2007-04-27 Andreia Gaita <avidigal@novell.com>
9578 * TabControl.cs: Change SetTab so it adds the tabpage to the list
9579 of controls if it isn't already there - was blowing up when doing
9580 tabcontrol.TabPages[i]=new TabPage().
9581 SetTab now does a replace by removing the page at the index.
9582 Add a new InsertTab method that inserts a page in a given index
9583 instead of replacing.
9584 Implements TabPageCollection.Insert(int, TabPage).
9586 2007-04-27 Chris Toshok <toshok@ximian.com>
9588 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9589 internal handler that can be invoked from our subclasses.) Also,
9590 add a comment to PushData about how we need to fix it.
9592 * CurrencyManager.cs: tons of changes here. trying to get things
9593 matching the behavior of .net wrt event orders (ItemChanged,
9594 CurrentChanged, PositionChanged.) I've implemented a private .net
9595 symbol (ChangeRecordState) that appears in stack traces because
9596 it's actually easier to do this than to effective inline all its
9597 various behaviors at every call site.
9599 * RelatedPropertyManager.cs: guard against an exception here by
9600 not using parent.Current if the position is set to -1 (if the
9601 parent datasource is cleared, for instance).
9603 * Binding.cs: don't parse data in PushData (this might be wrong,
9604 but it jives with MS's behavior.) Also, don't call PushData when
9605 we get a CurrentChanged event.
9607 2007-04-27 Andreia Gaita <avidigal@novell.com>
9611 WebBrowserSiteBase.cs,
9612 HtmlDocument.cs: Added stubbed out classes, no real implementations
9615 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9617 * MainMenu.cs: In draw method without parameters call draw method with
9618 PaintEvent, another one (just rect) adjust rectangle and we dont need it
9619 as Rect property is already adjusted. Fixes #80694.
9621 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
9623 * Application.cs: Need to handle keyboard menu deselection here.
9624 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9625 navigation, allowing keyboard to work on X11.
9626 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9628 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9630 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9631 menu bar. It fixes some drawing issues in menu bar.
9633 2007-04-27 Everaldo Canuto <everaldo@simios.org>
9635 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
9636 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9637 when <alt> key is pressed.
9639 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9641 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
9642 example just set visible to false and make this prevent from other problems.
9643 In SystrayAdd always remove pending expose. Fixes #81072.
9645 2007-04-26 Marek Safar <marek.safar@gmail.com>
9647 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9650 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9652 * ListView.cs: Added three missing 2.0 events and corresponding
9653 EventHandlers. Added the OwnerDraw property.
9654 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9656 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9658 * DrawListViewItemEventArgs.cs
9659 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9661 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
9663 * TextControl.cs: Fixed typo in constructor
9665 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
9667 * Application.cs: Create a shortcut path so that currently selected
9668 MenuStrips can intercept keyboard events without having focus.
9669 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9670 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9671 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9672 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
9673 generate WM_SYSCOMMAND message in X11 for other platforms.
9674 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9675 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9676 * ToolStripSplitButton.cs: Add DefaultItem property.
9678 2007-04-26 Everaldo Canuto <everaldo@simios.org>
9680 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9681 fixes some menu draw problem on Windows with border diferent from default
9682 it also fixes #81403.
9684 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9686 * Form.cs: Refactor WndProc into separate methods, just like Control is
9689 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9691 * Control.cs: set_Text: move the call to the driver into a seperate
9692 virtual method so that Form can override it.
9693 * MaskedTextBox.cs: Corcompare fixes.
9694 * Form.cs: Override UpdateWindowText and only update the styles if the
9695 form has been shown (fixes #81405).
9697 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
9699 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9700 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9701 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
9702 the form lost focus or another control was clicked.
9704 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
9706 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9709 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9711 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9712 DrawListViewItemEventHandler.cs,
9713 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9715 * X11Structs.cs: More ToString implementation.
9717 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
9719 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9720 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9722 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
9724 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9726 * FormCollection.cs: Don't add a form if it's already in the
9728 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9729 according to behaviour and MSDN. The ownerWin32 is the active
9730 window at the moment when we call ShowDialog, not the context's
9731 main form (the context's main form may open another form that opens
9732 a form with ShowDialog, the win32 owner is the second form). Add
9733 and remove forms to the Application.OpenForms in other places to
9734 better match MS behaviour. Add an IsActive property that raises
9735 On(de)Activated only if the active state has changed (we were
9736 raising OnDeactivated before OnActivated while creating forms).
9737 * Application.cs: Refactor Enabling/Disabling of windows for modal
9738 dialog loops out to separate methods, and restore the thread
9739 context when we quit the method. Fixes #81407.
9741 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9743 * ListView.cs: In ItemControl.HandleClicks, also fire
9744 2.0 MouseClick or MouseDoubleClick events on the parent,
9745 not only the Click/DoubleClick events.
9747 2007-04-24 Andreia Gaita <avidigal@novell.com>
9749 * TableLayoutSettings.cs:
9750 - Added a GetControls method and a support structure to help the
9751 TypeConverter to enumerate the controls for serialization.
9752 - Added a new serialization constructor.
9753 - Added a isSerialized flag initialized to true on the
9754 serialization constructor so that the TableLayoutPanel.LayoutSettings
9755 setter does not throw the designed NotSupportedOperation exception
9756 when the object is built through deserialization.
9757 - Implemented GetObjectData
9759 * TableLayoutPanel.cs: Added check on LayoutSettings.
9761 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9763 * ListView.cs: Report Click and DoubleClick events to the parent
9764 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9765 from breaking the click count state when using dialog forms (Control
9766 reports the clicks in a similar fashion). In the previous behaviour
9767 the last WM_LBUTTONUP message in a double click was sent to the
9768 ListView's form, instead of the ListView, which was breaking the click
9769 count for it. Fixes #80387.
9771 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
9773 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9775 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
9777 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
9778 us from created dropdowns for menu items that do not have subitems.
9779 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9780 Check HasDropDownItems before calling DropDown so a dropdown will not be
9781 created if it isn't needed.
9783 2007-04-24 Jackson Harper <jackson@ximian.com>
9785 * TreeView.cs: Set the first node to the selected node when we get
9786 focus if there is no selected node.
9788 2007-04-24 Andreia Gaita <avidigal@novell.com>
9790 * MimeIcon.cs: remove using blocks so that image streams are
9791 not disposed of. Fixes #80151
9793 2007-04-24 Jackson Harper <jackson@ximian.com>
9795 * TextBoxBase.cs: Fixup the height of textboxes when the control
9798 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
9800 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
9801 for each ToolStripItem when the parent's RightToLeftChanged is called.
9803 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9805 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9807 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9808 property, so that the setter can be overriden too.
9809 * TextBox.cs: Change GetContextMenuInternal() to use
9810 ContextMenuInternal.
9812 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9814 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9817 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9819 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9822 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9824 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9825 avoid duplicate work. Mostily skeleton code, it's not working at
9828 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
9830 * NotifyIcon.cs : stub for MouseClick event
9831 * Application.cs: stub for SetUnhandledExceptionMode
9833 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
9835 * BindingNavigator.cs : Initial (partial) implementation
9837 2007-04-23 Jackson Harper <jackson@ximian.com>
9839 * TreeView.cs: Do not create the treeview's handle when setting
9840 the scroll position.
9841 - ExpandAll needs to compute the scrollbars so it knows which
9842 position to set the bar too.
9844 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9846 2007-04-23 Jackson Harper <jackson@ximian.com>
9848 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9851 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
9853 * ToolStripItem.cs: Make GetImageSize internal.
9854 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9855 need to draw an item. Fixes a reported issue where images on menus
9856 that were not 16x16 were drawing incorrectly.
9858 2007-04-21 Miguel de Icaza <miguel@novell.com>
9860 * Padding.cs: Use the converter, fixes the resgen2 issue with
9863 2007-04-21 Jackson Harper <jackson@ximian.com>
9865 * TreeView.cs: Dont try to unhighlight the selected node if there
9866 isn't a selected node.
9868 2007-04-21 Jackson Harper <jackson@ximian.com>
9874 * TreeView.cs: Use the InternalBorderStyle property to set the
9875 initial border style, this forces the client rectangle to be sized
9878 2007-04-20 Jackson Harper <jackson@ximian.com>
9880 * TreeView.cs: Simplify scrolling to the last node after expanding
9882 - Fix some off by ones with setting the bottom.
9884 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
9886 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9887 that. We were incorrectly doing it the other way around. Also,
9888 update ClientSize if we change the BorderStyle before the control
9891 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
9893 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9894 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9895 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9896 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9897 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9898 Caption to CaptionHeight.
9899 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9900 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9901 and FixedFrameBorderSize to return value from current XplatUI driver.
9902 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9903 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9904 and FixedFrameBorderSize using win32 API. Renamed Caption to
9906 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9907 * SystemInformation.cs: Fixed typo in BorderSize.
9909 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
9911 * XplatUI.cs: Added MenuAccessKeysUnderlined.
9912 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
9913 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
9915 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
9916 value from XplatUI driver.
9917 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
9918 SystemParametersInfo.
9919 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
9921 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
9924 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9926 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
9928 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9930 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
9932 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
9934 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
9935 MenuStrips that contain ToolStripSeparators.
9937 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9939 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
9940 DefineStdCursorBitmap.
9941 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
9942 has been created off a standard cursor. This is used to get a
9943 bitmap of the standard cursor when Draw or DrawStretched is called
9944 in order to draw the cursor.
9945 * X11Structs.cs: Added XcursorImage and XcursorImages.
9946 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
9947 DefineStdCursorBitmap.
9948 * Cursors.cs: Update all relevant creations of Cursor to use the new
9949 internal constructor.
9951 2007-04-19 Jackson Harper <jackson@ximian.com>
9953 * TextBox.cs: Move the has_been_focused into the base control, so
9954 some of the text adding methods can manipulate it (probably time
9955 for a better name for this flag too).
9956 - Call a new version of selectall that doesn't scroll
9957 * TextBoxBase.cs: When we append text, if the document is empty,
9958 don't scroll. If the document has text already, we scroll to the
9959 end of the appended text.
9960 - When the text is changed, we reset the has_been_focused, so the
9961 next time the control gets focused, all the text is selected.
9963 2007-04-19 Jackson Harper <jackson@ximian.com>
9965 * TextControl.cs: Move the margins to the document, add a method
9966 so the margin sizes can be updated.
9967 * TextBoxBase.cs: When the border style is changed, update the
9970 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
9972 * Control.cs: Respect DefaultPadding.
9973 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
9974 padding into account.
9975 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
9977 2007-04-19 Jackson Harper <jackson@ximian.com>
9979 * TextControl.cs: Oops, we need to use the ClientRect not the
9982 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9984 * ListView.cs: In ItemControl.ItemsMouseDown, take into
9985 account the double clicks when CheckBoxes are used and
9986 the pointer is inside the checkbox. Fixes part of #81191.
9988 2007-04-18 Jackson Harper <jackson@ximian.com>
9990 * TextControl.cs: Pressing the end key shouldn't move the caret
9991 past the line ending.
9992 * TextBoxBase.cs: We can still delete if we are in the line
9993 ending and the combine will just kill the existing line ending.
9995 2007-04-18 Jackson Harper <jackson@ximian.com>
9997 * TextControl.cs: We can't move lines, then invalidate their
9998 bounds, we need to get the old bounds and combine that with the
10000 * TextBoxBase.cs: Before combining two lines for a delete, we need
10001 to invalidate the area of the old line, since that will be moved
10002 in the combine operation.
10004 2007-04-18 Everaldo Canuto <everaldo@simios.org>
10006 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10007 with transparent background. Fixes #80482.
10009 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
10011 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10012 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10015 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10017 * CreateParams.cs: Add a couple of helper methods and do a less string
10018 concatenation in ToString.
10019 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10020 overload that takes a Control parameter, since this method may be
10021 called before a control is assigned to the hwnd (from
10022 CreateWindow), and update CreateWindow to use the new overload. In
10023 GetMenuOrigin subtract the title bar from the y position if the
10024 form has a window manager (since we're painting it and not X).
10025 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10026 CreateParams to calculate the origin (since border sizes may vary).
10027 In ScreenToMenu only subtract the title height if we actually have
10029 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
10030 mdi children never have menus of themselves.
10031 * InternalWindowManager.cs: Implement menu handling like form does.
10032 Added GetMenuOrigin to calculate the menu origin, can't use the
10033 CreateParams from the form like normally since it's lying.
10034 * Hwnd.cs: Implement GetBorderSize better (in the sense more
10035 windows-like) and add Inflate and comparison operators to the
10036 Borders type. When calculating MenuOrigin and it's a form with a
10037 window manager, use the window manager to calculate it.
10039 2007-04-17 Chris Toshok <toshok@ximian.com>
10041 * Control.cs (CreateControl): turns out in 2.0 we don't need this
10042 OnBindingContextChanged thing here. It's only generated from
10043 ContainerControl.OnCreateControl. Fixes a newly written unit test
10044 - BindingTest.BindingContextChangedTest4.
10046 2007-04-17 Jackson Harper <jackson@ximian.com>
10048 * ScrollBar.cs: When setting values, make sure the current
10049 position stays within the new values range.
10051 2007-04-17 Chris Toshok <toshok@ximian.com>
10053 * Control.cs (CreateControl): talk about a bizarre corner case.
10054 Don't emit OnBindingContextChanged here if we're a parentless
10055 control (i.e. if we're a form.). Fixes
10056 BindingTest.BindingContextChangedTest2.
10058 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10060 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
10061 from win32. Fixes #81255.
10063 2007-04-17 Everaldo Canuto <everaldo@simios.org>
10065 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10066 already present in CalculateButtonTextAndImageLayout.
10068 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
10070 * XplatUIX11.cs: When setting min/max size for a window we need to
10071 translate the coordinates to x coordinates. Create an overload of
10072 SetWindowMinMax that takes a CreateParams handling this, and change
10073 SetWMStyles to call this function (can't use Control.FromHandle in
10074 the SetWindowMinMax to get the control/CreateParams from the handle
10075 because the handle might not have been assigned to the control
10076 yet). Fixes #81371.
10078 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10080 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10081 if StateImageList is non-null and it has less than two items (match MS
10082 behaviour). Also, in HandleNavKeys handle the Space key, calling
10083 the new ToggleItemsCheckState method, which tries to change the
10084 checked state of the selected items. Fixes part of #81191.
10086 2007-04-16 Jackson Harper <jackson@ximian.com>
10088 * RichTextBox.cs: namespace cleanup.
10090 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10092 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10094 2007-04-16 Everaldo Canuto <everaldo@simios.org>
10097 * Control.cs: Call invalidate in set_Region.
10099 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10100 it dont works here.
10102 2007-04-16 Jackson Harper <jackson@ximian.com>
10104 * TextBoxBase.cs: When enter is pressed, we need to update all
10105 lines below the current.
10107 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
10109 * MdiClient.cs: Implement implicit menu merging for MDI
10110 children. When a child form is active, if it has a menustrip
10111 and the parent form has a MainMenuStrip, automatically merge
10114 2007-04-15 Andreia Gaita <avidigal@novell.com>
10116 * TabControl.cs: Refactored sizing methods to not repeat
10117 code all over the place. Tab bounds are now calculated
10118 as if alignment is top and single line, and only when
10119 setting the bounds are the positions adjusted according
10120 to alignment. Replaced hardcoded positions, spacings and
10121 paddings by getting the values the ThemeEngine.
10124 * Theme.cs: Change TabControl properties and methods so
10125 that all start with TabControl*. Added more properties
10126 to help remove hardcoded values on tabcontrol.
10127 Add CPDrawBorder3D declaration so the Theming classes
10130 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10132 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10133 on the Theming namespace, and call the appropriate methods here.
10134 Change CPDrawBorder3D to public.
10136 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10138 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10139 the control after firing the OnMouseUp event, instead of sending
10140 the message before the mentioned event. This is so we can match the
10141 MS behaviour. Fixes part of #80385.
10143 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10145 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10146 RightToLeft property.
10148 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
10150 * ToolStrip.cs: Add properties and internal methods to support merging.
10151 * ToolStripItem.cs: Add MergeAction and MergeIndex.
10152 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10153 not trigger reparenting or layouts.
10154 * ToolStripManager.cs: Add Merge and RevertMerge methods.
10155 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10156 is hosting the overflow menu.
10158 2007-04-13 Jackson Harper <jackson@ximian.com>
10160 * TextControl.cs: Set the line ending correctly for the first
10163 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
10165 * Theme.cs: Update GetMethod to get the new definition for
10166 KnownColors.Update (and fix theme color updates).
10168 2007-04-12 Everaldo Canuto <everaldo@simios.org>
10170 * MessageBox.cs: Fix some test and button position.
10172 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10174 * Form.cs: Consider the implicit controls in
10175 GetRealChildAtPoint. We need it since this method
10176 is called on Form when handling the some messages in
10177 WndProc, and need to consider those implicit ones too.
10180 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
10182 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10183 if there are no ShortcutKeys set.
10184 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10185 set, use it when painting.
10187 2007-04-12 Jackson Harper <jackson@ximian.com>
10189 * TextControl.cs: Fix some off-by-one issues in line duplication
10190 and insertion in the undo manager. Also, overwrite the first tag
10191 of a line on insert, if it is just a zero lengthed tag. This
10192 prevents us from getting an extra stranded tag at the beginning of
10195 2007-04-11 Everaldo Canuto <everaldo@simios.org>
10197 * Label.cs: Remove check for handle created in CalcAutoSize, we need
10198 to calculated proper size including when handle was not created yet.
10200 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10202 * MdiWindowManager.cs: When moving a form, allow the form to be moved
10203 when the mouse is outside of it's parent's client rectangle. Fixes
10204 #79982 (take 3, part 2).
10206 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10208 * X11Structs.cs: Add a few ToString() overrides.
10209 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10210 the window location in a window-manager independent way. Reworked
10211 FrameExtents, it now actually works. Reworked AddConfigureNotify
10212 and ReparentNotify handling to use GetTopLevelWindowLocation
10213 instead of the earlier, more hacky solution. Reworked SetWMStyles,
10214 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10215 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10216 for all other windows (fixes #81281 part 1), a toolwindow is hidden
10217 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10218 and generally refactored to do as few calculations as possible
10221 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
10223 * Theme.cs: Change "reflective-contract" between MWF and SD to
10224 minimize # of calls, avoid Color serialization and avoid updating
10225 every "known colors" each time a single one is updated.
10227 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10229 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10230 when not readonly and the text is explicitly set. Code style updates.
10231 * DataGridTableStyle.cs: Removed extra line.
10232 * DataGrid.cs: Code style updates. Removed extra whitespace.
10233 * DataGridColumnStyle.cs: Code style updates. Removed extra
10236 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
10238 * XplatUIX11.cs: Added comment that "fixes" #80021.
10240 2007-04-09 Jackson Harper <jackson@ximian.com>
10242 * TextControl.cs: We don't need this -1 on the line count anymore.
10244 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
10246 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10247 entered value to underlying type, and convert it back to a string to
10248 apply formatting. Modified GetFormattedValue to use TypeConverter
10251 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
10253 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10254 Use SubItems property when we want to ensure there's at least one
10255 subitem. Modified SubItems property to ensure there's always at least
10256 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10257 the NRE's reported by MS.
10259 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
10261 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10262 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10263 Spaces to tabs. Removed extra tabs.
10265 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
10267 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10268 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
10270 2007-04-06 Jackson Harper <jackson@ximian.com>
10272 * TextBoxBase.cs: When a delete removes a line, recalculate all
10273 lines below that line (they need to get offsets setup correctly)
10276 2007-04-05 Jackson Harper <jackson@ximian.com>
10278 * TextControl.cs: We need to invalidate across the width of the
10279 document when we are invalidating multiple lines.
10280 * TextBoxBase.cs: Don't delete into the line ending.
10282 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10284 * ListView.cs: Restore the check for the MouseHover event
10285 in ListView. It looks like the ListView fires more than one MouseHover
10286 event when HoverSelection is true _only_ in weird-corner scenarios, but
10287 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10290 2007-04-05 Mike Kestner <mkestner@novell.com>
10292 * ListView.cs : raise MouseDown before updating selection.
10293 [Fixes #80373 tab 1&3]
10295 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10297 * ToolStripRenderer.cs: Add static method to mirror image.
10298 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10299 and RightToLeftAutoMirrorImage.
10300 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10302 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
10304 * ToolStripSplitStackLayout.cs: Support Alignment property.
10305 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10307 2007-04-05 Jackson Harper <jackson@ximian.com>
10309 * TextControl.cs: Move around the line endings when crossing line
10311 - When combining lines, strip the ending text off the first line.
10313 2007-04-05 Jackson Harper <jackson@ximian.com>
10316 * TextBoxBase.cs: Try to never move the cursor into the line
10319 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10321 * ToolStripItem.cs: Make sure we aren't firing mouse events when
10322 the item is disabled. Also add a few missing methods.
10324 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10326 * ListView.cs: We don't need the MouseEnter/MouseLeave check
10327 to fire just one MouseHover event when HoverSelection is true, since
10328 .Net does fire more than one MouseHover event in that scenario. Also,
10329 fix the selection in HoverSelection, by invoking UpdateMultiSelect
10330 if MultiSelect is true, instead of only setting ListViewItem.Selected.
10331 Finally, we need to reset the Hover logic in MouseMove, even when we
10332 don't have a selected item.
10334 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10336 * ToolStrip.cs: Add several missing methods, properties, and events.
10338 2007-04-04 Chris Toshok <toshok@ximian.com>
10340 * DataGridTextBoxColumn.cs: set the bounds of the text box to
10341 (0,0,0,0) in Commit, as MS does.
10343 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10344 make sure we set CurrentRow on a row header click *before* calling
10345 Select. This moves the current cell (and the textbox) to the new
10346 row. The call to Select then hides the textbox, giving us the
10347 correct behavior. Fixes #80362.
10349 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10350 (ListChangedHandler): reorder the position/current changed events,
10351 and call UpdateIsBinding in the ItemAdded case.
10353 * GridColumnStylesCollection.cs: add some columns events, one of
10354 which raises the CollectionChanged event.
10356 2007-04-04 Jackson Harper <jackson@ximian.com>
10358 * TextControl.cs: When we delete multiple selection lines
10359 invalidate the selection area, don't need to do that for single
10360 lines because the final update view will handle it.
10362 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
10364 * Control.cs: When we CreateControl, we need to also create all of the
10365 control's children. The child's OnLoad must also fire before the parent's
10366 OnLoad. Fixes the toolbox size in PDN.
10368 2007-04-04 Jackson Harper <jackson@ximian.com>
10370 * TextBoxBase.cs: When the user presses enter, insert a line
10371 ending into the text. (Maybe this would be a good spot for
10372 Environment.NewLine).
10373 * TextControl.cs: Remove undo manager hack, line endings get
10374 inserted properly now.
10376 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10379 - Remove unneeded parameters in UpdateCursor.
10380 - Fix UpdateCursor to check if menu is active.
10381 - Call UpdateCursor when menu deactivate my click.
10382 [Fixes remaining issues from #80410]
10384 2007-04-04 Everaldo Canuto <everaldo@simios.org>
10386 * Control.cs: GetRealChildAtPoint method added, it make an
10387 recursive child control search for the point.
10389 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10392 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10394 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10396 * Form.cs: Fix mouse position when send back mouse event after closes
10399 2007-04-03 Everaldo Canuto <everaldo@simios.org>
10401 * Form.cs: Simplify the BUTTONDOWN for active tracker.
10403 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10405 * Control.cs: Fix an issue where if a user resized a control inside
10406 a sizing method like OnResize, we would overwrite their explicit
10407 value. Also, only call DefaultSize once in the constructor instead
10408 of 4 times. Also, do not call SetBoundsCore from SetBounds if
10409 nothing actually changed.
10411 2007-04-03 Jackson Harper <jackson@ximian.com>
10413 * TextControl.cs: Don't attempt to copy text for lines with no
10414 text in them (technically this shouldn't happen, but we aren't
10415 always inserting line endings when we should be).
10417 2007-04-03 Jackson Harper <jackson@ximian.com>
10419 * TextBoxBase.cs: Calculate the scrollbars before calculating the
10420 document, because this sets some of the document size properties
10423 2007-04-03 Jackson Harper <jackson@ximian.com>
10425 * TextBoxBase.cs: We need to calculate maximums even if this is
10426 not a multiline control, because the maxs are used for scrolling.
10427 - Display the caret after doing a page up/down, we need to
10428 manually display it because a proper CaretMoved event isn't
10429 triggered (this is because of the way the math is done to
10430 determine how far to scroll).
10432 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
10434 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10435 (ToolBar was relying on SetBoundsCore to default the values sent
10436 base off of BoundsSpecified.)
10438 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10440 * DateTimePicker.cs: Change Text so that when a null value or empty
10441 string is assigned to the test we always raise ValueChanged and
10442 TextChanged (earlier implementation would only raise ValueChanged
10443 if the current date value was different from DateTime.Now).
10445 2007-04-03 Andreia Gaita <avidigal@novell.com>
10447 * ButtonBase: Call update after invalidation, fixes #80194
10449 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10451 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10454 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10456 * XplatUIX11.cs: SetWMStyles: If the control is a form with
10457 FormBorderStyle = None, don't give the window any decorations.
10460 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
10462 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10463 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10464 to check for is a mix of several styles (such as WS_CAPTION for
10466 * Control.cs: Don't paint an area bigger than the client area when
10467 painting the background colour. Add an internal GetCreateParams.
10468 Update calls to XplatUI.CalculateWindowRect due to API change.
10469 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10470 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10471 the size if it hasn't been handled by any windows. When creating
10472 and moving windows, X wants the location of the entire window, but
10473 the size of the client window, so add
10474 TranslateClientRectangleToXClientRectangle,
10475 TranslateWindowSizeToXWindowSIze and
10476 TranslatedXWindowSizeToWindowSize to cope with this, and call them
10477 before every window creation and move. Update CalculateWIndowRect
10478 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10479 In AddConfigureNotify don't do anything if the hwnd is a zombie
10480 (fixes the BadWindow we were getting while running the tests),
10481 always calculate the offsets when it's a parentless window, not
10482 only when reparented, and translate the window size, since we're
10483 getting the client size of the whole window, excluding entire
10485 * Theme.cs: Added BorderSizableSize.
10486 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10487 anymore. Update calls to XplatUI.CalculateWindowRect due to API
10489 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10490 change. Fake the window styles here instead of in XplatUIWin32 so
10491 that all back-ends get the same window styles (and it's Form that's
10492 deciding when to use wm, not the Win32 backend anyways)
10493 * Hwnd.cs: Completely reworked GetWindowRectangle and
10494 GetClientRectangle - they are now passed a CreateParams and they
10495 only use Style and ExStyle to determine the rectangles (they should
10496 now work just like Win32AdjustWindowRectEx - though quite a few
10497 special cases are probably missing). They should also be 100%
10498 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10499 == rect), and all numbers (borders, menu sizes) are taken from the
10500 current theme. Added a GetBorders helper function that will return
10501 the borders for any given CreateParams (including captions and
10502 menus), and GetBorderSize that returns the given border size only.
10503 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10504 Hwnd.GetClientRectangle.
10506 2007-04-02 Chris Toshok <toshok@ximian.com>
10508 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10509 logic between the values we present to the user and the values
10510 which are stored in the column's property. Also, don't call
10511 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10513 2007-04-02 Jackson Harper <jackson@ximian.com>
10515 * TextBoxBase.cs: Scroll faster!
10517 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10519 * StatusStrip.cs: Layout fixes for PDN.
10520 * ToolStrip.cs: Set item's available to true, and placement to main when
10522 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10523 changing in setter before doing any work, add InternalVisible.
10524 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10525 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10528 2007-04-02 Jackson Harper <jackson@ximian.com>
10530 * TextBox.cs: LBUTTON does not make the textbox select all of it's
10533 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10535 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10536 Makes ToolStripComboBoxes show up again.
10538 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10540 * ListView.cs: Add a hover_pending field in ListView
10541 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10542 cycle (we are resetting the MouseHover logic in XplatUI
10543 to handle HoverSelection). Fixes #80429.
10545 2007-04-02 Jackson Harper <jackson@ximian.com>
10547 * TextControl.cs: Make sure the attributes get set on the last
10549 - Still have to do the end tag if we have stepped all the ways to
10552 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
10554 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10555 on an internal libgdiplus call when the information is already
10556 available via the public API.
10558 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
10560 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10561 control is removed from a control collecftion.
10562 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10563 Fixes FormPropertyTest (failed on rare occasions).
10564 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10565 of Win32SetParent (when changing from no parent to a parent it
10566 might add the new parent's location in screen coordinates to this
10567 window's location).
10568 * Form.cs: Rework ChangingParent once again, now the handle is
10569 recreated whenever a FormWindowManager is added or removed (that is
10570 whenever a normal form is parented or abandoned). Also change
10571 CreateParams so that all non-toplevel windows always get the
10572 specified sice (StartupPosition is never considered for
10573 non-TopLevel forms).
10574 * ContainerControl.cs: Add ChildControlRemoved, the container control
10575 needs to be notified when a control is removed from it's
10576 collection, in the case the removed control is the active control.
10578 2007-04-02 Jackson Harper <jackson@ximian.com>
10580 * RichTextBox.cs: Use the new methods for setting the font and
10581 color, these methods set the specified attribute without
10582 overriding the other attributes.
10584 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
10586 * ToolStripPanel.cs: Fixes for better layouts in PDN.
10588 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
10590 * TextBox.cs: Added internal ChangeBackColor method to special-case
10591 Color.Empty. Added check for invalid ScrollBars value.
10592 * TextBoxBase.cs: Added internal ChangeBackColor method.
10593 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10594 internal ChangeBackColor method to special-case Color.Empty. Added
10595 check for invalid ScrollBars value.
10597 2007-03-30 Everaldo Canuto <everaldo@simios.org>
10599 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10601 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10603 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10604 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10605 [Based on submitted patch from Olivier Duff.]
10607 2007-03-30 Jackson Harper <jackson@ximian.com>
10609 * TextBox.cs: Only select all on initial focus if the user has not
10610 specified a selection area.
10612 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
10614 * UserControl.cs: Override CreateParams.
10616 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10620 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10621 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10622 check for is a mix of several styles (such as WS_CAPTION for instance).
10623 * Control.cs: Don't paint an area bigger than the client area when painting
10624 the background colour. Add an internal GetCreateParams. Update calls to
10625 XplatUI.CalculateWindowRect due to API change.
10626 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10627 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10628 hasn't been handled by any windows. When creating and moving windows, X
10629 wants the location of the entire window, but the size of the client
10630 window, so add TranslateClientRectangleToXClientRectangle,
10631 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10632 to cope with this, and call them before every window creation and move.
10633 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10634 removing DeriveStyles). In AddConfigureNotify don't do anything if the
10635 hwnd is a zombie (fixes the BadWindow we were getting while running the
10636 tests), always calculate the offsets when it's a parentless window, not
10637 only when reparented, and translate the window size, since we're getting
10638 the client size of the whole window, excluding entire window.
10639 * Theme.cs: Added BorderSizableSize.
10640 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10641 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10642 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10643 Fake the window styles here instead of in XplatUIWin32 so that all
10644 back-ends get the same window styles (and it's Form that's deciding when
10645 to use wm, not the Win32 backend anyways)
10646 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10647 they are now passed a CreateParams and they only use Style and ExStyle
10648 to determine the rectangles (they should now work just like
10649 Win32AdjustWindowRectEx - though quite a few special cases are probably
10650 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10651 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10652 sizes) are taken from the current theme. Added a GetBorders helper
10653 function that will return the borders for any given CreateParams
10654 (including captions and menus), and GetBorderSize that returns the given
10656 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10657 Hwnd.GetClientRectangle.
10659 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
10661 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10662 layout of the mdi children is handled by CreateParams. Fixes
10665 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10667 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10670 * Form.cs: When active tracker mouse down is not processed, send event
10671 back to control inside mouse position. [Fixes #81227]
10673 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
10675 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10676 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10677 stealing focus from the active form on Windows. (Control will be made
10678 visible in ShowWindow.)
10680 2007-03-29 Mike Kestner <mkestner@novell.com>
10682 * ImageList.cs : add internal Changed event.
10683 * ListView.cs : hook up to StateImageList.Changed to perform
10684 invalidations when the the state icon list changes. [Fixes #81191]
10686 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
10688 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10689 to prevent tooltips from stealing focus from the active form on Windows.
10691 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10693 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
10695 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10697 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10699 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10702 2007-03-29 Jackson Harper <jackson@ximian.com>
10704 * TextControl.cs: When deleting text from non multiline textboxes,
10705 we need to update the entire document, because line offsets will
10708 2007-03-29 Everaldo Canuto <everaldo@simios.org>
10710 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10711 added to theme, now we can create themes that uses diferent notify engines
10712 like notification-daemon from galago project or growl for Mac OS.
10714 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10716 * NotifyIcon.cs: Prevent Balloon to show in task bar.
10718 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10720 * XplatUIX11.cs: Prevent system to open more than one balloon.
10722 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10723 some compiler warning messages.
10725 2007-03-28 Everaldo Canuto <everaldo@simios.org>
10729 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10731 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
10732 implemented, this methods is used by NotifyIcon.BalloonWindow class.
10734 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
10737 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10739 * ListViewItem.cs: Forgot to make Invalidate internal.
10741 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10743 * ListView.cs: Add a InvalidateSelection method to
10744 invalidate methods which are currently selected, and call
10745 it when setting FullRowSelect and HideSelection, instead of
10748 2007-03-28 Chris Toshok <toshok@ximian.com>
10750 * XplatUIX11.cs (UnmapWindow): reindent this block.
10752 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10753 the selection_start if we're moving the selection (that is, not
10754 extending it). Fixes bug #80461.
10756 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10758 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10759 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10760 create private ControlCollection.
10762 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10764 * Control.cs: We need to call OnVisibleChanged for our implicit
10765 children as well as our normal children. Fixes scrollbars in
10766 comboboxes not showing up.
10768 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10770 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10771 the check for IsHandleCreated first. The check in CreateHandle is not
10772 good enough because CreateHandle can be overriden, and the override
10773 should not be called if the handle is already created.
10775 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
10777 * ToolStrip.cs: Remove MonoTODO for tooltips.
10778 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10779 * ToolStripContainer.cs: Add custom ControlCollection class.
10780 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10781 * ToolStripDropDown.cs: Add some missing properties/methods.
10782 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10783 * ToolStripItem.cs: Remove MonoTODO for tooltips.
10784 * ToolStripManager.cs: Add IsShortcutDefined.
10785 * ToolStripOverflow.cs: Override LayoutEngine.
10786 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10787 * ToolStripSeparator.cs: Add ImageKey.
10789 2007-03-28 Jackson Harper <jackson@ximian.com>
10791 * TextControl.cs: If a char delete removes a line ending, we need
10792 to update the ending style.
10793 - Make sure the line ending calcs get called.
10795 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10797 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10798 it was making the new code not work. Fixed a typo in the new code
10799 as well. Fixes #79826.
10801 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10804 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10805 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10806 - SystrayBalloon method implemented.
10807 [Add support for notifyicon balloon on win32, #79149]
10809 2007-03-27 Mike Kestner <mkestner@novell.com>
10811 * ThemeWin32Classic.cs : update StateImageList selection to mirror
10812 the ms behavior when only one image is added to the list.
10815 2007-03-27 Jackson Harper <jackson@ximian.com>
10817 * TextControl.cs: Improvements to non multiline line ending
10820 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10822 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
10824 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10827 - Balloon message handling added.
10828 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
10830 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10831 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
10832 to SystrayBalloon to me like other Systray method, also a
10833 handle parameter added.
10835 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10837 * ListView.cs: Show scrollbars even when items.Count == 0
10838 but the columns Width is bigger than the ListView.Width.
10839 Also, when columns.Count == 0 set layout_wd and layout_ht
10840 to the ClientRectangle values, so we don't show any scrollbar
10843 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10845 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10847 2007-03-27 Jackson Harper <jackson@ximian.com>
10849 * RichTextBox.cs: The RTF library decodes the text properly for us
10852 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10854 * ListView.cs: Display HeaderControl even when columns.Count == 0.
10855 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10856 ListView header (HeaderControl), instead of Control.BackColor.
10858 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
10860 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10861 Fixes tab control issues where controls would not show up because they
10862 never received their OnVisibleChanged call.
10864 2007-03-27 Everaldo Canuto <everaldo@simios.org>
10866 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10869 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
10871 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10872 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10873 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10874 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
10875 the handle. Fix WindowState by using the internal variable until we are
10876 sure that we've been shown.
10877 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10881 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
10883 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10884 (at least borders). Fixes #79386 on Linux (with a small difference
10885 in behaviour: when trying to resize a caption-less window metacity
10886 shows the sysmenu. Resizing is still possible though).
10887 * XplatUIWin32.cs: When setting window styles send request an extra
10888 WM_NCCALCSIZE when it's a form without title (due to no text and no
10889 caption), since Win32 seems to calculate it wrong the first time we
10890 get the message, though the second time things work as they should.
10891 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10892 newly reparented window might show up unparented. Update
10893 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10894 there's no title text. Fixes #79386.
10896 2007-03-27 Mike Kestner <mkestner@novell.com>
10898 * ListBox.cs : don't perform invalidations if the handle hasn't been
10899 created. [Fixes #80753]
10901 2007-03-27 Mike Kestner <mkestner@novell.com>
10903 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10906 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10908 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
10909 needed to implement Balloon.
10911 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10913 * ListViewItem.cs: In the constructors that take
10914 an array of strings, don't use ListViewSubItemCollection.AddRange
10915 method to add items, since we need to have a different behaviour (in
10916 the constructors we add an item for each null string, opposed to
10917 the behaviour of AddRange, which adds nothing).
10919 2007-03-26 Andreia Gaita <avidigal@novell.com>
10921 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
10923 2007-03-26 Jackson Harper <jackson@ximian.com>
10925 * TextControl.cs: Draw and measure line endings when in non
10927 - When searching the text, count the end of the last line as a
10930 2007-03-26 Jackson Harper <jackson@ximian.com>
10932 * RichTextBox.cs: The selection_start and selection_end don't
10933 really track the correct tags for the selection. So we'll manually
10934 compute the correct tag here.
10936 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
10938 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
10939 and Continuous styles. Fixes #79469.
10941 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
10943 * ToolStrip.cs: Implement Tooltips.
10944 * ToolStripItem.cs: Create internal method for determining tooltip.
10946 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
10948 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
10950 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10952 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
10953 it prevents a problem thak keeps icon visible after application
10956 2007-03-26 Everaldo Canuto <everaldo@simios.org>
10958 * NotifyIcon.cs: Balloon properties and methods created.
10960 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10961 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
10963 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
10965 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
10967 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
10969 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
10970 parameter indicates which aspects were explicit/user-set.
10971 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
10973 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
10975 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
10976 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
10977 SmallChange, and Value (2.0).
10978 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
10980 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10982 * ListView.cs: Always set item_control.Width in LayoutDetails
10983 if View is Details. Setting it later in CalculateScrollBars
10984 in a not-so-corner scenario (the sum of columns width is
10985 not bigger than the ListView width when handle is created, and then
10986 that sum gets bigger by increasing the width of the columns)
10987 causes a very weird recursion path (which shouldn't be happening,
10988 since header_control sets it in CalculateScrollBars too). This bug
10989 appeared after Chris' fixes for handle created issues, so probably
10990 it's related to some handle-creation time.
10992 2007-03-23 Chris Toshok <toshok@ximian.com>
10994 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10995 case where there's an add row, just so we don't end up in a case
10996 where it's not displayed (this happens when the row is partially
10997 obscured). Fixes bug #79574.
10999 2007-03-23 Jackson Harper <jackson@ximian.com>
11003 * RichTextBox.cs: Preserve line endings in the lines text buffer,
11004 also added an enum that represents the line ending type.
11006 2007-03-23 Andreia Gaita <avidigal@novell.com>
11008 * NumericUpDown.cs: Fix logic so Text and Value properties are not
11009 messed with in every method call, but only from DownButton,
11010 UpButton, UpdateEditText() and ValidateText. Fixes #80346
11012 2007-03-23 Chris Toshok <toshok@ximian.com>
11014 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11015 format objects if the format spec is "". Fixes bug #80889.
11017 2007-03-22 Miguel de Icaza <miguel@novell.com>
11019 * ToolStripPanel.cs (Join): added stubs to build PDN3
11021 * Control.cs (AutoScrollOffset): Add.
11023 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11024 property, its only implemented for Win32, on X11 it defaults to
11025 some hardcoded value.
11027 * ToolStripItem.cs (AllowDrop): Add property
11029 2007-03-22 Mike Kestner <mkestner@novell.com>
11031 * ListView.cs : in FullRowSelect Details mode, only enable box
11032 selection if the user clicks over the "item" column outside of the
11033 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
11035 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11037 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
11038 handle is not created yet.
11039 * Form.cs: Select: Don't call CreateHandle if the handle is already
11040 created, avoids a stack overflow on Windows when we are recreating
11042 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
11043 they are made visible, and override AfterTopMostControl to keep
11044 them on top when other controls are brought to front.
11045 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
11046 or force_*scroll_visible is true (old implementation always shows
11047 scrollbars when needed, no matter what auto_scroll was set to).
11048 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11049 IsHandleCreated check.
11051 2007-03-22 Andreia Gaita <avidigal@novell.com>
11053 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11054 row or col separator.
11055 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11057 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11059 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11061 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11063 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11064 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
11065 every time. Fixes #80410.
11067 2007-03-22 Chris Toshok <toshok@ximian.com>
11069 * BindingSource.cs (AddNew): partially implement.
11071 remove a couple of NotImplementedException's
11072 to get bug #81148 closed.
11074 2007-03-22 Everaldo Canuto <everaldo@simios.org>
11079 - UpdateCursor method added to update the screen cursor.
11080 - GetAvailableCursor method added to return cursor for enabled tree,
11081 it searches for cursor on control and it's parent's for enabled control.
11082 - Call UpdateCursor method on setter of Cursor property.
11083 - On setter of Enabled call UpdateCursor when it is false, we need to
11084 change cursor to normal (or to this parent cursor) because cursor
11085 setting theres no effect to disabled controls.
11086 - Some minor source changes to follow the coding style guidelines.
11088 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
11091 2007-03-22 Chris Toshok <toshok@ximian.com>
11093 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11096 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
11098 * XplatUIX11.cs: Implement default locations for forms.
11099 * Form.cs: Completely rework startup location for forms. Fixes #79964.
11100 * Hwnd.cs: Add previous_child_startup_location (to track the current
11101 startup location for any child forms of the current form) and
11102 previous_main_startup_location (to track the startup location for
11103 the current toplevel form).
11105 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11107 * Control.cs: Don't trigger a layout if an implicit control is added
11108 that isn't visible. Also, don't notify the owner when an implicit control
11109 is added. (Owners shouldn't even know about their implicit controls.)
11111 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11113 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11114 to save some re-layouts.
11116 2007-03-21 Everaldo Canuto <everaldo@simios.org>
11118 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11121 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
11123 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11124 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11126 2007-03-21 Mike Kestner <mkestner@novell.com>
11128 * ListView.cs : disable selection update for non-left button clicks
11129 with mods and over selected items. [Fixes #80524]
11131 2007-03-20 Jackson Harper <jackson@ximian.com>
11134 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11137 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11139 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11140 very probably a more complicated calculation there. Update the
11141 textbox' ForeColor and BackColor when the ComboBox' colors are
11142 changed. Change the border change in LayoutComboBox to only affect
11143 the textbox, not all the calculations there. Seems to fix most of
11146 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11148 * ComboBox.cs: Handle Home and End keys as well as all combinations of
11149 modifiers + navigation keys as input keys, enables advanced text
11150 selection in the combobox (like Shift+Left Arrow for instance).
11151 ComboTextBox now overrides Focused and returns whatever
11152 ComboBox.Focused returns, since it really should be focused
11153 whenever the ComboBox is. Fixes #80795. Also make the border around
11154 the text box one pixel bigger, as mentioned in #79436.
11156 2007-03-20 Jackson Harper <jackson@ximian.com>
11158 * TreeView.cs: Don't offset the images, this was causing some
11159 artifacts when expanding/collapsing with images that were the
11160 exact height of the treenode.
11162 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11164 * TrackBar.cs: Query the theme for the correct value when the mouse
11165 moves and the thumb is pressed.
11166 * Theme.cs: Added TrackBarValueFromMousePosition
11167 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11168 implementation was updating the trackbar value when drawing, now
11169 the drawing methods only draw. Fixes #80900. Refactored the
11170 calculations out to TrackBarValueFromMousePosition and
11171 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11172 according to the mouse position whenever it wants to. Changed the
11173 light coloured pen when drawing the thumb from ControlLight to
11174 ControlLightLight, because the ControlLight is the same colour as
11175 the background so the 3D effect is lost.
11177 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11179 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11180 defined. Fixes #80784.
11182 2007-03-20 Marek Habersack <mhabersack@novell.com>
11184 * ContextMenuStrip.cs: align with the change introduced in
11187 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11189 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
11190 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
11193 2007-03-19 Chris Toshok <toshok@ximian.com>
11195 * Control.cs (WmPaint): don't make use of the Handle property
11196 after an event is emitted, as the user could have closed the
11197 form/destroyed the control. Store the Handle in a local variable
11198 and make use of that. Fixes bug #80768.
11200 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11202 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11203 behavior in X11 environments.
11205 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11207 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11208 because on setter of topmost we dont call SetTopmost when handle is not
11211 2007-03-20 Jackson Harper <jackson@ximian.com>
11213 * TextControl.cs: Need to use SelectionLength () not
11214 selection_length, since that var is reset to -1.
11215 - Draw the caret when we don't have focus.
11216 * TextBox.cs: The selectall actually doesn't occur until the first
11218 * TextBoxBase.cs: Need to update the caret position after a
11221 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11223 * ListView.cs: Enable scrolling when using Tile view.
11225 2007-03-20 Everaldo Canuto <everaldo@simios.org>
11229 * XplatUIDriver.cs: Abstract SetOwner method created.
11231 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
11232 must be implemented and was masked as todo.
11234 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
11237 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
11238 cheking for null owner to remove transient. The SetTopmost will be change
11241 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11242 SetTopmost. Now owned forms will work properly in win32 and X11.
11244 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11246 * MdiWindowManager.cs: Update function name.
11247 * Form.cs: After closing a form MdiParent is always null.
11248 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11249 better what it should do: necessary book-keeping when the form is
11250 closed, it should not close the form itself.
11252 2007-03-19 Andreia Gaita <avidigal@novell.com>
11254 * ListViewItem.cs: Fix back and fore color. The subitems only
11255 use their own colors if they are set, otherwise use the listview's
11256 colors. Don't set default colors on constructor for subitem.
11259 2007-03-19 Mike Kestner <mkestner@novell.com>
11261 * ListView.cs : make box selection for Details views with
11262 FullRowSelect conform to MS behavior when clicking in the "item"
11263 column and clicking outside the defined columns.
11264 [Fixes case 5-6 of #80374]
11266 2007-03-19 Chris Toshok <toshok@ximian.com>
11268 * ScrollableControl.cs: create the controls from within the ctor,
11269 but don't actually add them until our handle is created. this
11270 fixes a NRE possibility jpobst found (if you override OnLayout in
11271 a subclass, it's called before your ctor). Also, add a
11272 IsHandleCreated guard to UpdateSizeGripVisibility as well.
11274 2007-03-19 Jackson Harper <jackson@ximian.com>
11276 * TextBox.cs: Reduce the amount of invalidation we do.
11277 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11278 some of them are true by default on MS.
11279 - Add some functions to reduce the amount of invalidates we do.
11280 * TextControl.cs: Less invalidation.
11282 2007-03-19 Chris Toshok <toshok@ximian.com>
11284 [ Fixes #81773, and *seems* to fix #81553 as well ]
11286 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11287 AccumulateDestroyedHandles. We need to do it *after* we send
11288 WM_DESTROY, as the user's code can access Control.Handle in
11289 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
11290 move the WM_DESTROY/zombie handling to before the call to
11291 XDestroyWindow. For some reason without this ordering
11292 FormTest.RecreateHandle hangs. This ordering is semantically
11293 equivalent, however, as XDestroyWindow is async anyway.
11295 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
11297 * RichTextBox.cs: Reset backcolor_set after setting default.
11299 2007-03-19 Chris Toshok <toshok@ximian.com>
11301 * ScrollableControl.cs: the scroll position should not effect the
11302 canvas size. commit patch from georgegiolfan@yahoo.com, which
11303 fixes some really bizarre behavior on resizing. Fixes bug #80778.
11305 2007-03-19 Chris Toshok <toshok@ximian.com>
11307 * ScrollableControl.cs: clean this up a bit. create the
11308 scrollbars in the ctor and just show/hide them as needed. Also,
11309 make hscroll_visible/vscroll_visible internal to Recalculate, and
11310 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11311 everywhere else. This seems to fix the scrollbars appearing
11312 beneath the content for me (i have *no* idea why that is,
11315 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11317 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
11318 some redundacy for stuff in Anchor and Dock that base will take care of.
11321 2007-03-19 Mike Kestner <mkestner@novell.com>
11323 * ListView.cs : make box selection for Details views without
11324 FullRowSelect dependent on the text bounds, not item bounds.
11325 * ListViewItem.cs : add an internal property to obtain the TextBounds
11326 in Details view. [Fixes case 1-4 of #80374]
11328 2007-03-19 Andreia Gaita <avidigal@novell.com>
11330 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11331 we're < 2.0. #78448 && #80316
11333 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
11335 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11336 have the same style available as the previously selected one. Also,
11337 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
11339 2007-03-19 Jackson Harper <jackson@ximian.com>
11341 * TextControl.cs: Add an alignment property that all new lines
11343 - Make sure to use the align shift when calculating the line's X
11345 * TextBox.cs: Set the alignment on the document as well as on all
11346 the document lines.
11348 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11350 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11351 throw if setting the parent of an mdichild that already has an
11352 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11353 AssemblyProductAttribute in the assembly, use the type's namespace (as
11354 MS seems to do). CreateControl: don't create the handle if the control
11355 is not visible (according to MS behaviour and spec). SetTopLevel: Only
11356 create handle if the control is not a form. Change FocusInternal to
11357 virtual so that it can be overriden by Form.
11358 * TextBox.cs: Update call to FocusInternal.
11359 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11360 form is not a toplevel form when it's a mdi child, so update is_toplevel
11361 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11362 hasn't been created. Show (IWin32Window): Don't allow this overload for
11363 toplevel windows. CenterToParent/CenterToScreen/Select: create the
11364 handle as MS does. SetVisibleCore: if called on a MdiChild and the
11365 parent isn't visible yet, save the visibility and restore it when the
11366 parent is made visible.
11367 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11368 methods, since the visibility of the scrollbars can be changed from
11369 several places, not only from AutoScroll.
11372 2007-03-19 Jackson Harper <jackson@ximian.com>
11374 * RichTextBox.cs: Enable shortcuts by default.
11375 * TextBoxBase.cs: Add conditional shortcuts.
11377 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11379 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
11381 2007-03-19 Chris Toshok <toshok@ximian.com>
11383 [ Fixes bug #80604]
11385 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11386 swallow the message we're waiting on, instead of delivering it, as
11387 this is only used for the WM_SHOWWINDOW raised from
11388 MapWindow/UnmapWindow, and the message needs to be generated
11389 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11390 before doing the Map/Unmap. Also make sure that the Hwnd is still
11391 alive after the message has been handled.
11393 *before* the window is shown.
11395 * Control.cs (CreateControl): guard a few more things inside the
11396 if (!is_created) block, as we might end up being called again -
11398 (WmShowWindow): call CreateControl if we're showing the control.
11400 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
11402 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11403 controls without a handle if they have any parent with a handle. In
11404 Dispose add a check whether the handle is created or not before
11405 calling BeginInvoke, this removes the need of the extra disposing
11406 parameter (which was bogus anyway since it didn't prevent the
11407 invoke from happening, it only skipped the check for an existing
11408 handle, meaning that the invoke would call on an inexistent
11411 2007-03-19 Everaldo Canuto <everaldo@simios.org>
11413 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11414 appears in taskbar.
11416 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11419 - Fixed a problem that dont show help button for messages with 3 buttons.
11420 - Refactory button size and position calculations, now dont use fixed
11421 values, also fixed button sizes (#80043) and form's border space.
11422 - AddButton method created, now all other AddButton methods call this one.
11423 - Some other source code cosmetic changes.
11425 2007-03-18 Jackson Harper <jackson@ximian.com>
11427 * RichTextBox.cs: Don't do this all fonts must match check if
11428 there is only one char selected.
11430 2007-03-18 Jackson Harper <jackson@ximian.com>
11432 * TreeView.cs: ScrollWindow works properly now, so we don't need
11433 to screw around with the scroll area. This fixes some artifacts
11434 when expanding and collapsing.
11436 2007-03-18 Jackson Harper <jackson@ximian.com>
11438 * TextBoxBase.cs: Allow updating the selection position when the
11439 cursor is outside the textarea, but we have a capture.
11440 * TextControl.cs: A special case for when the cursor is outside
11441 the bounds of the TB.
11443 2007-03-18 Jackson Harper <jackson@ximian.com>
11445 * TextBoxBase.cs: Remove image pasting code for now. There is no
11446 way to get an image on the clipboard right now anyways.
11448 * RichTextBox.cs: Use the new RTF Picture class for pictures.
11450 2007-03-18 Everaldo Canuto <everaldo@simios.org>
11453 - Set window properties in constructor intead of on CreateParams.
11454 - Remove topmost from Window ExStyle.
11455 - Set ShowInTaskbar to false.
11456 - Set form border to FixedDialog.
11457 - Some cosmetic changes and remove unneeded comments.
11458 - It fixes itens 2,3 and 4 of bug #80043.
11460 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
11462 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11463 none was explicitly set. Fixes part of bug #79949.
11465 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11467 * ToolStripComboBox.cs: Add AutoComplete*.
11469 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
11471 * ToolStripComboBox.cs: Add FlatStyle.
11473 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11475 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11476 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11478 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11480 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11481 CheckBox.cs, RadioButton.cs, BindingSource.cs,
11482 DataGridColumnStyle.cs: Remove warnings.
11484 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
11486 * Menu.cs: MergeMenu: Check menu argument for null before looping over
11488 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11489 visibility of mdi child forms. FormSizeChangedHandler: update the
11490 maximized size if size has changed while maximized.
11491 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11492 creating the handle.
11493 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11494 avoid creating the handle if not created.
11495 * XplatUI.cs: Update debug output.
11496 * XplatUIStructs.cs: Added ToString's for a couple of structs.
11498 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
11500 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11502 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
11503 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11504 Implement keyboard shortcuts.
11506 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11508 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11509 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
11510 ColorDialog and all derived classes.
11512 2007-03-15 Everaldo Canuto <everaldo@simios.org>
11514 [ Fixes bug #79828 ]
11517 - Rename ToolBarButtonInfor to ToolBarItem.
11518 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11519 - Maintain an array of ToolBarItem, used instead of ToolBarButton
11520 collection to be able add same button more than one time on a toolbar.
11521 - Refactory all properties and methods to use ToolBarItem.
11523 * ToolBarButton.cs:
11524 - Remove all propeties and methods that is now in ToolBarItem.
11525 - Rectangle propery now gets the rectangle from first ToolBarItem to
11526 mimic win32 behavior.
11527 - Size calculation and layout methods also removed.
11529 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11530 ToolBarItem instead of ToolBarButton to right drawing buttons when
11531 same button/separator was added more than one time to ToolBar.
11533 * ThemeNice.cs: Same as above.
11535 2007-03-15 Andreia Gaita <avidigal@novell.com>
11537 * XplatUIX11.cs: Fire extra MouseMove events right after
11538 MouseDown and MouseUp, emulating win32's <censored> behaviour
11539 for apps that rely on it.
11541 2007-03-15 Jackson Harper <jackson@ximian.com>
11544 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11545 it is drawn on the controls client window and there is no NC
11547 - Set the background color to gray on 2.0 when we are readonly.
11549 2007-03-15 Chris Toshok <toshok@ximian.com>
11551 [ Fixes bug #81144 ]
11553 * XplatUIX11.cs: implement VirtualScreen independently of
11554 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11557 2007-03-15 Chris Toshok <toshok@ximian.com>
11559 * Hwnd.cs: add an internal field for the cached_window_state.
11561 * XplatUIX11.cs: cache the window state, invalidating the cache
11562 (and thus re-querying the X server) only when we see an update to
11563 the _NET_WM_STATE property.
11565 2007-03-15 Chris Toshok <toshok@ximian.com>
11567 * BindingSource.cs: get a lot of the unit tests working.
11569 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11571 * Control.cs: Modify UpdateStyles to store distances when bounds >=
11572 0 instead of just bounds > 0. [Fixes bug #80912]
11574 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
11576 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11579 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
11581 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11582 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11583 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11584 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11586 2007-03-15 Chris Toshok <toshok@ximian.com>
11590 * Control.cs: add Ivan's fix for 81101, with a slight modification
11591 - you can set control.Target to null.
11593 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
11595 * ToolStripItem.cs: If our OwnerItem is null, we can't use
11596 HideDropDown, use Hide instead to prevent an NRE.
11599 2007-03-14 Jackson Harper <jackson@ximian.com>
11601 * TextBoxBase.cs: Mess with the creation stuff a little. We need
11602 to calculate the document before the handle is created, in some
11603 cases. (Actually just one case).
11605 2007-03-14 Jackson Harper <jackson@ximian.com>
11607 * TextBoxBase.cs: Need to display the caret after letting the base
11608 wndproc handle the focus methods, because the caret display
11609 methods check the focus state.
11610 - Try to display the caret after updating it's position with SelectWord.
11611 - Don't need to do an immediate update on this recalc, since there
11612 will be an invalidate anyways.
11614 2007-03-14 Jackson Harper <jackson@ximian.com>
11616 * TreeView.cs: Some workarounds so that we can match event order a
11619 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
11621 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11622 #80803. Avoid NullReferenceException when Control does not have
11623 parent. Fixed different blinkstyle issues. Only subscribe to Tick
11624 event a single time. Only draw error icon when control is created and
11625 visible. Fixes failing unit tests.
11627 2007-03-14 Andreia Gaita <avidigal@novell.com>
11629 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11630 Selecting events. Fire Leave and Enter events when changing tabs.
11632 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
11634 * TreeView.cs: Add TreeViewNodeSorter.
11635 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11637 2007-03-14 Chris Toshok <toshok@ximian.com>
11639 * Form.cs: go ahead and remove the RecreateHandles that jpobst
11640 removed earlier and I had him add back it. It turns out metacity
11641 *does* in fact handle the MOTIF_WM_HINTS property changing, it
11642 just doesn't redraw the window titlebar until you resize the
11643 window. This also means we aren't recreating the entire window
11644 hierarchy on X when you change this property. And it looks better
11647 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11650 * ListView.cs: Collecting selection information
11651 is now done in SelectedIndexCollection rather than in
11652 SelectedListViewItemCollection. This is done so we can
11653 have the selection information code in one single place
11654 (virtual mode selection information entirely depends on
11655 SelectedIndexCollection).
11657 2007-03-13 Miguel de Icaza <miguel@novell.com>
11659 * ErrorProvider.cs: Add stubs for ISupportInitialize
11661 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11663 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11664 in the right order with the right values, from the Checked property,
11665 just as MS does (instead of triggering them from ListView).
11667 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11669 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11671 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
11672 the correct handler in OnItemCheck method (ItemCheckEventHandler
11673 instead of EventHandler). This used to throw an InvalidCastException.
11675 2007-03-13 Jackson Harper <jackson@ximian.com>
11677 * TextBoxBase.cs: Calculate the document before the handle is
11678 created, so there isn't an extra invalidate called.
11680 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
11682 * Form.cs: Don't set owner in ShowDialog until we are sure
11683 that we aren't going to throw an exception. [Fixes bug #80773]
11685 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
11687 * TreeView.cs: Make it compile.
11689 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11691 * Control.cs: Another place we don't call SizeFromClientSize.
11692 * Form.cs: Another place we don't call SizeFromClientSize.
11695 2007-03-12 Jackson Harper <jackson@ximian.com>
11697 * TreeView.cs: Basically emulating some strangness here with
11698 exanding nodes and setting node positions when windows aren't
11700 - Also attempting to walk the node tree less than previously, and
11701 just use visible order calculations for determining offsets.
11702 - oops made scrolling backwards.
11703 * TreeNode.cs: We need to start nodes with a zero visible order,
11704 because the order calcs are based on the first nodes order.
11706 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11708 * Form.cs: Don't exit the program if RecreateHandle is called on
11711 2007-03-12 Chris Toshok <toshok@ximian.com>
11713 * XEventQueue.cs: remove the use of PostQuitState.
11715 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
11716 WM_QUIT message in GetMessage, return false (and if we're in the
11717 nested WaitForHwndMessage, repost the WM_QUIT message).
11719 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11721 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11722 or the MaximizeBox properties. [Part of bug #80640]
11724 2007-03-12 Everaldo Canuto <everaldo@simios.org>
11726 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11729 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11731 * ToolStripItem.cs: Fix some tests I broke by checking Visible
11732 instead of visible.
11734 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
11736 * FileDialog.cs: Use text of File name combobox to determine what
11737 files the user selected. Added tokenizer to parse the file names.
11740 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
11742 * Control.cs: We can't call SizeFromClientSize in the constructor,
11743 but we still need to do the same work, so make an internal version.
11746 2007-03-12 Jackson Harper <jackson@ximian.com>
11750 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11753 2007-03-12 Jackson Harper <jackson@ximian.com>
11755 * TextBoxBase.cs: Now that the handles are being created a little
11756 later, we need to make sure that the document is recalculated when
11757 the handle is created.
11759 2007-03-11 Everaldo Canuto <everaldo@simios.org>
11761 * Theme.cs: GetLinkFont abstract method added.
11764 - Remove CalcTrimRectangle, no longer needed.
11765 - Factor also remove, position issues must be fixed in libgdiplus.
11766 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11767 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
11768 care about font used to draw links.
11769 - Set TabStop to true when control is "Selectable", control is selectable
11770 when have one or more links. Fixes #80501 (test case is also added).
11771 - Set the LinkArea values after links change, LinkArea values must be
11772 based in first link position and size, a test case was created.
11773 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
11774 the attribute must be true LinkArea.Length > 0. The same was applied to
11777 * ThemeWin32Classic.cs:
11778 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
11780 - Use CPDrawStringDisabled to draw disabled text instead of hard code
11782 - Draw focus rectangle for every parts focused, including parts that
11783 is on another line, its because regions returns various rectangles
11784 and not only one. Needed to mimic W32 look.
11785 - Uses Graphics.Clip to delimite region painted, it mean that now
11786 complete text is passed to DrawString, with this we solve layout
11787 issues without create another text renderer.
11788 - Uses Region.Intersect to fix some flickers problems, now only needed
11789 parts will redrawed.
11790 - This changes fixes #79614 and some other unreported issues, on Linux
11791 some layout problems still remain, the problem is under
11792 MeasureCharacterRanges but it is an libgdiplus bug.
11794 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
11796 * TextBox.cs: Set for foreground color.
11797 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11798 this is already done in Control.
11800 2007-03-10 Jackson Harper <jackson@ximian.com>
11802 * TextBox.cs: Set the background color, but reset the
11803 backcolor_set flag which is just for the user setting the
11806 2007-03-09 Chris Toshok <toshok@ximian.com>
11808 * Control.cs: really remove the call to XplatUI.SetVisible from
11809 CreateHandle(), like I said I did when I merged the branch.
11811 * BindingSource.cs: implement some more of this stuff.
11813 2007-03-09 Jackson Harper <jackson@ximian.com>
11815 * TextBox.cs: Don't explicitly set our background colors.
11817 * TextBoxBase.cs: Draw readonly text.
11818 - Need to invalidate when backcolor or readonly are changed.
11820 2007-03-09 Jackson Harper <jackson@ximian.com>
11822 * TextBoxBase.cs: Don't set the forecolor until the handle is
11824 - Do not raise OnPaint, and removed some old debug code.
11826 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
11828 * ScrollableControl.cs: Fix mouse wheel scrolling.
11830 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
11832 * Control.cs: Wire up MouseDoubleClick event.
11834 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
11836 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11838 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11839 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11840 item is added. This logic was moved to ToolStrip.OnItemAdded.
11843 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11845 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11847 2007-03-08 Jackson Harper <jackson@ximian.com>
11849 * TreeView.cs: Show the correct image for selected node (this used
11850 to work, not sure how the code got deleted). Also implemented 2.0 feature
11853 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11856 * ListViewItem.cs: Cache index in items when retrieving them
11859 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11861 * ToolStripItem.cs: Don't return the explicit_size if we are using
11862 AutoSize. Fixes invalidation issue when user has explicitly set a
11863 size and has AutoSize = true.
11865 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11867 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11869 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
11871 * DataGridView.cs: Remove event handler from DataView when a
11872 DataTable is used as DataSource.
11874 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
11876 * Control.cs: Create internal setter for client_size to allow it to be
11877 set without triggering resizing code.
11878 * Form.cs: Calculate client_size in constructor, only change client_size
11879 in FormBorderStyle property if Handle has been created.
11880 [Fixes #80574, #80791]
11882 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
11884 * SystemInformation.cs: Add TerminalServerSession.
11886 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11888 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11891 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
11893 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11894 Handle before we were supposed to. Now checks ActivateOnShow property
11896 * Control.cs: Add internal ActivateOnShow property.
11897 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11898 for ActivateOnShow.
11899 * Hwnd.cs Remove no longer needed no_activate field.
11901 2007-03-07 Jackson Harper <jackson@ximian.com>
11903 * TreeView.cs: Implement owner draw tree nodes. And a couple more
11905 * DrawTreeNodeEventHandler.cs: Add
11906 * DrawTreeNodeEventArgs.cs: Correct default value.
11908 2007-03-07 Chris Toshok <toshok@ximian.com>
11910 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
11911 to be called before NativeWindow.WndProc. Put the HwndCreating
11912 magic there to hook up our Hwnd's to handles.
11914 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
11916 * DataGridView.cs: Comment out debug code.
11918 2007-03-07 Chris Toshok <toshok@ximian.com>
11920 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
11921 to make the rest of the world happy]
11923 * Control.cs (CreateHandle): there's no need to call
11924 XplatUI.SetVisible here, it's effectively done by
11925 XplatUI.CreateWindow on X now, and always was on windows.
11927 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
11928 shortcircuit out of the loop if we have a message loop running on
11931 [Changelog from merge]
11933 2007-03-05 Chris Toshok <toshok@ximian.com>
11935 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
11936 causes handle creation.
11938 2007-02-28 Chris Toshok <toshok@ximian.com>
11940 * ApplicationContext.cs: Add a flag to make sure we only raise the
11941 ThreadExit event once (ExitThreadCore can be indirectly called
11942 from a few places.) I don't like the additional flag, but it
11943 makes the event ordering/count correct.
11945 * Application.cs (MWFThread.LoopCount): don't use an enumerator
11946 without locking the collection. An enumerator doesn't give us any
11947 protection from modification anyway. Lock the thread hash and
11948 replace the complicated enumerator loop with a foreach.
11949 (Application.CloseForms): make internal so it can be called from
11950 ApplicationContext. This should probably be moved to MWFThread.
11951 (Application.ExitThread): don't call MWFThread.Current.Exit()
11952 here. just call XplatUI.PostQuitMessage. We'll exit the thread
11953 when the runloop exits (in response to WM_QUIT.)
11954 (Application.RunLoop): add a comment (and check) for
11955 context.MainForm being null after setting context.MainForm.Visible
11956 = true. This is because you're perfectly free to dispose of a
11957 form in VisibilityChanged. Chalk this up to another case where we
11958 need to synchronously generate WM_ACTIVATE from Control.Show.
11959 Also, add handling for WM_QUIT here so we'll exit the loop.
11961 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
11962 fact that we don't wait if we're only unmapping the whole_window
11963 makes me a bit nervous, but it doesn't seem to cause any problems
11966 also, add a comment about the stupid, broken and wrong resetting
11967 of PostQuitState to false in GetMessage().
11969 In PostQuitMessage, we need to add a WM_QUIT message to the
11970 thread's queue. We use the FosterParent to get the right
11973 Lastly, in SetVisible, we need to unmap both windows, since the
11974 waiting only happens when we're unmapping the client window. So
11975 now, the *only* time we unmap just the whole_window is in the hack
11976 for resizing a control to 0,0.
11978 2007-02-21 Chris Toshok <toshok@ximian.com>
11980 * Application.cs (CloseForms): rewrite this so that we don't
11981 modify the list while we're traversing it.
11983 2007-02-20 Chris Toshok <toshok@ximian.com>
11985 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11986 of OnHandleCreated.
11987 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11988 handle is created. otherwise we'll create it here.
11989 (VerticalScrollEvent): same here.
11991 * Application.cs (CloseForms): call Form.Dispose, don't post
11994 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11995 here. Application should Dispose() of the Form's.
11997 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11998 WM_DESTROY as well.
11999 (MapWindow,UnmapWindow): only actually do the waiting for
12000 SHOWWINDOW if the control we're dealing with is a Form.
12001 (CreateWindow): if the control isn't a form, SendMessage
12002 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12004 * Control.cs (SetVisibleCore): always use is_visible here, not
12005 value. If we use value, we can end up re-setting something
12006 visible if, for instance, you do Control.Hide() in a delegate
12007 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12009 2007-02-20 Chris Toshok <toshok@ximian.com>
12011 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12012 the message we need. PeekMessage returning false should not be a
12013 condition under which we exit the loop.
12015 2007-02-15 Chris Toshok <toshok@ximian.com>
12017 * Control.cs (Refresh): only refresh if we've got a handle and are
12019 (CreateAccessibilityInstance): CreateControl() here.
12020 (UpdateChildrenZOrder): complicate the code loop even more by
12021 taking into account controls that haven't had their handle
12022 created, and those that aren't visible. But on the flip side,
12023 simplify the code by splitting it into two loops. one which
12024 builds up the list of child controls we're interested in, and the
12025 other that sets the z order of those children.
12027 2007-02-14 Chris Toshok <toshok@ximian.com>
12029 * Control.cs: Control.AccessibilityObject causes the control to be
12030 created, not just the handle.
12032 2007-02-14 Chris Toshok <toshok@ximian.com>
12034 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
12035 problem on X where a window might have its handle created (and be
12036 visible) while the window is unmapped. calling XConfigureWindow
12037 on an unmapped window is bad, and generates X errors.
12039 2007-02-13 Chris Toshok <toshok@ximian.com>
12041 * Control.cs (CreateHandle): don't loop over our children setting
12042 their parent here. do it when in WndProc when we're shown.
12043 (UpdateChildrenZOrder): make this internal so we can call it from
12045 (WndProc): for WM_SHOWWINDOW, reparent the child control after
12046 creating its handle. Also, remove the calls to PerformLayout from
12047 here. they're done in ScrollableControl.OnVisibleChanged. Also,
12048 OnVisibleChanged only seems to be called directly here for the
12049 toplevel control. It's propagated down the window hierarchy by
12050 calls to child.OnParentVisibleChanged.
12051 (OnVisibleChanged): don't do layout here - it's done (oddly
12052 enough, according to a glance at stack traces on ms.net..) in
12055 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12056 z order of our children before calling PerformLayout.
12058 2007-02-12 Chris Toshok <toshok@ximian.com>
12060 [big change, fixes #80020]
12062 * AccessibleObject.cs: we need to make owner internal again to fix
12063 some of ControlAccessibleObject.
12065 * Control.cs: lots of changes here. add support for WM_CREATE,
12066 for which we generate OnHandleCreated. Remove the OnHandleCreated
12067 call from CreateHandle. Also add support for WM_SHOWWINDOW where
12068 we create child controls. leave the MonoTODO's for the
12069 accessibility calls, but fix the exceptions so the tests pass.
12071 Add the InvalidOperationExceptions to Invoke methods, and remove a
12072 couple of InvokeInternal methods we aren't using.
12074 Also, add a couple of CreateHandle calls in places where we know
12075 the handles are being created but our code doesn't reference
12078 Make SetVisibleCore call OnVisibleChange if the handle isn't
12079 created. If the handle is created, we rely on XplatUI.SetVisible
12080 generating the event synchronously.
12082 Lastly, make sure we don't use this.Handle inside CreateHandle,
12083 because we can call back into client (and that code can dispose of
12086 * XplatUIStructs.cs: misc/cleanup.
12088 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12089 although we don't populate the wParam properly.
12090 (CreateWindow): generate WM_CREATE.
12091 (MapWindow,UnmapWindow): make these calls synchronous, at great
12092 performance expense (particularly in the unmap case), to match
12095 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12097 (set_MdiParent): don't recreate the handle unless it's been
12100 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12103 * NativeWindow.cs: this is probably the weirdest part of the
12104 patch. We need a way to link up the window being created to the
12105 WM_CREATE message. Since we can only be creating one window at a
12106 time on a given thread, we keep track of a per-thread reference so
12107 we can dispatch it properly. We also need to keep track of the
12108 Hwnd currently being created so that the win32 backend doesn't
12111 * XplatUIWin32.cs: a similar change to the one we made in
12114 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
12116 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12117 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12118 to draw the menu shortcut string.
12120 2007-03-07 Jackson Harper <jackson@ximian.com>
12122 * TreeNode.cs: Add the 2.0 collapse method.
12124 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12126 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12128 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12130 * DataGridView.cs: Change DataSource will clear column and row
12131 lists. Call Invalidate() to reflect DataSource change.
12133 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12135 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12136 and a new row is added to it.
12138 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
12140 * DataGridView.cs: Add columns when DataSource is en empty list but
12141 is a System.Data.DataView (from a System.Data.DataTable).
12143 2007-03-06 Andreia Gaita <avidigal@novell.com>
12145 * Label.cs: Implement AutoEllipsis (2.0)
12147 2007-03-06 Jackson Harper <jackson@ximian.com>
12149 * TreeView.cs: Implement 2.0 TopNode setter property.
12150 - Use a local var instead of the skipped_nodes field for computing
12151 how many nodes to skip. Otherwise we won't scroll because the
12152 valuechanged handler checks if skipped_nodes is equal to the new
12154 - Implement 2.0 Sort method.
12155 - Add useless 2.0 DoubleBuffer property
12156 - Implement 2.0 LineColors property. Lets you change the color of
12157 the lines in the tree. Terribly useful for creating non cohesive
12159 - Implement 2.0 image key feature.
12161 2007-03-06 Jackson Harper <jackson@ximian.com>
12163 * TreeView.cs: We can't get the bounds of the nodes before raising
12164 the AfterSelect event, because that event could change the node's
12165 bounds (scrolling, font change, etc).
12167 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12169 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12170 * Form.cs: Don't recreate handle when creating FormWindowManager, just
12171 update window styles. In CreateParams us VisibleInternal instead of
12172 VIsible to get the actual visible flag set for this form.
12173 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12174 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12175 handle the case when the form is already maximized, in which case
12176 it should be restored. Fixes #81043.
12178 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12180 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12182 2007-03-05 Jackson Harper <jackson@ximian.com>
12184 * TreeViewHitTestInfo.cs: implement.
12186 2007-03-05 Jackson Harper <jackson@ximian.com>
12188 * InternalWindowManager.cs: class status fix.
12190 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
12192 * InternalWindowManager.cs: All windows that have a parent
12193 are confined to their parent when they're being moved.
12196 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
12198 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12199 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12201 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12203 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12204 buttons invisible before deciding which ones should be visible
12205 (fixes minimize/maximize buttons showing up in toolwindows). Remove
12206 an unused variable.
12207 * InternalWindowManager.cs: Remove warning.
12209 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12211 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12212 to throw an InvalidOperationException is virtual mode is being used.
12214 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12216 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12217 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12218 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12219 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12220 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12221 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12223 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12225 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12226 driver.KeyboardDelay from XplatUI.KeyboardDelay
12227 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12228 (patch by Sergey Volk)
12230 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12232 * ToolWindowManager.cs: Added, contains logic for
12234 * CreateParams.cs: Add a few helper methods and an
12235 internal variable to know which control the CreateParams belongs
12237 * Control.cs: Call Form.ChangingParent when the
12238 parent is about to be changed.
12239 * XplatUIX11.cs: DeriveStyles (): Set
12240 caption_height for all windows that have captions and are children.
12241 Update to use ToolWindowManager instead of InternalWindowManager
12243 * XplatUIWin32.cs: Set fake window styles for all
12244 windows that have window managers.
12245 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12246 now duplicated for mdi windows when they are
12247 maximized, first for the buttons the window itself has, then for
12248 the buttons that appear in the menu bar. Makes things a little
12249 easier). Updated UpdateWindowDecorations, SetWindowState and the
12250 mouse eventhandlers accordingly.
12251 * Form.cs: Add ChangingParent (), contains the
12252 logic of what should happen when the parent changes. In MdiParent
12253 don't set things that ChangingParent () is doing. When handling
12254 WM_CLOSE, we can close the form if there are any other modal forms
12255 and the current form is a descendent of the modal form.
12256 * InternalWindowManager.cs: A lot of refactoring,
12257 the title buttons are now extracted to a separate container class
12258 that takes care of all button code (clicks, tooltips, etc). Moved
12259 Iconic|Maximized|Normal Bounds properties to this class from
12260 MdiWindowManager, so that the window state logic can succeed for
12261 other than mdi wm's. Implemented general window state change logic.
12262 Moved CreateButtons to ThemeWin32Classic, since the theme might
12263 override which buttons are available when as well as the exact
12265 * FormWindowManager.cs: Added, contains logic for
12267 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12268 which buttons go where (and if they are at all visible).
12269 Removed special handling of maximized windows, since they aren't special.
12270 In DrawManagedWindowDecorations don't try to draw the text if it is
12272 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
12273 use whatever the wm gives us.
12275 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
12277 * ButtonBase.cs: Add 2.0 properties.
12278 * Button.cs: Override Draw for 2.0.
12279 * Control.cs: Add Entered and Selected properties.
12280 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12281 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12282 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12284 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12286 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12288 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
12290 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
12292 * XplatUIWin32.cs: Register a new class with Windows each time we get
12293 a new ClassStyle. [Fixes bugs #79432, #80817]
12294 * Controls.cs: Set the correct ClassStyle in CreateParams.
12295 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12297 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
12299 * ListView.cs: Add fireEvent argument to ReorderColumn since the
12300 ColumnReordered event must not be signaled when modifying DisplayIndex
12301 of a ColumnHeader. Added internal ReorderColumns method which takes
12302 care of drawing, and updating the internal DisplayIndex of the
12303 ColumnHeader. Added AddColumn method which is invoked from
12304 ColumnHeaderCollection when adding or inserting columns, and which
12305 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12306 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12307 Recalculated dispay indices after removing a ColumnHeader.
12308 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12309 match MS. Allows last display index to be returned after ListView
12310 is disposed. Update actual location of ColumnHeader when DisplayIndex
12313 2007-03-01 Everaldo Canuto <everaldo@simios.org>
12315 * LinkLabel.cs: Improve CalcTrimRectangle.
12317 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12319 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12321 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12322 get rectangle as a result value.
12324 2007-02-28 Everaldo Canuto <everaldo@simios.org>
12326 * LinkLabel.cs: Theres some diferences between rectangle return from
12327 MeasureCharacterRanges and the area used for DrawString to fix this
12328 CalcMeasurementFactor method was created, it calcules the diferences
12329 to be use later to adjust rectangle in draw operations. Fixes #80473.
12331 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12332 to adjust draw rectangle.
12334 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12336 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12337 text and some other changes to reduce and optimize source code.
12339 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12341 * RadioButton.cs: Implement 2.0 event.
12342 * RelatedImageListAttribute.cs: Implement new class.
12344 2007-02-27 Everaldo Canuto <everaldo@simios.org>
12346 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12348 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
12350 * CheckBox.cs: Implement 2.0 functionality.
12352 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12354 * ListView.cs: Refactor Add and AddRange methods of
12355 ListViewItemCollection, to not update the ListView
12356 everytime an item is added in AddRange. Also move the update
12357 code to a new CollectionChanged method, and call it
12358 from other methods that need it as well (this should also fix some
12359 bugs when Sorting is used).
12361 2007-02-27 Jackson Harper <jackson@ximian.com>
12363 * TextControl.cs: Try to never let the caret stay in a non-text
12365 * TextBoxBase.cs: Update the caret.
12367 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
12369 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12370 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12371 delete POINT structure, duplicate of one in XplatUIStructs.
12372 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12374 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
12376 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12377 edit box since otherwise the Label would immediately be set (even if
12378 the user did not modify the label). In OnKeyDown set Handled to true
12379 if Return or Escape was pressed. In ColumnHeaderCollection unlink
12380 columns that are to be removed. In ListViewItemCollection unlink items
12381 that are to be removed.
12383 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
12385 * TextRenderer.cs: If we set a GDI clip region, we need to clear
12386 it when we are done. [Fixes bug #80949]
12388 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12390 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12392 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12394 * ListView.cs: I forgot to commit the changes for ListView
12395 in my previous patch.
12397 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12399 * Clipboard.cs: Partially implement an overload of SetDataObject.
12400 * Form.cs: Implement ShowWithoutActivation.
12401 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12403 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12405 This is a first set of changes to make the Virtual mode works,
12406 by avoiding the retrieval of ListViewItem instances until
12409 * ListView.cs: Store item position in the ListView instead of the
12410 ListViewItem, this way we don't request the Bounds property of
12411 ListViewItem inside the ListView calculations, as well as cache the item
12412 size in item_size field. Store indexes instead of ListViewItem
12413 instances in the matrix used by icon view. Add a ItemMatrixLocation
12414 struct to hold the row and col info of the matrix info.
12416 * ListViewItem.cs: Don't store the location anymore, and only cache
12417 the rectangles for GetBounds. Use the ListView.GetItemLocation
12418 method to retrieve the actual location.
12420 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12422 * TextRenderer.cs: Add clipping support, thanks to George.
12425 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12427 * ListViewItem.cs: Cancel label edit when item is removed from
12429 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12430 event before the edit textbox is displayed. Added CancelEdit method
12431 which is used end to editing while ignoring the value set by the
12432 user. In EndEdit, set focus to ListView to avoid losing focus to
12433 other controls. In ListViewItemCollection.Clear, cancel editing of
12434 any of the items. In Remove, cancel editing of item being removed.
12435 Avoid udplicate code by modifing RemoveAt to invoke Remove.
12437 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12439 * FileDialog.cs: Update FSEntry when move is successful. Fixes
12442 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12444 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
12445 compatible with non X11 systems. Fixes #80901.
12447 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
12449 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12450 whether the item should be unselected and reselect. We do no want this
12451 when we're starting to edit the label. Do not fire the
12452 SelectedIndexChanged event from ListView when its already been fired
12453 by modifying ListViewItem.Selected. Fixes bug #80943.
12455 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12457 * TextRenderer.cs: Previos commit logic was backwards.
12459 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
12461 * TextRenderer.cs: Don't add padding on MeasureText if we were
12462 sent the NoPadding flag.
12464 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12466 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12467 after DrawButton. To prevent image overlaps button borders SetClip and
12468 ResetClip added before and after draw image. Fixes #79129.
12470 2007-02-23 Everaldo Canuto <everaldo@simios.org>
12472 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
12473 window size, it fix problem when you run under win32 that theres
12474 Size diferent than ClientSize. Also fix controls size and positions
12475 to mimic Win32. Fixes #80837.
12477 2007-02-22 Everaldo Canuto <everaldo@simios.org>
12479 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
12480 menu area to fix some problems for non X11 systems. Fixes #80613.
12482 2007-02-22 Jackson Harper <jackson@ximian.com>
12484 * TreeNode.cs: When a node is expanded, set its is_expanded flag
12485 even if it doesn't have any children.
12487 2007-02-22 Jackson Harper <jackson@ximian.com>
12489 * TreeView.cs: Calculate the top node 'on the fly', this
12490 eliminates issues where you need to click on the tree before
12491 scrolling it to get the top node computed correctly.
12492 * TreeNodeCollection.cs: We don't need to mess with the top node
12495 2007-02-22 Jackson Harper <jackson@ximian.com>
12497 * DataGridViewRow.cs: Fix typo so height can actually be set.
12498 Patch by Peter Grimm.
12500 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12502 * FileDialog.cs: Fixed support for renaming files and directories.
12503 * ListView.cs: Do not lose focus when edit is canceled. Process
12504 Escape as regular key (to prevent closing of dialogs).
12506 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12508 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12509 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12511 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
12513 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12514 did not modify label.
12515 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12516 modified the text. Reset Label when user presses Escape in edit mode.
12517 Move focus to ListView after having cancelled or finished editing the
12520 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
12522 * ComboBox.cs: Removed unnecessary initializations. Marked items field
12523 private. Clear textbox when Text is set to null and SelectedIndex is
12525 * FileDialog.cs: Removed unnecessary initializations. Removed
12526 workarounds for ComboBox bugs that are now fixed. Modified
12527 DefaultExt, InitialDirectory and Title property to change null to
12528 zero-length string in getters. Avoid directly accessing fields.
12530 2007-02-20 Jackson Harper <jackson@ximian.com>
12532 * TextControl.cs: Remove RecalAlignments call, that was some
12533 debugging leftovers.
12534 - Don't use the line indent when we shouldn't.
12535 * RichTextBox.cs: Add support for paragraph left indents.
12537 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12539 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12540 Seems like the class status pages doesn't catch params differences.
12542 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12544 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12546 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
12548 * ComboBox.cs: Setting Text should have no effect if item text of
12549 selected item exactly matches value. First lookup text using
12550 case-sensitive comparison, and fallback to case-insensitive comparison.
12551 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
12552 allow startIndex to be last index. Changed ArgumentOutOfRangeException
12553 paramname to match MS. Restart from first item if string is not found
12554 after startIndex. Fixed paramname of ArgumentNullException that is
12555 thrown for null value in ObjectCollection.Contains.
12557 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12559 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12561 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12563 * ListControl.cs: In SelectedValue use value.Equals to compare for
12564 equality instead of ==, otherwise it will fail for strings.
12567 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12569 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12570 since the caret won't show up unless ShowSelection is true.
12573 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12575 * Application.cs: When disabling all forms but the main form, do not
12576 disable any descendants of the main form (such as mdi children or
12577 other parented forms). Fixes #80822 on Windows.
12578 * Form.cs: If we have a parent, set the WS_CHILD style.
12579 * Control.cs: Update the window styles if the control whose parent has
12580 changed is a form (the WS_CHILD style has to be switched).
12582 2007-02-19 Everaldo Canuto <everaldo@simios.org>
12584 * XplatUIStructs.cs: MsgUIState structure added.
12586 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12588 * FileDialog.cs: Removed need for separate fileName field. On 2.0
12589 profile, do not check filename(s) for illegal character if filename(s)
12590 were set non-interactively but always check on 1.0 profile. Fixed NRE
12591 in DefaultExt and only strip off first leading dot. Improve exception
12592 message when invalid Filter is set. Do not ignore InitialDirectory if
12593 it does no exist. Store specified Title, and if empty use default
12594 title (depending on type of dialog). Added an internal DialogTitle
12595 property for retrieving dialog title. Fixed logic of displayed dir to
12596 more closely match MS. Avoid setting ComboBox.Text to a zero-length
12597 string as its buggy.
12598 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12599 FileName is a zero-length string (it can never be null). Override
12600 DialogTitle property to set default title of dialog box.
12601 * SaveFileDialog.cs: Override DialogTitle property to set default
12602 title of dialog box.
12604 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
12606 * FileDialog.cs: Modify default text of filename and filetype labels
12607 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12608 after we've updated the SelectedIndex. Fixes part of bug #80887.
12609 * SaveFileDialog.cs: Set text of filetype label.
12611 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12613 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12614 label field. Needed by latest Jackson's fixes for ListView.
12616 2007-02-16 Andreia Gaita <avidigal@novell.com>
12618 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
12619 print preview images.
12621 2007-02-16 Jackson Harper <jackson@ximian.com>
12623 * ListView.cs: Make AfterLabelEdit work correctly.
12624 * FileDialog.cs: After changing the name of the folder, we have to
12625 make sure that it is created, or that we pop up an error because
12628 2007-02-16 Jackson Harper <jackson@ximian.com>
12630 * X11Dnd.cs: Implement aliases on mime handlers, so things like
12631 System.String are mapped to text.
12632 - Handle dataobjects, getting all the possible formats out of them
12633 - We dont need the drag event args before we give feedback. This
12634 allows feedback cursors to be immediate before selections have
12637 2007-02-16 Jackson Harper <jackson@ximian.com>
12639 * TextBoxBase.cs: Modified the method for inserting images to
12640 taking a line and position instead of tag and position.
12641 * RichTextBox.cs: Handle PngBlip data by inserting the png image
12643 * TextControl.cs: Allow images to be inserted as the first tag of
12645 - Fix some off by one issues when we assume the first tag is a
12646 text tag, not an image tag.
12648 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12650 * ListView.cs: Set focus to ListView when ItemControl gets a
12651 WM_RBUTTONDOWN message, to mimic .Net behaviour.
12652 Fixes part of #80467.
12654 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
12656 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12657 validate Text input (if null or empty string reset Value to default
12658 value). Fixes #80830.
12660 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12662 * ListView.cs: Set owner as null for columns and items when
12663 Dispose is invoked. Fixes #80607.
12665 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
12667 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12668 showing DropDowns, don't show a Grip when doing Flow layout.
12669 [This fixes the toolbox in PDN 2.72.]
12670 * ToolStripItem.cs: Add Anchor property and some internal properties to
12671 reduces needed changes to FlowLayout.
12672 * ToolStripOverflow.cs: Remove unused variable.
12673 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12674 use it in the layout calculations.
12676 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12678 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12679 reported in #79640.
12681 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12684 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12686 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
12687 MeasureString format, it can make button very large in some cases, it is
12688 strange but is what win32 do.
12690 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12692 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
12695 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12696 rendering, the value is based on MenuAccessKeysUnderlined.
12698 2007-02-13 Everaldo Canuto <everaldo@simios.org>
12700 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12703 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12705 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12706 and use MenuAccessKeysUnderlined instead.
12708 2007-02-13 Andreia Gaita <avidigal@novell.com>
12710 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12711 A selected control would not get a Focus call if:
12712 - the default active control of the container is the same as
12713 the one that was selected
12714 - we are switching from one container to another
12715 Under these conditions, the container being selected already has
12716 an active_control, which is the same as the one being activated,
12717 so set_ActiveControl would always return and not send the Focus
12718 call. Fix to check if the currently active control of the container
12719 is actually focused.
12721 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
12723 * StatusStrip.cs: Implement the spring layout.
12724 * ToolStripControlHost.cs: Make sure the hosted control's visibility
12725 always matches the host.
12726 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12727 and TextAfterImage.
12729 2007-02-13 Andreia Gaita <avidigal@novell.com>
12731 * Control.cs: Code reorganization only.
12732 - Reorganize the WndProc cases so that each case has it's own handling method,
12733 to help with the no-line-numbering stack traces.
12734 - Formatting changes (it's vstudio's fault, really :p)
12736 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
12738 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12739 Thread.CurrentUICulture to match DateTimePicker's (and MS)
12742 2007-02-12 Jackson Harper <jackson@ximian.com>
12745 * TextBox.cs: By default we have a non multiline document
12746 - use the multiline property instead of the internal variable
12747 * TextBoxBase.cs: Treat multiline and non multiline the same in
12749 - Use the documents multiline flag instead of tracking it ourself
12750 * TextControl.cs: Attempt at getting multiline to match MS
12751 behavior. Lines now track an offset, which is either their X or Y
12752 offset depending on whether or not we are in multiline mode.
12753 - Update all the methods to understand that lines have an X value.
12754 - Fix crash in Undo::Duplicate when empty lines are deleted.
12756 2007-02-12 Everaldo Canuto <everaldo@simios.org>
12758 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
12759 code moved to properties PreferredHeight and PreferredWidth. It solve the
12760 all problems when preferred sizes must be recalculated. Fixes #80801.
12762 2007-02-12 Everaldo Canuto <everaldo@simios.org>
12764 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12765 font height when compatible_text_rendering is false. Partially fix #80801.
12767 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12769 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12771 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12773 * Form.cs: Improved exception messages in ShowDialog.
12775 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
12777 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12778 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12779 if not set. Fixes bug #80764. Avoid accessing current_settings field
12782 2007-02-08 Everaldo Canuto <everaldo@simios.org>
12784 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12787 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12788 public in 2.0 and for easy maintenance and dont break compatibility it is
12791 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12793 * ToolStripItem.cs: Implement using images from ImageList.
12795 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12797 * DateTimePicker.cs: Change default date-formatting culture from
12798 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12799 seems to be the way MS does it.
12801 2007-02-08 Andreia Gaita <avidigal@novell.com>
12803 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
12804 (the 6 was cut off on the right side)
12806 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12808 * Form.cs: Tell MenuStrips to close when the form is clicked.
12809 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
12810 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12811 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12812 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
12813 support for Overflow, where items that do not fit are automatically
12814 reparented to a drop down menu.
12815 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12816 Also: fixes bug #80747.
12818 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12820 * ComboBox.cs: Remove warning (unused code).
12821 * ScrollableControl.cs: Remove warning for 1.1 profile.
12823 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12825 * Form.cs: Remove a warning.
12827 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
12829 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12830 'g' specifier, not documented anywhere, but seems to always show up
12831 as a single space (might have something to do with the DateTime 'g'
12832 specifier, which is the era format, but since DateTimePicker can't
12833 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12834 won't crash if the format has an unmatched quote. Now shows
12835 single-character formats correctly. Fixes #80744.
12837 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
12839 * StatusStrip.cs: Stretch property needs to call base.Stretch,
12840 not this.Stretch to fix stack overflow. [Fixes bug #80760]
12842 2007-02-07 Chris Toshok <toshok@ximian.com>
12844 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12845 background color. it overwrites the background image we've
12846 already painted. Fixes #80599.
12848 2007-02-07 Chris Toshok <toshok@ximian.com>
12850 * DataGrid.cs: return immediately from Edit() when there are no
12851 columns. Fixes #80662.
12853 2007-02-07 Chris Toshok <toshok@ximian.com>
12855 * MessageBox.cs: fix #80625. don't always show the Help button in
12856 2.0. use the displayHelpButton parameter to determine if we
12857 should show it. Also, make the internal show_help field private.
12859 2007-02-07 Chris Toshok <toshok@ximian.com>
12861 * Control.cs (SetVisibleCore): check in the proposed patch for
12862 80604, and set is_visible before calling CreateControl.
12864 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
12866 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
12867 MonoInternalNote. This is added automagically by VS2005, so let's not crash
12870 2007-02-06 Everaldo Canuto <everaldo@simios.org>
12872 * MenuAPI.cs: hotkey_active internal field added, it is required because
12873 we need to know when hotkeys must be draw, before this change a keystate
12874 Navigating was used but we can have menu in navigating state without
12875 hotkeys. Fixes #80694.
12877 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12879 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12881 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12882 corresponding events and methods to be internal for 1.1 profile and
12883 public for 2.0 profile (required by SizeGrip).
12884 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12885 implicit control list). Don't set the size nor the location of the
12886 SizeGrip anymore as it's not needed.
12887 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12888 draw directly on the captured control (fixes #80656). Removed
12889 ShowGrip (it wasn't used anywhere), redraw (always true), added
12890 GetDefaultSize and GetDefaultRectangle to calculate defaults.
12891 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12892 be called from SizeGrip.
12894 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
12896 * Timer.cs: Throw ArgumentException if Interval <= 0.
12898 2007-02-05 Jackson Harper <jackson@ximian.com>
12900 * TreeView.cs: We need to check scrollbar visibility when window
12901 visibility is updated, because non visible trees don't ever add
12903 * Cursor.cs: We want the override cursor to be reset to NULL when
12904 we set current cursor to the default cursor.
12906 2007-02-05 Jackson Harper <jackson@ximian.com>
12908 * TextControl.cs: Don't have crlfs when we are non multiline.
12909 - Consolidate the line position.
12911 2007-02-05 Jackson Harper <jackson@ximian.com>
12913 * X11Keyboard.cs: BACK+CTRL gets a special char code.
12915 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
12917 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
12918 handling LeaveNotify->NotifyUngrab in order to send
12919 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
12920 after calling XUngrabPointer, so we call WindowUngrabbed directly
12921 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
12922 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
12923 MouseCaptureChanged correctly. Also create handles if changing
12924 Capture (matches MS behaviour).
12926 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12928 * SizeGrip.cs: Make the last change 2.0 only.
12930 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12932 * SizeGrip.cs: If resizing and the capture is lost, revert any size
12933 changes to initial size (fixes #80597).
12935 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12937 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
12939 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
12941 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
12942 background) and only allow dragging if enabled. This way the
12943 sizegrip can be used to fill the open square that otherwise would
12944 have been shown in the bottom right corner of ScrollableControl
12945 when ScrollableControl is not suppose to support sizing.
12946 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
12947 sizegrip is shown and enabled, and hook up with necessary events.
12949 2007-02-01 Chris Toshok <toshok@ximian.com>
12951 * DataGridTextBoxColumn.cs: clean up the
12952 GetFormattedString/GetColumnValueAtRow combination of functions.
12953 Also fix UpdateUI, and the initial state of
12954 IsInEditOrNavigateMode.
12956 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
12957 aren't supposed to scroll the textbox here, we're supposed to
12958 scroll the datagrid.
12960 2007-02-01 Chris Toshok <toshok@ximian.com>
12962 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
12963 setting the position.
12965 2007-02-01 Chris Toshok <toshok@ximian.com>
12967 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
12968 here, since the most recent focus fixes keep us from generating
12969 the Leave event when our textbox gets focus.
12970 (Edit): we should be passing null for the column style's
12971 instantText parameter.
12973 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
12975 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
12976 raised. Fixes menu text/icons not showing up in PDN.
12978 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
12980 * Control.cs: Remove code in constructor that makes every
12981 control with WS_CHILD set have initial location -1, -1.
12983 2007-01-31 Jackson Harper <jackson@ximian.com>
12985 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12987 * XplatUIX11.cs: Give teh keyboard to teh dnd.
12989 2007-01-31 Jackson Harper <jackson@ximian.com>
12991 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12992 - Remove some debug code.
12994 2007-01-31 Jackson Harper <jackson@ximian.com>
12996 * XplatUIX11.cs: If you set the override cursor during a grab, it
12997 should actually override the grab cursor. This comes into play
12998 when you are setting custom cursors in a DND feedback method.
13000 2007-01-31 Jackson Harper <jackson@ximian.com>
13002 * X11Dnd.cs: Add support for handling the QueryContinue and
13003 GiveFeedback events.
13004 - Cancel drag and drop actions when the escape key is clicked.
13005 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13006 can handle the ESCAPE key.
13007 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
13008 done when dnd events are continued after the button is released.
13009 - Add a new helper method so that dnd can translate key events.
13011 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
13013 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13014 make it more obvious what is happening.
13016 2007-01-30 Jackson Harper <jackson@ximian.com>
13018 * XplatUIX11.cs: Don't break when handling button release in drag
13019 and drop operations. We need that BUTTONUP message to get through
13020 so capture is released.
13021 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13022 this is handled automatically when the mouse is down.
13024 2007-01-30 Jackson Harper <jackson@ximian.com>
13026 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13027 is closed, so we need to make sure that we aren't changing the
13028 dialog result when the OK (Open or Save) button has been clicked
13029 and we are closing the window ourselves. Note we don't need to
13030 worry about the cache being written in this case, because it was
13031 already done in the previous FilOk call.
13033 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13035 * DateTimePicker.cs: Remove a warning.
13036 * ComboBox.cs: Remove a couple of warnings.
13038 2007-01-29 Chris Toshok <toshok@ximian.com>
13040 * XplatUIX11.cs: don't crash, and remove the icon if the user has
13041 set one, if SetIcon is passed a null icon.
13043 2007-01-29 Andreia Gaita <avidigal@novell.com>
13045 * TextBox.cs: Redraw when the password characters changes
13046 * TextControl.cs: Check if textbox has a password char and draw
13047 a line of password chars instead of the text in the line. LineTag gets
13048 an extra Draw() method which allows document.Draw to override the text
13049 that will be drawn. Removes 1024 char limitation on length of passworded
13052 2007-01-29 Jackson Harper <jackson@ximian.com>
13054 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
13055 single chars is not.
13057 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
13059 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13060 one pixel. Fix a StackOverflowException caused by an overload wrongly
13063 2007-01-26 Everaldo Canuto <everaldo@simios.org>
13065 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13066 also remove ProcessArrowKey and put the code inside ProcessKeys.
13068 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
13070 * PaddingConverter.cs: Added.
13072 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13074 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13075 ShowPanels is false (fixes #80600). Only draw up to 127 characters
13076 of text (fixes #80601). For panels clip the text to draw to the
13077 panel (fixes #80603).
13079 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
13081 * ComboBox.cs: Fixed implementation of ResetText.
13083 2007-01-25 Jackson Harper <jackson@ximian.com>
13085 * TextControl.cs: For the last char of a line we need to use the
13086 line size, not that chars width, since it won't actually be
13087 computed since the right side of a char is based on the start of
13088 the left side of the next char, and the next char does not exist.
13090 2007-01-25 Chris Toshok <toshok@ximian.com>
13092 * Splitter.cs: fix the new unit tests, and reindent some switch
13095 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13097 * ComboBox.cs: Implemented 2.0 methods and events.
13098 * TextBoxBase.cs: Added OnTextUpdate, so that
13099 ComboBox.ComboTextBox can inform ComboBox of it.
13101 2007-01-25 Jackson Harper <jackson@ximian.com>
13103 * TextControl.cs: Respect ShowSelection when deciding whether or
13104 not to display the caret, this allows comboboxes to have carets
13105 when the combotextbox does not have focus.
13107 2007-01-25 Jackson Harper <jackson@ximian.com>
13109 * TextControl.cs: Add a Suspend/Resume for updating, basically the
13110 same as the Suspend/Resume for recalc, except this will do actual
13112 - New Undo manager, works much like the MS version.
13114 * TextBoxBase.cs: The Cut operation is undoable.
13116 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13118 * TextBoxBase.cs: Don't antialias text. Makes it look way better
13119 on Windows (no difference on Linux).
13121 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13123 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13124 we don't want to activate any windows. Fixes #79433.
13126 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
13128 - ButtonBase.cs: Fix capitalization of parameter: disposing.
13131 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
13134 - Move to using System.ComponentModel.EventHandlerList
13135 - Replace Refresh with Invalidate
13136 - Clear the mime filecache on closing
13137 - Some other memory reducing work. After beeing closed FD now uses
13138 only about 300 KB for the fdo mime stuff plus the memory of the
13140 * Mime.cs: Changed coding style and removed unnecessary commented
13141 code. Some more memory memory reducing work.
13143 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
13145 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13146 a few other missing 2.0 properties.
13147 * Theme.cs: Added DrawFlatStyleComboBox.
13148 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13150 2007-01-24 Chris Toshok <toshok@ximian.com>
13152 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13153 wake_waiting flag, not just when there's data to be read. if we
13154 don't, then future wakeup's won't reach us and we'll be doomed to
13155 wait for the entire 1 second timeout forever (unless there are X
13158 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13160 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13161 until you pass Items.Count, not Items.Count - 1 like 1.1.
13163 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
13165 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13167 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
13169 * ToolStripContainer.cs: The recent Dock fix exposed that I was
13170 adding the panels in the wrong order.
13172 2007-01-24 Jackson Harper <jackson@ximian.com>
13174 * TextBoxBase.cs: When we move the caret we also need to move the
13175 selection, this fixes some random crashing after doing select
13176 text, unselect, delete a char, paste.
13178 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
13180 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13182 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13184 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13185 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
13186 * ToolBar.cs: Force redraw in BackgroundImageChanged.
13188 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13191 - Implement support for vertical toolbars. Fixes #80539;
13192 - Call LayoutToolBar when resize, it fix some other problems in layout.
13193 - Rename requested_height to requested_size, as we can have width on it
13194 when toolbar is vertical.
13195 - Create a private property "Vertical" that uses Dock to verify when
13196 toolbar is vertical or not.
13197 - Set ControlStyles when change Dock property.
13198 - Refactory in LayoutToolBar to have better variables names and to support
13200 - Fixes default value for ButtonSize when button count is equal zero, size
13201 must be (39, 36) test case writed.
13203 2007-01-23 Chris Toshok <toshok@ximian.com>
13205 * Control.cs: fix the checks so that they work correctly for mdi
13208 2007-01-23 Chris Toshok <toshok@ximian.com>
13210 * Control.cs: ControlCollection seems to have super-secret
13211 abstraction breaking knowledge of Mdi containers. allow MdiClient
13212 to add toplevel controls.
13214 2007-01-23 Chris Toshok <toshok@ximian.com>
13216 * Control.cs: throw an ArgumentException if a toplevel control is
13217 added to our control collection from ControlCollection.Add, as
13218 well as from ControlCollection.IList.Add. This fixes the
13219 ControlSetTopLevelTest.TestTopLevelAdd unit test.
13221 Also, in ControlCollection.IList.Add, don't through an
13222 ArgumentNullException, throw an ArgumentException, when value ==
13223 null. This matches MS.
13225 2007-01-23 Chris Toshok <toshok@ximian.com>
13227 * BindingSource.cs: initial, incomplete, implementation of
13230 2007-01-23 Jackson Harper <jackson@ximian.com>
13233 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13234 that I can fix a broken unit test (TextBoxTest::ClearUndo)
13236 2007-01-23 Everaldo Canuto <everaldo@simios.org>
13238 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13240 2007-01-23 Andreia Gaita <avidigal@novell.com>
13242 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13243 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13244 IndexOfKey() for 2.0
13246 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
13248 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13249 to prevent it from changing z-order.
13250 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13251 leave UI updates in MdiWindowManager.
13252 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13253 1 sized (NC handling goes weird on Linux otherwise).
13254 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13255 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13256 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13257 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13258 and SetWindowState(s) to allow for changing the size of an activated child
13259 before activating it (reduces a lot of flicker).
13261 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13263 * Form.cs: Changing FormBorderStyle has different semantics based
13264 on whether the Form is visible or not. If not visible, don't change
13265 the Size. But InvalidateNC needs to be called to force the window
13266 to pick up the changes and redraw itself. [Fixes bug #80574]
13268 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
13271 * ContainerControl.cs: ProcessCmdKey.
13272 * ErrorProvider.cs: new constructor.
13273 * Form.cs: fix AutoValidateEvent compiler warning.
13274 * Label.cs: fix OnAutoSizeChanged compiler warning.
13275 * MenuStrip.cs: fix CanOverflow compiler warning.
13276 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13277 * TextBox.cs: Dispose.
13278 * ToolStrip.cs: CanOverflow, re-enable double buffering.
13279 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13280 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13281 * ToolStripItem.cs: Overflow, RightToLeft properties.
13283 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
13285 * Form.cs: Move the layout of the main form to MdiWindowManager.
13286 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13287 do a layout of the main window to update MdiClient's client area to
13288 the right area. Fixes #80533. Remove the calculation of nc size,
13289 it was just wrong and the correct one is the same as for
13290 InternalWindowManager.
13292 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
13294 * Control.cs: Setting Anchor or Dock needs to reset the other
13295 to its default. [Fixes bug #80556]
13297 2007-01-20 Chris Toshok <toshok@ximian.com>
13299 * CheckedListBox.cs: class status changes.
13301 * ScrollableControl.cs: same.
13303 * RichTextBox.cs: same.
13305 * ContainerControl.cs: same.
13307 * ListView.cs: same.
13309 * NotifyIcon.cs: same.
13311 * MenuStrip.cs: same.
13313 * RadioButton.cs: same.
13315 * CheckBox.cs: same.
13317 * PrintPreviewDialog.cs: same.
13321 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
13323 * TreeNode.cs: Apply Alan's patch for Name property.
13325 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13327 * Form.cs: Implemented SizeGripStyle.
13328 * SizeGrip.cs: Check for minimum and maximum size for the
13329 control being resized and only resize if size has actually
13332 2007-01-19 Chris Toshok <toshok@ximian.com>
13334 * DataGridColumnStyle.cs: stop setting _readonly in the
13335 PropertyDescriptor setter. fixes a unit test failure.
13337 also, rename ParentReadOnly to TableStyleReadOnly, and have it
13338 just consult our table style (if we have one). We don't need to
13339 consult the datagrid readonly attribute because that's passed in
13340 as the _ro arg to Edit. this simplifies things a little.
13342 * DataGrid.cs: use CurrentColumn instead of
13343 current_cell.ColumnNumber just to simplify some of the code.
13345 switch the order of some things in the CurrentCell setter to keep
13346 the previous cell from getting a textbox again -
13347 EnsureCellVisibility causes scrolling to happen, which calls Edit.
13348 So we need to set the new cell before calling it.
13350 call Edit in OnEnter, as does Microsoft.
13352 also, make sure the current table style isn't the one we create
13353 initially when checking to see if it's different than the one
13354 we're setting it to in BindColumns (this fixes #80421).
13356 * GridTableStylesCollection.cs: table styles can have "" for a
13357 mapping name. part of the fix for #80421.
13359 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13360 Edit significantly.
13362 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13364 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13365 and less GDI object leaky-er.
13367 2007-01-18 Andreia Gaita <avidigal@novell.com>
13369 * LinkLabel.cs: Add opaque control style
13371 2007-01-18 Jackson Harper <jackson@ximian.com>
13373 * TextControl.cs: Calculate width properly.
13374 - Don't store the tag's X offset, this can be figured out very
13376 - When getting the caret tag make sure to get the last empty tag.
13378 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13380 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13383 * Control.cs: Color.Empty shouldn't count for previous transparent
13386 2007-01-18 Jackson Harper <jackson@ximian.com>
13390 * TextControl.cs: Starting to merge in some pieces of my older
13391 undo work. Basically just some slight cleanup of the undo API.
13393 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
13395 * TrackBar.cs: Fix signature of RightToLeftLayout.
13396 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13397 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13398 * Application.cs: Implemented UseWaitCursor.
13400 2007-01-18 Jackson Harper <jackson@ximian.com>
13402 * TextControl.cs: We can't skip tags if any part of the tag is
13405 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13407 * ContainerControl.cs: Override OnLayout.
13409 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13411 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13413 * ContextMenuStrip.cs: Make sure context menu is shown on top of
13416 2007-01-18 Chris Toshok <toshok@ximian.com>
13418 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13419 (leftover from the container_selected days, I'd wager). fixes bug
13422 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13424 * Control.cs: Apply patch from George to fix the new testcase on
13425 bug #80451. We can't just check for Color.Transparent, we need
13426 to check if the back color's alpha channel is < 255.
13428 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
13430 * Form.cs: Move setting show_icon = true to before the constructor
13431 so that the base constructor has that information when it calculates
13432 the form's size. Was causing forms to be (6, 6) bigger than they
13433 were supposed to be. Thanks for catching this Rolf!
13435 2007-01-18 Jackson Harper <jackson@ximian.com>
13437 * TextControl.cs: When replacing a selection we need to invalidate
13438 from the initial selection start, because selection start is moved
13439 to the end of the replacement.
13441 2007-01-18 Andreia Gaita <avidigal@novell.com>
13443 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13445 2007-01-18 Chris Toshok <toshok@ximian.com>
13447 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13450 2007-01-17 Everaldo Canuto <everaldo@simios.org>
13452 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
13453 layout methods and properties from ToolBarButton must be available
13454 into ToolBarButtonInfo.
13456 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13458 * Control.cs: If the control has a transparent background, we
13459 need to refresh it when it moves and when it's parent's background
13460 image changes. [Fixes bug #80451]
13462 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13464 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
13466 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
13468 * XplatUIWin32.cs: Implement proper double buffering for Windows.
13469 [Fixes bug #80447, and probably speeds up things as well]
13471 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13473 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13474 * XplatUIWin32.cs: We need to recalculate NC size after changing
13475 window style to toolwindow (otherwise the client rectangle will be
13476 3 pixels to small for some reason).
13477 * MdiWindowManager.cs: Revert NC size calculations to match how
13478 they are calculated only based on window styles (to match
13479 Win32AdjustWindowRectEx, since otherwise when setting size or
13480 location, Control will call Win32AdjustWindowRectEx to update client
13481 size, which would provoke a paint, then we'd get a NCCALCSIZE and
13482 calculate a different value of client size causing another paint
13484 * InternalWindowManager.cs: When moving or resizing a window only
13485 update size or location if they actually changed.
13486 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13487 (seems to match Windows behaviour better). Cleaned up
13488 ManagedWindowDecorations to draw what's needed and nothing else
13489 (was drawing borders and lines where they shouldn't be)
13490 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13491 (style = 0xFFFF) and takes into account caption height when
13492 calculating window rectangle.
13494 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13496 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
13497 can be added to toolbar multiple times, we need to maintain a list of
13498 button information for each positions.
13500 2007-01-16 Everaldo Canuto <everaldo@simios.org>
13502 * ToolBar.cs: Some small stetic changes.
13504 2007-01-16 Jackson Harper <jackson@ximian.com>
13506 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13507 that allow us to have nested recalc = false blocks.
13508 - Add paste support for images in the RichTextBox
13509 * RichTextBox.cs: flush the text after the color is changed, so
13510 the change takes effect.
13511 - Use SuspendRecalc
13512 - Some extra debugging info
13513 * TextControl.cs: Tags no longer track their length, it is just
13514 computed from the next tags length, this makes things a little
13515 simpler and reduces places that we have to track length changes.
13516 - Refactored the linetag class a little so we could make it
13517 a base class for different kinds of tags
13518 - Created a image tag, a tag that can have a single image inserted
13520 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13521 that we can call suspend multiple times.
13522 - Add some debugging methods
13524 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13526 * MdiClient.cs: Add ActivatePreviousChild for
13527 mdi child window navigation.
13528 * Form.cs: Use MdiClient.ActivateNextChild/
13529 ActivatePreviousChild instead of Form.SelectNextControl
13530 to select the next/previous child since
13531 SelectNextControl doesn't do it in the same order
13532 as mdi children should do it.
13534 2007-01-16 Chris Toshok <toshok@ximian.com>
13536 * Control.cs: remove container_selected field.
13538 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13540 * MdiClient.cs: Update main form's ActiveChild when
13541 updating keyboard focus for the mdi child.
13543 2007-01-16 Jonathan Pobst <jpobst@novell.com>
13545 * Control.cs: PreferredSize fix.
13547 * Form.cs: Add several 2.0 events, properties, and methods.
13549 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
13551 * Form.cs: Provide meaningful message when MdiParent is assigned a
13552 Form that is not an MdiContainer.
13554 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13556 * MdiClient.cs: Update main form's ActiveChild when
13557 activating a mdi child.
13559 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
13561 * MdiWindowManager.cs: Fix NRE when merging menus and main form
13562 doesn't have a menu.
13564 * Form.cs: Request NCRecalc after creating a mdi child window.
13565 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
13566 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13568 * MdiClient.cs: Add new method SendFocusToActiveChild that either
13569 sends keyboard focus to the active child, or to the MdiClient
13570 if there are no child forms.
13572 2007-01-15 Chris Toshok <toshok@ximian.com>
13574 * ListView.cs: drop the *Internal overrides, just do our work in
13575 ItemControl's WndProc instead.
13577 * UpDownBase.cs: a few large changes. Fix up the Selectable state
13578 of the various controls, and forward the events properly (in the
13579 same manner as MS) from the textbox to the UpDown. Also the
13580 ActiveControl of the UpDownBase gets set properly now. Finally,
13581 we don't call UpdateEditText from the ctor. Fixes bug #79957.
13583 * NumericUpDown.cs: set Text in the ctor.
13585 * DomainUpDown.cs: call UpdateEditText in the ctor.
13587 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13588 so even a Selectable = false textbox can be focused if you click
13591 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
13592 just add their handling in their respective WndProc's. Also add
13593 an explicit FocusInternal method that doesn't consult CanFocus
13594 before calling Select(this).
13596 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13597 do our work in WndProc instead.
13599 * TabControl.cs: same.
13601 * ComboBox.cs: same.
13603 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13605 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13608 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13611 * ThemeWin32Classic.cs: Don't draw the item text outside
13612 item bounds in Details view, as well as use trimming.
13615 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13617 * Form.cs: Implement Form.ShowIcon.
13619 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13620 null, which when combined with the DlgModalFrame window style removes
13621 the icon from the title bar.
13623 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13625 * Control.cs: Call OnMouseClick after OnClick. (2.0)
13627 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13629 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13630 menu when mdi child windows theres a menu, uses insert to get icon
13631 at first position. Partially fix #80006.
13633 2007-01-15 Jonathan Pobst <jpobst@novell.com>
13635 * Clipboard.cs: Implement 2.0 methods.
13637 2007-01-15 Everaldo Canuto <everaldo@simios.org>
13639 * Menu.cs: Implement Insert method of MenuItemCollection class
13642 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13644 * ListView.cs: Implement 2.0 FindItemWithText method.
13646 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13648 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13649 to calculate menu bar size. Fixes #80290.
13651 2007-01-11 Everaldo Canuto <everaldo@simios.org>
13653 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13655 2007-01-11 Chris Toshok <toshok@ximian.com>
13657 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13660 2007-01-11 Chris Toshok <toshok@ximian.com>
13662 * LinkLabel.cs: make sure to call base.Select in our Select method
13663 if it turns out we're going to be selected (i.e. if we have a link
13664 that is going to receive focus). That way our container's
13665 ActiveControl is updated properly.
13667 2007-01-11 Chris Toshok <toshok@ximian.com>
13669 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13670 they have 1 or more links. this fixes the crash gert reported.
13672 2007-01-11 Andreia Gaita <avidigal@novell.com>
13674 * ContainerControl.cs: Remove ContainerSelected flag, not needed
13677 * Control.cs (Controls.Add): Check if control to be added to the collection
13678 is a top level control, and throw an ArgumentException if it is.
13679 Remove ContainerSelectedFlag, not needed anymore.
13681 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13682 top most control doesn't activate the form. This fixes a problem in the
13683 MessageBox, where the default button wouldn't get focus because the form
13684 was activated before being Loaded - when the Owner is set, SetTopMost is
13685 called, and it would activate it.
13687 2007-01-11 Jonathan Pobst <jpobst@novell.com>
13689 * Button.cs: When clicked and setting the parent form's DialogResult,
13690 use FindForm instead of Parent, since parent could be a container
13691 control and not the Form. Fixes bug #80495.
13693 2007-01-10 Chris Toshok <toshok@ximian.com>
13695 * Form.cs: move the call to SendControlFocus into the same
13698 2007-01-10 Chris Toshok <toshok@ximian.com>
13700 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13701 It breaks in the face of the new ActiveControl stuff, and should
13704 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13705 activecontrol's focus if it's not already set, after we set
13706 ActiveControl, but before we call OnActivated. Re-fixes #79667
13707 after the previous focus/active control fixes regressed it.
13709 * Control.cs: reindent some code.
13711 2007-01-10 Chris Toshok <toshok@ximian.com>
13713 * Splitter.cs: clearing some outstanding changes from my tree.
13714 Replace all accesses (not writes) to the internal dock_style field
13715 with the Dock property.
13717 2007-01-10 Chris Toshok <toshok@ximian.com>
13719 * Control.cs: make FireEnter, FireLeave, FireValidating, and
13720 FireValidated virtual.
13722 * Form.cs: override and don't chain up calls to FireEnter and
13725 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13727 * ListView.cs: Add more text padding space when using
13728 auto resize for columns (the previous value didn't work fine).
13730 * ThemeWin32Classic.cs: Update text position inside columns,
13731 to match the appeareance of .Net.
13733 * ColumnHeader.cs: When using auto resize, only the Width should
13734 depend on the sub items, not the Height. Also, set width after
13735 auto resizing (the value of Width should never remain as -1 or -2).
13737 2007-01-10 Chris Toshok <toshok@ximian.com>
13739 * Application.cs: fix compilation errors when debug is enabled.
13741 2007-01-10 Chris Toshok <toshok@ximian.com>
13743 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13744 add some nice ascii art pictures and explanation of the process).
13745 (GetMostDeeplyNestedActiveControl): new utility function we need
13746 because our ActiveControl can refer to a child container with its
13749 * Form.cs (OnActivated): remove the call to SelectActiveControl
13750 from here, since you can override this method and not chain up,
13751 and winforms still sets the active control.
13752 (OnCreateControl): also remove the unnecessary SelectActiveControl
13754 (WndProc): it's actually called from the WM_ACTIVATE block, just
13755 before calling OnActivated.
13757 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13758 inside the else. the ActiveControl setter will end up setting
13759 focus on @control. This keeps us from setting it again (and
13760 generating an extra LostFocus/GotFocus pair).
13761 (Select (bool, bool)): reindent.
13763 2007-01-10 Jonathan Pobst <jpobst@novell.com>
13765 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13766 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13767 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13768 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13769 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13770 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13771 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13772 ToolStripTextBox.cs: Another wave of corcompare work.
13774 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13776 * ColumnHeader.cs: Implement 2.0 AutoResize method using
13777 the Width property.
13779 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13780 methods by callling Column.AutoResize method on columns.
13782 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
13784 * Control.cs: Provide proper implementations of PreferredSize
13785 and GetPreferredSize (2.0).
13787 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
13789 * Form.cs: Remove one character (!) to make my previous OnClosing
13790 stuff work for modal windows like MessageBox.
13792 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13795 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13796 ListView.Columns to get the last displayed column. Fixes #80452.
13798 2007-01-09 Everaldo Canuto <everaldo@simios.org>
13800 * Label.cs, LinkLabel.cs: Source code identation fixes.
13802 2007-01-08 Everaldo Canuto <everaldo@simios.org>
13804 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13805 we dont need to invalidate only borders because when we invalidate four
13806 border lines the invalidate's generates a complete redraw of button,
13807 because it now invalidate a complete rect some other redraws operations
13808 are fixed. Fixes #80196.
13810 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13811 Remove ToolBarInvalidateEntireButton as it is not used.
13813 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
13815 * Form.cs: Make sure that both OnClosing and OnFormClosing are
13816 called for 2.0 profile.
13817 * CloseReason.cs: Make class internal for 1.1.
13819 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
13821 * ToolStripManager.cs: Implement FindToolStrip functionality.
13822 * ToolStrip.cs: Register and unregister with ToolStripManager.
13824 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
13826 * Control.cs: This was messy. 2.0 moves much of ControlCollection
13827 to ArrangedElementCollection. Implemented this with as few #if's as
13828 possible (which is still too many).
13830 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
13832 * Control.cs: Implement SizeFromClientSize() [2.0].
13834 2007-01-07 Everaldo Canuto <everaldo@simios.org>
13836 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13837 use Theme.BorderSize to calculate area instead of static value 1,
13838 by the way use new BorderStaticSize instead Border3DSize when
13839 border_static is true. Fixes #79537.
13841 * XplatUIOSX.cs: Fix call to GetClientRectangle.
13843 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13846 2007-01-06 Everaldo Canuto <everaldo@simios.org>
13848 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13850 2007-01-06 Everaldo Canuto <everaldo@simios.org>
13852 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13853 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13856 - border_static field added, it will used to define when a control
13857 theres 3D border but it must be static (thin).
13858 - In GetWindowRectangle use Theme.BorderSize to calculate area
13859 instead of static value 1, by the way use new BorderStaticSize instead
13860 Border3DSize when border_static is true.
13862 * XplatUIX11.cs, XplatUIOSX.cs:
13863 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13865 * Theme.cs: BorderStaticSize field added.
13867 2007-01-05 Everaldo Canuto <everaldo@simios.org>
13869 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13871 2007-01-05 Everaldo Canuto <everaldo@simios.org>
13873 * Control.cs: Under InternalBorderStyle call RecreateHangle to
13874 mimic same behavior than win32 that set border only in CreateParams,
13875 it fix problems under CreateParams overrides. Fix #79442 and partial
13878 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13879 of thi control you must call recreate handle.
13881 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13882 need to do anything as RecreateHangle will take care about borders.
13884 2007-01-05 Mike Kestner <mkestner@novell.com>
13886 * ListView.cs: hack to eliminate Lost/Got focus notifications on
13887 cycles between the ItemControl and parent. Fixes #80388.
13889 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
13891 * Control.cs: Lazy init layout engine. Do not directly use
13892 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13894 2007-01-05 Chris Toshok <toshok@ximian.com>
13896 * DataGrid.cs: don't forceably rebind columns in SetDataSource
13897 unless our list manager has changed (i.e. unless we have reason to
13898 believe our columns have changed). Fixes #80422.
13900 also, disable the call do BindColumns in
13901 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
13902 1.1 the event isn't raised in response to a column addition on a
13905 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
13907 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13908 that inheritors can not call it if they choose. Fixes bug #80456.
13910 2007-01-05 Andreia Gaita <avidigal@novell.com>
13912 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
13913 doesn't blow up with a null exception on marshalling.
13915 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
13917 * Control.cs: Implement several 2.0 protected properties and methods.
13918 Ensure that all necessary events are being called when properties
13921 2007-01-05 Mike Kestner <mkestner@novell.com>
13923 * ListView.cs: implement PgUp/PgDn for Details view. Also
13924 fixes First/LastVisibleIndex to use the item_control.ClientRect
13925 instead of the parent control. Fixes #80378.
13927 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
13929 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
13930 determine whether to use yard-pound or not (bug #78399).
13932 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
13934 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
13935 problems. So it is time to bring back the old popupbutton colors.
13937 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13940 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
13941 property by using the internal information of the
13942 columns order in ListView.
13944 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
13946 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
13947 Add 2.0 Tag properties.
13949 * LinkArea.cs: Add 2.0 ToString method.
13951 2007-01-03 Chris Toshok <toshok@ximian.com>
13953 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
13954 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
13955 when we're editing, which fixes #80047.
13957 2007-01-03 Chris Toshok <toshok@ximian.com>
13959 * Form.cs: apply patch contributed by Dominik Seichter. fixes
13962 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
13964 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
13965 property and implementation.
13967 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
13968 for MdiWindowListItem property.
13970 * ToolStripDropDown.cs: Don't consider hidden menu items while
13971 laying out the menu.
13973 2007-01-03 Andreia Gaita <avidigal@novell.com>
13975 * SendKeys.cs: window handle is not needed in win32, so just
13976 get the active window for X after parsing keys and don't use
13977 it when building the message; it is passed by parameter to the
13978 Xplat method and used there to build the message instead. Also,
13979 wait for events to be processed on SendWait, as opposed to Send,
13980 which doesn't wait :) Playing with threads and Send() completely
13981 hangs on ms.net, only SendWait() works.
13984 X11Display.cs: Check for valid window handle.
13986 2007-01-03 Jackson Harper <jackson@ximian.com>
13988 * TextControl.cs: Need to prevent wrap calculations when replacing
13989 text (this was there before i removed it accidently).
13990 - Don't update the cursor during the positioning, just set it to
13991 selection_start at the end of the operaion.
13993 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
13996 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13998 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14000 * MonthCalendar.cs: Added Click and DoubleClick events again,
14001 but this time they only hide Control's Click and DoubleClick.
14003 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
14005 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14006 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14008 2007-01-02 Jackson Harper <jackson@ximian.com>
14010 * TextBoxBase.cs: We move the caret with the split now, so we
14011 don't need to explicitly move the caret after splitting. This
14012 fixes the caret bumping down an extra line on Enter.
14014 2007-01-02 Miguel de Icaza <miguel@novell.com>
14016 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14019 * ScrollableControl.cs: Add Scroll event.
14021 2007-01-02 Mike Kestner <mkestner@novell.com>
14023 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
14024 to fix all hdr height padding codepaths. Fixes #80207.
14026 2007-01-02 Chris Toshok <toshok@ximian.com>
14028 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
14029 setting it to the Control defaults anyway, and it being after the
14030 Dock set was screwing up layout.
14031 (set_Dock): don't short circuit out of setting base.Dock. Also,
14032 no need to call UpdateStatusBar here, as it'll be re-layed out if
14035 2007-01-02 Mike Kestner <mkestner@novell.com>
14037 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
14038 to header height for width == -1. Fixes the rest of #80207.
14040 2007-01-02 Mike Kestner <mkestner@novell.com>
14042 * ListView.cs: rework the mouse event forwarding everaldo added
14043 to translate the coordinates to the parent control not
14044 raise the parent events until after we've done our work. Hover
14045 needs more work, in the case where HoverSelection is on, because
14046 the item control receives more than one MouseHover per Enter
14047 event, so we need to ensure only the "first" hover gets forwarded.
14048 Opening a minor bug for that.
14050 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
14052 * CheckedListBox.cs: Fixed SelectionMode to match MS.
14053 * ListControl.cs: Implemented AllowSelection property. Removed extra
14055 * ListBox.cs: Implemented AllowSelection property.
14057 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14059 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14060 SelectedItem, it prevent for errors when you must disable item
14061 before perform click. Fixes #80409.
14063 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14065 * MenuAPI.cs: Prevent second level and beyond submenus to close
14066 until first level when move out side of popup.
14068 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14071 - Down submenu positin in three pixels.
14072 - Closes sub menu when mouse leaves from menu. Fixes #80402.
14074 2007-01-02 Everaldo Canuto <everaldo@simios.org>
14076 * ThemeWin32Classic.cs:
14077 - Fix popup menu size adding one pixel on the top.
14078 - Down menu item border from two to one to mimic Win32.
14079 - Some source identation fixes.
14081 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14083 * ThemeWin32Classic.cs: Use float numbers to calculate size and
14084 position of menu arrows, it fix wrong arrow size.
14086 2007-01-01 Everaldo Canuto <everaldo@simios.org>
14088 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14089 instead of line, it simplify draw operation and fix it using 3D
14090 borders to mimic Win32.
14092 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
14094 * StatusStrip.cs: Add implementation of the sizing grip.
14096 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14097 StatusStrip rendering.
14099 2006-12-31 Chris Toshok <toshok@ximian.com>
14101 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
14102 override the layout style (anchor/dock) of the control. assign to
14103 Dock instead. Fixes bug #80416.
14105 * ToolStrip.cs: same.
14107 2006-12-31 Andreia Gaita <avidigal@novell.com>
14109 * ContainerControl.cs: Use ContainerSelected flag to check if
14110 a Container is directly selected, or if Select is called on a
14111 non-container. If a container is directly selected, focus events
14112 should not be raised.
14113 Apply #80411 patch to throw exception on set_ActiveControl if
14114 control is the same as the current one.
14116 * Control.cs: Use ContainerSelected flag (see above).
14117 Add invalidation check to raise event but not invalidate if
14119 Apply #80411 patch.
14122 2006-12-31 Everaldo Canuto <everaldo@simios.org>
14124 * MenuAPI.cs: After click, dont close popup menu when menu is
14125 ContextMenu. Fixes #80399.
14127 2006-12-30 Chris Toshok <toshok@ximian.com>
14129 * ContainerControl.cs: make sure we throw the exception if the
14130 container control doesn't contain the control we're setting
14133 2006-12-30 Chris Toshok <toshok@ximian.com>
14135 * Control.cs (SetTopLevel): fix the exception raised by
14136 SetTopLevel for child controls.
14137 (set_Anchor): call UpdateDistances when setting the anchor type.
14138 This fixes bug #80336.
14140 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14142 * Theme.cs: For now, revert back to 8pt font.
14144 2006-12-29 Everaldo Canuto <everaldo@simios.org>
14146 * MenuAPI.cs: Set popup as active when open a ContextMenu.
14149 2006-12-29 Chris Toshok <toshok@ximian.com>
14151 * Control.cs: reorder the code in OnResize to give the same event
14154 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
14156 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14157 TileHorizontally and TileVertically.
14159 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
14161 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14162 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14163 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14164 Corrected copyright and email adress.
14166 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14168 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14169 of Exception in FullPath property if no TreeView is associated with
14172 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14174 * Theme.cs: Marked default_font as private, and initialize it in ctor
14175 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14177 * ThemeGtk.cs: Removed default_font intialization.
14178 * ThemeWin32Classic.cs: Removed default_font initialization.
14180 2006-12-28 Chris Toshok <toshok@ximian.com>
14182 * Control.cs: fix a couple of place where we were creating handles
14183 more aggressively than we should be. Fixes ControlRefresh unit
14186 2006-12-28 Chris Toshok <toshok@ximian.com>
14188 * Control.cs: contrary to what the comment said, Control.Dock does
14189 not supercede Control.Anchor - the last one you assign to decides
14190 the layout behavior. so we need to keep track of which was the
14191 last set. Also, fix some of the affected property arguments in
14192 PerformLayout calls, and remove an redundant parent.PerformLayout
14195 Add a VisibleInternal property, which returns is_visible. We
14196 can/should get rid of all the usage of this field elsewhere.
14198 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14200 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14201 control style, not DoubleBuffer. Added UseDoubleBuffering property
14202 that indicates whether doublebuffering is enabled and supported.
14203 (comment from and code based on Gert Driesen's patch in #80324).
14206 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14208 * Control.cs: Fixed a NRE.
14210 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14212 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14215 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
14217 * Control.cs: Rewrote double buffering, now a seperate
14218 class handles all the buffering, no Graphics is disposed of
14219 until the painting is finished (earlier implementation
14220 would crash if the control was resized in the OnPaint,
14221 since it would cause the double buffer to be recreated
14222 and the old one disposed), a separate Graphics is
14223 created for every paint (MS behaviour and anyways the state
14224 of the Graphics would have to be saved and restored otherwise)
14226 * XplatUIDriver.cs:
14228 * XplatUI.cs: Added and implemented GetOffscreenGraphics
14229 so that we can get the graphics for the back buffer without
14230 having to create a new one and remove the offscreen_dc parameter
14231 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14233 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14235 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14236 Also make virtual all the key-related methods.
14238 * ListViewItem.cs: Make virtual the key related methods for
14239 ListViewSubItemCollection.
14241 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14245 * ThemeWin32Classic.cs:
14246 * Theme.cs: Initial support for Tile view in ListView,
14247 as well as the implementation of the required bits for it (Item
14250 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14252 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14253 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14254 Provide useful exception messages.
14256 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
14258 * TrackBar.cs: Remove a warning.
14259 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14260 when used by DateTimePicker, fixes #80287. This also requires that
14261 MonthCalendar implements it's own drawing for the yearly updown control,
14262 otherwise the Capture tracking would be too complicated. Removed the Click
14263 and DoubleClick events (according to comments they were hiding the base class
14264 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14265 raise these events, not that they cannot be raised. It is possible to raise
14266 them by calling OnClick and OnDoubleClick). Added two internal fields in
14267 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14268 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14269 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14270 event, no longer needed.
14272 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14274 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14275 true if new value differs from current value.
14277 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14279 * Control.cs: ControlCollection.Count must be public. Fixed build of
14282 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14284 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14286 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
14288 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14290 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14292 * Control.cs: Invalidates control including when Width and Height is
14293 equal zero or is not visible, only Paint event must be care about
14294 this. Fixes #79913.
14296 2006-12-26 Chris Toshok <toshok@ximian.com>
14298 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14299 more corcompare work.
14301 * DataGridView.cs: fix compiler warning.
14303 * ColumnHeader.cs: some corcompare work, and also take the
14304 opportunity to make the internal fields private.
14306 * ListView.cs: fix the fallout from the above field change.
14308 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14310 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14311 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14312 ToolStripTextBox.cs: Fixes to events and corcompare.
14314 2006-12-26 Everaldo Canuto <everaldo@simios.org>
14316 * ListView.cs: Call owner.OnMousexx event to propagate events from
14317 item to ListView. Fixes #80367.
14319 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14321 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14322 if value is less than one. ItemHeight should not be set to a value
14323 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
14324 Removed extra tabs.
14326 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
14328 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14329 * ToolStripStatusLabel.cs: Add Spring for Moma.
14331 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14333 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14334 Fixed code formatting. Removed debug code.
14335 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14337 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
14339 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14340 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14341 ArgumentOutOfRangeException if ColumnCount is negative. In
14342 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14343 less than 4 or higher than 32768.
14344 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14345 Fixed FormatProvider to return CurrentCulture unless explicitly set.
14346 Fixed IsFormatProviderDefault to return true if FormatProvider has
14347 not been explicitly set.
14349 2006-12-25 Chris Toshok <toshok@ximian.com>
14351 * Application.cs: add a couple of 2.0 events.
14353 2006-12-25 Chris Toshok <toshok@ximian.com>
14355 * Control.cs: fix compiler warning.
14357 * AxHost.cs: corcompare fixes.
14359 * ApplicationContext.cs: corcompare fixes.
14361 2006-12-25 Chris Toshok <toshok@ximian.com>
14363 * Control.cs: only update dist_right/dist_bottom if the
14364 width/height is > 0. this fixes anchored controls being resized
14365 smaller until they disappear and then resized larger again.
14367 2006-12-25 Chris Toshok <toshok@ximian.com>
14369 * Control.cs: a couple of changes. Remove dist_left and dist_top,
14370 since they're nothing more than X/Left and Y/Top, respectively.
14372 Also, move back to a per-control Bitmap/Graphics for
14373 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14374 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
14377 2006-12-25 Miguel de Icaza <miguel@novell.com>
14379 * MessageBox.cs: Implemented overload that takes a new "bool
14380 displayHelpButton" by adding a new internal field "show_help".
14381 When clicked this will raise the HelpRequested on the owner or the
14384 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14385 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14387 * ListView.cs: Add support ColumnWidthChanged and
14388 ColumnWidthChanging.
14390 Add support for ColumnReordered event.
14391 (ReorderColumn): Add NET_2_0 specific support for cancelling the
14394 Very nice codebase!
14396 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14398 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14400 2006-12-24 Chris Toshok <toshok@ximian.com>
14402 * GridTablesFactory.cs: 2.0 corcompare work.
14404 * ToolStripContainer.cs: add "override" to
14405 ContextMenuStripChanged, and remove the local event object.
14407 * ToolStripDropDown.cs: same with a couple properties.
14409 * ToolStripPanel.cs: same with AutoSizeChanged event.
14411 * TextBoxBase.cs: add "override" to AutoSizeChanged.
14413 * Form.cs: add the remaining 2.0 events, and do some corcompare
14416 * DateTimePicker.cs: add "new" to padding.
14418 * ButtonBase.cs: use Control's use_compatible_text_rendering.
14420 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14422 * DataGridView.cs: PaddingChanged is overridden.
14424 2006-12-24 Chris Toshok <toshok@ximian.com>
14426 * Control.cs: corecompare work here too.
14428 * DataGridViewElement.cs, DataGridView.cs,
14429 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14430 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14431 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14432 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14435 2006-12-24 Miguel de Icaza <miguel@novell.com>
14437 * Control.cs: Switched the error message on the console for a
14438 todo. A review of the code will have to cope with this anyways
14439 (since its a large feature, it is in our radar) and it was
14440 producing too much output when running PDN.
14442 * ToolStripComboBox.cs: Set the text when the SelectedIndex
14443 changes. Applications depend on this (PDN 2.72)
14445 2006-12-23 Chris Toshok <toshok@ximian.com>
14447 * TableLayoutSettings.cs: finish up the corcompare work for this
14450 2006-12-23 Chris Toshok <toshok@ximian.com>
14452 * Control.cs: make SetImplicitBounds internal, do some futzing
14453 with LayoutEngine so that it's available in 1.1, and remove the
14454 entire duplicated code mess from PerformLayout. Use
14455 System.Windows.Forms.Layout.DefaultLayout instead.
14457 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14459 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14461 * Form.cs: Add MainMenuStrip property.
14463 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
14465 * Control.cs: Add ContextMenuStrip property and implementation.
14466 Fix ContextMenu implementation to show menu centered on control when
14467 activated using the keyboard instead of showing at screen (0,0).
14469 * ToolStripDropDown.cs: Fix needed overload of Show ().
14471 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14473 * Menu.cs: Name property added for 2.0 profile.
14475 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14477 * Menu.cs: Update information about FindMenuItem, method to be
14480 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14482 * MenuAPI.cs: When deselect items deselect also selected subitems.
14484 2006-12-23 Everaldo Canuto <everaldo@simios.org>
14486 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14487 FindSubItemByCoord to found itens that is not active, also an
14488 cheking added to FindSubItemByCoord to search for items only
14489 in visible popup windows. Fixes #80274.
14491 2006-12-22 Everaldo Canuto <everaldo@simios.org>
14493 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14494 internal property, it be care about change ExStyle.
14496 2006-12-22 Andreia Gaita <avidigal@novell.com>
14498 * ContainerControl.cs: set activeControl for parent forms up the
14499 tree when the new activecontrol is a container.
14500 When validating the active control, if it is a container, also
14501 raise up the validation for it's active control. Fixes #80280
14503 * Control.cs: Add internal property flag and check to prevent
14504 Focus events from getting raised when Select() is called for
14505 a ContainerControl. There are still too many focus events being
14506 raised at the moment though.
14507 Cleaned up the code a bit.
14509 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14511 * Control.cs: Added all missing 2.0 events.and
14512 fixed a couple of corcompare issues.
14513 * TrackBar.cs: Implemented missing 2.0 bits.
14514 * MonthCalendar.cs,
14515 * DateTimePicker.cs,
14516 * MdiClient.cs: Fixed some corcompare issues.
14518 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14520 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14521 SplitterPanel.cs: corecompare work.
14523 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14525 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14526 Clean up warnings for BackgroundImageChanged and PaddingChanged
14527 events now that they are implemented in Control.cs.
14529 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
14531 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14533 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14534 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14535 of TableLayoutPanel and supporting cast.
14537 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
14540 - GrabWindow now confines the mouse pointer to the confine window.
14541 - Added Win32ClipCursor and Win32GetClipCursor.
14544 - Added CaptureWithConfine to be able to capture and confine
14547 * InternalWindowManager.cs:
14548 - Call CaptureWithConfine instead of Capture if we're an
14549 MdiChild (fixes #79982).
14551 2006-12-21 Chris Toshok <toshok@ximian.com>
14553 * DataGrid.cs: guard against the initial state of selection, where
14554 selection_start == -1. make sure we only select from index >= 0.
14557 2006-12-21 Chris Toshok <toshok@ximian.com>
14559 * Control.cs: we don't need to be so draconian with
14560 UpdateDistances, and we thusly don't need to call it before
14561 calling PerformLayout in ResumeLayout. Fixes bug #80289.
14563 2006-12-21 Daniel Nauck <dna@mono-project.de>
14566 TextBox.cs: Implemented AutoComplete properties.
14568 2006-12-20 Chris Toshok <toshok@ximian.com>
14570 * DataGridView*.cs: some corecompare work.
14572 2006-12-20 Jackson Harper <jackson@ximian.com>
14574 * XplatUIX11.cs: We need to hide the caret when deleting it,
14575 otherwise you get carets left lying around everywhere.
14576 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
14577 prevents getting some weird half drawn caret tracers when
14579 * TextControl.cs: Attempt to reduce the number of times we need to
14580 recreate the caret.
14582 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
14584 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14586 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14588 * DateTimePicker.cs:
14589 - Implemented missing 2.0 bits.
14590 - Changed some default values to match MS.
14592 2006-12-20 Jackson Harper <jackson@ximian.com>
14594 * TextBoxBase.cs: When changing the font across the document we
14595 can't recalculate after changing each line, since that will cahnge
14597 - PreferredHeight is a little different than i thought.
14598 - When backspacing, move the caret before we do the actual char
14599 delete, because when that delete crosses a wrap boundary the
14600 positional information will change.
14602 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14604 * Control.cs: Added some missing 2.0 bits:
14605 BackgroundImageLayout, BackgroundImageLayoutChanged,
14606 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
14607 add IBindableComponent and IDropTarget implementation.
14609 * MonthCalendar.cs:
14610 - Added all missing 2.0 features:
14611 BackgroundImageLayout, RightToLeftLayout,
14612 OnHandleDestroyed, RightToLeftLayoutChanged,
14613 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14615 - Rewrote all the BoldDate code, it was completely broken.
14616 - Fixed all the tests (the tests can now be re-enabled, the
14617 problems were not with the tests, but with the control, it was
14620 * DateTimePicker.cs: Changed the location where the
14621 MonthCalendar is shown.
14623 2006-12-19 Chris Toshok <toshok@ximian.com>
14625 * DataGridView.cs: add IDropTarget implementation.
14627 * ToolStripPanel.cs: add IDropTarget implementation.
14629 2006-12-19 Jackson Harper <jackson@ximian.com>
14631 * TextControl.cs: soft now means something different than what it
14632 used to mean, we want to move the caret regardless of whether or
14633 not this break was soft (would we really have wanted the caret
14634 to not move with the break in the old context?)
14635 * TreeView.cs: Make sure we factor in the vert scrollbar when
14636 calculating the horizontal scrollbar's maximum.
14638 2006-12-19 Andreia Gaita <avidigal@novell.org>
14640 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14641 check for keywords in alternate casing, close bug #80049.
14643 2006-12-19 Chris Toshok <toshok@ximian.com>
14645 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14646 methods (which all do nothing).
14648 * IDropTarget.cs: add the 4 missing methods.
14650 2006-12-19 Chris Toshok <toshok@ximian.com>
14652 * TableLayoutRowStyleCollection.cs: corcompare work.
14654 * TableLayoutSettings.cs: same.
14656 * TableLayoutStyle.cs: same.
14658 * TableLayoutColumnStyleCollection.cs: same.
14660 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
14662 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14663 TableLayoutPanel I've had in my local tree for way too long.
14665 2006-12-19 Miguel de Icaza <miguel@novell.com>
14667 * TableLayoutSettings.cs: Finish the public API (still needs all
14668 the logic to update on changes).
14670 * TableLayoutPanelCellPosition.cs: new file.
14672 * TableLayoutRowStyleCollection.cs,
14673 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14674 TableLayoutSettings.cs: Track the final 2.0 table api.
14676 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14678 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14679 and Image List 2.0 members for ColummnHeader.
14680 * ListView.cs: Add key-related 2.0 methods for
14681 ColumnHeaderCollection.
14683 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
14685 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14686 ArgumentNullException if items argument is null. Ignore null item in
14687 arrays. Removed extra tabs.
14689 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
14691 * MonthCalendar.cs: Fixed InvalidCastException.
14693 2006-12-19 Jackson Harper <jackson@ximian.com>
14695 * TextControl.cs: Don't increment the position here.
14696 - When calculating char positions only add in the line break size
14697 for hard line breaks.
14699 2006-12-19 Andreia Gaita <avidigal@novell.org>
14701 * SendKeys.cs: Changed some things to match ms.net behaviour
14702 when parsing shifted capital letters.
14704 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
14705 Add window handle as parameter to SendInput. X11 needs the
14706 window handle, and the handle being passed to it in the keys
14707 queue is the active control handle (which windows needs), not
14710 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
14711 to support SendKeys on X.
14713 * X11Keyboard: Implement helper method to lookup a linux keycode
14714 given the virtual keycode. Added table of keycode-2-virtualkey
14715 values to support this.
14717 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14719 * ListView.cs: Add support for SelectedIndexCollection
14720 and SelectedItemCollection 2.0 methods. Implement support
14722 * ListViewItem.cs: Add support for ListViewSubItemCollection
14723 2.0 methods. Also, fix an incorrect behavior of AddRange method
14724 (it shouldn't call Clear).
14725 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14727 2006-12-19 Jackson Harper <jackson@ximian.com>
14730 * TextBoxBase.cs: New args for FormatText
14731 * TextControl.cs: Rewrote the main drawing method, this version
14732 feels a little easier to understand and debug to me. Hopefully it
14733 does to others also
14734 - Fix FormatText to OR in the new formating values. Added
14735 FormatSpecified param, basically this works in the same way as
14736 BoundsSpecified in Control.
14737 - Set the caret properties when the caret is positioned.
14738 - When wrapping text make sure that we calculate the width of the
14740 - when calculating alignments we might have wrapped down to the
14741 next line, so don't search for an individual tag, search for the
14743 - We need to invalidate the selection area when we replace the
14746 2006-12-19 Daniel Nauck <dna@mono-project.de>
14748 * Application.cs: add Restart () 2.0 support
14750 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14752 * MenuItem.cs: Invalidate menu item rectangle after change Enable
14753 property. Fixes #80268.
14755 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14757 * MenuAPI.cs: Dont trigger select event when closes top menu
14758 item. Fixes #80270.
14760 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14762 * MenuAPI.cs: When you click on menuitem only trigger onselect
14763 event for top menu itens. Fixes #80271.
14765 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14767 * MdiWindowManager.cs: Make IconicBounds depend on
14768 the bottom of MdiClient, not the top (fixes #80267)
14770 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14772 * MdiClient.cs: Added missing 2.0 attribute
14774 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14776 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14777 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14779 2006-12-18 Everaldo Canuto <everaldo@simios.org>
14781 * MenuAPI.cs: Fix click when menuitem is not popup,
14782 this regression was caused by last commit (#80272).
14784 2006-12-17 Everaldo Canuto <everaldo@simios.org>
14786 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14787 fire click event or close menu. Fixes #80272.
14789 2006-12-17 Daniel Nauck <dna@mono-project.de>
14791 * ListViewHitTestInfo.cs: add
14793 2006-12-17 Daniel Nauck <dna@mono-project.de>
14795 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14796 * FlatButtonAppearance.cs: add
14797 * DockingAttribute.cs: add
14799 2006-12-17 Chris Toshok <toshok@ximian.com>
14801 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14802 and rebind our columns when it does - this way, if you make
14803 changes to the DataTable (or set the Table attribute on a DataView
14804 after setting it as the DataGrid's DataSource, the changes are
14805 made visible.) Fixes bug #80107.
14807 2006-12-17 Daniel Nauck <dna@mono-project.de>
14809 * ListViewGroup.cs: add internal Location property for layouting.
14810 * Theme.cs: add abstract ListViewGroupHeight function.
14811 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14813 2006-12-16 Andreia Gaita <avidigal@novell.com>
14815 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14816 Added reset of selected index to 0 when adding first tab page.
14819 * NumericUpDown.cs: Fix NET_2_0 check
14821 2006-12-16 Daniel Nauck <dna@mono-project.de>
14823 * ListViewGroup.cs: fixed DefaultValueAttribute value
14825 2006-12-16 Daniel Nauck <dna@mono-project.de>
14827 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14829 2006-12-15 Miguel de Icaza <miguel@novell.com>
14831 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14832 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14833 ScrollableControl.cs: Add a handful of methods that are
14836 2006-12-15 Chris Toshok <toshok@ximian.com>
14838 * XplatUIWin32.cs: initial implementation of the Reversible
14839 drawing functions. there are some problems. DrawReversibleFrame
14840 doesn't seem to work at all for Dashed FrameStyle, and in the
14841 Thick case there are drawing errors at the corners (we probably
14842 need to bind Rectangle instead of doing moveto/lineto's.)
14844 2006-12-16 Andreia Gaita <avidigal@novell.com>
14846 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
14847 to send blocks of key messages. Send accumulates keys to send with Flush,
14848 while SendWait sends all keys immediately.
14850 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14851 XplatUIX11.cs, XplatUIX11-new.cs:
14852 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14853 to Win32 SendInput.
14854 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14856 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
14857 testing for ms.net on this class is very tricky, as the tests run too fast
14858 to allow the hook to release, essentially freezing the keyboard and the
14859 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
14862 2006-12-16 Daniel Nauck <dna@mono-project.de>
14864 * Padding.cs: fixed serialization compability to MS ("_var" field names),
14865 added missing attributes.
14867 2006-12-15 Daniel Nauck <dna@mono-project.de>
14869 * ListViewGroup.cs: Added missing attributes.
14870 * ListViewGroupCollection.cs: Added missing attributes.
14872 2006-12-15 Daniel Nauck <dna@mono-project.de>
14874 * ListViewItem.cs: fixed ListViewSubItem text property.
14876 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14878 * Control.cs: Added missing 2.0 attributes
14880 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14882 * MdiClient.cs: Added missing 2.0 attribute.
14883 * MonthCalendar.cs: Added some missing 2.0 attributes
14886 2006-12-15 Daniel Nauck <dna@mono-project.de>
14888 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14890 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
14892 * MainMenu.cs: Add the new 2.0 constructor to help out people
14893 using the MainMenu in VS2005.
14895 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14897 * MdiChildContext.cs: Removed it, no longer used.
14898 * MdiClient.cs: Added missing 2.0 attributes.
14900 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14902 * InternalWindowManager.cs: Fix a NullRef with previous
14903 changes for toolwindows.
14905 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14908 - Added AfterTopMostControl to allow for certain controls
14909 to always stay on top when normal controls are brought to
14913 - (DrawInversibleRectangle): Get window rectangle from Win32
14914 in stead of from control, since Win32 doesn't calculate
14915 screen coords correctly from control's Location if it
14916 have docked siblings.
14918 * MdiWindowManager.cs:
14919 - Correct the control menu popup location when clicked on
14920 the maximized form icon. (fixes #80223.1)
14921 - Don't show moving rectangle if mouse hasn't moved from
14922 the original clicked point.
14923 - Removed FormGotFocus handler (not used).
14924 - Calculate the control buttons location from the main
14925 window's size and not client size (fixes #79770).
14926 - Form is now closed when the form icon is double-clicked
14928 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
14930 * InternalWindowManager.cs:
14931 - Moved some MDI-only methods to MdiWindowManager.
14932 - Removed unused properties and methods.
14933 - Unified method naming for methods handling wm messages.
14934 - Moved all message handling to seperate methods for
14937 * ThemeWin32Classic.cs:
14938 - DrawManagedWindowDecorations now draws the title bar
14939 with a gradient brush.
14940 - Add a CPDrawButtonInternal that allows us to specify
14941 light, normal and dark colors for the buttons (control
14942 buttons for MDI children were drawn with the same light
14943 color as the background, therefore loosing the 3D effect).
14946 - Add a CapturedControl property that is used to
14947 determine the control to resize (defaults to parent).
14948 Needed for MdiClient, since its SizeGrip's parent is
14949 MdiClient, but the control to resize is the main form.
14952 - Set SizeGrip's CapturedControl to the main form in order
14953 to resize the main form and not the MdiClient.
14954 - Override AfterTopMostControl to leave the scrollbars
14957 2006-12-15 Daniel Nauck <dna@mono-project.de>
14959 * ListView.cs: fixed ListViewItemCollection AddRange and
14960 implemented ListViewItemCollection AddRange 2.0 support.
14962 2006-12-15 Daniel Nauck <dna@mono-project.de>
14964 * ListViewGroup.cs: Add.
14965 * ListViewGroupCollection.cs: Add
14966 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
14967 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
14968 stub for ImageKey 2.0 support.
14970 2006-12-14 Mike Kestner <mkestner@novell.com>
14972 * ListView.cs: add text padding to the autocalculation for columns
14973 of width -2. Fixes #80207.
14975 2006-12-14 Mike Kestner <mkestner@novell.com>
14977 * ListView.cs: add some index guarding for partial row navigation
14978 logic. Fixes #80250.
14980 2006-12-14 Mike Kestner <mkestner@novell.com>
14982 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14983 are added or inserted to the collection. Fixes #81099.
14985 2006-12-13 Everaldo Canuto <everaldo@simios.org>
14987 * MenuAPI.cs: Closes menu when right click out side of popup
14988 it fix problem in ContextMenu and MainMenu. Fixes #80252.
14990 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14992 * ListViewItem.cs: Fix dumb error.
14994 * ListView.cs: Add Find and ContainsKey methods in
14995 ListViewItemCollection, and also return true for IsReadOnly
14996 and IsFixedSize (changes for 2.0).
14998 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
15000 * Control.cs: Allow Region to be set to null.
15002 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
15004 * MdiWindowManager.cs: Remove unused (commented out) code.
15005 * Form.cs: When the MdiChild is maximized, the form needs
15006 WM_NCMOUSELEAVE, so request it.
15007 * InternalWindowManager.cs:
15008 - Added tooltips to control buttons.
15009 - Removed duplicated control button handling code.
15010 - Removed unused (commented out) code.
15012 2006-12-12 Everaldo Canuto <everaldo@simios.org>
15014 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
15015 was used because we must set cursor without trigger ChangeCursor event
15016 and without change Cursor control property. Fixes #79963.
15018 2006-12-12 Andreia Gaita <avidigal@novell.com>
15020 * Control.cs: Check if Region setter value is null, and ignore
15022 2006-12-12 Jackson Harper <jackson@ximian.com>
15024 * TextControl.cs: We were almost always drawing one more line then
15025 needed, since the GetLineByPixel will return the last line found
15026 at that pixel. In most cases though, we were invalidating up to
15027 the junction between two lines.
15028 - Improve debug code.
15030 2006-12-12 Chris Toshok <toshok@ximian.com>
15032 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
15033 and FillReversibleRectangle.
15035 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
15036 and FillReversibleRectangle.
15038 * XplatUIWin32.cs: add stubs which do nothing for
15039 DrawReversibleFrame, DrawReversibleLine, and
15040 FillReversibleRectangle.
15042 * XplatUIOSX.cs: add stubs which raise NIE for
15043 DrawReversibleFrame, DrawReversibleLine, and
15044 FillReversibleRectangle.
15046 * XplatUIX11.cs: add working implementation for
15047 DrawReversibleFrame, DrawReversibleLine, and
15048 FillReversibleRectangle.
15050 * ControlPaint.cs: implement DrawReversibleFrame,
15051 DrawReversibleLine, and FillReversibleRectangle, by calling into
15052 the appropriate XplatUI method.
15054 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15056 * Form.cs: Make MdiClient have the focus even if it's
15057 not selectable, since it should receive WM_KEY* and WM_MOUSE
15058 messages. Fixes #79907.
15060 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15062 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15063 queried after the window is created.
15065 * XplatUIX11.cs: Added SendParentNotify to implement
15066 WM_PARENTNOTIFY logic. Fixes #79965.
15068 * Control.cs: Added MakeParam.
15070 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15072 * MdiClient.cs: Resume Layout before setting window
15073 states (fixes #80201).
15075 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
15077 * MenuAPI.cs: Deselect a menu item after performing
15078 the click (fixes #80197).
15080 2006-12-11 Jackson Harper <jackson@ximian.com>
15082 * TextBoxBase.cs: We need to cap this value, since Maximum -
15083 ViewPortHeight can be less than zero.
15084 - Only do selection with the left mouse button.
15085 * TextBox.cs: Don't tell the world that we have a context menu.
15086 * Control.cs: New method so that we can control whether or not the
15087 context menu is visible outside MWF.
15089 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15091 * ToolBarButton.cs: Fix text positon.
15093 2006-12-11 Miguel de Icaza <miguel@novell.com>
15095 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15097 * Control.cs (DoubleBuffered): Add implementation.
15099 * Application.cs (OpenForms): Add.
15101 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15103 * Form.cs: Use opacity instead of Opactiy to determine if we need
15104 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
15106 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
15108 * Control.cs: Fix NRE if Control.Site was set to null.
15110 2006-12-11 Chris Toshok <toshok@ximian.com>
15112 * Control.cs: ControlCollection.Remove should return if the arg is
15113 null, and ControlCollection.SetChildIndex should raise a ANE.
15115 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
15117 * Control.cs: Verify value set for Dock property. Code formatting
15120 2006-12-11 Jackson Harper <jackson@ximian.com>
15122 * TextControl.cs: Draw the caret and the selection when a flag is
15124 * TextBoxBase.cs: We want to draw the caret and the selection for
15125 TextBox but not for TextBoxBase.
15126 - If the window is resized and scrolling is no longer needed (the
15127 whole doc is visible) set the scroll position to zero.
15128 - The default SelectWord (the one TextBox uses) should move the
15129 caret to the end of the word.
15130 - SelectAll moves the caret to the end of the selection.
15131 * TextBox.cs: We don't selectall on focus, we just do it when the
15132 control is created.
15134 2006-12-11 Mike Kestner <mkestner@novell.com>
15136 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15138 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15140 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
15142 * ListViewItem.cs: Add Name 2.0 property.
15144 2006-12-11 Andreia Gaita <avidigal@novell.com>
15146 * TabControl.cs: Set visibility on selected or default tab
15147 when tabcontrol handle is created, so that it's contents
15148 actually show up (duh). Fixes #80193
15149 Don't redraw the control if there is no handle created, as
15150 the selected index might be completely invalid. Added some tests
15153 2006-12-11 Everaldo Canuto <everaldo@simios.org>
15155 * ToolBar.cs: Uses maximun width and height of all buttons as
15156 button rectangle when ButtonSize specified, it looks strange but
15157 is what happens in Win32. Fixes #80189.
15159 2006-12-11 Jackson Harper <jackson@ximian.com>
15161 * TextControl.cs: Need to track undo levels ourself, since
15162 compound actions will mess them up.
15164 2006-12-10 Andreia Gaita <avidigal@novell.com>
15166 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15167 SelectedIndex value is changed (even if it's not valid).
15168 Reset SelectedIndex to 0 when the handle is created and if
15169 the current index is invalid.
15170 Fixes SelectdeIndex unit tests and #80128
15172 2006-12-08 Chris Toshok <toshok@ximian.com>
15174 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15175 calls EndEdit, it needs to be called before we set current_cell to
15176 its new value. Otherwise, we end up committing the value in the
15177 textbox to the new cell as well. Fixes bug #80160.
15179 2006-12-08 Chris Toshok <toshok@ximian.com>
15181 * Form.cs (set_CancelButton): if the button's DialogResult is
15182 None, set it to Cancel. Fixes bug 80180.
15184 2006-12-08 Jackson Harper <jackson@ximian.com>
15186 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15187 to watch ourselves when setting the canvas size and setting the
15190 2006-12-08 Chris Toshok <toshok@ximian.com>
15192 * DataGrid.cs: comment out the two MakeTransparent calls for the
15193 time being so people using trunk (and not 1.2.2) on windows can
15194 actually use the datagrid. This deals with bug #80151.
15196 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15198 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15199 Graphics.DrawImage (image, int, int, int, int) overload instead
15200 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
15201 the dpi difference and was blurring images it drew.
15204 2006-12-08 Chris Toshok <toshok@ximian.com>
15206 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15207 rowcnt is 0 (such as with an empty datasource), and make sure we
15208 initialize not_usedarea.Y to cells.Y, so we don't draw over the
15209 other areas (caption, parent row, etc, etc). Fixes bug #80095.
15211 2006-12-08 Chris Toshok <toshok@ximian.com>
15213 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15216 2006-12-08 Chris Toshok <toshok@ximian.com>
15218 [ Fixes bug #80167 ]
15220 * ThemeWin32Classic.cs: don't draw the image if the button's flat
15221 style is FlatStyle.System.
15223 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15224 ButtonBase.flat_style private, and switch uses of it to the public
15227 2006-12-08 Chris Toshok <toshok@ximian.com>
15229 [ Fixes bug #80121 ]
15231 * ThemeWin32Classic.cs: center the caption text in the datagrid
15234 * DataGrid.cs: lessen the amount we add to the caption height from
15235 6 to 2. 6 was making it huge.
15237 2006-12-08 Andreia Gaita <avidigal@novell.com>
15239 * UpDownBase: Handle MouseWheel call directly instead of capturing
15240 the inner textbox's OnMouseWheel. Fixes #80166
15242 2006-12-08 Jackson Harper <jackson@ximian.com>
15244 * TextControl.cs: We need to invalidate the textbox when we empty
15245 it (how had this not been discovered before?)
15247 2006-12-08 Jackson Harper <jackson@ximian.com>
15249 * TextBoxBase.cs: Reworked the mouse down code so I could get it
15250 to behave like MS, we now ignore the eventargs.Click and just
15251 track state ourself, which we were already doing anyways.
15252 - Constrain the double click handler to the double click size.
15254 2006-12-08 Chris Toshok <toshok@ximian.com>
15256 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15257 direction if that scrollbar isn't shown. fixes bug #80158.
15259 2006-12-08 Andreia Gaita <avidigal@novell.com>
15261 * NumericUpDown.cs: Update value on getter. Fixes #79950
15263 2006-12-08 Chris Toshok <toshok@ximian.com>
15265 * MenuItem.cs: add back in the event cloning code. I didn't know
15266 how to do it in the face of the EventHandlerList work i'd done
15267 last week. Fixes bug #80183.
15269 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
15271 * Control.cs: Add an invalidate to the BackgroundImage setter.
15274 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15276 * ToolStrip*: Add some small properties reported by MoMA, fix event
15277 firing and default properties based off of unit tests, and add some
15278 attributes based off of the class status page.
15280 2006-12-07 Jackson Harper <jackson@ximian.com>
15282 * TextBoxBase.cs: Take HideSelection into account when determining
15283 whether or not to show the selection.
15284 * RichTextBox.cs: After inserting the RTF into the document move
15285 the cursor to the beginning of the document.
15287 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
15289 * Control.cs: Remove static ArrayList "controls" which maintained
15290 a reference to every control created.
15291 * Application.cs: Create a static FormCollection to maintain a reference
15292 to every form created. Use it in places that formerly enumerated through
15293 the controls one looking for forms.
15294 * Form.cs: Add and remove self from above FormCollection.
15296 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
15298 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15299 not libgdk (though it makes me wonder why I didn't have any
15302 2006-12-07 Chris Toshok <toshok@ximian.com>
15304 [ you had to know this was coming after that last commit...]
15306 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15307 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15308 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15311 2006-12-07 Chris Toshok <toshok@ximian.com>
15313 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15314 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15315 all the behavior we need for double buffering.
15317 * XplatUIDriver.cs: implement the 3 double buffer methods using a
15318 client side Bitmap, just like the old Control-based double buffer
15319 code did. The methods are virtual, so each XplatUI driver
15320 subclass can replace the implementation to use a faster, platform
15323 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15324 double buffer code, and clean things up a bit in the process.
15326 2006-12-06 Chris Toshok <toshok@ximian.com>
15328 * Control.cs: reindent WndProc.
15330 2006-12-06 Chris Toshok <toshok@ximian.com>
15332 [ I wanna be like BenM when I grow up ]
15334 * Hwnd.cs: create a single static Graphics object on the static
15335 Bitmap we create. use this for our text measurements.
15337 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15338 This was causing us to allocate a backbuffer for every control,
15339 even when it wasn't flagged as double buffered. Instead use the
15340 single graphics instance. This might have implications for
15341 multithreaded applications. If we run into problems we can switch
15342 to creating 1 Graphics per control, on the static Hwnd bitmap.
15344 this change nets us a 7M savings in private dirty mappings when
15345 running FormsTest.exe.
15347 2006-12-06 Chris Toshok <toshok@ximian.com>
15349 * ListView.cs: the BackgroundImage override is just to set
15350 attributes. chain up to base.BackgroundImage.
15352 * RichTextBox.cs: same.
15354 * ToolBar.cs: same, but we need to also redraw the toolbar when it
15355 changes, so instead a handler for BackgroundImageChanged.
15357 * Control.cs: make background_image private.
15359 2006-12-06 Chris Toshok <toshok@ximian.com>
15361 * ScrollBar.cs: change the assignment of cursor to Cursor. not
15362 sure we even need this assignment, but roll with it for now.
15364 * Control.cs: make the cursor field private.
15366 2006-12-06 Chris Toshok <toshok@ximian.com>
15368 * Form.cs: we don't need to explicitly set ImeMode to
15369 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15370 behavior in the face of ImeMode.Inherit.
15372 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15373 change the ctor's assignment to use ImeMode instead of ime_mode.
15375 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15376 ImeModeInherit. Only check for the parent's imemode (and return
15377 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15378 This fixes the button unit test, which sets both ImeMode and
15379 DefaultImeMode to ImeMode.Disable.
15381 also make the ime_mode field private.
15383 2006-12-06 Chris Toshok <toshok@ximian.com>
15385 * Control.cs: make control_style private.
15387 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
15388 setting the styles to true, then setting them to false instead of
15389 reverting to their previous values.
15391 also, call SetStyle on the scrollbars instead of using
15392 control_style directly.
15394 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
15396 * FormCollection.cs: Implement. [2.0]
15398 2006-12-06 Chris Toshok <toshok@ximian.com>
15400 * Control.cs: make tab_stop private.
15402 * Label.cs: set TabStop, not tab_stop. reformat some event
15403 add/remove methods to make them more compact.
15405 2006-12-06 Chris Toshok <toshok@ximian.com>
15407 * RadioButton.cs: fix TabStop handling.
15409 2006-12-06 Chris Toshok <toshok@ximian.com>
15411 * TextBox.cs: remove the explicit assignments to has_focus.
15414 * ButtonBase.cs: remove the assignment to has_focus. Control will
15417 2006-12-06 Chris Toshok <toshok@ximian.com>
15419 * ButtonBase.cs: remove all uses of is_enabled from this code.
15420 it's always true when any of the code containing the checks is
15423 2006-12-06 Chris Toshok <toshok@ximian.com>
15425 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15426 with different semantics (some are present in both 1.1 and 2.0
15427 profiles) so that we match MS's behavior in our unit tests.
15429 2006-12-06 Jackson Harper <jackson@ximian.com>
15431 * TextControl.cs: Make this operation undoable.
15432 * TextBoxBase.cs: Factor the border width into the preferred
15434 - implement Modified as per the spec.
15436 2006-12-06 Chris Toshok <toshok@ximian.com>
15438 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15440 2006-12-06 Chris Toshok <toshok@ximian.com>
15442 * Control.cs: make right_to_left and context_menu fields private.
15444 2006-12-06 Chris Toshok <toshok@ximian.com>
15446 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15447 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15448 Control.child_controls private. switch all uses over to
15451 2006-12-06 Chris Toshok <toshok@ximian.com>
15453 * System.Windows.Forms/GroupBox.cs,
15454 System.Windows.Forms/AccessibleObject.cs,
15455 System.Windows.Forms/ErrorProvider.cs,
15456 System.Windows.Forms/Control.cs,
15457 System.Windows.Forms/UpDownBase.cs,
15458 System.Windows.Forms/ScrollBar.cs,
15459 System.Windows.Forms/DateTimePicker.cs,
15460 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15461 System.Windows.Forms/ToolTip.cs,
15462 System.Windows.Forms/RadioButton.cs,
15463 System.Windows.Forms/LinkLabel.cs,
15464 System.Windows.Forms/Splitter.cs,
15465 System.Windows.Forms/TextBoxBase.cs,
15466 System.Windows.Forms/ToolStripTextBox.cs,
15467 System.Windows.Forms/ContainerControl.cs,
15468 System.Windows.Forms/ThemeWin32Classic.cs,
15469 System.Windows.Forms/SizeGrip.cs,
15470 System.Windows.Forms/ToolStripDropDown.cs,
15471 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15472 private. switch all uses over to Control.Parent.
15474 2006-12-06 Chris Toshok <toshok@ximian.com>
15476 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15477 Control does this before calling emitting these events.
15479 * TabControl.cs: same.
15481 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15482 Control.client_rect.
15484 * ButtonBase.cs: use the ClientSize property instead of the
15487 * ScrollableControl.cs: same.
15489 * Control.cs: another pass at making properties private. also,
15490 move the initialization of tab_stop to the ctor.
15492 2006-12-05 Andreia Gaita <avidigal@novell.com>
15494 * TabControl.cs: Let the selected index be set freely if the
15495 control handle is not yet created.
15497 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15499 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
15500 internal until I can rewrite DefaultLayout.
15501 * ToolStrip.cs: Fix build error and some general cleaning.
15502 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15503 Fix build errors caused by making some of Control's fields private.
15505 2006-12-05 Jackson Harper <jackson@ximian.com>
15507 * TextControl.cs: Redo Insert a little so that it use IndexOf
15508 instead of Split, this prevents it from messing up on things like
15509 \n\n\n. Also more effecient since the split array doesn't need to
15511 * TextBoxBase.cs: AppendText doesnt handle multiline and non
15512 multiline text differently, this is the first of many fixes that
15513 will make multiline/non-multiline the same thing as far as the
15514 TextBoxBase is concerned.
15515 - Don't split the text and insert lines, this can lose some line
15516 endings (like is the last line a soft or hard break). Instead use
15518 - Fix an off by one when combining all the lines in the Text
15520 - Remove separate multiline handling from the Text getter/setter.
15522 2006-12-05 Chris Toshok <toshok@ximian.com>
15524 * ButtonBase.cs: a few changes:
15526 - don't reinitialize internal Control fields in the ctor when they
15527 have the same values as Control sets them.
15529 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
15530 this before calling those methods.
15532 - we don't need to call Refresh for anything. use Invalidate
15535 - OnEnabledChanged doesn't need to redraw at all - Control.cs
15536 calls Refresh in its OnEnabledChanged.
15538 - several of the events we were registered for in the ctor to
15539 redraw ourselves already include calls to Invalidate in the
15540 property setters that raise the events. remove the extra
15543 - reformat a switch statement that was 83274658 columns wide.
15545 2006-12-05 Mike Kestner <mkestner@novell.com>
15547 * ComboBox.cs: fix a unit test regression from a TextBox
15548 SelectionLength return of -1 when there's no selection.
15550 2006-12-05 Chris Toshok <toshok@ximian.com>
15552 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15553 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15554 cleaning up some of the internal Control fields being used by
15557 2006-12-05 Mike Kestner <mkestner@novell.com>
15559 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
15560 listbox after AddImplicit calls since it defaults to hidden. Add a
15561 hack to preserve requested heights across DropDownStyle changes.
15563 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
15565 * PropertyGrid.cs: Hide FindFirstItem method from public API.
15567 2006-12-05 Chris Toshok <toshok@ximian.com>
15569 * DataGridView.cs: fix compiler warnings.
15571 * PrintControllerWithStatusDialog.cs: same.
15573 * ToolBar.cs: same.
15575 * FolderBrowserDialog.cs: same.
15577 * Splitter.cs: same.
15579 * DataGridViewComboBoxCell.cs: same.
15581 * XplatUIWin32.cs: same.
15583 * PictureBox.cs: same.
15585 * Win32DnD.cs: same.
15587 * PageSetupDialog.cs: same.
15589 * FileDialog.cs: same.
15591 * PrintDialog.cs: same.
15593 * DataGridTextBoxColumn.cs: same.
15595 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15597 2006-12-05 Chris Toshok <toshok@ximian.com>
15599 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15600 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15601 System.ComponentModel.EventHandlerList work.
15603 2006-12-05 Jonathan Chambers <joncham@gmail.com>
15605 * DrawTreeNodeEventArgs.cs: Added.
15607 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15609 * InternalWindowManager.cs: Remove an unused field.
15611 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15613 * InternalWindowManager.cs:
15614 - Save the point where the title bar is clicked.
15616 * MdiWindowManager.cs:
15617 - Only allow moving of the window as long as the
15618 clicked point on the title bar does not get out of
15619 MdiClient's rectangle. Fixes #79982.
15622 - Added Horizontal/VerticalScrollbarVisible.
15623 - Simplified the scrollbar sizing algorithm.
15624 - Cache the difference in scrolled value in
15625 H/VBarValueChanged and move the calculation out
15628 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
15630 * Control.cs: Make the Console.WriteLine in WndProc
15633 2006-12-05 Chris Toshok <toshok@ximian.com>
15635 * ToolStripManager.cs, ToolStripButton.cs,
15636 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15637 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15638 ToolStripSplitButton.cs, ToolStripSeparator.cs,
15639 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15640 ToolStripProgressBar.cs, ToolStripContainer.cs,
15641 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15642 to using System.ComponentModel.EventHandlerList.
15644 2006-12-04 Chris Toshok <toshok@ximian.com>
15646 * LinkLabel.cs: fix up compiler warnings.
15648 * TableLayoutSettings.cs: same.
15650 * TreeView.cs: same.
15652 * ToolBar.cs: same.
15654 * TabControl.cs: same.
15656 * RichTextBox.cs: same.
15658 * ListViewItem.cs: same.
15660 * PropertyGrid.cs: same.
15662 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15666 * TextRenderer.cs: fix up compiler warnings.
15670 * Form.cs: corcompare fixes.
15672 * PictureBox.cs: fix up compiler warnings.
15674 * ImageListStreamer.cs: same.
15676 * TrackBar.cs: corcompare fix.
15678 * Control.cs: fix up compiler warnings.
15680 * SplitterPanel.cs: same.
15682 * NumericTextBox.cs: same.
15684 * ImageList.cs: same.
15686 * StatusStrip.cs: same.
15688 * ProgressBar.cs: corcompare fix.
15690 * ToolStripButton.cs: fix up compiler warnings.
15692 * ToolStripStatusLabel.cs: same.
15694 * ToolStripSplitButton.cs: same.
15696 * ToolStripSeparator.cs: same.
15698 * ToolStripProgressBar.cs: same.
15700 * ToolStripDropDownMenu.cs: same
15702 * ToolStripDropDown.cs: same.
15704 * ToolStripDropDownButton.cs: same.
15706 * ToolStrip.cs: same.
15708 * ToolStripControlHost.cs: same.
15710 * ToolStripContentPanel.cs: same.
15712 * ToolStripDropDown.cs: same.
15714 * ToolStripContainer.cs: same.
15716 * ToolStripPanel.cs: same, and add "new" where we need it to work
15717 with the new ArrangedElementCollection.
15719 * ToolStripItemCollection.cs: add "new" where we need it to work
15720 with the new ArrangedElementCollection.
15722 2006-12-04 Andreia Gaita <avidigal@novell.com>
15724 * TabControl.cs: Fix default tab selection to after TabControl
15725 gets focus and not before. Fixes #80128
15727 2006-12-04 Chris Toshok <toshok@ximian.com>
15729 * DataGridTableStyle.cs: remove the gross calling of
15730 datagrid.Refresh from here. It's a broken idea and it doesn't
15733 * DataGrid.cs: instead, just register/unregister from the
15734 DataGridTableStyle events in CurrentTableStyle. we play it
15735 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15736 even though some would most likely not require it. Fixes bug
15737 #80115 (and one portion of #80117 as a side effect).
15739 2006-12-04 Chris Toshok <toshok@ximian.com>
15741 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15742 so the textbox (if any) goes away. Fixes bug #80117.
15744 2006-12-04 Chris Toshok <toshok@ximian.com>
15746 * DataGridColumnStyle.cs: set the column's readonly property
15747 initially based on the property descriptor's IsReadOnly. Fixes
15750 2006-12-04 Chris Toshok <toshok@ximian.com>
15752 * ComboBox.cs: wrap the dropdown style changing work in
15753 SuspendLayout/ResumeLayout. Fixes bug #79968.
15755 2006-12-04 Jackson Harper <jackson@ximian.com>
15757 * TextBoxBase.cs: Fix off by one, since these are one-based.
15758 * TextBox.cs: Select all the text when we get focus. The TextBox
15759 does this but the RTB does not.
15761 2006-12-04 Chris Toshok <toshok@ximian.com>
15763 * DataGridTextBoxColumn.cs: remove some spew.
15765 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15766 but some part of me is saying "it shouldn't be here.." At any
15767 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
15770 2006-12-04 Chris Toshok <toshok@ximian.com>
15772 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15773 to reassign the propertydescriptor.
15775 2006-12-04 Jackson Harper <jackson@ximian.com>
15778 * TextControl.cs: Remove some unused variables. Maybe this will
15779 patch things up between mike and I.
15780 - don't split lines less then one char wide, if the viewport is
15781 that small text won't be visible anyways.
15783 2006-12-04 Jackson Harper <jackson@ximian.com>
15785 * TextBoxBase.cs: Default selection length is -1, need to do some
15786 more testing on windows to see when this is used for the property.
15787 - Redid the Lines [] property to that we properly remove soft line
15789 - added support for preserving carriage returns
15790 - CanUndo is not a variable like 'is undo enabled' it just returns
15791 true if there is undo operations available.
15792 - AppendText doesn't need to grab the last tag itself anymore,
15793 this happens automatically when we move the cursor.
15794 * TextControl.cs: Add CompoundActions to the undo class. This
15795 allows combining the other operations into one big option. ie a
15796 paste will combine { delete old, insert new, move cursor }
15797 - Add InsertString undo operation
15798 - New method for deleting multiline text
15799 - Add carriage returns to lines. So we can preserve carriage
15800 returns when text is 'roundtripped'
15802 2006-12-04 Chris Toshok <toshok@ximian.com>
15804 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15805 minimum 0. Fixes the scrollbar exception in bug #80136.
15807 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15810 * MdiWindowManager: Removed unused fields and methods.
15812 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15814 * StatusBar.cs: Update all panels when a AutoSize=Contents
15815 panel needs updating.
15817 * StatusBarPanel.cs: Remove twidth and only use initialize.
15820 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
15822 * Form.cs: When a form's MdiParent is set add it directly
15823 on top of the z-order in stead of relying on MdiClient's
15824 ActivateChild to do it. Fixes #80135.
15827 - Remove original_order, mdi_child_list is already doing
15829 - Create mdi_child_list on construction in
15830 stead of first use (avoids a few null checks).
15832 * MenuItem.cs: Use an already existing list of mdi children
15833 to get the correct order of children and remove the other
15836 2006-12-04 Chris Toshok <toshok@ximian.com>
15838 * PropertyGridView.cs: cached_splitter_location is only used in
15839 !DOUBLEBUFFER code.
15841 * PropertyGrid.cs: implement the ComComponentNameChanged event
15842 using Events, hoping that would fix the warning. Looks like a
15843 compiler bug instead (#80144).
15845 * PropertyManager.cs: remove unused method.
15847 2006-11-04 Everaldo Canuto <everaldo@simios.org>
15849 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
15850 include parentesis to fix expression evaluation. Fixes #79634.
15852 2006-11-02 Everaldo Canuto <everaldo@simios.org>
15855 - Changes to fix behavior in Menu control, some reported in #80097
15856 and other detected during behavior refactory like a select event
15858 - Remove unneded "if's" conditions.
15859 - Created an internal to flag when popup is active in control, we need
15860 it because in .NET you can have menu active but without popup active
15861 when you active menu using popup without visible items.
15862 - Mimic win32 behavior for Select and Popup events.
15863 - Dont open popup menu when you dont have visible subitems.
15864 - Do nothing when click on disabled menu item.
15865 - Some small changes to follow the coding style guidelines.
15866 - Unselect menu only when another control gives focus. Fixes #80097.
15867 - Remove unused code.
15869 * MenuItem.cs: internal VisibleItems method to check if menu
15870 theres visible subitems, it will be usefull to fix some
15871 behavior in Menu control.
15873 2006-11-01 Everaldo Canuto <everaldo@simios.org>
15875 * Timer.cs: Tag property for 2.0 profile.
15877 2006-12-01 Chris Toshok <toshok@ximian.com>
15879 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15881 * Win32DnD.cs: comment out some unused fields.
15883 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15884 some unused properties/methods.
15886 * XplatUIX11.cs: fix MousePosition so we override the base class's
15887 property instead of conflicting with it.
15889 * PictureBox.cs: comment out some unused fields
15891 * OSXStructs.cs: make some struct fields public.
15893 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15894 MousePosition so we override the base class's property instead of
15895 conflicting with it.
15897 * X11Dnd.cs: comment out some unused fields
15899 * X11DesktopColors.cs: fix some struct field visibility to quiet
15902 * X11Dnd.cs: remove some debug code.
15904 * ThemeClearlooks.cs: comment out unused field.
15906 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15908 * ThemeGtk.cs: comment out some unused pinvokes.
15910 * Timer.cs: remove some unused fields.
15912 * ThemeClearlooks.cs: comment out unused field.
15914 * UpDownBase.cs: comment out unused field.
15916 * DataObject.cs: comment out unused field.
15918 * DataGridBoolColumn.cs: reomve unused field.
15920 * DataGrid.cs: remove unused field.
15922 * Cursor.cs: remove old ToBitmap code.
15924 * ControlPaint.cs: remove unused method.
15926 * ScrollBar.cs: remove unused fields.
15928 * ComboBox.cs: remove unused field, and chain up to
15929 AccessibleObject ctor.
15931 * ListBox.cs: remove unused field.
15933 * ButtonBase.cs: wrap a couple fields in NET_2_0.
15935 * GridEntry.cs: remove unused fields.
15937 * Binding.cs: remove unused fields.
15939 * AxHost.cs: remove unused method.
15941 * ContainerControl.cs: remove unused field.
15943 * ScrollableControl.cs: remove unused fields.
15945 2006-12-01 Chris Toshok <toshok@ximian.com>
15947 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
15948 the Where/WhereString stuff. it's easy enough to CWL
15949 Environment.StackTrace.
15951 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
15952 unused private fields.
15954 2006-12-01 Jackson Harper <jackson@ximian.com>
15956 * TextControl.cs: Do not update the view while inserting multiline
15957 text. If we update the view we might wrap lines, before entering
15958 the new lines, which causes the new line insertion calculations to
15959 be totally fubared.
15960 - Remove an old TODO
15961 - Make debug output a little nicer
15963 2006-12-01 Chris Toshok <toshok@ximian.com>
15965 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
15967 2006-12-01 Chris Toshok <toshok@ximian.com>
15969 [ fix the majority of the CS0108 warnings we've been suppressing ]
15971 * TreeView.cs: mark BackgroundImageChanged as 'new'.
15973 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
15974 to "LayoutToolBar" to quiet mcs.
15976 * TabControl.cs: mark our ControlCollection class as 'new'.
15978 * TextBoxBase.cs: mark some events as 'new'.
15980 * Splitter.cs: TabStop is 'new'.
15982 * ControlBindingsCollection.cs: mark a few methods as new since
15983 they change the visibility from protected to public.
15985 * RadioButton.cs: DoubleClick -> base class, and remove unused
15988 * MonthCalendar.cs: ImeMode property -> base class, and mark many
15991 * NumericUpDown.cs: TextChanged -> base class.
15993 * CheckedListBox.cs: mark our ObjectCollection class as new to
15996 * FolderBrowserDialog.cs: make HelpRequest event new and have it
15997 muck with the base class.
15999 * StatusBar.cs: fix some mcs warnings about Update being the same
16000 name as a base class method.
16002 * RichTextBox.cs: mark some events as new, and make them do things
16003 to the base class impl.
16005 * UserControl.cs: mark TextChanged as new, and have it manipulate
16008 * UpDownBase.cs: mark some things new.
16010 * CheckBox.cs: mark DoubleClick "new", and add some text about
16011 what we need to look at.
16013 * Panel.cs: make the events "new", and manipulate the base
16014 version. these are just here for attributes.
16016 * AccessibleObject.cs: make owner private.
16018 * Control.cs: deal with AccessibleObject.owner being private.
16019 cache our own copy if we need it.
16021 * Button.cs: add "new" to the DoubleClickEvent.
16023 * ListBox.cs: no need to track our own has_focus here. let
16024 Control.has_focus do it for us. Also some other work to clear up
16025 warnings about not overriding base class methods of the same name.
16027 * ComboBox.cs: clear up some warnings about not override base
16028 class methods of the same name.
16030 2006-12-01 Chris Toshok <toshok@ximian.com>
16032 * Form.cs: flag a few things as "new" to quiet some of the mcs
16037 * PrintPreviewDialog.cs: same.
16039 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
16040 now DGV isn't so horrible on the class status page. also, move
16041 all events to using System.ComponentModel.EventHandlerList. my
16044 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
16046 * MdiWindowManager.cs:
16047 - Set form to active mdi child if shown,
16048 and update the active mdi child to the next
16049 remaining child in the z-order if the form is hidden.
16052 - Track if the form has been visible and if its
16053 visibility is beeing changed, so that the MdiClient
16054 can properly decide the ActiveMdiChild. The MdiClient
16055 cannot track this since the form can change visibility
16056 before MdiClient is created.
16059 - Don't activate anything of the parent form is changing
16061 - Rework ActiveMdiChild to only return visible mdi
16062 children and take into account several other corner
16065 2006-12-01 Chris Toshok <toshok@ximian.com>
16067 * IBindableComponent.cs: new 2.0 interface.
16069 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
16071 * DataGrid.cs: Font for caption area is bold by default.
16073 2006-12-01 Everaldo Canuto <everaldo@simios.org>
16075 * Menu.cs: Tag property for 2.0.
16077 2006-11-01 Everaldo Canuto <everaldo@simios.org>
16079 * ThemeWin32Classic.cs: Adjust menu separator drawing.
16081 2006-12-01 Chris Toshok <toshok@ximian.com>
16083 * TreeView.cs: doh, the Begin* events should be
16084 TreeViewCancelEventHandler.
16086 2006-12-01 Chris Toshok <toshok@ximian.com>
16088 * Form.cs: Form.ControlCollection already stores off the
16089 form_owner field. don't access the base class's internal "owner"
16092 * Control.cs: make all the fields in Control.ControlCollection
16093 private. there's no need for any internal fields here.
16095 2006-12-01 Chris Toshok <toshok@ximian.com>
16097 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16098 OnHandleCreated. Fixes bug #80109.
16100 2006-12-01 Chris Toshok <toshok@ximian.com>
16102 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16103 SplitContainer.cs, Control.cs, StatusStrip.cs,
16104 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16105 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16106 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16107 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16108 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16109 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16110 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16111 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16112 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16113 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16115 do most of the work to convert our code over to use
16116 System.ComponentModel.Component.Events for
16117 adding/removing/dispatching events.
16120 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16122 * DataGridView.cs: Fix an ArgumentNullException reported
16123 twice today in IRC.
16125 2006-11-30 Mike Kestner <mkestner@novell.com>
16127 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
16128 grabbed listbox. Fixes #80036 and #80101.
16130 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16132 * Message.cs: Changed ToString() to match MS.
16134 2006-11-30 Jackson Harper <jackson@ximian.com>
16136 * TextBoxBase.cs: You can still change the selected text on a read
16138 * TextControl.cs: Lower magic number for wrap calculations. This
16139 lets text get closer to the right (far) edge.
16141 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
16143 * Control.cs: Tweak 2.0 layout properties.
16144 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16145 * TextRenderer.cs: Add a new overload.
16146 * ToolStrip*: Huge amount of changes and new features.
16148 2006-11-30 Mike Kestner <mkestner@novell.com>
16150 * ComboBox.cs: fixes for LargeChange and Maximum to get the
16151 scroll range correct. Fixes #79994.
16153 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
16155 * MdiWindowManager.cs: Update main form's text when
16156 a form is closed. (fixes #80038)
16158 2006-11-30 Everaldo Canuto <everaldo@simios.org>
16161 - Fix an regression in ButtonSize.
16162 - Get ImeMode default value change to "Disable".
16163 - Get ShowTooltips default value change to true, default value is
16164 "false" but after make a test in .NET we get "true" result as default.
16166 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
16168 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16170 2006-11-29 Chris Toshok <toshok@ximian.com>
16172 * XplatUIWin32.cs (GetWindowTransparency): check return value of
16173 GetLayeredWindowAttributes. if it's 0, return 1.0, as
16174 SetWindowTransparency hasn't been called.
16176 2006-11-29 Chris Toshok <toshok@ximian.com>
16178 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16180 (set_AllowTransparency): reorder things a little so that the
16181 WS_EX_LAYERED style is removed properly.
16183 2006-11-29 Chris Toshok <toshok@ximian.com>
16185 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16187 * Form.cs: only call the XplatUI transparency method (get/set) if
16188 SupportsTransparency says it's supported. Otherwise fallback to
16189 doing nothing (in the set case) or returning the instance field we
16190 cache (in the get case).
16192 * XplatUIStructs.cs: add TransparencySupport flag enum.
16194 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16195 change to SupportsTransparency.
16197 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16198 TransparencySupport.None from SupportsTransparency.
16200 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16201 TransparencySupport.Set from SupportsTransparency.
16203 * XplatUIWin32.cs: implement GetWindowTransparency calling
16204 GetLayeredWindowAttributes, and implement SupportsTransparency by
16205 checking whether or not both
16206 GetWindowTransparency/SetWindowTransparency are available
16207 entrypoints. We need to do this since SetWindowTransparency is
16208 available as of win2k, but GetWindowTransparency requires winxp.
16211 * XplatUI.cs: Add GetWindowTransparency, and change
16212 SupportsTransparency to allow for either/both Get/Set.
16214 2006-11-29 Chris Toshok <toshok@ximian.com>
16216 * DataGrid.cs: keep from going into an infinite loop redrawing a
16217 datagrid that has no datasource. Fixes bug #80033.
16219 2006-11-29 Chris Toshok <toshok@ximian.com>
16221 * MenuItem.cs: fix the NRE when we assign text (and therefore call
16222 Invalidate) before the mainmenu has been assigned to a control.
16224 2006-11-29 Chris Toshok <toshok@ximian.com>
16226 * DataGrid.cs: detect when we should be double the double click
16227 row/column autosize stuff, although that codepath has yet to be
16228 written. part of the work for bug #79891.
16230 2006-11-29 Chris Toshok <toshok@ximian.com>
16232 * Binding.cs (SetControl): fix unit test.
16234 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16236 * PageSetupDialog.cs: Validate the margins and set them in
16238 * NumericTextBox.cs: New class to mimic the behavior of the
16239 textboxes used in the printing dialogs.
16241 2006-11-29 Andreia Gaita <avidigal@novell.com>
16243 * Form.cs: Revert previous change (remove call UpdateBounds
16244 from form constructor), because it messes with the handle creation
16245 order, and that one needs lots and lots of love.
16246 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16247 for valid printer and throw InvalidPrinterException if document
16248 is set but printer not valid), adding a MonoTODO. Once
16249 handle creation is done properly, we can put this back in.
16251 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16253 * MenuItem.cs: Create a invalidate method for menu item, to be
16254 calling from set text, it make text changes to imadiate update
16255 on screen. Fixes #80013.
16257 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16259 * ToolBar.cs: Fixes and simplify toolbar button layout, it
16260 fixes bug #80070 and some other problem on toolbar buttons
16263 2006-11-28 Everaldo Canuto <everaldo@simios.org>
16265 * ThemeWin32Classic.cs: Paint toolbar toggle button background
16266 with dotted brush. Fixes #79564
16268 2006-11-28 Andreia Gaita <avidigal@novell.com>
16270 * Form.cs: Removed call to UpdateBounds on Form
16271 constructor, it was causing a call to CreateHandle
16272 before it was supposed to.
16273 * PrintControllerWithStatusDialog: Applied patch
16274 by Chris Toshok to hide controller when there are
16275 no printers available.
16276 PrintDialog.cs: initialize printer settings to
16277 null - correct DefaultValues test #5
16278 * PrintPreviewControl.cs: Move PrintController
16279 initialization to GeneratePreview
16280 * PrintPreviewDialog.cs:
16281 - Remove Preview generation from Document_set(). It is
16283 - Throw InvalidPrinterException on CreateHandle if
16284 a Document is set but there are no printers or
16285 printer is not valid.
16286 * ThemeWin32Classic: don't paint PrintPreviewControl
16287 if there is nothing to paint
16289 2006-11-28 Miguel de Icaza <miguel@novell.com>
16291 * Form.cs: Add another popular method.
16293 * TabPage.cs: ditto.
16295 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16297 * MenuItem.cs: Fixed a warning.
16298 * InternalWindowManager: Fixed a warning.
16300 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16303 - When cloning a menu also clone MdiList and clone the
16304 window menu items properly (as the forms and menuitems
16305 are kept in an internal hashtable, these need updating
16307 - Rewrote the window menu code, menu items are added in the
16308 order the forms were added to their parent, and they are
16309 updated every time the window menu is shown (before the
16310 list was only generated once, in the current order of the
16311 forms, and would never be updated). A checkmark is shown
16312 next to the item corresponding to the active mdi child.
16314 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16316 * XplatUIStructs.cs:
16317 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16320 - Added TME_NONCLIENT to TMEFlags.
16321 - Handles WM_NCMOUSEMOVE in GetMessage to
16322 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16324 * MdiWindowManager:
16325 - Now merges mdi child menu to parent menu when maximized.
16326 - Recalculate NC areas of both mdi child and mdi parent.
16328 on window state and size changes.Fixes #79844 (3).
16329 - Handle WM_NCCALCSIZE to properly calculate borders.
16332 - Add/remove to the mdi containers list of mdi children
16333 in the order they are added.
16334 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
16335 to the maximized mdi child.
16337 * InternalWindowManager.cs:
16338 - Only execute a click on the control buttons on the mouse up,
16339 not on the mouse down. Show the state of the button
16340 (was only showing Normal state, never Pressed state). The
16341 pressed button now follows the mouse (if you click the Close
16342 button and move the mouse over the Maximize button, the
16343 Maximize button will be shown as pressed). Since Win32 does
16344 not generate WM_NCLBUTTONUP if you release the button outside
16345 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16348 * ThemeWin32Classic.cs:
16349 - Draw a missing border around mdi child forms. Fixes #79844 (2).
16352 - Added a list of forms which contains the order the forms are
16353 added to the mdi parent.
16354 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16355 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16356 - If the active form changes set the scrollbars to the top
16357 of the Z order, otherwise the form could hide them.
16358 - Scrollbars are now sized according to ClientSize, not
16359 to Size, and they take into account the other scrollbar
16360 to determine maximum.
16362 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
16365 * XplatUIDriver.cs:
16369 - Added RequestAdditionalWM_NCMessages for windows to
16370 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16371 Currently only implemented in XplatUIWin32.
16373 2006-11-27 Chris Toshok <toshok@ximian.com>
16375 * Hwnd.cs: only add the hwnd to the windows hash in
16376 set_WholeWindow and set_ClientWindow if whole_window/client_window
16377 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
16379 2006-11-27 Mike Kestner <mkestner@novell.com>
16381 * ComboBox.cs: remove redundant OnDropDown call. It is called
16382 from the ComboListBox.ShowWindow code. Fixes #79969.
16384 2006-11-27 Chris Toshok <toshok@ximian.com>
16386 * Hwnd.cs: remove the setters for ExposePending and
16387 NCExposePending - noone uses them.
16389 2006-11-27 Jackson Harper <jackson@ximian.com>
16391 * TextControl.cs: new param for ReplaceSelection which determines
16392 whether we select the new selection, or set the cursor to the end
16393 of the new selection.
16394 * TextBoxBase.cs: Use new param for ReplaceSelection. When
16395 pasting, select the new text.
16396 * RichTextBox.cs: Use new param for ReplaceSelection.
16398 2006-11-27 Jackson Harper <jackson@ximian.com>
16400 * TextBoxBase.cs: Set the selection to the caret after the caret
16401 is moved, otherwise they get out of sync.
16403 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16405 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16408 2006-11-26 Everaldo Canuto <everaldo@simios.org>
16410 * ThemeWin32Classic.cs:
16411 - Fix toolbar drop down arrow position.
16412 - Fix drop down appearance when ToolBar.Appearance is normal,
16415 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
16417 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16418 * Control.cs: Same.
16419 * UpDownBase.cs: Same.
16420 * ButtonBase.cs: Same.
16421 * ScrollBar.cs: Same.
16422 * TrackBar.cs: Same.
16423 * PictureBox.cs: Same.
16424 * UserControl.cs: Same.
16426 * ListControl.cs: Same.
16427 * TextBoxBase.cs: Same.
16428 * ListView.cs: Same.
16429 * RichTextBox.cs: Same.
16430 * TreeView.cs: Same.
16432 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
16435 - Text label for where
16436 - Text label comment was not shown
16438 2006-11-23 Everaldo Canuto <everaldo@simios.org>
16440 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16442 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16444 * InternalWindowManager.cs:
16445 - Handle WM_PARENTNOTIFY to activate the form
16446 if any child control is clicked.
16447 - The form is only sizable if not minimized.
16449 * MdiWindowManager.cs:
16450 - Save the IconicBounds if the form is moved.
16451 - Rework SetWindowState, now the window bounds
16452 are stored only if the old window state is Normal.
16455 - In SetWindowStates store the old window state if
16456 the window is maximized and restore window state if
16457 the window looses focus.
16458 - Don't handle any scrollbar value changes if
16459 initializing the scroll bars. Fixes #79771.
16460 - Reworked ArrangeIconicWindows. Current algorithm
16461 tests bounds agains all other minimized windows, if
16462 any intersections create new bounds (going left to
16463 right, bottom to top) and then test again. When
16464 successful the bounds are saved and never computed
16465 again. Fixes #79774.
16467 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16469 * InternalWindowManager.cs: Added HandleTitleBarUp.
16471 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16473 * NumericUpDown.cs: In .NET 1.1, user entered text is still
16474 hexadecimal in ParseUserEdit.
16477 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
16479 * MdiWindowManager.cs:
16480 - Handle a click on the form's icon to show the
16481 system menu (when maximized). Fixes #79775.
16482 - Change the existing click handler for the form's
16483 icon when not maximized to show on MouseUp.
16486 * Form.cs: In OnResize only layout the mdi child's
16487 parent if it actually has a parent. Might not if
16488 the window is closing.
16491 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16493 * MdiClient.cs: Ignore active MDI client for text of parent, if
16494 child has no text set.
16496 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
16498 * ToolBar.cs: Fixed ToString to match MS.
16500 2006-11-22 Andreia Gaita <avidigal@novell.com>
16503 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
16504 update inner values on set. Fixes #79966.
16505 - Override OnLostFocus to update value on NET 2. Fixes #79950.
16506 - Fix hexadecimal parsing.
16508 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
16509 parent. Fixes #79957
16511 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
16513 * Control.cs: After calling SetWindowsPos in SetBoundsCore
16514 the actual size has to be queried, since if height /
16515 width is negative Win32 changes it to 0.
16516 Fixes #79999 on Windows.
16518 * XplatUIX11.cs: Set height / width to 0 if negative
16519 in SetWindowPos. Fixes #79999 on Linux.
16521 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16523 * ThemeWin32Classic.cs: Fix text redenring when button is
16526 2006-11-22 Everaldo Canuto <everaldo@simios.org>
16528 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16529 and later navigate by mouse. Fixes #79528.
16531 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16533 * ToolBar.cs: Set default value for TabStop to false in
16534 constructor, it fixes remaining behavior of bug #79863.
16536 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
16538 * MdiWindowManager.cs:
16539 * InternalWindowManager.cs:
16540 - Moved a few methods specific to Mdi from
16541 InternalWindowManager to MdiWindowManager.
16544 2006-11-21 Chris Toshok <toshok@ximian.com>
16546 * XplatUIOSX.cs: stub out InvalidateNC.
16548 * XplatUIWin32.cs: implement InvalidateNC using the call I found
16549 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16551 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16553 * XplatUIDriver.cs: add InvalidateNC abstract method.
16555 * XplatUI.cs: add InvalidateNC.
16557 2006-11-21 Everaldo Canuto <everaldo@simios.org>
16559 * ToolBar.cs: Invalidate complete button area when pressed status
16561 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16562 * ThemeWin32Classic.cs: Increase vertical and horizontal position
16563 by 1 when button is pressed.
16565 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16567 * ToolButton.cs: Invalidate middle of DropDown button when
16568 ToolBar theres DropDownArrows.
16569 * ThemeWin32Classic.cs: Change position of DropDown arrow and
16570 fix DropDown drawing operations.
16572 2006-11-20 Chris Toshok <toshok@ximian.com>
16574 * NativeWindow.cs: fix the formatting of functions ('{' on the
16575 following line), and enable the thread exception dialog.
16577 * Application.cs: remove the duplicate exception catching from
16580 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16582 * Toolbar.cs: Triggers button click event when click on icon
16583 of dropdown ToolBarButton. Fixes #79912.
16585 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16588 * ThemeWin32Classic.cs:
16589 - Added a property WindowBorderFont to enable themeing
16590 of mdi child windows' Text.
16592 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
16594 * InternalWindowManager.cs:
16597 * MdiWindowManager.cs:
16598 - If mdi child is maximized, set mdi parent's
16599 text to "Parent - [Child]". Fixes #79770.
16600 - If there is any maximized mdi child windows, only the active
16601 window (and any new windows) is maximized, the rest are normal.
16602 - On a WindowState change only save mdi child's window bounds
16603 if the old window state was normal. Fixes #79774.
16604 - The scroll bars are now calculated on hopefully all
16605 necessary events. Fixed #79771 / #79844->6 / #79906.
16606 - MdiClient.SizeScrollBars() now takes into account docked
16607 controls in the parent when calculating available space.
16608 - InternalWindowManager now always repaints the entire title
16609 area. Fixes #79844->1/4/5.
16610 - Added RequestNCRecalc on mdi child windowstate changes.
16613 2006-11-20 Mike Kestner <mkestner@novell.com>
16615 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16616 in the MouseUp handler of the listbox and move the return handling
16617 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
16619 2006-11-20 Everaldo Canuto <everaldo@simios.org>
16621 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
16623 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16625 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16626 working in 1.2.x anymore. So, updated.
16628 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
16630 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16631 NumberGroupSeparator of current culture instead of assuming en-US.
16634 2006-11-17 Mike Kestner <mkestner@novell.com>
16636 * Control.cs: Add the concept of implicit bounds setting so that
16637 dock/undock round trips preserve explicitly set size/locations.
16640 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
16642 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16643 can't handle those filters. (Fixes bug #79961)
16645 2006-11-17 Chris Toshok <toshok@ximian.com>
16647 [ fixes the exit/crashes associated with #79835. it's clearly
16648 suboptimal though, we need to figure out a better way to solve
16651 * PrintPreviewControl.cs: deal with the new invalid printer
16654 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16655 and return false (so CommonDialog.ShowDialog doesn't actually show
16658 * PrintDialog.cs: enable/disable the Ok button depending on
16659 whether or not the printer is valid.
16661 * CommonDialog.cs (ShowDialog): only actually show the form if
16662 RunDialog returns true.
16664 2006-11-17 Jackson Harper <jackson@ximian.com>
16666 * TextControl.cs: When soft splitting a line, mark it as a soft
16667 split line. Also carry over the current line break to the next
16670 2006-11-17 Chris Toshok <toshok@ximian.com>
16672 * XplatUIX11.cs: when scrolling a window with an invalid area, we
16673 only want to shift the part of the invalid area that overlaps the
16674 area we're scrolling. we also don't want to clear the invalid
16675 area unless the invalid area was entirely contained within the
16678 2006-11-16 Chris Toshok <toshok@ximian.com>
16680 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16681 also make sure to free the memory returned by XGetWindowProperty
16684 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16686 2006-11-16 Chris Toshok <toshok@ximian.com>
16688 * XplatUI.cs: add a new super secret way to get at the totally
16689 unsupported X11 backend.
16691 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
16693 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16695 2006-11-16 Jackson Harper <jackson@ximian.com>
16697 * TreeView.cs: Allow more explicit setting of top node position
16698 for scrollbars. Slower algo, but more accurate.
16699 - CollapseAll should maintain the current top node.
16700 * TextBoxBase.cs: When positioning the caret, use the line, pos
16701 method, since the x, y method does not grab the correct tag, and
16702 the caret height never gets set correctly. (Maybe I should just do
16703 away with the caret having its own height, and always use the
16704 carets current tag for height).
16706 2006-11-16 Jonathan Pobst <monkey@jpobst.com
16708 [Fixes 79778, 79923]
16710 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16711 Parent to the FosterParent instead.
16713 2006-11-16 Jackson Harper <jackson@ximian.com>
16715 * TreeView.cs: Need to recalc the topnode when we expand or
16716 collapse. The scrolling methods can't handle this on their own,
16717 since they use differences between the last scroll position, and
16718 those difference get completely messed up since we are expanding
16719 nodes. This problem should probably be fixed in the scrolling
16720 methods, so they can figure out exactly where they are, but this
16721 will slow things down a little.
16722 * ThemeWin32Classic.cs: Special case for groupboxes with empty
16723 strings, makes nunit-gui look a lot nicer.
16725 2006-11-16 Chris Toshok <toshok@ximian.com>
16727 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16728 the broken multithreaded event handling we have in here. File
16729 this entry under "Why we should move to the new X11 backend".
16731 Any thread can make it into UpdateMessageQueue, which gets events
16732 from the X socket - some of which could belong to hwnds being
16733 managed by a different thread. We can also have multiple threads
16734 in UpdateMessageQueue at the same time, with each one reading from
16735 the X socket. This leads to many problems, with the following
16738 We can't use hwnd.Queue.Enqueue anywhere in here and must use
16741 The MotionNotify compression we do can't work across threads
16742 (without locking the entire queue, perhaps) since we call
16743 hwnd.Queue.Peek, so we just punt and don't compress motion events
16744 unless the owning thread is the one which got the X event.
16746 ConfigureNotify is another fun one, since it modifies the hwnd's
16747 bounds and then enqueues the event. We add a lock to Hwnd which
16748 is held when setting configure_pending to true (and enqueuing the
16751 There is a race wrt the wake socket. we need to make sure that
16752 only 1 thread is waiting on that socket, or else a thread could
16753 sleep waiting for data that never comes. It's difficult (but not
16754 impossible) to make happen, because it seems to require something
16755 like the following:
16757 1. Thread 1 polls on wake_receive
16759 2. poll returns saying there's data to be read on
16762 3. Thread 2 polls on wake_receive and immediately returns
16763 saying there's data to be read.
16765 4. Thread 2 reads the wakeup byte from wake_receive
16767 5. Thread 1 attempts to read the wakeup byte from
16770 6. Thread 2 exits (due to a form closing, perhaps).
16772 7. Thread 1 blocks forever.
16776 Fixing the Expose handling isn't done yet, and the races inherent
16777 in that piece of code are responsible for the drawing mistakes you
16778 see when generating expose events in a MT app (like NPlot). This
16779 one is the likely to be the hardest to bandaid, and it doesn't
16780 appear to cause anything but drawing problems. The other issues
16781 caused apps to exit or hang.
16783 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16784 called from a different thread than the one that should be calling
16787 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16789 2006-11-15 Chris Toshok <toshok@ximian.com>
16791 * Application.cs: null out the context's MainForm when we exit
16792 RunLoop. Fixes a newly checked in unit test as well as the last
16793 ODE from bug #79933.
16795 2006-11-15 Chris Toshok <toshok@ximian.com>
16797 * Form.cs (set_Owner): allow a null value so we can clear the
16799 (Dispose): set all our owned_form's Owner properties to null, and
16800 clear the owned_forms collection.
16801 (WM_CLOSE): clean up this a little bit.. still not right though.
16803 * ApplicationContext.cs: OnMainFormClosed should only call
16804 ExitThreadCore if the main form isn't recreating. Fixes unit
16807 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16811 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16813 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16817 * Hwnd.cs: Add a flag to show a window, but not activate it, to
16818 keep popup window types from stealing focus from the main form
16821 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16823 * MenuAPI.cs: Set above flag to true.
16825 2006-11-15 Chris Toshok <toshok@ximian.com>
16827 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16828 the button being released is not in wParam.
16830 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
16832 * Form.cs: Add the released button to MouseEventArgs.Button
16833 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
16836 2006-11-15 Chris Toshok <toshok@ximian.com>
16838 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16839 GetText(). untested because it's unused in our implementation.
16840 Control.Text always caches the text, even if
16841 ControlStyles.CacheText is not set.
16845 2006-11-15 Chris Toshok <toshok@ximian.com>
16849 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16850 message. no hiding, no disposing.
16852 in the WM_CLOSE handler, hide the form if it's modal.
16854 2006-11-15 Chris Toshok <toshok@ximian.com>
16856 * XplatUIX11.cs: use AddExpose instead of sending a message.
16857 fixes textbox border drawing.
16859 2006-11-15 Chris Toshok <toshok@ximian.com>
16861 * PropertyGridView.cs: keep from crashing on mouse move/down when
16862 the property grid is empty.
16864 2006-11-14 Jackson Harper <jackson@ximian.com>
16866 * TextControl.cs: Make PageUp and PageDown more like the MS
16868 * TextBoxBase.cs: When we set the text property position the
16869 cursor at the beginning of the document.
16871 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
16873 * Form.cs: if a mdi child's WindowState has changed
16874 before it's creation, it would display wrong control
16877 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
16879 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16882 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
16884 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
16885 the window gets to paint its borders even if the window is
16888 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
16889 otherwise the old control buttons would still be painted
16890 if the window gets bigger.
16892 * PaintEventArgs.cs: add an internal method so that the clip
16893 rectangle can be changed.
16895 2006-11-13 Chris Toshok <toshok@ximian.com>
16897 [ fixes bug #79745 ]
16899 * NotifyIcon.cs: lots of cleanup.
16901 * X11Structs.cs: add an enum for XEMBED messages.
16903 * XplatUIX11.cs: reindent one of the giant switch statements, it
16904 was taking up an additional tab stop, and this file is already way
16905 too wide for my laptop's screen.
16907 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
16908 we get it, resize the hwnd to the WMNormalHints max_width/height.
16910 2006-11-13 Jackson Harper <jackson@ximian.com>
16912 * TextBoxBase.cs: Compute the value changes for the mouse wheel
16915 2006-11-13 Chris Toshok <toshok@ximian.com>
16917 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
16918 #79898. force a reference to the Region to stick around so the
16919 unmanaged object isn't collected (rendering our handle in the MSG
16922 2006-11-13 Chris Toshok <toshok@ximian.com>
16924 * XplatUIX11.cs: fix #79917 for window managers which support
16926 using XStoreName on the raw utf8, and we need to convert to
16927 COMPOUND_TEXT if it's non-latin1.
16929 2006-11-13 Chris Toshok <toshok@ximian.com>
16931 * Form.cs (set_DialogResult): we need to set closing to false if
16932 we're setting our result to None. fixes bug #79908.
16934 2006-11-13 Jackson Harper <jackson@ximian.com>
16936 * TextControl.cs: When formatting text, compute the adjusted tag
16937 lengths correctly, using FindTag for the end tag instead of trying
16938 to figure it out outselves.
16939 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
16940 the item, ItemHeight doesn't work, because trees with large
16941 imagelists use those for their height
16942 * TreeView.cs: ActualItemHeight factors in the image height
16943 - compute left edge of checkboxes correctly
16944 - when expanding/collapsing move the bottom down one pixel, so we
16945 aren't moving part of the node
16947 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16949 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
16950 stack in PaintEventStart so that it won't get disposed by the gc
16951 before reaching PaintEventEnd.
16953 2006-11-13 Jackson Harper <jackson@ximian.com>
16955 * TextBoxBase.cs: Don't select the word if we are on a line with
16957 - We don't need to position the caret on mouse up, since the mouse
16958 move handler should be doing this
16959 - When double clicking a blank line, the caret is advanced to the
16962 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
16964 * TreeNodeCollection.cs: Avoid duplicating indexer code.
16966 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
16968 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
16969 Fixes part of bug #79910.
16971 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
16973 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
16974 (bug #79903). Some minor string updates to match ms.
16976 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
16978 * FileDialog.cs: Don't add an extension if the filename
16979 already ends with that extension.
16981 2006-11-10 Jackson Harper <jackson@ximian.com>
16983 * TreeView.cs: Use the currently highlighted node for the
16984 BeforeSelect event.
16985 * TextBoxBase.cs: There is no need to expand selection on
16987 - CanUndo means 'is there any undo operations', not 'is undo
16988 allowed on this textcontrol. Fixed ClearUndo unit test.
16990 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
16992 * Button.cs: only perform click when button is Selectable (so as
16993 not to activate default buttons when they're disabled)
16995 * Control.cs: Rewrite of the SelectNextControl and related
16996 methods. HandleClick now selects next control if the current one
16999 * Form.cs: OnActivated selects next active control only if Load
17000 has already occurred. If Load hasn't run, there's no point in
17001 selecting here, Load might change the state of controls.
17003 * FocusTest.cs: Tests marked as working again for these fixes
17005 2006-11-10 Chris Toshok <toshok@ximian.com>
17007 * XplatUIX11.cs: a couple of fixes.
17009 - use XInternAtoms with almost all the atoms we need to register,
17010 instead of many, many calls to XInternAtom. should help a bit on
17011 startup time, at the expense of making the code look a little
17014 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17015 isn't reparented (which seems to be a clue that we're running fon
17016 compiz) and they have an Owner form. This fixes the tool windows
17017 in paint.net when running under compiz.
17019 - when setting the opacity of a window, support both the case
17020 where the window has been reparented and also when it hasn't been.
17021 Since compiz/beryl doesn't seem to reparent windows, and these are
17022 the only window managers which support translucency, I'm not sure
17023 why we need the hwnd.reparented case at all.. but leave it in.
17024 now we get translucent windows in paint.net under compiz/beryl.
17026 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17028 * FileDialog.cs: Always return the value for FilterIndex that
17029 was set. Internally convert it to values that make sense.
17031 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17033 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
17035 2006-11-10 Everaldo Canuto <everaldo@simios.org>
17037 * Toolbar.cs: Change default value of DropDownArrows to true, the
17038 signature still using false to make it compatible with MS but the
17039 initial value is true. Fixes #79855.
17041 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
17043 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
17044 only available on Linux.
17046 2006-11-09 Everaldo Canuto <everaldo@simios.org>
17048 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17049 reduce number of calls to redraw method during toolbar creation.
17051 2006-11-09 Mike Kestner <mkestner@novell.com>
17053 * ListView.cs : raise SelectedIndexChanged when an item is selected
17054 programmatically via the Item.Selected property. Gert's nice
17055 ListViewSelectedIndexChanged test fixture now runs clean.
17057 2006-11-09 Mike Kestner <mkestner@novell.com>
17059 * ListView.cs : raise SelectedIndexChanged when a selected item is
17060 removed from the item collection using Remove or RemoveAt.
17062 2006-11-09 Mike Kestner <mkestner@novell.com>
17064 * ListView.cs : raise SelectedIndexChanged once per selected item
17065 for compat with MS. Fixes #79849+.
17067 2006-11-09 Chris Toshok <toshok@ximian.com>
17069 * TabControl.cs: initialize row_count to 0, and set it to 1 when
17070 we need to (if we have any tab pages). Fixes unit test.
17072 2006-11-09 Chris Toshok <toshok@ximian.com>
17074 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17075 width is 0, not 3. Fixes a unit test.
17077 2006-11-09 Mike Kestner <mkestner@novell.com>
17079 * ListView.cs : use Implicit scrollbars so that focus isn't
17080 stolen from the listview when they are clicked. Fixes #79850.
17082 2006-11-09 Chris Toshok <toshok@ximian.com>
17084 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17085 have a root item. Fixes #79879.
17087 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
17091 - An ArgumentException is now thrown if a wrong filter
17092 is applied (matches ms). The previous filter doesn't change
17093 anymore if an exception is thrown.
17094 - Changing the FileName property also affects FileNames
17095 * ColorDialog.cs: The length of the CustomColors array is always
17096 16. It doesn't matter if we use a smaller array or null to update
17097 or change the custom colors property.
17098 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17099 for RootFolder if we get a undefined value.
17101 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17103 * StatusBarPanel.cs:
17104 - Width is set to MinWidth if Width is smaller than
17105 MinWidth. Fixes #79842.
17106 - MinWidth now always overrides Width (MSDN says MinWidth
17107 is set to Width when AutoSize = None, but they do not
17109 - Style has now the the correct default value.
17111 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
17114 - The control is completely invalidated on
17115 Got/LostFocus to draw the focus rectangle correctly.
17116 - When AutoSize then height is always 45 (width for
17117 vertical controls).
17119 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17120 on the mouse when moved and it doesn't move when grabbed
17121 until the mouse moves as well. Also fixed some wrong
17122 calculations when clicking on the thumb (control thought
17123 click was outside of thumb and didn't grab it).
17124 Fixes some of the issues in #79718.
17126 2006-11-08 Everaldo Canuto <everaldo@simios.org>
17128 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17130 2006-11-08 Chris Toshok <toshok@ximian.com>
17132 * PropertyGridView.cs: only call ToggleValue if the item is not
17135 2006-11-08 Jackson Harper <jackson@ximian.com>
17137 * TextBoxBase.cs: The RichTextBox and textbox have very different
17138 word selection methods. Implement the textbox's simple word
17139 selection here, and let the RichTextBox override and provide it's
17141 - Don't do extra selection on mouseup
17142 * RichTextBox.cs: Use the documents word selection algorithm, I
17143 think ideally, this function will be pulled into the
17144 RichTextBox.cs code someday.
17146 2006-11-08 Chris Toshok <toshok@ximian.com>
17148 * RootGridEntry.cs: new class to represent GridItemType.Root.
17150 * CategoryGridEntry.cs: reformat, and add boilerplate.
17152 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17153 returns the UI parent anyway, and we need special handling to
17154 implement the GetTarget method in the face of it. Also, implement
17157 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
17158 a root grid item, and use that instead of PropertyGrid.grid_items.
17159 Also, make use of TypeConverters (and add limitted support for
17160 ICustomTypeDescriptors) when initially populating the grid.
17161 Arrays now show up more or less properly.
17163 2006-11-08 Chris Toshok <toshok@ximian.com>
17165 * Application.cs: set the modal dialog to non modal after we close
17166 it. Fixes bug #79866.
17168 2006-11-08 Jackson Harper <jackson@ximian.com>
17170 * TextControl.cs: When combining lines carry over the line end
17171 style from the end line.
17172 - Invalidate the selected area when setting it, if it is visible.
17173 * TextBoxBase.cs: Only rich text box can do full line selects.
17174 - Make sure to set the cursor position when there is a click,
17175 otherwise two clicks in separate areas could cause a large chunk
17178 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17180 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
17183 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17185 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17186 time. Remove tooltips when ToolButton click events. Fixes #79856.
17188 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17190 * MenuAPI.cs: Ignore right click for menu actions and fixes
17191 menu border when clicked. Fixes #79846.
17193 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17195 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17196 MouseState after create wParam for message, this fixes mouse button
17197 equal none in mouse up events.
17199 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
17201 * Control.cs : Focus() now calls Select to set the Container's
17202 Active Control and to give it focus. To avoid infinite recursion
17203 (because ActiveControl also calls Focus at one point), a check
17204 is made in Focus with the help of a new internal variable
17207 2006-11-07 Mike Kestner <mkestner@novell.com>
17209 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17210 if there's a selection. Fixes #79849.
17212 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
17214 * PropertyGrid.cs: Avoid fixed height of help description label.
17215 Fixes part of bug #79829.
17217 2006-11-07 Chris Toshok <toshok@ximian.com>
17219 * XplatUIX11.cs: fix #79790 again, by using the
17220 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17222 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17224 * ToolBar.cs: Fix left click checking.
17226 2006-11-07 Chris Toshok <toshok@ximian.com>
17228 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
17230 2006-11-07 Chris Toshok <toshok@ximian.com>
17232 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
17233 PropertyManager unit tests.
17235 * PropertyManager.cs: make property_name internal.
17237 2006-11-07 Chris Toshok <toshok@ximian.com>
17239 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17240 pass a unit test. Also, don't set image_index to anything in
17241 response to setting the ImageList property.
17243 2006-11-07 Everaldo Canuto <everaldo@simios.org>
17245 * ToolBar.cs: Ignore click events when mouse button is not a
17246 left button, only accepts other button for dropdown menus.
17249 2006-11-07 Chris Toshok <toshok@ximian.com>
17251 * DataGrid.cs: make the back and parent row buttons a little less
17254 2006-11-07 Jackson Harper <jackson@ximian.com>
17256 * TextBoxBase.cs: When converting to Text don't put line breaks in
17257 for soft line breaks.
17258 * TextControl.cs: There is an initial "fake" line in the document,
17259 this is now a soft break line, so that an extra line feed doesn't
17260 get added to the end of documents.
17262 2006-11-07 Chris Toshok <toshok@ximian.com>
17266 * CurrencyManager.cs: if the list is readonly, don't bother
17267 checking if IBindingList.AllowNew is true.
17269 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17270 for non-DataRowView datasources.. or rather, make it not crash.
17271 (DataGridPaintRelationRow): make sure we limit the row painting to
17272 the area not covered by the row header, and make our cell width at
17273 least large enough to cover the relation area. This allows grids
17274 that have relations but no rows to render correctly.
17275 (DataGridPaintRowContents): same type of changes here.
17276 (SetDataSource): move back to always calling
17277 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
17278 navigating back through relations.
17279 (HitTest): handle the case where we have no cells but have
17280 relations. Right now we generate a hit in cell 0 of whatever the
17281 row is, not sure if this is strictly correct, but it works for our
17284 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17285 bother doing anything.
17287 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
17289 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17290 early version of StatusStrip. Not responsible for eaten
17291 application or firstborn children.
17293 2006-11-06 Chris Toshok <toshok@ximian.com>
17295 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17296 call GetTabRect with a -1 index. Fixes #79847.
17298 2006-11-06 Jackson Harper <jackson@ximian.com>
17300 * TreeNodeCollection.cs: Update scrollbars after clearing.
17302 2006-11-06 Chris Toshok <toshok@ximian.com>
17304 * NumericUpDown.cs: fix the ToString method for some unit test
17307 2006-11-06 Chris Toshok <toshok@ximian.com>
17310 - set the initial SelectedGridItem if we can.
17312 - Exclude non-mergable properties only if we're merging > 1
17313 object. Merging 1 object isn't really merging, obviously.
17315 - Handle PropertySort.NoSort just like Alphabetical, which is
17316 wrong of course, but at least gets things on the screen.
17318 * PropertyGridView.cs:
17319 - Add method "FindFirstItem" which finds the first property grid
17320 item, so we can select it by default.
17322 - make use of GridEntry.CanResetValue.
17324 - Don't call RedrawBelowItemOnExpansion here anymore, the
17325 individual GridEntry's will do that.
17327 - Remove the ITypeDescriptorContextImpl internal class.
17330 - this class needs to implement ITypeDescriptorContext, as it's
17331 what MS's PropertyDescriptorGridEntry does, which means we can
17332 remove the ITypeDescriptorContextImpl internal class from
17333 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
17335 - keep a reference to our PropertyGridView, and move the call to
17336 RedrawBelowItemOnExpansion here from PGV. This means
17337 programmaticly setting Expanded actually does something visible.
17339 - add a CanResetValue() function which takes into account our
17340 possibly multiple "selected_objects" in the merged case. Shifting
17341 PropertyGridView to use this method fixes another unreported
17342 crasher found running the test for #79829.
17344 - when Top or Bounds is updated, make sure the PropertyGridTextBox
17345 is updated to reflect this.
17347 * CategoryGridEntry.cs: the ctor takes the PGV now.
17349 2006-11-06 Jackson Harper <jackson@ximian.com>
17351 * TextControl.cs: These are 1 based.
17352 * TextBoxBase.cs: When setting the selected text, don't change the
17353 selected text tags, this is done by ReplaceText, just position the
17354 cursor at the end of the new text.
17356 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17358 * ListView.cs: Allow label edit only when, when LabelEdit is
17361 2006-11-06 Jackson Harper <jackson@ximian.com>
17363 * TextControl.cs: If a suitable wrapping position isn't found,
17364 just wrap right in the middle of a word.
17366 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
17368 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17371 2006-11-06 Jackson Harper <jackson@ximian.com>
17373 * TreeView.cs: Can't use the VisibleCount property when setting
17374 scrollbar heights, because this doesn't take into account whether
17375 or not the horz scrollbar just came visible.
17377 2006-11-05 Everaldo Canuto <everaldo@simios.org>
17379 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17380 activated. Fixes #79369, #79832.
17382 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
17384 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17385 had to remove support for links that point to a directory. FileInfo
17386 returns no usefull information (means, the directory they point to)
17387 for such links. Replaced some empty string ("") with String.Empty.
17389 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17391 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
17392 NullReferenceException when attempting to remove node that is not in
17393 collection. Throw NullReferenceException when null is passed to
17394 Remove. Allow first element of the collection to be removed. Fixes
17395 bug #79831. In GetEnumerator ().Current return null if positioned
17396 before the first element of the collection. In GetEnumerator ().Reset,
17397 position before first element of the collection.
17399 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
17401 * PropertyGrid.cs: To match MS, remove default title and description
17402 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17405 2006-11-04 Chris Toshok <toshok@ximian.com>
17407 * Theme.cs: add a Clamp method, just for kicks.
17409 * ThemeWin32Classic.cs: clamp all color components to [0..255].
17411 2006-11-04 Chris Toshok <toshok@ximian.com>
17413 * Form.cs: if the form isn't visible, Close() does nothing.
17415 2006-11-03 Chris Toshok <toshok@ximian.com>
17417 * Form.cs (Close): if the form is modal, don't Dispose of it, only
17419 (WndProc): don't Dispose after handling the WM_CLOSE message.
17421 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17422 them as such, instead of using casts from Control to Form. Also,
17423 don't Dispose of the modal dialog when we fall out of the loop -
17424 Close() it instead.
17428 2006-11-03 Chris Toshok <toshok@ximian.com>
17430 * Control.cs (Dispose): only go through the dispose thing if we're
17431 @disposing, and we haven't already been disposed. Fixes bug
17434 * Form.cs: no reason to call "base.Dispose()" here instead of
17437 2006-11-03 Mike Kestner <mkestner@novell.com>
17439 * ComboBox.cs : use ToString instead of casts in AddItem for
17440 sorting functionality. Fixes #79812.
17442 2006-11-03 Chris Toshok <toshok@ximian.com>
17444 * Application.cs: pave the way for actually using the thread
17445 exception dialog. it's ifdefed out at the moment.
17447 2006-11-03 Chris Toshok <toshok@ximian.com>
17449 * ThreadExceptionDialog.cs: until we get a better layout, actually
17450 hide the details textbox and label when we shouldn't see them.
17452 2006-11-03 Jackson Harper <jackson@ximian.com>
17454 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17455 multiline textboxes anymore. This method also determines the
17456 width/height of a textboxes canvas area.
17457 - Sorta a revert of the last patch. For multiline just position
17458 the controls, then bail. This way the scrollbar width won't be
17461 2006-11-03 Everaldo Canuto <everaldo@simios.org>
17463 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17464 it dont need. Fixes #79537.
17466 2006-11-02 Jackson Harper <jackson@ximian.com>
17468 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
17469 send the status after firing the DndOver event.
17471 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17473 * TrackBar.cs: Now orientation only switches height / width if
17474 the control's handle is created (Win32 does it like this). Also
17475 fixed a typo in ToString() for a test to pass, changed the
17476 exception thrown in set_LargeChange and set_SmallChange to
17477 match Win32 behaviour, and added TrackBar tests to the unit
17480 2006-11-02 Chris Toshok <toshok@ximian.com>
17482 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17483 not _NET_WM_STATE_NO_TASKBAR.
17485 2006-11-02 Jackson Harper <jackson@ximian.com>
17487 * TextControl.cs: Increment count by one, since in the update view
17490 2006-11-02 Jackson Harper <jackson@ximian.com>
17492 * TextBoxBase.cs: Use client rectangle not bounds for checking if
17493 the mouse is in the client rectangle (duh).
17495 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
17497 * TrackBar.cs: Fixed trackbar jumping around when clicking
17498 on it - the trackbar was not detecting correctly at which
17499 side of the thumb the click was done. (fixes #79718)
17501 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17503 * ListBox.cs: scroll visible area when change SelectedIndex to
17504 a non visible area. Fixes #79481.
17506 2006-11-01 Jackson Harper <jackson@ximian.com>
17508 * TextControl.cs: When replacing the selection move the selection
17509 start/end/anchor to the end of the new text.
17511 2006-11-01 Jackson Harper <jackson@ximian.com>
17513 * XplatUIWin32.cs: When setting the parent change the controls
17514 visibility to it's visibility flag, not to it's old parents
17515 visibility (.Visible walks the parent chain).
17517 2006-11-01 Chris Toshok <toshok@ximian.com>
17519 * XplatUIX11.cs: revert the #79790 fix, as the simple.
17520 XSetTransientForHint fix breaks paint .net's tool windows. more
17521 work needed for that one.
17523 2006-11-01 Chris Toshok <toshok@ximian.com>
17525 * ScrollBar.cs: throw ArgumentException instead of Exception in
17526 LargeChange/SmallChange setters. fixes unit tests.
17528 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17530 * ContainerControl.cs: reverted rev.67183 (which was itself
17531 a reversion of rev.66853... eh).
17533 * Control.cs: Fixes Reflector hang by changing Focus() call
17534 to what it was before rev.66643 (calling Select() here sets
17535 ActiveControl, which in some situations calls back Focus and
17536 eventually does a stack overflow). Temp fix.
17537 Changes to GetNextControl() to not look for children to select when
17538 parent cannot be selectable (so it looks for siblings instead)
17540 2006-10-31 Mike Kestner <mkestner@novell.com>
17542 * CheckedListBox.cs : off by one error in returned index from
17543 ObjectCollection.Add. Fixes #79758.
17545 2006-10-31 Chris Toshok <toshok@ximian.com>
17547 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17548 calls for the textbox/spinner, to keep from recursing to the point
17549 where we crash. Fixes #79760.
17551 2006-10-31 Chris Toshok <toshok@ximian.com>
17553 * ListControl.cs (set_SelectedValue): don't throw exceptions on
17554 null/"" value, just return. matches ms's behavior and fixes some
17557 2006-10-31 Chris Toshok <toshok@ximian.com>
17559 * Control.cs (set_Capture): make a logic a little easier to
17562 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17563 if it's being destroyed. A necessary fix surely, but a bandaid
17564 also, to fix the stuck capture problem in bug #78413.
17566 2006-10-31 Chris Toshok <toshok@ximian.com>
17568 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17569 convention of clearing hwnd.ClientRect when we set the
17570 width/height (so it'll be recalculated by Hwnd).
17572 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
17574 * ContainerControl.cs: reversed Contains check from
17575 ActiveControl due to hanging problems. This fix
17576 partly regresses #79667 (button does not have
17577 initial focus), so this might be a symptom for
17578 a larger parenting problem (set_ActiveControl
17579 is being called but the child control does
17580 not have the parent set yet?)
17582 2006-10-31 Mike Kestner <mkestner@novell.com>
17584 * MenuAPI.cs : fix keynav when menu is click activated.
17586 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
17588 * ToolStrip*: Version 0.2.
17590 * MenuStrip.cs: Version 0.1.
17592 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17594 2006-10-30 Chris Toshok <toshok@ximian.com>
17596 [ fixes the oversized notify icon issue in bug #79745 ]
17598 * NotifyIcon.cs: scale the icon down to the size we're given by
17599 the XplatUI layer (this would be faster if we did it once instead
17600 of whenever we paint..) Also, remove the WM_NCPAINT handling,
17601 since it's never invoked.
17603 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17604 pixels high by default, so let's hardcode our systray icon to that
17605 size. The SYSTEM_TRAY protocol should really have a way for
17606 client apps to query for the correct icon size.. but oh well. A
17607 couple of patches to deal with the screwy client_window ==
17608 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17609 instance, and also make sure we don't XSelectInput twice).
17611 2006-10-30 Chris Toshok <toshok@ximian.com>
17613 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17614 recreating forms. Control recreation is the bane of my existence.
17615 Fix it in a way that keeps everyone happy.
17617 2006-10-30 Chris Toshok <toshok@ximian.com>
17619 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17620 just non-CHILD ones. otherwise sometimes scrollbars end up with
17621 client_windows not being resized to the proper size (ReportBuilder
17622 shows this extremely well).
17624 2006-10-30 Chris Toshok <toshok@ximian.com>
17626 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17627 for non-WS_EX_APPWINDOW windows. This is what keeps them from
17628 showing up in the gnome taskbar. Fixes bug #79790.
17630 2006-10-30 Chris Toshok <toshok@ximian.com>
17632 * ApplicationContext.cs: guard against a NRE.
17634 * Application.cs: null out the old MainForm for the context, so we
17635 don't try to use it again once it's disposed. Fixes bug #79783.
17637 2006-10-30 Chris Toshok <toshok@ximian.com>
17639 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17640 BindingContext, set the data source directly, otherwise do the
17641 lazy approach - the actual ListManager will be created when we get
17642 a BindingContext. Fixes bug #79700.
17644 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17646 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17647 XplatUIX11.cs: Remove old 2 parameter SetVisible.
17649 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17651 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
17653 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17654 of SetVisible that allows a window to be shown, but not activated.
17655 This is needed on Windows for MenuStrip, and can probably be used
17656 with MainMenu and ComboBox to fix the focus stealing issues on
17659 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17661 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
17663 * PictureBox.cs: Fix the output of the ToString method.
17665 2006-10-29 Chris Toshok <toshok@ximian.com>
17667 * Control.cs (get_TopLevelControl): fix bug #79781.
17669 2006-10-29 Chris Toshok <toshok@ximian.com>
17671 * ListControl.cs (set_DataSource): throw Exception here, not
17672 ArgumentException, to match MS behavior.
17674 2006-10-29 Chris Toshok <toshok@ximian.com>
17676 * Form.cs: remove the try-catch's around calls to GetWindowState.
17677 We can just check the return value.
17679 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17682 * XplatUI.cs: Add note about additional return value for
17685 2006-10-29 Chris Toshok <toshok@ximian.com>
17687 * Control.cs (CreateHandle): when we create our handle, we also
17688 create the handles of our child controls. Fixes one of the
17689 Control unit tests (CH11).
17691 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
17693 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17695 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
17697 * ThemeClearlooks.cs: A little speedup.
17699 2006-10-27 Chris Toshok <toshok@ximian.com>
17701 * Control.cs: implement Control.FromChildHandle in a way that
17702 matches the docs (and fixes the failed test.)
17704 2006-10-27 Chris Toshok <toshok@ximian.com>
17706 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17709 * DataGrid.cs: implement ResetForeColor such that the tests
17712 2006-10-27 Chris Toshok <toshok@ximian.com>
17714 * ToolBarButton.cs: setting text/tooltiptext to null results in it
17715 being set to "". Fixes bug #79759.
17717 2006-10-27 Jackson Harper <jackson@ximian.com>
17719 * TextControl.cs: We need to clear the entire selection area when
17720 setting the start, otherwise multiline selections are still
17723 2006-10-26 Chris Toshok <toshok@ximian.com>
17725 * PropertyGridView.cs:
17727 - ifdef all the code specific to the double
17728 buffer case, and provide some alternatives in the non-doublebuffer
17729 code, which makes heavy use of XplatUI.ScrollWindow to move things
17730 around without having to invalidate (and cause flicker). There
17731 are still some drawing problems in the non-doublebuffered case, so
17732 DOUBLEBUFFER is defined by default.
17734 - Fix the way dropdowns are handled. now we explicitly watch for
17735 the events which might cause the dropdown to close, and break out
17736 of the nested event loop there. This gets rid of all Capture
17737 code, at the expense of the Msg special casing. Seems to work,
17738 though, and fixes bug #79743.
17740 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
17741 * Control.cs: SetIsRecreating now recreates implicitly added
17742 child controls as well. Finally fixes #79629. The flag passed to
17743 SetIsRecreating has also been removed since it wasn't used.
17745 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17747 * PageSetupDialog.cs: Clean some code, fix some bits,
17748 add some checks, and add a printer sub-dialog.
17750 2006-10-26 Chris Toshok <toshok@ximian.com>
17752 * PropertyGrid.cs: make set_SelectedObject call
17753 set_SelectedObjects, and move the duplicate logic to the
17754 SelectedObjects setter. Also, raise SelectedObjectsChanged.
17756 * PropertyGridView.cs: hide the textbox when we get a
17757 SelectedObjectsChanged event.
17761 2006-10-26 Chris Toshok <toshok@ximian.com>
17763 * PropertyGridView.cs: deal with the type converter not supporting
17764 GetStandardValues() or GetStandardValues() returning null, which
17765 is does in the default case. Fixes #79742.
17767 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
17769 * CheckedListBox.cs: nunit no longer crashes when selecting
17770 Project/Edit menu option
17772 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
17774 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17775 is no menu selected. fixes #79739
17777 2006-10-25 Chris Toshok <toshok@ximian.com>
17779 * PropertyGridView.cs: factor out the splitter invalidation code
17780 into the SplitterPercent setter, and for kicks implement the
17781 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17782 amount in either direction.
17784 2006-10-25 Chris Toshok <toshok@ximian.com>
17786 * PropertyGridView.cs: do some cleanup of the brush used to draw
17787 text - read only fields should be grayed out. not sure how to do
17788 this with the textbox, though. but the textbox's should also be
17789 readonly now at least. Also, hide/show the textbox when resizing
17792 * CursorConverter.cs: use System.Reflection when getting the
17793 properties of Cursors, as TypeDescriptor.GetProperties isn't
17794 returning static properties.
17796 2006-10-25 Chris Toshok <toshok@ximian.com>
17798 * PropertyGridView.cs: factor out the up/down handling, and reuse
17799 it for page up/down. also add End/Home support.
17801 2006-10-25 Chris Toshok <toshok@ximian.com>
17803 * PropertyGridView.cs:
17805 - ensure the selected grid item is visible in the scrolled area,
17808 - fix Keys.Down handling when you're on the last item in the
17811 2006-10-25 Mike Kestner <mkestner@novell.com>
17813 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
17814 clicks too. Fixes #79725.
17816 2006-10-24 Chris Toshok <toshok@ximian.com>
17818 * PropertyGrid.cs: use property.Converter instead of
17819 TypeDescriptor.GetConverter(property.PropertyType), so we catch
17820 TypeConverters declared on the property as well as on the
17821 PropertyType. Fixes bug #79678.
17823 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
17825 * MimeIcon.cs, Mime.cs:
17826 Fallback to the default platform handler if no shared mime info
17827 stuff exists (fixes #79693).
17829 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17830 * ContainerControl.cs: Incorrect contains check in ActiveControl
17831 from previous fix (duh).
17833 2006-10-20 Chris Toshok <toshok@ximian.com>
17835 * PropertyGridView.cs: the dropdown should be MIN(number of items
17836 in list, 15). Fixes #79551.
17838 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17839 Fixes #79384, #79394, #79652, #79667
17842 - Modal windows are now destroyed in the proper order for windows
17844 * ContainerControl.cs:
17846 - ActiveControl setter has more conditions on when to return:
17847 - if we're reselecting the active control, but it actually
17848 didn't have focus (window hidden or some such), it runs
17849 - if the active control being selected doesn't actually
17850 exist in the container, it returns
17854 - The ShowDialog now gets the current form as the owner when
17855 invoking without parameters, and correctly activates the owner
17860 - MessageBox now catches the Escape key to exit
17862 2006-10-20 Chris Toshok <toshok@ximian.com>
17864 * PropertyGridView.cs: fix a number of issues (bug #78565, and
17865 most of bug #79676):
17867 - you can navigate around the property grid with the arrow keys.
17869 - the dropdown is sized properly when the pg has a vertical
17872 - fix the indentation for subentries, and properly select the
17875 - fix the gray bar's drawing (only draw it to the last element,
17876 not for the height of the control. Also make sure we draw that
17877 last horizontal grid line.
17879 - use the same mechanism the datagrid uses wrt the editing textbox
17880 when scrolling/resizing/etc. Namely, we hide it first, do the
17881 operation, then show it again (if it's still visible).
17883 - aggressively remove a lot of unnecessary refreshes (and also
17884 calls to Invalidate(). call more limited variants, and only redraw
17889 - when we're populating the merged collection, fill in the UI
17890 parent with either the passed in item, or the category item we
17893 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17895 * GridItem.cs: drop some fully qualified names.
17897 * GridEntry.cs: add a "UIParent", which is basically the parent
17900 * GridItemCollection.cs: add an IndexOf method.
17902 2006-10-20 Mike Kestner <mkestner@novell.com>
17904 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
17905 a working win32 NC invalidation mechanism, we can't invalidate
17906 menus. [Fixes #79705]
17908 2006-10-20 Mike Kestner <mkestner@novell.com>
17910 * ListBox.cs : don't update the VScrollbar if the list is empty,
17911 just hide it. [Fixes #79692]
17913 2006-10-20 Jackson Harper <jackson@ximian.com>
17915 * RichTextBox.cs: Handle some special chars better, and don't skip
17916 the entire group when we encounter a special char that we don't
17919 2006-10-18 Chris Toshok <toshok@ximian.com>
17921 * PropertyGridView.cs: address a number of issues from bug #79676,
17922 mostly of the cosmetic variety.
17924 - The highlight rectangle for indented items not extends all the
17927 - Indented items aren't indented so much.
17929 - the dropdown is properly sized width-wise if the pg has a
17930 vertical scrollbar.
17932 2006-10-18 Chris Toshok <toshok@ximian.com>
17934 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
17935 systray stuff is rather convoluted to begin with.
17937 systray icons are a single window for some reason (that I haven't
17938 figured out yet), and for them, client_window == whole_window.
17939 Given the way the tests are structured elsewhere to determine
17940 which paints are pending (client vs. nc), that situation will
17941 always yield PAINT, not NCPAINT. So, if we have a pending
17942 nc_expose and no pending expose, remove the hwnd from the paint
17943 queue, and also set nc_expose_pending to false, to keep us from
17944 blocking further expose's adding the hwnd to the paint queue.
17946 phew. like i said, a rather convoluted change. Fixes the
17947 notifyicon repaint issues in bug #79645.
17949 2006-10-18 Chris Toshok <toshok@ximian.com>
17951 * Form.cs: when getting the backcolor of the form, don't get
17952 base.BackColor, as this allows parents to influence the background
17953 color. This breaks mdi forms. Instead, if the background_color
17954 is empty, return the default.
17956 2006-10-18 Chris Toshok <toshok@ximian.com>
17958 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
17959 to being private instead of internal static.
17961 * Control.cs: remove all the stupid ParentWaitingOnRecreation
17962 crap, it wasn't working for more deeply nested controls anyway,
17963 and we already have the is_recreating flag - use that instead.
17964 Before calling DestroyHandle in RecreateHandle, recurse through
17965 the control tree setting it to true. this returns the recreate
17966 code to much of its original simplicity, while now guaranteeing we
17967 actually recreate everything we're supposed to. This change gets
17968 fyireporting actually showing mdi children.
17970 2006-10-17 Chris Toshok <toshok@ximian.com>
17972 * Form.cs: remove some debug spew, and collapse some duplicate
17973 code at the end of SetClientSizeCore.
17976 - add some more debug spew here too wrt Destroy handling.
17977 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
17978 in Control's handling of WM_DESTROY.
17979 - Remove the handling of zombie window DestroyNotifies from the
17980 event loop - we don't need it. Now the only DestroyNotifies we
17981 actually handle are ones generated by X.
17982 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17983 match gtk's (functioning) handling of this. This keep metacity
17984 from leaving droppings in the form of wm borders with no window
17985 contents all over the place.
17988 - add a bunch of debug spew wrt control recreation.
17989 - fix a bug where we weren't tracking Visible properly on
17991 - fixed the WM_PAINT double buffer handling to support re-entrant
17992 calls (yes, i know it's gross, but it's happening to us).
17994 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
17995 * ThemeWin32Classic.cs: changed drawing of selected days
17996 to make them look better.
17998 2006-10-16 Chris Toshok <toshok@ximian.com>
18000 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18001 drawing_stack. Nuke the ClientDC/NonClientDC properties.
18003 * XplatUIX11.cs: move away from using hwnd.client_dc and
18004 hwnd.non_client_dc and on to a stack of dc's (and in window's
18005 case, PAINTSTRUCT's), so we can deal with nested Paint calls
18006 without puking or not disposing of Graphics objects.
18008 * XplatUIOSX.cs: same.
18010 * XplatUIWin32.cs: same.
18012 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18014 * FileDialog.cs: Don't call on_directory_changed inside
18015 OnSelectedIndexChanged (it changes the SelectedIndex too).
18016 Instead move it to OnSelectionChangeCommitted.
18018 2006-10-13 Chris Toshok <toshok@ximian.com>
18020 * XplatUIX11.cs: more Destroy work. the current code does the
18021 following things, in order:
18023 1. Enumerates all handles of all controls at or below the one
18024 being destroyed, in pre-order. As it is doing this, it marks the
18025 handles as zombie and clears all references to them.
18027 2. calls XDestroyWindow on the window passed in.
18029 3. SendMessage's WM_DESTROY to all he handles in the accumulated
18032 2006-10-13 Chris Toshok <toshok@ximian.com>
18034 * XplatUIX11.cs: set hwnd.zombie to true before calling
18035 SendMessage (WM_DESTROY). this keeps us from marking the new
18036 window a zombie, and also keeps us from calling sendmessage at
18039 2006-10-13 Jackson Harper <jackson@ximian.com>
18041 * TextControl.cs: Do not show the caret and selection at the same
18042 time. Reduces ugliness by 35%.
18044 2006-10-13 Chris Toshok <toshok@ximian.com>
18046 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
18047 zombie after we do the recursive call, so we actually do call
18048 SendMessage on the children controls.
18049 (GetMessage): if we find a pending paint event for a zombie hwnd,
18050 remove the hwnd from the paint queue, or else it will always be
18051 there (and we'll effectively loop infinitely)
18053 2006-10-13 Mike Kestner <mkestner@novell.com>
18055 * MenuItem.cs : add Selected format under keynav too.
18058 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
18060 * PropertyGrid.cs: Fixed some NRE's and small difference between our
18061 implementation and that of MS.
18063 2006-10-13 Chris Toshok <toshok@ximian.com>
18065 * Control.cs (OnInvalidated) only futz with the invalid_region if
18066 the control is double buffered. this fixes the apparent hang in
18067 the ListView unit tests. Someone needs to make the
18068 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18070 2006-10-13 Chris Toshok <toshok@ximian.com>
18072 * PropertyGridView.cs:
18074 - do a little refactoring so that only one place calls
18075 dropdown_form.Hide, and that is CloseDropDown. make everywhere
18076 else call that. Also make it Refresh, since there are redraw bugs
18077 otherwise (we should take a look at that...)
18079 - do a little more refactoring work to share the body of code
18080 involved with the drop down. it was duplicated in the code
18081 dealing with the listbox handling and in the code dealing with the
18084 - add a Capture to the dropdown form's control once it's
18085 displayed, and add a MouseDown handler that checks to make sure
18086 the position is inside the control. If it's not, close the
18087 dropdown. This fixes #78190.
18089 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18090 if the value is different than the initial value.
18092 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
18094 * Control.cs: see #78650
18095 - Fixed GetNextControl for several cases:
18096 - Changed FindFlatForward to return
18097 correct sibling control when more than one
18098 control has same TabIndex as the currently
18100 - Changed FindFlatBackward to loop children
18101 from last to first and apply same logic as in
18103 - Changed FindControlForward to search for
18104 children when control is not a container
18105 but has children, or search for siblings if
18106 control is a container...
18107 - Changed FindControlBackward to continue
18108 searching for child controls when hitting
18111 - Fixed Focus method to update ActiveControl
18112 (FocusTest.FocusSetsActive failure)
18115 - Focus rectangle now refreshes when gaining
18117 - Removed grab for Tab key on IsInputKey that
18118 was keeping tab navigation from working (#78650)
18120 2006-10-13 Chris Toshok <toshok@ximian.com>
18122 * PropertyGridView.cs:
18123 - Rewrite SetPropertyValue to loop over SelectedGridItem's
18126 - Deal with GridItem.Value == null a few places.
18129 - replace the PopulateGridItemCollection with a pair of methods
18130 which compute the intersection of all the properties in the
18131 SelectedObjects array. Fixes #79615.
18133 - Throw ArgumentException from set_SelectedObjects if there's a
18136 - Add GetTarget method which can be used to traverse up the
18137 GridItem.Parent chain. It depends on the assumption that
18138 selected_objects for different GridEntries are always in the same
18139 order (a safe assumption). Use this method and loop over all the
18140 selected objects in the entry when calling RemoveValueChanged and
18143 * GridEntry.cs: Make this handle multiple selected objects.
18144 .Value returns null if not all the selected objects share the same
18147 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
18148 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18149 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18150 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18151 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18152 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18153 add additional functionality.
18155 2006-10-12 Mike Kestner <mkestner@novell.com>
18157 * ErrorProvider.cs : new ToolTipWindow ctor sig.
18158 * HelpProvider.cs : new ToolTipWindow ctor sig.
18159 * ToolTip.cs : remove ToolTip param from Window sig since it is
18161 * ToolBar.cs : add tooltip support. Fixes #79565.
18163 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18165 * ComboBox.cs: move the events in set_SelectedIndex to
18166 after the call to HighlightIndex in order to avoid
18167 possible recursion and subsequent problems with the call
18168 to HighlightIndex and include a range check in
18169 set_HighlightIndex. Fixes #79588
18171 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18173 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
18174 to ui thread's settings instead of sunday.
18175 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18177 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
18179 * DateTimePicker.cs
18181 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18182 and implement missing functionality (selecting different parts
18183 of the date and edit them individually with the keyboard).
18185 2006-10-11 Chris Toshok <toshok@ximian.com>
18187 * Control.cs (OnInvalidated): fix NRE relating to last change.
18189 2006-10-11 Chris Toshok <toshok@ximian.com>
18191 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18192 atoms in _NET_WM_STATE here if the window is maximized. We need
18193 to do this because we're *replacing* the existing _NET_WM_STATE
18194 property, so those atoms will be lost otherwise, and any further
18195 call to GetWindowState will return Normal for a window which is
18196 actually maximized. Fixes #79338.
18198 2006-10-11 Jackson Harper <jackson@ximian.com>
18200 * TextControl.cs: Special case for setting selection end to
18201 selection start, we basically kill the anchor.
18202 - some todo comments.
18204 2006-10-11 Chris Toshok <toshok@ximian.com>
18206 * Control.cs: switch to using an "invalid_region" to track which
18207 parts of the image buffer need updating. This is more code than
18208 the simple fix from r66532. That version just attempted to always
18209 fill the entire buffer on redraw, which turns out to be
18210 inefficient when invalidating small rectangles. This version
18211 simply adds the invalid rectangle to the invalid region. When we
18212 get any WM_PAINT message we see if it can be filled using the
18213 image buffer, and if it can't (if the paint event's clip rectangle
18214 is visible in the invalid region) we first fill the image buffer.
18215 So, the image buffer is still a cache, we just fill it lazily.
18217 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18218 need it any longer.
18220 2006-10-11 Chris Toshok <toshok@ximian.com>
18222 * XplatUIX11.cs (SetWindowPos): we need to update both position as
18223 well as size after calling XMoveResizeWindow. This keeps us from
18224 ignoring future SetWindowPos calls. Fixes the disappearing
18225 DateTimePicker in the ToolBarDockExample from bug #72499.
18227 2006-10-11 Chris Toshok <toshok@ximian.com>
18229 * TextBoxBase.cs: reorder things a bit when it comes to
18230 resizing-causing-recalculation. we were recalculating the
18231 document when our position was changed, which shouldn't happen.
18232 We only care about size changes. Clear up some more redundant
18233 recalculation calls while I'm at it. This makes the toolbar dock
18234 example snappy when you're just dragging toolbars around (since it
18235 causes a relayout whenever you move one.)
18237 2006-10-11 Chris Toshok <toshok@ximian.com>
18239 * ToolBarButton.cs (get_Rectangle): this only returns
18240 Rectangle.Empty if Visible == false, or Parent == null.
18241 Parent.Visible doesn't matter.
18243 2006-10-10 Chris Toshok <toshok@ximian.com>
18245 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18246 by .net 1.1, so switch to an internal method instead.
18248 2006-10-10 Chris Toshok <toshok@ximian.com>
18250 * Control.cs (WM_PAINT): when a control is double buffered we draw
18251 initially to the ImageBuffer and then copy from there. But when a
18252 parent control which has child controls is double buffered, the
18253 initial drawing doesn't encompass the entire ClientRectangle of
18254 the parent control, so we end up with uninitialized bits (this is
18255 easily seen by dragging the top toolbar in
18256 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
18257 manually set the ClipRectangle of the paint_event (only the one we
18258 use to populate the ImageBuffer) to ClientRectangle. Fixes more
18259 of the nastiness in bug #72499.
18261 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18262 which we use in Control.cs's WM_PAINT handling.
18264 2006-10-10 Jackson Harper <jackson@ximian.com>
18266 * TextBoxBase.cs: Finish off the autoscrolling stuff.
18268 2006-10-10 Chris Toshok <toshok@ximian.com>
18270 * Cursor.cs: Apply a slightly different patch to the one suggested
18273 2006-10-10 Jackson Harper <jackson@ximian.com>
18275 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18276 not the parent form.
18277 * TextControl.cs: use difference in old line count vs new count to
18278 calculate how many lines were added, this takes into account soft
18279 line breaks properly.
18281 2006-10-10 Chris Toshok <toshok@ximian.com>
18283 * LinkLabel.cs: don't call MeasureCharacterRanges against a
18284 rectangle located at 0,0 and the size of the text. Use
18285 ClientRectangle instead. This fixes rendering of non-left aligned
18288 2006-10-10 Jackson Harper <jackson@ximian.com>
18290 * TextBoxBase.cs: When we set the selection start position the
18292 * TextControl.cs: Need to update the caret when we decrement it to
18294 - Make sure that the selection_visible flag gets reset to false if
18295 the selection isn't visible. Before this you could get it set to
18296 visible by changing the selection start, then changing the end to
18299 2006-10-09 Jackson Harper <jackson@ximian.com>
18301 * TreeView.cs: Don't update scrollbars when we aren't visible.
18302 * TreeNodeCollection.cs: Only need to update scrollbars if being
18303 added to an expanded visible node or the root node.
18305 2006-10-09 Chris Toshok <toshok@ximian.com>
18307 * XplatUIX11.cs (SendMessage): fix NRE.
18309 2006-10-09 Jackson Harper <jackson@ximian.com>
18311 * TextBoxBase.cs: Implement horizontal autoscrolling.
18312 * TextControl.cs: Add a movement types that allows moving forward
18313 and backwards without wrapping.
18315 2006-10-09 Mike Kestner <mkestner@novell.com>
18317 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18318 with focus "expansion" of labels. Fixes #79532 and then some.
18319 * ThemeWin32Classic.cs : add LineLimit to ListView label format
18322 2006-10-09 Jackson Harper <jackson@ximian.com>
18324 * TextBoxBase.cs: Set the default max values to MaxValue since
18325 we use the scrollbar for autoscrolling and the default value is
18326 100. If we don't do this the caret won't keep up with typing
18327 after about 18 characters.
18328 * TextControl.cs: Make sure the selection is offset by the
18329 viewport x. This fixes selection when using auto scrolling.
18331 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
18333 * Form.cs: The active control should be selected after the
18334 OnLoad so that any child control initialization that affects
18335 the selection is done. Fixes #79406
18337 2006-10-06 Chris Toshok <toshok@ximian.com>
18339 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18340 to have no evil effects.
18342 - Stop selecting StructureNotifyMask on non-toplevel windows.
18344 The only way children should be resized is by using the SWF api,
18345 and we already send WM_WINDOWPOSCHANGED messages in those cases.
18346 Toplevel windows can be interacted with via the window manager,
18347 and so we keep the input mask there.
18349 The other event StructureNotifyMask gives us (that we care
18350 about) is DestroyNotify. The code is already structured such
18351 that it assumes we won't be getting a DestroyNotify event for
18352 the window we pass to XDestroyWindow (which is what
18353 StructureNotifyMask is supposed to guarantee.) So, that code
18354 shouldn't be affected by this either.
18356 - Stop selecting VisibilityChangeMask altogether.
18358 We weren't doing anything with the resulting events anyway.
18360 This vastly reduces the number of X requests and events we see
18361 when resizing/laying out a large ui.
18363 2006-10-06 Chris Toshok <toshok@ximian.com>
18365 * ScrollableControl.cs (DisplayRectangle): we need to take into
18366 account the DockPadding regardless of whether or not auto_scroll
18367 == true. rework this slightly to this effect, and fix bug #79606,
18368 and part of #72499 (you can now see the drag handles and drag
18371 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
18373 * ListViewItem.cs: Collections of selected and checked items are now
18374 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18375 we mark the collection "dirty".
18376 * ListView.cs: Marked collections readonly. Modified UpdateSelection
18377 to only clear SelectedItems when a new item is selected and MultiSelect
18378 is enabled. CheckedItems and SelectedItems now subscribe to Changed
18379 event of ListViewItemCollection, and mark its list dirty whenever
18380 that event is fire. This allows us to return selected/checked items
18381 in the same order as they are in the Items collection. This matches
18384 2006-10-06 Chris Toshok <toshok@ximian.com>
18386 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18387 right mouse clicks. Fixes bug #79593.
18389 2006-10-06 Chris Toshok <toshok@ximian.com>
18391 * Splitter.cs: doh, fix splitters that don't want to cancel the
18392 movement when you drag them. Also, impose the limits on the
18393 values we send to the SplitterMovingEvent. Fixes #79598.
18395 2006-10-06 Jackson Harper <jackson@ximian.com>
18397 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18398 since we use this for auto scrolling also.
18400 2006-10-05 Chris Toshok <toshok@ximian.com>
18402 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
18403 beginning to think that most datagrid column types don't need this
18404 method. Fixes bug #79392.
18406 2006-10-05 Chris Toshok <toshok@ximian.com>
18408 * DataGrid.cs: move back to a more lazy scheme for creating the
18409 CurrencyManager, so we aren't updating it every time you set
18410 either DataSource or DataMember. Also, don't call
18411 RecreateDataGridRows if the currency manager hasn't changed.
18413 2006-10-05 Chris Toshok <toshok@ximian.com>
18415 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18416 emitted, SelectedIndex should already be updated. Fixes bug
18419 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
18421 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18422 ToolStripTextBox.cs: Initial commit.
18423 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18425 2006-10-05 Jackson Harper <jackson@ximian.com>
18427 * TabControl.cs: We need to invalidate the tab control area when
18428 new ones are added (duh).
18430 2006-10-03 Chris Toshok <toshok@ximian.com>
18432 * Form.cs (ProcessDialogKey): if the focused control is in this
18433 form and is a button, call its PerformClick method here. Fixes
18436 2006-10-04 Jackson Harper <jackson@ximian.com>
18438 * TabPage.cs: Ignore setting of Visible, and add an internal
18439 method for setting the controls visibility. TabPage's Visible
18440 property is a little strange on MS, this seems to make us
18441 compatible, and fixes cases where people set all the tab pages to
18443 * TabControl.cs: Use the new internal setting on tab pages
18446 2006-10-03 Mike Kestner <mkestner@novell.com>
18448 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18450 2006-10-03 Mike Kestner <mkestner@novell.com>
18452 * ListView.cs : use is_visible instead of Visible to check if
18453 scrollbars should be placed/sized. Also some max_wrap_width
18454 love for LargeIcon view. [Fixes #79533]
18456 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
18459 Make set_TextAlign() do actually update the align. Fixed #78403.
18461 2006-10-03 Chris Toshok <toshok@ximian.com>
18463 * DataGrid.cs: fix a crash when switching datasources if the
18464 vertical scrollbar is at someplace other than Value = 0. Also,
18465 reduce the number of recalculation passes we do in SetDataSource
18468 2006-10-03 Jackson Harper <jackson@ximian.com>
18470 * TextBoxBase.cs: Move the if value the same bail check up, we
18471 don't want to empty the document if it is already empty, this
18472 seems to severly mess up the caret. TODO: I should probably fix
18473 the empty statement to update teh caret somehow.
18475 2006-10-03 Chris Toshok <toshok@ximian.com>
18477 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18478 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18479 reflection, an internal row type, properties on said type, etc.)
18480 will work with our datagrid. Fixes #79531.
18482 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
18484 * FileDialog.cs: Don't crash if a path is not accessible
18485 (System.UnauthorizedAccessException). Fixes #79569.
18486 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18487 a ':' too. Return unknown icon for those paths/files.
18489 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
18491 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
18492 GetContainerControl returns null.
18494 2006-10-02 Chris Toshok <toshok@ximian.com>
18496 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18497 call to XGetWindowAttributes instead of "handle". fixes an X
18498 error using notifyicon after the NotifyIconWindow to Form base
18501 2006-10-02 Chris Toshok <toshok@ximian.com>
18503 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18504 server grab and looping we need to do to get down to the most
18505 deeply nested child window.
18506 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18507 QueryPointer again after the WarpPointer so we can generate a
18508 proper (fake) MotionNotify event to be enqueued in the destination
18510 (GetCursorPos): call QueryPointer.
18514 2006-10-02 Jackson Harper <jackson@ximian.com>
18516 * NotifyIcon.cs: Derive the notify icon from a form, so things
18517 like FindForm work on it.
18518 - Swallow the WM_CONTEXTMENU message, since that is generated on
18519 mouse down, and context menu is a mouse up kinda guy. I believe
18520 the correct fix here is probably to make the notify icon entirely
18521 NC area, but this seems to work fine for anyone not manipulating
18524 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
18526 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18527 ToolStripItemCollection.cs, ToolStripLabel.cs,
18528 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18529 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18530 Initial implementation.
18531 * TextRenderer.cs: Provide padding to MeasureText.
18533 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
18535 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18536 of ButtonBaseAccessibleObject. Fix bug #79552.
18538 2006-10-02 Jackson Harper <jackson@ximian.com>
18540 * MdiWindowManager.cs: When maximizing use the containers client
18541 rect, not it's bounds, so nc area is accounted correctly.
18542 - Use the parent form's size for the menu position, since the
18543 client isn't always the full form size.
18545 2006-10-01 Chris Toshok <toshok@ximian.com>
18547 * ScrollableControl.cs: make sure neither right_edge or
18548 bottom_edge are < 0, since they're used as LargeChange for the
18549 horiz/vert scrollbars respectively. Fixes #79539.
18551 2006-10-01 Chris Toshok <toshok@ximian.com>
18553 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18554 the xplatuix11 code can cause us to destroy/recreate our handle.
18558 - this code can be invoked many times for the same Hwnd. Make
18559 sure we only destroy the client window once (the first time this
18560 method is called). This fixes bug #79544.
18561 - Remove the call to the improperly bound XSync. why we had two
18562 bindings to this, I will never know, but this call resulted in
18563 events being discarded from the queue(!).
18564 - correct a misunderstanding of _XEMBED_INFO - the second atom is
18565 not our current state but the state we wish to be in. So, 0 if
18566 we don't want to be mapped. Change it to 1.
18567 (SystrayRemove): The XEMBED spec makes mention of the fact that
18568 gtk doesn't support the reparent of client windows away from the
18569 embedder. Looking at gtksocket-x11.c seems to agree with this.
18570 The only avenue we have for removing systray icons is to destroy
18571 them. We don't want the handle to go away for good, though, so
18572 call InternalRecreateHandle on the NotifyIconWindow. Fixes
18575 2006-10-01 Chris Toshok <toshok@ximian.com>
18577 * Form.cs (WndProc): inline the native_enabled variable usage into
18578 the cases in which it's used. Fixes #79536.
18580 2006-09-29 Mike Kestner <mkestner@novell.com>
18582 * ListView.cs : toggle the selection state for ctrl clicks in
18583 multiselect mode. [Fixes #79417]
18585 2006-09-29 Mike Kestner <mkestner@novell.com>
18587 * ListView.cs : kill CanMultiSelect and refactor the selection
18588 code to support multiselection in the absence of mod keys. Steal
18589 arrow/home/end keys by overriding InternalPreProcessMessage to
18590 restore regressed keynav behavior.
18593 2006-09-29 Jackson Harper <jackson@ximian.com>
18595 * MdiClient.cs: Repaint the titlebars when the active window is
18598 2006-09-29 Chris Toshok <toshok@ximian.com>
18600 * Application.cs: when entering a runloop with a modal, make sure
18601 the hwnd is enabled. Fixes #79480.
18603 2006-09-29 Chris Toshok <toshok@ximian.com>
18605 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18606 when ListManager.CanAddRows == false, bump us back one.
18608 * DataGridColumnStyle.cs (ParentReadOnly): remove the
18609 listmanager.CanAddRows check. This makes ArrayLists uneditable
18610 using a datagrid, which is not right.
18611 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18612 is an IEditable, but call property_descriptor.SetValue regardless.
18615 2006-09-29 Chris Toshok <toshok@ximian.com>
18617 * DataGridBoolColumn.cs: we need to test equality in the face of
18618 possible null values (as is the case with the default NullValue).
18619 This patch keeps us from crashing in that case.
18621 2006-09-29 Jackson Harper <jackson@ximian.com>
18623 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18624 here, since it will get called for every node collection in the
18625 tree. This is now done in the treeview once the sorting is
18627 * TreeView.cs: Recalculate the visible order, and update the
18628 scrollbars after sorting, set the top nope to the root so that the
18629 recalc actually works.
18631 2006-09-29 Chris Toshok <toshok@ximian.com>
18633 * LinkLabel.cs: more handling of the default link collection in
18634 the face of LinkArea manipulation. The default link collection
18635 contains 1 element (start=0,length=-1). If the user sets LinkArea
18636 to anything and the links collection is the default, clear it.
18637 Then only add the link if its nonempty. Fixes #79518.
18639 2006-09-29 Chris Toshok <toshok@ximian.com>
18641 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18642 piece correctly when we hit a '\n'. Fixes #79517.
18644 2006-09-29 Chris Toshok <toshok@ximian.com>
18646 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18647 change the binding of gdk_init_check to take two IntPtr's, and
18648 pass IntPtr.Zero for both of them. Fixes #79520.
18650 2006-09-29 Mike Kestner <mkestner@novell.com>
18652 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18655 2006-09-28 Jackson Harper <jackson@ximian.com>
18657 * XplatUIX11.cs: When translating NC messages make sure we go from
18658 whole window to screen, not client window to screen.
18659 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18660 method doesn't exist
18661 - Skip over controls that aren't forms when arranging.
18663 2006-09-28 Jackson Harper <jackson@ximian.com>
18665 * XplatUIWin32.cs: Clip the rect to the parent window.
18666 * XplatUIStructs.cs: Add clipping modes struct.
18667 * InternalWindowManager.cs: New private method that factors title
18668 bar heights in when calculating the pos of an NC mouse message.
18669 - Use SendMessage to force a paint when the form's size is changed
18670 instead of painting the decorations immediately.
18671 - Don't let the NC button click messages get to DefWndProc,
18672 because they will attempt to handle windowing themself, and this
18673 messes up z-order (it will put them in front of the scrollbars).
18674 * XplatUIX11.cs: Make sure that we don't reset window managers if
18675 we already have one (ie the window is an MDI window).
18677 2006-09-28 Chris Toshok <toshok@ximian.com>
18679 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
18680 menu code really needs going over.
18682 2006-09-27 Chris Toshok <toshok@ximian.com>
18684 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
18685 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18686 window is maximizable. So, we need to make sure that even if we
18687 clear the border/wm frame of those functions, they're still
18688 available (basically, we remove the decoration without removing
18689 the function). Half the fix for #79338.
18691 2006-09-27 Chris Toshok <toshok@ximian.com>
18693 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18696 2006-09-27 Chris Toshok <toshok@ximian.com>
18698 * Splitter.cs: reorder things a bit so that we don't actually
18699 draw/move the splitter until after calling OnSplitterMoving. This
18700 lets users cancel/disallow the movement by explicitly setting
18701 event.SplitX/SplitY. Fixes #79372.
18703 2006-09-27 Jackson Harper <jackson@ximian.com>
18705 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18706 because it is most likely on a window being destroyed, and that
18707 will give us an X11 error.
18709 2006-09-27 Chris Toshok <toshok@ximian.com>
18711 * PropertyGridView.cs: half of the fix for #78190. Clicking on
18712 the dropdown button now toggles between showing and hiding the
18713 dropdown. Also, get rid of dropdown_form_showing and just use
18714 dropdown_form.Visible. We still don't do a grab, but I'll leave
18715 that part to someone who has handled Capture-fu before.
18717 2006-09-27 Chris Toshok <toshok@ximian.com>
18719 * DataGrid.cs: return false if alt isn't pressed when '0' is
18720 pressed. this keeps the '0' key from being swallowed, and fixes
18723 2006-09-27 Chris Toshok <toshok@ximian.com>
18725 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18726 Calling Refresh (in response to a scrollbar event) screws up the
18727 scrollbar painting. Fixes bug #78923.
18729 2006-09-27 Chris Toshok <toshok@ximian.com>
18731 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18732 then insert into hashtable" blocks threadsafe.
18734 2006-09-27 Chris Toshok <toshok@ximian.com>
18736 * MessageBox.cs (CreateParams): the styles should be |'ed with our
18737 baseclass's, since otherwise the
18738 ControlBox/MinimizeBox/MaximizeBox assignments above have no
18739 effect. This gets the close button back in messageboxes.
18741 2006-09-27 Chris Toshok <toshok@ximian.com>
18743 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18744 flag, not just != 0. this makes flags that are actually multiple
18745 bits (like WS_CAPTION) work. fixes bug #79508.
18747 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
18749 * PageSetupDialog.cs: add support for getting and settings the
18750 paper size, source and orientation.
18752 2006-09-26 Chris Toshok <toshok@ximian.com>
18754 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18755 and caption == "", we need to remove the resize handles as well as
18758 * Control.cs (set_Text): turns out that setting Text on a form
18759 should change the WM styles on the window, since if ControlBox ==
18760 false, the only way to get a window border is to have a non-""
18761 Text property. check winforms/forms/text.cs for an example. so,
18762 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18763 update both window styles and title. This fixes a lot of dialogs
18764 (including the preferences dialog in MonoCalendar.)
18766 2006-09-26 Chris Toshok <toshok@ximian.com>
18768 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18769 control isn't a Form), call Win32ShowWindow to hide the window,
18770 but don't update the control Visible property. When we reparent
18771 back to a parent control, call SetVisible in order for the
18772 window's visibility to be reinstated.
18774 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18777 * Control.cs (ControlCollection.Remove): remove that value.Hide()
18778 call for good, since it breaks MonoCalendar (and other things I'm
18779 sure.) Also, set all_controls to null *after* the owner calls,
18780 which end up regenerating it.
18781 (ChangeParent): allow new_parent to be == null, passing
18782 IntPtr.Zero down to XplatUI.
18784 this fixes #79294 the right way.
18786 2006-09-26 Mike Kestner <mkestner@novell.com>
18788 * GridEntry.cs : internal SetParent method.
18789 * PropertyGrid.cs : attach to property changed on the proper
18790 target if we have a hierarchical grid with subobjects. Setup
18791 GridItem.Parent for hierarchical items.
18792 * PropertyGridView.cs : Set value on the correct target for
18793 hierarchical grids. [Fixes #78903]
18795 2006-09-26 Chris Toshok <toshok@ximian.com>
18797 * Control.cs (ChildNeedsRecreating): this should return true if
18798 either we're being recreated and the child is in our list, or our
18799 parent is waiting for our recreation.
18801 2006-09-26 Chris Toshok <toshok@ximian.com>
18803 * Control.cs (ControlCollection.Remove): reinstate the
18804 value.Hide() call as suggested in bug #79294.
18806 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
18808 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18809 coordinates (versus a relative move).
18811 2006-09-26 Chris Toshok <toshok@ximian.com>
18813 * Control.cs: rework child recreation a little bit. It turns out
18814 that we race between the DestroyNotify the WM_DESTROY message. If
18815 the parent gets its DestroyNotify before the child gets the
18816 WM_DESTROY message, the child ends up not recreating (since the
18817 parent finishes its recreation on DestroyNotify, and the child
18818 checks ParentIsRecreating.)
18820 So, instead we store off a list of all the child controls which
18821 need to be recreated when the parent control starts to recreate
18822 itself. Then, when child controls get their WM_DESTROY message we
18823 check to see if they're in the parent's pending recreation list,
18824 and if so, we recreate. This removes all dependency on ordering
18825 from the code and fixes the initial MonoCalendar upgrade dialog.
18827 2006-09-26 Jackson Harper <jackson@ximian.com>
18829 * TextControl.cs: Use the Line to get the length of the line,
18830 since soft line breaks can change the end line.
18832 2006-09-26 Chris Toshok <toshok@ximian.com>
18834 * Control.cs (ControlCollection.AddImplicit): don't add the
18835 control again if it's already in one of our lists. This keeps us
18836 from adding controls over and over again for comboboxes when their
18837 handle gets recreated (as the combobox adds implicit controls in
18838 OnHandleCreated). Fixes the X11 errors in bug #79480.
18840 2006-09-26 Jackson Harper <jackson@ximian.com>
18842 * TextControl.cs: When deleting characters make sure that any
18843 orphaned zero lengthed tags get deleted.
18844 - Fix ToString for zero lengthed tags.
18846 2006-09-25 Jackson Harper <jackson@ximian.com>
18848 * TextControl.cs: When getting a tag at the location there can be
18849 multiple tags at the same spot, these are 0-lengthed tags that
18850 appear when extra formatting has been stuck in a location. We
18851 need to pull out the last of these 0 lengthed tags.
18853 2006-09-25 Jackson Harper <jackson@ximian.com>
18855 * TextControl.cs: Fix print out in debug method.
18856 * TextBoxBase.cs: When text is set bail if we are setting to the
18859 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
18861 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18862 It is now possible to change the selected index in a FontXXXListBox
18863 with the up and down arrow keys from the FontXXXTextBoxes.
18864 Also, send the FontXXXTextBox mouse wheel event to the corresponding
18865 FontXXXListBoxes to match ms.
18867 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
18869 * SystemInformation.cs: Return a clone of the theme's MenuFont because
18870 anyone can dispose it, anytime. All other properties returns enums,
18871 structs or basic types so they don't need such tricks.
18873 2006-09-22 Jackson Harper <jackson@ximian.com>
18880 * XplatUIDriver.cs: Update interface to add a primary selection
18881 flag, so the driver can use the primary selection buffer if
18883 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18885 * RichTextBox.cs: We need to supply the data object to paste now
18886 (so we can choose to supply CLIPBOARD or PRIMARY).
18887 * TextBoxBase.cs: Supply data object to paste (see above).
18888 - Middle click uses the primary selection data object.
18890 2006-09-21 Chris Toshok <toshok@ximian.com>
18892 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18893 of SetWMStyles. It's still a rat's nest and is largely
18894 order-dependent which I dislike immensely. This also fixes the X
18895 button disappearing from toplevel forms.
18897 2006-09-21 Mike Kestner <mkestner@novell.com>
18899 * ListBox.cs: move Jordi's click/dblclick raising code to the
18902 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
18904 * ListBox.cs: Fixes 79450
18906 2006-09-21 Mike Kestner <mkestner@novell.com>
18908 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18909 to deal with people updating the TreeNodeCollection after the tree
18910 is disposed. "Fixes" 79330.
18912 2006-09-20 Jackson Harper <jackson@ximian.com>
18914 * TextControl.cs: Push the cursor record onto the undo stack
18915 before the delete action. This fixes 78651.
18917 2006-09-20 Jonathan Chambers <joncham@gmail.com>
18919 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
18920 CreateParams. Fixes 79329.
18922 2006-09-19 Chris Toshok <toshok@ximian.com>
18924 * XplatUIX11.cs: a couple of blanket code massage passes to clean
18925 things up a bit. First, get rid of the NetAtoms array (and the NA
18926 enum), and just embed the atoms as static fields. Also, add a
18927 couple of functions (StyleSet and ExStyleSet) to clean up all the
18928 bitmask testing of styles.
18930 * X11Structs.cs: remove the NA enum, not needed anymore.
18932 2006-09-19 Chris Toshok <toshok@ximian.com>
18934 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
18935 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
18936 added cleanup to get MessageBox titles appearing again, which were
18937 broken by my earlier fix for caption-less/ControlBox-less windows.
18939 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
18941 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
18942 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
18943 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
18944 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
18945 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
18946 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
18947 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
18948 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
18949 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
18950 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
18951 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
18953 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
18954 ToolStripButton.cs: Stubs needed for above.
18955 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
18957 2006-09-15 Chris Toshok <toshok@ximian.com>
18960 - make the MessageQueues hashtable Synchronized.
18962 - SendMessage: if the Hwnd is owned by a different thread, use the
18963 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
18964 thread. Fixes bug #79201.
18966 2006-09-15 Chris Toshok <toshok@ximian.com>
18968 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
18969 ControlBox == false, we disallow maximize/minimize/close. If the
18970 form Caption is "" we also disallow move (and get rid of the Title
18971 decoration). Unfortunately, regardless of how things are set,
18972 we're stuck with the Title and WM menu.
18974 2006-09-15 Chris Toshok <toshok@ximian.com>
18976 * Application.cs: add locking around the static message_filters
18977 ArrayList, part of #79196.
18979 2006-09-15 Chris Toshok <toshok@ximian.com>
18981 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18982 Form.ControlBox == false, the window has no titlebar nor resize
18983 handles. fixes bug #79368.
18985 2006-09-15 Chris Toshok <toshok@ximian.com>
18987 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18988 >= 0. Fixes bug #79370.
18990 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
18991 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18993 Add properties: LayoutEngine, Margin, DefaultMargin.
18994 Add method: GetPreferredSize.
18995 Move layout logic from PerformLayout to layout engines.
18997 2006-09-13 Chris Toshok <toshok@ximian.com>
18999 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
19000 fix for #79326 broke #78718, so this change addresses that.
19002 - in SendWMDestroyMessages remove the call to
19003 CleanupCachedWindows, since we might be recreating the control and
19004 need to maintain the references to right Hwnd handles. Also, set
19005 the zombie flag to true for each of the children in the hierarchy
19006 instead of calling hwnd.Dispose. This will cause GetMessage to
19007 ignore all events for the window except for DestroyNotify.
19009 - In GetMessage, ignore messages except for DestroyNotify for
19012 * Control.cs: revert the is_recreating fix from the last
19013 ChangeLog. It's definitely "right", but it breaks switching from
19014 an MDI form to a non-MDI form. Will need to revisit that.
19016 * Hwnd.cs: add a zombie flag, which means "the
19017 client_window/whole_window handles are invalid, but we're waiting
19018 for the DestroyNotify event to come in for them". Set the flag to
19019 false explicitly if setting WholeWindow/ClientWindow, and also
19022 2006-09-13 Chris Toshok <toshok@ximian.com>
19024 * XplatUIX11.cs: rework window destruction slightly.
19026 - when destroying the windows associated with a control, we don't
19027 need 2 separate XDestroyWindow calls. Just the one for the
19028 whole_window (or for client_window if whole_window is somehow
19029 IntPtr.Zero -- can this happen?) is enough.
19031 - reworked SendWMDestroyMessages slightly, so we always dispose
19032 the child control hwnd's after sending the messages.
19034 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
19035 the two places it was used (one was even using hwnd.Handle and the
19036 other hwnd.client_window. ugh), adding another call in
19037 SendWMDestroyMessages. We need this new call because now the
19038 DestroyNotify events in the queue will be ignored for the child
19039 controls (as their hwnd's were disposed, and the window id's
19040 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
19042 - this fixes bug #79326.
19044 2006-09-13 Chris Toshok <toshok@ximian.com>
19046 * Control.cs: don't always set is_recreating to false at the end
19047 of RecreateHandle, since sometimes we're not done (and won't be
19048 until WndProc handles the WM_DESTROY message). Also, set
19049 is_recreating to false in the WM_DESTROY handling code. Part of
19050 the fix for bug #79326.
19052 2006-09-13 Miguel de Icaza <miguel@novell.com>
19054 * X11DesktopColors.cs: Start the droppage of debugging messages.
19056 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19058 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
19060 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19062 2006-09-12 Chris Toshok <toshok@ximian.com>
19064 * DataGrid.cs (get_ListManager): if the list_manager is null, try
19065 to create it using SetDataSource. Fixes bug #79151.
19067 2006-09-11 Chris Toshok <toshok@ximian.com>
19069 * XEventQueue.cs: add a DispatchIdle property.
19071 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19072 either the queue is null, or the queue has DispatchIdle set to
19074 (DoEvents): set queue.DispatchIdle to false around the
19075 peek/translate/dispatch message loop in this method. This keeps
19076 Application.Doevents from emitting idle events. Part of the fix
19079 2006-09-11 Chris Toshok <toshok@ximian.com>
19081 * DataGrid.cs (set_DataSource): make this work for both the
19082 winforms/datagrid test and ReportBuilder. It seems as though when
19083 we've created a ListManager (or maybe it's if we have a
19084 BindingContext?), when we set the DataSource it clears the
19085 DataMember to "". otherwise we reuse the datamember. Fixes bug
19088 2006-09-11 Chris Toshok <toshok@ximian.com>
19090 * XplatUIX11.cs: deal with queue being null, which happens in all
19091 the Clipboard functions. Fixes one of the two problems mentioned
19094 2006-09-11 Chris Toshok <toshok@ximian.com>
19096 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19097 button on various spots (including outside the menu) works closer
19098 to MS, and doesn't crash. Fixes #79343.
19100 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
19102 * ListView.cs: Do not initialize item_sorter in init. To match MS,
19103 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19104 and the internal comparer is set. When a new ListViewItemSorter is set,
19105 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19106 was specified. No further processing is necessary if SortOrder is set
19107 to it's current value. If Sorting is modified to None, and View is
19108 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19109 (either custom or our internal ItemComparer) to null, on 1.0 profile
19110 only set item_sorter to null if its our internal IComparer. If Sorting
19111 is modified to Ascending or Descending, then use our internal IComparer
19112 if none is set, and if the current IComparer is our internal one then:
19113 on 2.0 profile always replace it with one for new Sorting, and on 1.0
19114 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19115 Enum.IsDefined to verify whether a valid View value is specified in
19116 its setter. Automatically sort listview items when listview is
19117 created. In Sort, do nothing if ListView is not yet created, or if
19118 no item_sorter is set (no Sorting was set, Sorting was explicitly set
19119 to None or ListViewItemSorter was set to null). Added Sort overload
19120 taking a bool to indicate whether the ListView should be redrawn when
19121 items are sorted (we use this in ListViewItemCollection to avoid double
19122 redraws). Modified our internal IComparer to take the sort order into
19123 account. In Add and AddRange methods of ListViewItemCollection, also
19124 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19125 view), but use overload with noredraw option to avoid double redraw.
19126 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19127 true when View is Tile, and do the same when attempting to set View to
19128 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19129 for selected/checked indices, as it involves overhead when sorting is
19130 done while these collections are not used all that often. Instead
19131 we'll build the indices on demand. Modified IList implementation of
19132 CheckedIndexCollection to use public methods if object is int.
19133 Modified CheckedListViewItemCollection to hide checked items if
19134 ListView.CheckBoxes is false. Removed LAMESPEC remark in
19135 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19136 IList implementation in SelectedIndexCollection to use public methods
19137 if object is int. Modified SelectedListViewItemCollection to hide
19138 selected items if listview is not yet created.
19139 * ListViewItem.cs: CheckedIndices list no longer needs to be
19140 maintained separately (see ListView changes). Also clone font, fixes
19143 2006-09-11 Mike Kestner <mkestner@novell.com>
19145 * ComboBox.cs: if we are updating the contents of the currently
19146 selected index, refresh the control or the textbox selection.
19149 2006-09-11 Mike Kestner <mkestner@novell.com>
19151 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
19152 the 'specified' logic has been moved there. This seems like a bug
19153 in Control.cs, since our current SetBoundsCore completely ignores
19154 the specified parameter. Peter's commit seems to indicate that is
19155 the way the MS control implementation works. [Fixes #79325]
19157 2006-09-10 Jonathan Chambers <joncham@gmail.com>
19159 * XplatUI.cs: Set default_class_name to be composed
19160 of current domain id. This allows MWF to be loaded in multiple
19163 2006-09-09 Miguel de Icaza <miguel@novell.com>
19165 * X11Keyboard.cs: If we are unable to obtain the input method, do
19166 not call CreateXic to create the input context. Should fix
19169 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
19171 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19172 Simplified gnome support by adding more pinvokes to get the
19173 icon for a file or mime type.
19175 2006-09-08 Jackson Harper <jackson@ximian.com>
19177 * MenuAPI.cs: Deslect popup context menu items before closing the
19178 window, so that you don't see the previously selected item
19179 selected when you reopen the menu.
19180 * TextControl.cs: Update the cursor position even if we don't have
19181 focus. This fixes typing in things like the ComboBox. I'm not
19182 totally sure we should always set the visibility if we don't have
19183 focus, but couldn't find any corner cases where the cursor showed
19184 up when it shouldn't.
19186 2006-09-08 Chris Toshok <toshok@ximian.com>
19188 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19189 our arrays are length 256. & 0xff before indexing. Fixes the
19190 crash in bug #78077.
19192 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19194 * ThemeWin32Classic.cs:
19195 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19196 is true. Handle that check box too.
19198 2006-09-07 Chris Toshok <toshok@ximian.com>
19200 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
19203 2006-09-07 Chris Toshok <toshok@ximian.com>
19205 * Control.cs: in set_BackColor only do the work if
19206 background_color != value.
19208 * XplatUIX11.cs: move the clearing of invalid areas (both client
19209 and nc) to the same block of code where we set (nc_)expose_pending
19210 to false. That is, move it from PaintEventEnd to PaintEventStart,
19211 so things that cause invalidates from within OnPaint will trigger
19212 another call to OnPaint. Fixes bug #79262.
19214 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
19216 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19217 * FileDialog.cs: Fix typo
19219 2006-09-07 Jackson Harper <jackson@ximian.com>
19221 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
19222 for tab pages if they have any.
19224 2006-09-06 Mike Kestner <mkestner@novell.com>
19226 * Splitter.cs: use the "current" rect when finishing drag handle
19227 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
19229 2006-09-06 Mike Kestner <mkestner@novell.com>
19231 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19232 support offset splitters. [Fixes #79298]
19234 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
19236 * Mime.cs: Fixed a bug that could override the global mime type
19239 2006-09-05 Jackson Harper <jackson@ximian.com>
19241 * TabControl.cs: Better calculation method for setting the slider
19242 pos. Prevents crashes on really wide tabs.
19243 - Draw Image on tab pages if an image list is used.
19245 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19247 * MonthCalendar.cs: When Font changes, the Size should be
19248 updated to fit the new font's space requirements.
19250 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
19252 * ListBox.cs: If the items are cleared with Items.Clear set
19255 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19257 * MonthCalendar.cs: Handle arrow keys as input keys. Also
19258 fire DateChanged event instead of DateSelected event when
19259 the date was changed by keyboard interaction.
19261 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19263 * DateTimePicker.cs: Handle DateChanged for the associated
19264 month_calendar control, and set month_calendar.Font from
19265 OnFontChanged method, as well as resize the height of the
19266 control when needed. Make PreferredHeight proportional.
19268 2006-09-01 Chris Toshok <toshok@ximian.com>
19270 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19273 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19275 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
19277 * FileDialog.cs: Set ClientSize instead of window size, to allow space
19278 for decorations (Fixes #79219)
19280 2006-09-01 Mike Kestner <mkestner@novell.com>
19282 * ComboBox.cs: first stab at sorting plus some selection handling
19283 fixes to bring us more in line with MS behavior. Also switches back
19284 to index based selection. Alternative patches for index-based
19285 selection were provided by Jackson Harper, Carlos Alberto Cortez,
19286 and latency@gmx.de on bug 78848. I assume they were similar to this
19287 code I've had simmering in my tree forever.
19290 2006-09-01 Chris Toshok <toshok@ximian.com>
19292 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19293 when setting list position guard against ending up with a -1 index
19294 (the other part of the fix for #78812). Should probably make sure
19295 we don't need the analogous fix in the ItemDeleted case.
19298 - in SetDataSource, work around the fact that the way
19299 OnBindingContextChanged is invoked will cause us to re-enter this
19300 method. I'll remove the hack once I investigate
19301 OnBindingContextChanged.
19303 - fix the logic in set_DataSource and set_DataMember (basically
19304 what to do if the other of the two is null.)
19306 - in OnListManagerItemChanged, we need to take into account the
19307 edit row when deciding whether or not to call RecreateDataGridRows
19308 (part of the fix for #78812).
19310 2006-09-01 Jackson Harper <jackson@ximian.com>
19312 * Splitter.cs: Don't do anything if there is no control to affect
19313 (prevents us from crashing in weird tet cases).
19314 * TreeView.cs: Bounding box for the mouse movement reverting
19315 focus/selection back to previously selected node. This matches
19316 MS, and makes the tree a lot more useable.
19317 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19318 use clipping so they are not drawn. This fixes when the control
19319 is set to have a transparent background, or if it was over an
19322 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
19324 * MimeIcon.cs: Improved handling for reading default icons when
19325 using gnome (2.16 made it necessary). Check and read svg icons
19326 first, then 48x48 and then 32x32 icons.
19328 2006-08-31 Chris Toshok <toshok@ximian.com>
19330 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19333 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19334 ProcessKeyPreview. Fixes part of #77806.
19336 * DataGrid.cs: big patch.
19338 - revert the queueing up of DataSource/DataMember if inside
19339 BeginInit/EndInit calls. That's not the way the datagrid achieves
19340 its delayed databinding. Instead, call SetDataSource in
19341 OnBindingContextChanged. This mimic's MS's behavior, and fixes
19344 - Also, it wasn't mentioned in #78811, but the test case exhibits
19345 behavior that was lacking in our datagrid implementation - Columns
19346 that have mapping names that don't exist in the datasource's
19347 properties aren't shown. Yuck. To fix this I added the bound
19348 field to the column style, and basically any calculation to figure
19349 out anything about columns uses a loop to find the bound columns.
19350 still need to investigate if I can cache an array of the bound
19351 columns or if the indices must be the same.
19353 - When setting CurrentCell, we no longer abort if the cell being
19354 edited was in the add row. This fixes the other part of #77806.
19356 - The new code also fixes #78807.
19358 * ThemeWin32Classic.cs: perpetrate the same disgusting
19359 column.bound field hack, and only render bound fields.
19361 2006-08-31 Chris Toshok <toshok@ximian.com>
19363 * DataGridColumnStyle.cs: add bound field. this field is true if
19364 the datasource has a property corresponding to the mapping name.
19366 * DataGridTableStyle.cs: set the bound field on the column styles
19367 depending on whether or not we have a column for that property.
19369 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
19371 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
19372 splitter control (fixes #79228)
19374 2006-08-31 Chris Toshok <toshok@ximian.com>
19376 * DataGridColumnStyle.cs: we need to delay the assignment of
19377 property descriptor until the last possible moment due to the lazy
19378 databinding stuff in the datagrid. Also, fix the exceptions
19379 thrown by CheckValidDataSource to match MS.
19381 2006-08-31 Jackson Harper <jackson@ximian.com>
19383 * Form.cs: When activated select the active control, if there is
19384 no active control, we select the first control.
19385 * XplatUIX11.cs: If there is no focus control when we get a
19386 FocusIn event, find the toplevel form and activate it. This
19387 occurs when you popup a window, it becomes the focus window, then
19388 you close that window, giving focus back to the main window.
19390 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19392 * MonthCalendar.cs:
19393 * ThemeWin32Classic.cs: Cache Font in bold style, as well
19394 as StringFormat with Center alignments in MonthCalendar,
19395 instead of creating new ones when drawing the control.
19396 Also, draw the month name in bold style.
19398 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
19401 - PerformLayout(): It would seem MS performs the fill even if the
19402 control is not visible (part of #79218 fix)
19403 - ResetBackColor(): Use the setter to reset the color, to allow
19404 overriders to catch the change.
19406 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19407 - CreateHandle(): dito (part of $79218 fix)
19408 - Don't set an icon if we have a dialog
19409 * ScrollableControl.cs:
19410 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19411 - ScrollIntoView(): No need to scroll if control is already visible
19412 (resolves fixme and fixes #79218)
19414 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19416 * MonthCalendar.cs: Change proportions in SingleMonthSize
19417 to match the aspect of the original control.
19419 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
19421 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19422 get updated when they get maximized.
19424 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
19426 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19428 2006-08-29 Chris Toshok <toshok@ximian.com>
19430 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19432 2006-08-29 Jackson Harper <jackson@ximian.com>
19434 * TreeView.cs: Need to track selected node and highlighted node,
19435 they aren't always the same thing, when the mouse is down on a
19436 node it is hilighted, but not selected yet.
19437 - Do the HideSelection stuff right
19438 - Need to focus on rbutton mouse down. And redraw selection when
19439 right click is mouse upped.
19441 2006-08-29 Mike Kestner <mkestner@novell.com>
19443 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19444 when SubItems.Count < Columns.Count. [Fixes #79167]
19446 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19448 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19450 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
19452 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19453 from X. Only send based on ConfigureNotify if we don't have the
19454 correct location in hwnd (if the window manager moved us)
19456 2006-08-28 Mike Kestner <mkestner@novell.com>
19458 * ListView.cs: remove a TODO.
19459 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19460 [Fixes ListView part of #79166]
19462 2006-08-28 Mike Kestner <mkestner@novell.com>
19464 * ListView.cs: move wheel handler to parent since it is focused
19465 instead of the item_control now. [Fixes #79177]
19467 2006-08-28 Mike Kestner <mkestner@novell.com>
19469 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19470 when the control is focused. [Fixes #79171]
19472 2006-08-28 Mike Kestner <mkestner@novell.com>
19474 * ListView.cs: size the item and header controls for empty and
19475 unscrollable views.
19476 * ThemeWin32Classic.cs: draw disabled backgrounds.
19479 2006-08-28 Chris Toshok <toshok@ximian.com>
19481 * Form.cs: remove unused "active_form" static field.
19483 * Hwnd.cs: lock around accesses to static windows collection.
19485 * Application.cs: lock threads in Exit ().
19487 2006-08-28 Chris Toshok <toshok@ximian.com>
19489 * NativeWindow.cs: lock around accesses to window_collection.
19491 2006-08-28 Chris Toshok <toshok@ximian.com>
19493 * Control.cs: err, fix this the right way, by locking on controls
19494 when using it. not by making it synchronized.
19496 2006-08-28 Chris Toshok <toshok@ximian.com>
19498 * Control.cs: make the static "controls" field synchronized, as it
19499 gets updated from multiple threads.
19501 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19503 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19504 Prevent other threads from exiting when calling thread sets quit state.
19505 * XEventQueue.cs: Added PostQuitState property
19507 2006-08-27 Chris Toshok <toshok@ximian.com>
19509 * AsyncMethodData.cs: add a slot for the window handle.
19511 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19512 window (the destination control's window, not the foster window).
19514 * Control.cs (BeginInvokeInternal): store the window's handle in
19515 the AsyncMethodData.
19518 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19521 - PostQuitMessage: Removed resetting S.D display handle, we might have
19522 another loop started after calling PostQuitMessage (Fixes #79119)
19523 - Created destructor to reset S.D handle
19525 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
19527 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19529 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19531 * TextControl.cs (Insert): Update the caret position even if we don't
19532 have a handle yet, just don't call the driver in that case.
19533 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19534 to the end of the new selection text (Fixes #79184)
19536 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19538 * Form.cs (Activate): Only activate if the handle is created)
19540 - Mark window as invisible when it's disposed
19541 - Check if window handle is created when setting window visible,
19542 instead of relying just on the is_created variable
19543 - Check if object is disposed when creating the control (Fixes #79155)
19545 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19547 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19548 when allowing layout again. Otherwise we re-generate the anchoring
19549 distance to the border again and actually alter what the user wanted
19550 This is ugly, it'd be better if we used DisplayRectangle instead of
19551 ClientRectangle for Control.UpdateDistances, but that causes us to
19552 have other problems (initial anchoring positons would be wrong)
19555 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19558 - The size and location setters shouldn't go directly to
19559 SetBoundsCore, but to SetBounds, which triggers layout on the
19560 parent, then calls SetBoundsCore. (Related to fix for #78835)
19561 - SetBounds: Moved actual location update code into this function
19562 from SetBoundsCore, to match MS. Added call to PerformLayout if
19563 we have a parent (to trigger resizing of anchored parents if the
19564 child size has changed (see testcase for #78835)
19565 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
19567 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19569 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19571 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19572 System.Drawing when a toplevel window gets closed; there might
19573 be other toplevel windows belonging to the same app (Fixes #78052)
19575 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
19577 * FileDialog.cs: After reading FileDialog settings from mwf_config
19578 use Desktop prefix only if a real folder doesn't exist anymore.
19579 * FontDialog.cs: Added char sets.
19580 It is now possible to select the font, size or style with the
19583 2006-08-25 Kornél Pál <kornelpal@gmail.com>
19585 * PrintPreviewDialog.cs: Use assembly name constants.
19587 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19589 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19590 scrollbar from whacking it's buttons)
19592 2006-08-24 Chris Toshok <toshok@ximian.com>
19594 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
19595 in this patch (aggregating setting Left/Top/Width/Height to
19596 setting Bounds on the scrollbars), but the crux of the fix is in
19597 Recalculate, where we scroll by the remaining scroll_position if
19598 we're hiding a scrollbar. The 2*$5 reward in the comment is
19601 2006-08-24 Jackson Harper <jackson@ximian.com>
19604 * MdiWindowManager.cs: If the form is made a non-mdi window we
19605 need to remove the form closed event so that closing forms works
19608 2006-08-24 Jackson Harper <jackson@ximian.com>
19610 * Control.cs: Make IsRecreating internal so that the driver can
19612 - Temporarily remove the Hide when controls are removed, its
19613 making a whole bunch of things not work because visibility isn't
19614 getting reset elsewhere correctly
19615 * Form.cs: Need to do a full handle recreation when the mdi parent
19617 * XplatUIX11.cs: If we are recreating handles don't dispose the
19618 HWNDs. What was happening is the handles were being recreated in
19619 SendWMDestroyMessages, but then flow continued on in that method
19620 and destroyed the new handles.
19622 2006-08-23 Jackson Harper <jackson@ximian.com>
19624 * Form.cs: MdiClient is always at the back of the bus
19625 * Control.cs: When the order of items in the collection is changed
19626 we need to reset the all_controls array
19627 - do the same sorta setup thats done when adding a control when a
19628 control is set on the collection.
19630 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19632 * TextBoxBase.cs (get_Text): Return an empty array if our document
19633 is empty (fixes #79052)
19635 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19637 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19638 on WM_SYSCHAR messages (fixes #79053)
19640 2006-08-23 Chris Toshok <toshok@ximian.com>
19642 * DataGrid.cs: fix flickering when scrolling vertically.
19644 2006-08-23 Chris Toshok <toshok@ximian.com>
19646 * DataGrid.cs (EndEdit): only invalidate the row header when we
19649 2006-08-23 Chris Toshok <toshok@ximian.com>
19651 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19652 methods. fixes the flicker when scrolling around.
19654 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19656 * FileDialog.cs: Making sure the control is created before we get a
19657 chance to use it with BeginInvoke (Fixes #79096)
19659 2006-08-23 Chris Toshok <toshok@ximian.com>
19661 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19662 width to use when painting the rows.
19664 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
19667 - Throw ArgumentException if a negative value is passed to SelectionLength
19668 - Update the selection end if start is moved. end needs to be always
19669 after start. (Fixes #79095)
19670 - Track selection length; MS keeps the selection length even if start
19671 is changed; reset on all other operations affection selection
19673 2006-08-22 Jackson Harper <jackson@ximian.com>
19675 * TreeView.cs: Make sure both scrollbars get displayed and sized
19676 correctly when the other bar is visible.
19677 - Use the original clip rectangle for checking if the area between
19678 the two scrollbars is visible, not the viewport adjusted clipping
19681 2006-08-22 Jackson Harper <jackson@ximian.com>
19683 * Binding.cs: We don't use IsBinding because it requires the
19684 control to be created, which really shouldn't be necessary just to
19685 set a property on the control.
19687 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19689 * ComboBox.cs: Some CB.ObjectCollection methods must throw
19690 ArgumentNullReferenceException when the argument is null.
19692 2006-08-21 Jackson Harper <jackson@ximian.com>
19694 * Timer.cs: Track the thread that the timer is started in (NOT
19695 CREATED), this way messages for it will only be triggered on its
19697 * XEventQueue.cs: Track the timers here, this makes timers per
19699 * XplatUIX11.cs: The timers are moved to the XEventQueue.
19701 2006-08-19 Chris Toshok <toshok@ximian.com>
19703 * XplatUIX11.cs: after further communication with pdb, we get the
19704 best of both worlds. SetZOrder working for un-Mapped windows, and
19705 no X errors for un-mapped windows.
19707 2006-08-19 Chris Toshok <toshok@ximian.com>
19709 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19710 as it was causing pdn toolbars to not have the correct stacking.
19712 2006-08-18 Mike Kestner <mkestner@novell.com>
19714 * ListView.cs : guard against negative ClientArea.Width in scrollbar
19715 calculation. Not sure why control should ever be setting a negative
19716 width though. Fixes #78931.
19718 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19720 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19721 null items in ObjectCollection class.
19722 * ListBox.cs.: Likewise.
19724 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
19726 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19727 as the base method in ThemeWin32Classic should work fine.
19730 2006-08-18 Jackson Harper <jackson@ximian.com>
19732 * Binding.cs: When validating if the value entered doesn't convert
19733 properly reset to the old value.
19734 * RadioButton.cs: Don't fire click when we get focus.
19736 2006-08-18 Jackson Harper <jackson@ximian.com>
19738 * FileDialog.cs: Paint the selection on the directory combobox the
19741 2006-08-17 Jackson Harper <jackson@ximian.com>
19743 * ErrorProvider.cs: Don't allow the error control to be selected.
19744 * Control.cs: Don't send the SetFocus messages, the control
19745 activation will do this, and if we do it blindly here validation
19748 2006-08-17 Jackson Harper <jackson@ximian.com>
19751 * ContainerControl.cs: Make validation events fire in the correct
19752 order. TODO: For some reason the first validation event is not
19755 2006-08-17 Mike Kestner <mkestner@novell.com>
19757 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19759 2006-08-17 Mike Kestner <mkestner@novell.com>
19761 * ComboBox.cs : implement scroll wheel support for popped-down
19762 state. Fixes #78945.
19764 2006-08-17 Jackson Harper <jackson@ximian.com>
19766 * TreeView.cs: Specify treeview actions (old patch that didn't get
19767 committed for some reason).
19768 - Don't let the mouse wheel scroll us too far. Just want to make
19769 the bottom node visible, not scroll it all the ways to the top.
19771 2006-08-17 Jackson Harper <jackson@ximian.com>
19773 * XplatUIX11.cs: Mouse wheel events go to the focused window.
19775 2006-08-17 Mike Kestner <mkestner@novell.com>
19777 * ComboBox.cs : don't do mouseover selection in simple mode.
19779 2006-08-16 Jackson Harper <jackson@ximian.com>
19781 * Form.cs: Fire the closing events for all the mdi child windows
19782 when a window is closed. If the cancel args are set to true, the
19783 main window still gets the event fired, but it doesn't not close.
19784 * MdiWindowManager.cs: Do this closing cleanup in a Closed
19785 handler, instead of when the button is clicked, so cancelling the
19786 close works correctly.
19787 * ComboBox.cs: Send the mouse down to the scrollbar.
19789 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19791 * ListBox.cs: When passing 'null' to SelectedItem,
19792 set SelectedIndex to -1, to unselect items. This is the
19793 observed behaviour in .Net.
19795 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
19797 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19798 MS flags saying there won't be any. (fixes #78800)
19799 * Control.cs (HandleClick): Made virtual
19801 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
19803 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19804 cultures. Fixed bug #78399.
19806 2006-08-16 Jackson Harper <jackson@ximian.com>
19808 * Form.cs: Use the MdiClients MdiChildren property to access
19809 MdiChildren instead of creating the array from the child controls.
19810 * MdiClient.cs: Maintain a separate array of the mdi children, so
19811 that insertion order is maintained when the Z-order is changed.
19813 2006-08-16 Mike Kestner <mkestner@novell.com>
19815 * ListView.cs : add an ItemComparer and default to it for sorting.
19816 Fixes #79076, but sorting needs a complete overhaul to be compat with
19819 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19821 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19823 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19825 * Hwnd.cs (Mapped): Properly traverse the tree
19827 2006-08-15 Chris Toshok <toshok@ximian.com>
19829 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
19830 pass manager.Current.GetType() to ParseData. It has to be the
19831 property type. So, hold off doing the ParseData until we're in
19832 SetPropertyValue where we know the type. This fixes the crash in
19833 #78821 but the textbox is still empty.
19835 2006-08-15 Chris Toshok <toshok@ximian.com>
19838 - when we're scrolling, only call Edit() again if the
19839 current cell is still unobscured. Fixes bug #78927.
19840 - when handling mousedown on a cell, ensure the cell is visible
19841 before calling Edit.
19842 - remove the properties from DataGridRow, and remove the
19843 DataGridParentRow class altogether.
19846 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19848 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19849 fire OnTextChanged by ourselves. There's no point calling base,
19850 we don't set the base value anywhere else. Fixes #78773.
19852 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19854 * ListBox.cs: Call CollectionChanged when modifying
19855 an item from Items indexer, to update the actual items
19858 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19860 * PrintDialog.cs: Small fixes for focus and a pair of checks,
19861 to match .Net behaviour.
19863 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19865 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19867 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19869 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19871 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
19873 * MessageBox.cs: Prevent potential NRE exception.
19874 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19876 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
19878 * MessageBox.cs: Calculate the owner of a messagebox, also make
19879 it topmost. Fixes #78753
19881 2006-08-14 Chris Toshok <toshok@ximian.com>
19883 * XplatUIX11.cs: A couple of fixes so that metacity will let us
19884 programmatically move windows. first, set the PPosition hint as
19885 well as the USPosition hint. Second include some code from pdb
19886 that sets the window type to NORMAL when we set the transient for
19887 hint. This is because, in the absence of a window type, metacity
19888 thinks any window with TransientFor set is a dialog, and refuses
19889 to let us move it programmatically. fascists.
19891 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
19893 * XplatUIX11.cs: When setting normal hints, take into consideration
19894 an different hints previously set so we don't delete them (fixes #78866)
19896 2006-08-12 Chris Toshok <toshok@ximian.com>
19898 * ToolBarButton.cs: make Layout return a boolean, if something to
19899 do with the button's layout changed.
19902 - add another parameter to Redraw, @force, which all existing
19904 - make the Layout function return a boolean which is true if the
19905 layout has actually changed. Redraw now uses this (and @force)
19906 to determine when to invalidate. At present the only place
19907 where @force can be false is the call from OnResize, when
19908 background_image == null. So, resizing a toolbar when the
19909 layout doesn't change results in no drawing.
19911 2006-08-12 Chris Toshok <toshok@ximian.com>
19913 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
19914 the VScrollBar and HScrollbar reversed. oops.
19916 * DataGrid.cs: fix the logic that assigns sizes to the implicit
19917 scrollbars. we were assigning them twice (once in
19918 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
19919 therefore causing two scrollbar resizes (and redraws?) to happen
19922 2006-08-12 Chris Toshok <toshok@ximian.com>
19924 * ToolBarButton.cs: redraw the entire button if the theme tells us
19927 * Theme.cs: add ToolBarInvalidateEntireButton.
19929 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
19930 buttons, just the border.
19932 * ThemeNice.cs: redraw the entire toolbar button since we need to
19933 draw the highlight image.
19935 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
19936 we need to redraw the entire button (not just the border).
19938 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
19940 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
19941 for vertical bars. Fixes the mismatches shown by #78513
19943 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
19945 * FileDialog.cs: If a saved/remembered path doesn't exist
19946 anymore, fall back to "Desktop".
19948 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
19950 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
19951 parent. It's apparently legal to not have one
19953 - SetZOrder: Don't try to set Z-Order on an unmapped window
19954 - CreateWindow: 0,0 are legal coordinates for a window. don't move
19955 it unless the coordinates are negative
19957 2006-08-10 Mike Kestner <mkestner@novell.com>
19959 * ListControl.cs: allow null for DataSource. Clear DisplayMember
19960 when setting to null per msdn docs. Fixes #78854.
19962 2006-08-10 Chris Toshok <toshok@ximian.com>
19964 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
19965 flickering by setting a clip rectangle on the Graphics when we
19966 need to redraw just a particular menuitem. Also, rename "OnClick"
19967 to "OnMouseDown" to reflect what it actually is.
19969 * Form.cs: track the OnMouseDown change.
19971 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
19973 * CommonDialog.cs: Properly inherit the CreateParams from the form
19974 and only change what we need. Fixes #78865
19976 2006-08-10 Chris Toshok <toshok@ximian.com>
19978 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
19979 flickering in flat mode (and most of the flickering in general) by
19980 only invalidating the button border (and not the entire rectangle)
19981 when the state changes. A couple of cases still flicker:
19982 ToggleButtons, and the dropdown arrow case when the user mouse
19985 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
19987 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19988 for german keyboards. Numlock state shouldn't affect the behaviour
19989 of the Del key. Fixes bug #78291.
19991 2006-08-10 Chris Toshok <toshok@ximian.com>
19993 * ListControl.cs: remove the items.Clear line from BindDataItems,
19994 as this is the first thing done by both subclasses in their
19995 SetItemsCore overrides. Also, add a ItemChanged handler, and when
19996 passed -1, refresh the list. This gets databinding working when
19997 the datasource is set on the list before the datasource is
19998 populated (as in wf-apps/ReportBuilder.)
20000 * ComboBox.cs: remove the argument to BindDataItems. This call
20001 should really go away, and be initiated by the ListControl code.
20003 * ListBox.cs: same.
20005 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20007 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20008 if no data is in the document when the control is displayed
20010 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20012 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20015 - PositionCaret: Allow positioning of caret but don't call methods
20016 requiring a handle if the window isn't created yet
20017 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20018 - owner_HandleCreated: Don't position the caret, just update it's
20019 location. User might have already set a different position
20021 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
20023 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20024 windows. Screws up the returned coordinates for child windows.
20025 Fixes #78825. I'm hoping this doesn't break something, since the
20026 code was explicitly put in 8 months ago, but no bug was attached.
20027 Menus still seem to work properly.
20029 2006-08-08 Chris Toshok <toshok@ximian.com>
20031 * DataGrid.cs: make BeginInit/EndInit actually do what they're
20032 supposed to do - delay data binding until the EndInit call. Also,
20033 make the table style collection's CollectionChangeAction.Refresh
20036 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
20037 (with action = Refresh) when a consituent table's MappingName is
20040 2006-08-08 Chris Toshok <toshok@ximian.com>
20042 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
20043 Invalidate, since changing the text can change the size of the all
20046 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20048 * Form.cs (AddOwnedForm): Still need to add the form to our listif
20049 we don't have it yet
20051 2006-08-08 Chris Toshok <toshok@ximian.com>
20053 * PrintControllerWithStatusDialog.cs: don't .Close() the status
20054 dialog, as this causes X errors later on, since we actually
20055 destroy the window. Instead, .Hide() it.
20057 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
20059 * ComboBox.cs: Added focus reflection for popup window
20061 - Removed transient setting for non-app windows for now, not sure it
20063 - Fixed logic checking if we have captions when deciding
20064 override_redirect, WS_CAPTION is two bits and a 0 check was not
20066 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20069 - AddOwnedForm: Don't just add the form to the list, call the property
20070 to ensure the driver is informed about the ownership as well
20071 - CreateHandle: Set the TopMost status in the driver if we have an owner
20072 * XplatUI.cs: Fixed debug statement
20074 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
20075 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20076 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20077 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
20078 TrackBarRenderer.cs: Make constructor private.
20079 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20080 * ProfessionalColorTable.cs: Make properties virtual.
20082 2006-08-06 Duncan Mak <duncan@novell.com>
20084 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20087 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20088 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20089 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20090 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20091 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20092 Initial import of new 2.0 classes.
20094 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20095 * Application.cs: Add 2.0 VisualStyles properties.
20097 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
20098 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20099 XplatUIX11.cs: Create property to allow access to existing private
20100 variable "themes_enabled"
20102 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20104 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20105 file size, as otherwise our class libraries fail using windows. Fixes
20108 2006-08-04 Jackson Harper <jackson@ximian.com>
20111 * XplatUIX11.cs: Move the toolwindow window manager creation into
20112 the X11 driver, this way on win32 we can let windows create/handle
20115 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20117 * PrintDialog.cs: Remove some redundant checks, add some others,
20118 clean some code, and move the focus to the text boxes when the
20119 values are incorrect.
20121 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
20123 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20125 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20127 * NumericUpDown.cs: Setting the Minimum and Maximum is now
20128 handled correctly. Fixes bug #79001.
20130 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20132 * PrintDialog.cs: The "Copies" numeric up down must have
20133 set the Minimum property to 1; only if the value is bigger
20134 than 1, activate "Collate" check box. This is the behaviour of .Net.
20135 Also modify the Document elements only if it is not null.
20137 2006-08-03 Jackson Harper <jackson@ximian.com>
20139 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20140 length. (We have a larger array then actual node count).
20142 2006-08-03 Jackson Harper <jackson@ximian.com>
20144 * ComboBox.cs: Don't show selection by default.
20145 - The SelectAll isn't needed here, since the focus code should do
20147 - DDL style lists to manual selection drawing, so when they
20148 get/lose focus they have to invalidate.
20150 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
20152 * TextBoxBase.cs: Don't always show all selections by default.
20154 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
20155 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20156 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20157 Fixed various typos.
20159 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
20161 * Control.cs: Removing the controls in a ControlCollection with
20162 Clear now hides the controls as expected. Fixes bug #78804.
20164 2006-08-03 Jackson Harper <jackson@ximian.com>
20166 * Control.cs: Revert previous focus patch, it breaks reflector.
20168 2006-08-03 Jackson Harper <jackson@ximian.com>
20170 * ComboBox.cs: Cleanup selection and focus with the combobox.
20171 This also eliminates some duplicated keyboard code, since now
20172 everything is handled by the main class.
20173 - Make list selection work on mouse up instead of down, to match
20176 2006-08-02 Jackson Harper <jackson@ximian.com>
20178 * Control.cs: Setting focus needs to go through the whole
20179 selection mechanism.
20181 2006-08-02 Chris Toshok <toshok@ximian.com>
20183 * PrintPreviewDialog.cs: change MinimumSize to use
20184 base.MinimumSize so it works.
20186 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
20189 - UpdateCaret: Added sanity check in case caret isn't defined yet
20190 - Line.Delete: Now updating selection and caret markers if we're
20191 transfering a node (Properly fixes #78323)
20192 - SetSelectionEnd: Added sanity check
20193 * TextBoxBase.cs: Removed broken attempt to fix #78323
20195 2006-08-01 Chris Toshok <toshok@ximian.com>
20197 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20198 Close() call is handled in Form, not here.
20200 2006-08-01 Chris Toshok <toshok@ximian.com>
20202 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20205 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20206 for sizes < 100% zoom. The code now aggressively attempts to keep
20207 from calling document.Print (), and tries not to use the scaling
20208 g.DrawImage whenever possible (it still does if you scale to >
20209 100%, since usually that involves huge images).
20211 * PrintPreviewControl.cs: hook up the close button.
20213 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
20214 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20215 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20216 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20217 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20218 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20219 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20220 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20221 Removed [Serializable] for 2.0 Event Handlers.
20223 2006-07-31 Jackson Harper <jackson@ximian.com>
20225 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20226 * TextControl.cs: Uncomment out the body of this method.
20228 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
20230 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20233 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20235 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20236 that embed TextBox and need selections visible even if textbox is not
20237 focused to enforce that behaviour.
20238 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20241 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20244 - Added new SetSelectionStart/SetSelectionEnd overloads
20245 - Fixed viewport width assignment to be accurate
20246 - Adjusted alignment line shift calculations to allow cursor on right
20247 aligned lines to be always visible at the right border (like MS)
20249 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20250 - TextBoxBase_SizeChanged: recalculating canvas on size changes
20251 - CalculateScrollBars: Use ViewPort size instead of window size, to
20252 properly consider space occupied by the border and scrollbars
20254 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
20255 calculations; no longer leaves artifacts
20256 - CaretMoved: Adjusted window scrolling to match MS and fixed several
20257 calculation bugs (Still missing right/center align calculations)
20259 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20261 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20262 use of both scroll rect and clip rect, as they do the same.
20264 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
20266 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
20267 in the event handler (fixes #78912)
20269 2006-07-31 Chris Toshok <toshok@ximian.com>
20271 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20272 grid.ListManager.Count, since grid.ListManager might be null.
20273 This of course begs the question "why are we drawing rows for a
20274 grid with no list manager (and therefor no rows)?" Fixes the
20275 crash in bug #78929.
20277 2006-07-31 Chris Toshok <toshok@ximian.com>
20279 * RelatedPropertyManager.cs: Don't always chain up to the parent
20280 ctor. instead, call SetDataSource if the parent's position is !=
20281 -1. Fixes the crash in #78822.
20283 2006-07-31 Chris Toshok <toshok@ximian.com>
20285 * DataGrid.cs (get_ListManager): use field instead of property
20286 accessors for datasource and datamember.
20287 (RowsCount): make internal again.
20288 (OnMouseDown): end edits before resizing columns/rows.
20289 (OnMouseUp): restart edits after resizing columns/rows.
20291 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
20293 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20294 This fixes the situation where the last set cursor is displayed
20295 whenever the mouse is over scrollbars.
20297 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20299 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20300 Document properties, as well as initial values.
20302 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
20304 * XplatUIWin32.cs (SetBorderStyle): Setting both border
20305 and ClientEdge results in a 3-pixel border, which is
20308 2006-07-28 Jackson Harper <jackson@ximian.com>
20310 * TreeNodeCollection.cs: Fix the clear method.
20311 - Fix the Shrink also
20313 2006-07-27 Jackson Harper <jackson@ximian.com>
20315 * TreeView.cs: Make sure the visible order is computed when we
20316 attempt to size the scrollbars (for trees that mess with the
20317 scrolling when they shouldn't.
20318 - Make sure to give the scrollbars valid values.
20320 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20322 * XplatUIX11.cs: Move motion compression code to where it
20323 has less performance impact
20325 2006-07-26 Jackson Harper <jackson@ximian.com>
20327 * UpDownBase.cs: When the control is selected make the child
20328 controls non selectable, so that a click on them won't do a
20329 focus/unfocus cycle.
20330 - Don't give focus to the text box when the spinner is selected.
20331 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20333 2006-07-26 Chris Toshok <toshok@ximian.com>
20335 * ThemeWin32Classic.cs: add print preview rendering. I'm not
20336 satisfied with this solution. If the bitmaps are small, we should
20337 just cache them in the PrintPreviewDialog and draw them here.
20338 Also, the layout is broken for the 2-up and 3-up cases.
20340 * Theme.cs: add PrintPReviewControlPaint.
20342 * PrintPreviewDialog.cs: first pass implementation.
20344 * PrintPreviewControl.cs: first pass implementation. No
20347 * PrintDialog.cs: only validate fields if that particular portion
20348 of the UI is enabled. Also, set the document's controller to a
20349 PrintControllerWithStatusDialog wrapping the document's print
20352 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20353 bring up a SaveFileDialog (i hope we don't want to match the
20354 behavior of the crappy windows file entry) and set the
20355 PrinterSettings.PrintFileName accordingly.
20357 2006-07-26 Jackson Harper <jackson@ximian.com>
20359 * ContainerControl.cs: Add a field that disables auto selecting
20360 the next control in a container when the container is activated.
20361 * UpDownBase.cs: Don't select the text box when the up down is
20364 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
20366 * XEventQueue.cs: Added methods for peeking (used for compression
20367 of successive events)
20368 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20369 mouse move events (fixes #78732)
20371 2006-07-25 Jackson Harper <jackson@ximian.com>
20373 * UpDownBase.cs: Use an internal class for the textbox so that we
20374 can control focus. the updown control should always have focus,
20375 if either the text area or the buttons are clicked.
20376 - Send the key messages to the textbox, since it never actually
20378 - Activate and decativate the textbox caret.
20380 2006-07-24 Jackson Harper <jackson@ximian.com>
20382 * Control.cs: Use the directed select when selecting a control,
20383 this way the container controls override will get called and the
20384 whole ActiveControl chain will get triggered. TODO: probably need
20385 to make sure this gets done everywhere instead of the old
20387 * ContainerControl.cs: Implement the directed Select method to
20388 find and activate the correct child control.
20390 2006-07-22 Mike Kestner <mkestner@novell.com>
20392 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20393 menu handling code so that clicks without a grab work too.
20396 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
20398 * FileDialog.cs: Enable the BackButton when dirstack has one element.
20399 Added some small optimizations.
20401 2006-07-21 Matt Hargett <matt@use.net>
20403 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20405 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
20407 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
20408 tests pass and match MS in some strange border cases.
20410 2006-07-21 Chris Toshok <toshok@ximian.com>
20412 * ThemeWin32Classic.cs: handle drawing of the relation links and
20413 parent row buttons.
20415 * Theme.cs: change args to DataGridPaintParentRow.
20417 * DataGrid.cs: Don't use controls for the relation links and
20418 parent buttons, so we have to handle all their interactions in
20419 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
20420 when we're navigating through child tables, so we can reinstate
20421 selection, expanded state, current cell, etc.
20423 2006-07-20 Chris Toshok <toshok@ximian.com>
20425 * ToolBar.cs: When we redraw a button, for whatever reason,
20426 there's no reason to redraw the entire toolbar. Also, don't call
20427 Control.Refresh from within Redraw, as it's much heavier than
20428 Invalidate (which is really what we want).
20430 2006-07-20 Chris Toshok <toshok@ximian.com>
20432 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20433 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20434 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20435 traces from within a debug IBindingList datasource
20436 (in mono/winforms/datagrid) for *days*, I've finally gotten things
20437 to work in a similar fashion.
20439 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20441 * ListBox.cs: Don't call Sort () when setting
20442 the Sorted property to false (avoid an unnecessary sort).
20444 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20446 * ListControl.cs: DataSource should throw an ArgumentException
20447 instead of a normal exception when the argument is not of the
20450 2006-07-20 Mike Kestner <mkestner@novell.com>
20452 * Control.cs: add InternalPreProcessMessage to allow us to steal
20453 key events before MWF gets its paws on them. Adapted from a
20455 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
20456 up/down/left/right navigation. Override the new internal control
20457 method to steal the events since they never make it to WndProc.
20458 * ToolBarButton.cs: don't worry about pushed when setting hilight
20459 since the drawing code prefers pushed to hilight. Invalidate on
20460 Hilight changes. Fixes #78547 and #78525.
20462 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20464 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20465 the canvas size. Fixes #78868
20467 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20469 * Splitter.cs: Track requested split position until first layout
20470 is performed. Fixes #78871
20472 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
20474 * Application.cs: Removed code that forces 1.x for the version
20475 number if the version started with 0. Not sure why that code was
20476 there and I couldn't find any bugs that indicated we needed it.
20479 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
20481 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20482 ResetDefaults(), just write some output to the console until it's
20483 implemented. Fixes bug #78907 for now. Eliminated two warnings.
20485 2006-07-19 Jonathan Chambers <joncham@gmail.com>
20487 * PropertyGridView.cs: set StartPosition of drop down forms
20488 so they appear in correct initial spot. Fixes #78190.
20490 2006-07-19 Mike Kestner <mkestner@novell.com>
20492 * ThemeWin32Classic.cs: use parent background color when drawing
20493 flat toolbars. Restructure the conditionals to make sure non-flat
20494 non-Divider toolbars are filled too. Fixes #78837.
20496 2006-07-19 Mike Kestner <mkestner@novell.com>
20498 * ListBox.cs: Sort on collection changes even if the handle
20499 isn't created yet. Fixes #78813.
20501 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20503 * ListControl.cs: DisplayMember should never be null,
20504 and now we assign String.Empty when null is passed to it (this
20507 2006-07-17 Mike Kestner <mkestner@novell.com>
20509 * ListViewItem.cs: restructure Font and subitem Font handling
20510 to hold a specific font and refer back to owner on null.
20513 2006-07-17 Mike Kestner <mkestner@novell.com>
20515 * ToolBar.cs: bandaid for side-effect of previous patch which was
20516 discarding explicit heights for non-AutoSize toolbars. Need to
20517 extend my format tester to deal with AutoSize=false. Fixes #78864.
20519 2006-07-15 Jackson Harper <jackson@ximian.com>
20521 * LabelEditTextBox.cs:
20522 * TreeView.cs: Use a new LabelEdit class for node editing, this
20523 class automatically 'closes' itself when it gets the enter key or
20525 - Use the client rectangle when setting the trees scrollbars, so
20526 border style is taken into account.
20528 2006-07-14 Jackson Harper <jackson@ximian.com>
20531 * TreeView.cs: Make the editing work similar to MSs, firing the
20532 events correctly and ending edits correctly.
20534 2006-07-14 Mike Kestner <mkestner@novell.com>
20536 * ToolBarButton.cs:
20537 * ToolBar.cs: layout restructuring and redraw enhancements to support
20538 formatting changes gracefully, like setting TextAlign, ImageList,
20539 ButtonSize, and Appearance. Handles explicit button sizing quirks
20540 of the MS controls. Things like flat toolbars ignoring button size
20541 but becoming constant sized at the largest button's size. Normal
20542 toolbars with an image set cannot be shrunk smaller than the image,
20543 but text can be clipped/ignored.
20544 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20545 is zero. Seems like DrawString should be smart enough to not put
20546 anything on screen though. Also trim labels and ellipsize at the char
20547 boundary, not word.
20548 Fixes #78711 and #78483.
20550 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20552 * FolderBrowserDialog.cs: Disable "New Folder" button and
20553 "New Folder" contextmenu menuitem if a folder like "My Computer"
20556 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20558 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20559 * FolderBrowserDialog.cs:
20560 - Use MWFConfig to store and read size and position settings
20561 - Added code to create a new folder (button or context menu).
20562 Use TreeView labeledit to change the name of the new folder.
20564 2006-07-14 Jackson Harper <jackson@ximian.com>
20566 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
20567 when the tree is scrolled we end editing.
20569 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
20571 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20574 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20576 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20577 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20578 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20579 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20580 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20581 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20582 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20583 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20584 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20585 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20586 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20587 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20588 ListViewItemSelectionChangedEventHandler.cs,
20589 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20590 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20591 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20592 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20593 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20594 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20595 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20596 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
20597 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
20598 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20599 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20600 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20601 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20602 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20603 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20604 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20605 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20606 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20607 WebBrowserNavigatingEventHandler.cs,
20608 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20610 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
20612 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20613 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20614 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20615 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20616 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20617 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20618 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20619 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20620 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20621 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20622 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20623 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20624 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20625 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20626 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20627 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20628 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20629 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20630 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20631 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20632 ListViewItemStates.cs, MaskFormat.cs: Added
20634 2006-07-13 Jonathan Chambers <joncham@gmail.com>
20636 * PropertyGridView.cs: Fix keyboard navigation of drop down.
20637 Patch from eno for bug 78558.
20639 2006-07-13 Jackson Harper <jackson@ximian.com>
20641 * TreeView.cs: When an edit is finished make sure that the
20642 selected node is visible.
20643 - When setting the top/bottom use the scrollbars is_visible, so
20644 everything will be set correctly even if the tree isn't visible
20647 2006-07-13 Jackson Harper <jackson@ximian.com>
20649 * ComboBox.cs: Revert the item->index part of my previous patch.
20650 * TreeView.cs: Use LostFocus instead of Leave for detecting when
20651 the edit box has lost focus (duh).
20652 - Just make the edit box not visible when we get return, that will
20653 take the focus, which will call EndEdit
20654 * TreeNode.cs When we start editing, notify the treeview.
20656 2006-07-12 Jackson Harper <jackson@ximian.com>
20658 * ComboBox.cs: Clear out old items before setting the item list.
20659 This prevents databound controls from having their items added
20661 - Switch the combobox to use indices whereever possible instead of
20662 using Item's. This allows usto navigate through lists that have
20663 more then one item with the same string value (ie a, b, b, a).
20664 - Scroll the listboxes scrollbar when a non visible item is
20666 - Allow keypress to cycle through all the possible values. For
20667 example if you have b1, b2, b3 and hold down the B key all the
20668 values will be cycled through.
20670 2006-07-12 Jackson Harper <jackson@ximian.com>
20673 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20674 this using the internal methods.
20675 * Control.cs: Add OnGotFocusInternal. A new method that allows
20676 controls to "override" OnGotFocus and change focus behavior if
20678 - Same thing for LostFocus
20679 * ComboBox.cs: Pass off focus to the text control properly.
20681 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
20683 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20684 * FolderBrowserDialog.cs: Almost a complete rewrite.
20685 - Better support for Environment.Specialfolders
20686 - Added support for MWFVFS
20687 - Made setting SelectedPath work
20689 2006-07-12 Jackson Harper <jackson@ximian.com>
20691 * Control.cs: Optimze getting all the controls.
20693 2006-07-11 Jackson Harper <jackson@ximian.com>
20695 * ContainerControl.cs: Override SETFOCUS in the container control,
20696 so that it is not selected on mouse click.
20698 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
20700 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
20701 Hopefully we will have a better way once all of focus is complete.
20703 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
20705 * ThemeWin32Classic.cs: Commented out some debug code and fixed
20706 a compile error with csc.
20708 2006-07-11 Jackson Harper <jackson@ximian.com>
20710 * Control.cs: When hiding a control only select the next control
20711 if the current control was focused.
20712 - Don't handle enter/leave when setting/killing focus, this is
20713 done by the container control.
20714 - Remove is_selected, it's not needed anymore.
20715 - Add utility methods for selecting a child control, and for
20716 firing the Enter/Leave events.
20717 * ContainerControl.cs: When a control is activated fire the
20718 enter/leave events.
20719 - Don't wrap when processing the tab key, so that focus can be
20720 moved outside of the container.
20721 - Use the correct active control
20723 2006-07-11 Jackson Harper <jackson@ximian.com>
20725 * ComboBox.cs: Remove some debug code that was blinding me.
20726 * UpDownBase.cs: These controls actually aren't implicit, they are
20727 visible to the user.
20729 2006-07-10 Chris Toshok <toshok@ximian.com>
20731 * DataGrid.cs: move back to the is_adding boolean field. god i
20732 hate this is_editing/is_adding/is_changing stuff.
20734 2006-07-10 Chris Toshok <toshok@ximian.com>
20736 * DataGridTableStyle.cs: just check if the property type is bool.
20737 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20738 Don't use CanRenderType.
20740 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20741 if our text == NullText. Remove CanRenderType.
20743 * DataGridBoolColumn.cs: nuke CanRenderType.
20745 * DataGrid.cs: reenable some code to end the current edit inside
20746 of set_CurrentCell. This fixes the other 1.1.16 regression.
20747 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20748 Also, remove the visible_row_count arg from CalcRowHeaders, since
20749 we don't need to worry about the actual height of the area.
20751 2006-07-10 Chris Toshok <toshok@ximian.com>
20753 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20756 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20757 the real sense of the IsInEditOrNavigateMode property (true =
20758 navigate, false = edit). Also, update OnKeyPress to reflect this.
20760 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20761 column style exists, we still need to set its property descriptor
20762 to match up with our list manager.
20764 2006-07-10 Chris Toshok <toshok@ximian.com>
20766 * ThemeWin32Classic.cs: implement the new row/header painting
20767 approach. The parent row painting will likely go away and
20768 replaced with label controls, but the rest seems to work ok (and
20771 * Theme.cs: change the way we draw datagrid rows. we don't draw
20772 the row headers as a block now. Instead we draw them in the
20773 normal draw-row loop. Add some calls for drawing parent rows and
20776 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20777 a default table style. Set the defaults from ThemeEngine.Current,
20778 not SystemColors. Fix lots of misc issues with property setters.
20780 * DataGrid.cs: move loads of style information out of this class
20781 as it's being duplicated with DataGridTableStyle. keep track of a
20782 special DataGridTableStyle for the properties we used to mirror
20783 here. Switch all the style properties to access this table style
20784 instead of instance fields of this class. Also add a internal
20785 class to represent parent rows (more needs to be stored here, like
20786 the selection state from the parent table, as well as the
20787 expansion state.) Also, for datasources with relations, do the
20788 right thing for collapse/expand, and add support for the
20789 navigation/parent row buttons.
20791 Lastly, fix the crash in the 1.1.16 build.
20793 * GridTableStylesCollection.cs: make the explicit interface
20794 implementations call the class's methods as opposed to duplicating
20797 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20798 0 so the text doesn't jump around when we move the cursor.
20800 2006-07-10 Jackson Harper <jackson@ximian.com>
20803 * ListBox.cs: Match MS's ToString (this makes debugging focus
20804 stuff infinitely easier).
20806 2006-07-10 Jackson Harper <jackson@ximian.com>
20808 * Control.cs (SelectNextControl): When checking the control's
20809 parent use this instead of ctrl.parent so that null can be passed
20810 to SelectNextControl. (I have unit tests for this).
20811 - Remove unused var.
20813 2006-07-10 Chris Toshok <toshok@ximian.com>
20815 * CurrencyManager.cs: correct one regression, the removal of the
20816 finalType field. Also, add a MonoTODO on CanAddRows, implement
20817 Refresh() correctly, and fix some event emission in
20818 ListChangedHandler.
20820 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
20822 * FileDialog.cs: Don't use brackets for new folders if they exist
20823 under *nix. Instead use -(number of existing folders +1).
20825 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
20828 - Fixed really nasty bug #78771
20829 - Don't block the whole GUI when reading directories with a lot of
20830 entries. Use an other thread instead and call BeginInvoke to
20831 update the ListView in MWFFileView
20833 2006-07-07 Chris Toshok <toshok@ximian.com>
20835 * Control.cs (Dispose): release any Capture when disposing.
20837 2006-07-07 Chris Toshok <toshok@ximian.com>
20839 * LinkLabel.cs (Select): if we chain up to the parent, set
20840 focused_index to -1 so we'll search for the first available link
20841 the next time the user tabs into us. Also, if the direction is
20842 backward and focused_index == -1, start the search from the last
20845 2006-07-07 Chris Toshok <toshok@ximian.com>
20847 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20848 is beyond the end of the text, don't do anything.
20849 (CreateLinkPieces): set our ControlStyles.Selectable based on
20850 whether or not we have any links.
20851 (Link.Invalidate): use a loop instead of foreach.
20852 (Link.set_Start): null out owner.sorted_links so it'll be
20853 recreated by CreateLinkPieces.
20855 2006-07-06 Chris Toshok <toshok@ximian.com>
20857 * LinkLabel.cs: revert the SetStyle change.
20859 2006-07-06 Chris Toshok <toshok@ximian.com>
20861 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20862 (OnEnableChanged): s/Refresh/Invalidate
20863 (OnGotFocus): if we have a focused index already, refocus it (so
20864 if we mouse out/in to the window it'll focus the right link).
20865 (OnKeyDown): move the tab handling out of here.
20866 (OnLostFocus): don't set focused_index to -1, so we can refocus it
20867 when we lose focus.
20868 (OnMouseDown): don't Capture here - Control handles it. Also,
20869 focus the active link.
20870 (OnMouseUp): don't deal with Capture.
20871 (OnPaintBackgroundInternal): remove.
20872 (OnTextAlignChanged): CreateLinkPieces before calling the
20873 superclass's method.
20874 (OnTextChanged): call CreateLinkPieces before calling superclass's
20876 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20878 (Select): implement this, moving the selection between different
20879 links, and call parent.SelectNextControl if we don't have another
20880 link to focus in the given direction.
20881 (CreateLinkPieces): call Invalidate instead of Refresh.
20883 2006-07-06 Chris Toshok <toshok@ximian.com>
20885 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20886 new LinkLabel internals.
20888 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
20889 over pieces looking for active/focused/etc links. also, deal with
20890 runs of text (and links) with embedded \n's in them, and use
20891 MeasureCharacterRanges instead of MeasureString to figure out the
20892 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
20895 2006-07-04 Jackson Harper <jackson@ximian.com>
20897 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20898 XKB or key auto repeat, do it manually. Without key auto repeat,
20899 when a key is held down we get key press, key release, key press,
20900 key release, ... with auto repeat we get key press, key press, key
20901 press ..., and then a release when the key is actually released.
20903 2006-07-03 Jackson Harper <jackson@ximian.com>
20906 * ThemeWin32Classic.cs: Tabs do not obey normal background color
20907 rules, they are always control color regardless of the background
20910 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
20912 * FileDialog.cs: Added internal class MWFConfig.
20913 Removed Registry support and replaced it with support for the new
20914 MWFConfig class. See MWFConfig comments for more information.
20916 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
20918 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
20919 rectangle. Added some patches from eno from bug #78490 and fixed
20920 the arrow position for small up and down CPDrawScrollButtons.
20922 2006-06-30 Jackson Harper <jackson@ximian.com>
20924 * InternalWindowManager.cs: Remove some debug code.
20925 * Form.cs: When an MdiParent is set to null, the window is
20926 "detatched" and becomes a normal window.
20927 * MdiClient.cs: Don't bring the new child form to the front until
20928 it is activated (setting it as active does this), this makes the
20929 previously active forms titlebar get redrawn as inactive.
20931 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
20933 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
20934 with later controls
20936 2006-06-29 Mike Kestner <mkestner@novell.com>
20938 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
20939 arrow in keynav state. Fixes #78682.
20941 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
20943 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
20944 order (fixes #78393)
20946 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
20948 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
20949 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
20950 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
20951 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
20952 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
20953 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
20954 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
20955 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
20956 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
20957 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
20958 enumerations (FlagsAttribute, SerializableAttribute, added/removed
20961 2006-06-28 Mike Kestner <mkestner@novell.com>
20963 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
20965 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
20968 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
20969 item lines from other area (It also makes BackColor consistent and
20970 compatible with .NET). Fixed bug #78564.
20972 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
20974 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
20975 Patch from Eno for #78555.
20977 2006-06-27 Chris Toshok <toshok@ximian.com>
20979 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20981 * DataGridColumnStyle.cs: same.
20983 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20985 * DataGridDrawingLogic.cs: nuke.
20987 2006-06-27 Chris Toshok <toshok@ximian.com>
20989 * DataGridTableStyle.cs: clean up the constructors, and build the
20990 list of child relations for this table. I have no idea if this is
20991 where we should be doing it (it probably isn't), but since we're
20992 already iterating over the properties..
20994 * DataGrid.cs: add row resizing. for now we add a DataGridRow
20995 struct and array for keeping track of row information, similar to
20996 what's shown in a hack on
20997 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20999 * Theme.cs: be consistent about the naming of DataGrid methods,
21000 prefering ColumnWidths and RowHeights over columnsWidths and
21003 * ThemeWin32Classic.cs: same, and also add support for variable
21004 sized rows (and the +/- expansion icons for related rows).
21006 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21008 * TextBoxBase.cs: Applied Eno's patch from #78660
21010 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21012 * Form.cs (ScaleCore): We don't want to scale our form if it's
21013 state is minimized or maximized, but we still need to scale our
21014 child windows. Also, added try/finally block to ensure layout
21015 gets reset (Fixes #78697)
21017 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21019 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21021 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
21023 * Form.cs: Fixed c+p error and added check to resize form if minimum
21024 size is bigger than current size (Fixes #78709)
21026 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
21028 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
21030 2006-06-26 Mike Kestner <mkestner@novell.com>
21032 * ComboBox.cs: only do Keypress handling in the combo when there
21033 are items in the collection. Fixes #78710.
21035 2006-06-26 Chris Toshok <toshok@ximian.com>
21037 * Binding.cs: make this work bi-directionally. also, clear up
21038 other mixups between Push/Pull Data (e.g. we're supposed to pull
21039 data when validating).
21041 * BindingManagerBase.cs: trim some fully qualified collection
21044 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
21046 2006-06-23 Chris Toshok <toshok@ximian.com>
21048 * PropertyManager.cs: It appears (according to the unit tests)
21049 that PropertyManager doesn't use
21050 PropertyDescriptor.AddValueChanged to track propery value changes
21051 in its datasource, but uses the same scheme as Binding, where it
21052 looks for a <Property>Changed event and binds to it.
21054 Also, according to the docs, IsSuspended always returns false for
21055 a property manager with a non-null datasource.
21057 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21059 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21060 need to update the actual DialogResult. (Fixes #78613)
21062 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
21064 * Form.cs (ShowDialog): Release any captures before running the
21065 new message pump (fixes #78680)
21067 2006-06-22 Mike Kestner <mkestner@novell.com>
21069 * ListView.cs: Layout column widths properly in details mode even
21070 if HeaderStyle.None is set. Fixes #78691.
21072 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21074 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21076 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
21078 * Control.cs (ContainsFocus): Using new driver method to get focused
21079 window, instead of trying to use internal tracking var, which can
21080 recursion issues (Fixes #78685)
21081 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21082 XplatUIWin32.cs: Added GetFocus method to return focused window
21084 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21086 * ColorDialog.cs: when the mouse button is pressed inside the color
21087 matrix, don't let the cursor move out of it until the button is
21088 released, which is the behavior on windows. Changed 'colours' by
21089 'colors' to use the same word consistently.
21091 2006-06-21 Chris Toshok <toshok@ximian.com>
21093 * DataGrid.cs: add in some basic navigation stuff (navigating to a
21094 child relation and back, using a stack). Also, remove
21095 GetDataSource and the code that calls it - it's not needed. Also,
21096 track CurrencyManager.ListName's removal.
21098 2006-06-21 Chris Toshok <toshok@ximian.com>
21100 * CurrencyManager.cs: push some of the original type checking from
21101 BindingContext.CreateBindingManager to here, and remove some of
21102 the finalType stuff. Need more tests to make sure I've got the
21103 ListName part right, and we might need more in SetDataSource.
21105 * PropertyManager.cs: add a ctor that takes just the datasource,
21106 and no property name. Make SetDataSource work with a null
21107 property_name, and make Current return the data_source if the
21108 property descriptor is null. this makes 'string foo = "hi";
21109 BindingContext[foo].Current' return "hi" as it should.
21111 * RelatedCurrencyManager.cs: make this code more generic - there's
21112 no reason the parent manager has to be CurrencyManager, and
21113 there's no reason to pass the DataRelation. It suffices to use a
21114 BindingManagerBase and PropetyDescriptor.
21116 * RelatedPropertyManager.cs: make a similar change here.
21118 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21119 flower I knew it could be.
21121 2006-06-20 Chris Toshok <toshok@ximian.com>
21123 * PropertyManager.cs: the PropertyChangedHandler is invoked when
21124 data in the source has changed and we need to update the control,
21125 so s/PullData/PushData.
21127 * CurrencyManager.cs: Refresh is meant to update the control from
21128 data in the datasource. So, s/PullData/PushData.
21130 * BindingContext.cs: add more ugliness (we weren't handling the
21131 case where data_source = DataTable and data_member = column_name).
21133 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
21134 from the perspective of the datasource. PullData pulls from the
21135 control, PushData pushes to the control.
21137 2006-06-20 Chris Toshok <toshok@ximian.com>
21139 * BindingContext.cs: rewrite the CreateBindingManager code to
21140 handle navigation paths more or less properly. This could
21141 definitely stand some more work, in particular to push the
21142 recursion up to the toplevel. But that relies on fixes in other
21143 places (System.Data comes to mind).
21145 Also, move to a flat hashtable (and encode the twolevel nature of
21146 the dictionary into the hash key). This lets us implement the
21147 IEnumerable.GetEnumerator method.
21149 * RelatedCurrencyManager.cs: new class. Update our view based on
21150 our relation and our parent CurrencyManager's position.
21152 * CurrencyManager.cs: split out some logic from the ctor into
21153 SetView, so it can be called from the new RelatedCurrencyManager
21156 * RelatedPropertyManager.cs: new class. Update our datasource
21157 based on the position of our parent CurrencyManager.
21159 * PropertyManager.cs: split out some logic from the ctor into
21160 SetDataSource, so it can be called from the new RelatedDataSource
21161 subclass. Also, make the Current getter return the value
21162 of the PropertyDescriptor, not the data_source.
21164 * Binding.cs: no need to duplicate the string splitting code here.
21166 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21169 - set_Enabled: OnEnabledChanged is not called if the inherited state
21170 of the control is not altered, even though we might be changing the
21171 internal state of the control (#78458)
21172 - set_Enabled: (Re)Moved the enabling/disabling of the window to
21173 OnEnabledChanged, to allow easy altering of any child window state
21174 - OnEnabledChanged: Added code to enable/disable driver window state
21175 - OnParentEnabledChanged: Instead of firing the event, call
21176 OnEnabledChanged, which will fire the event and also a) set driver
21177 window state and pass the enabled state to any grandchildren (#78458)
21179 2006-06-19 Jackson Harper <jackson@ximian.com>
21181 * InternalWindowManager.cs: We don't set the cursor explicitly
21182 thats done via the response to NCHITTESTs.
21183 - Don't need to adjust for titlebar heights anymore, the
21184 coordinates are coming in the correct coordinates now (see peters
21188 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
21190 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21191 being translated relative to whole window, instead of client window.
21192 That caused broken offsets on mouseclick (and caused gas for our
21193 InternalWindowManager)
21195 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21198 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21199 - Undo(): Added replay of cursor move on DeleteChars action; added
21200 calling Undo() again if a recorded cursor move is invalid (to
21201 ensure that some action is performed on Undo)
21202 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21204 2006-06-16 Jackson Harper <jackson@ximian.com>
21206 * MdiClient.cs: Instead of just sizing maximized windows when
21207 there is a resize we also have to adjust the Y of minimized
21208 windows, so they stay pinned to the bottom of the mdi container.
21209 - Eliminate separate tracking of the active control, we can just
21210 get this from the controls collection.
21211 - Paint the decorations for the newly activated titlebar so we get
21213 * InternalWindowManager.cs:
21214 * ThemeWin32Classic.cs: Minimized windows get all three buttons
21215 even if they are a tool window.
21217 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
21219 * TextControl.cs (Undo): Handle non-existent cursor locations in the
21220 undo buffer, these can happen when text was deleted and the cursor
21221 was recorded first. Since we will also have a recorded cursor
21222 after the delete this is not an issue. (Fixes #78651)
21224 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
21226 * AccessibleObject.cs: Remove dependence on Control.is_selected;
21227 instead properly track control states internally (allows us to
21228 remove is_selected from Control)
21230 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21232 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21233 whose width is not a multiple of 8.
21235 2006-06-13 Jackson Harper <jackson@ximian.com>
21237 * MdiClient.cs: Only maximize the next child if the current one
21240 2006-06-13 Chris Toshok <toshok@ximian.com>
21242 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21243 modified. Also, guard against grid or grid_drawing being null in
21246 * DataGrid.cs: Reformat tons of getters/setters. In the
21247 DataMember setter, just call SetNewDataSource instead of
21248 duplicating some of its functionality. In SetNewDataSource, don't
21249 check ListManager for null, since the property getter creates the
21252 * DataGridTableStyle.cs: don't set TableStyle or call
21253 SetDataGridInternal on the column here, it's done in
21254 GridColumnStylesCollection.Add.
21256 * GridColumnStylesCollection.cs: fix all the explicit interface
21257 implementations to just call our methods. Nuke AddInternal() and
21258 move the body of it to Add(). Also, add a call to
21259 column.SetDataGridInternal to Add().
21261 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21262 base()+duplicate code. Also, use the Format property instead of
21263 format to generate an Invalidate ala MS. Lastly, create the
21264 textbox here, unconditionally.
21265 (set_Format): call Invalidate.
21266 (get_TextBox): no need to call EnsureTextBox.
21267 (Commit): remove the message box.
21268 (Edit) remove the call to EnsureTextBox.
21269 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21270 (EnterNullValue): no need to check textbox for null.
21271 (HideEditBox): no need to check textbox for null.
21272 (SetDataGridInColumn): add the textbox to the grid's controls.
21273 (EnsureTextBox): nuke.
21275 2006-06-13 Jackson Harper <jackson@ximian.com>
21277 * MdiWindowManager.cs: Hook up to the maximized menus paint event
21278 and redraw the buttons when needed. Unhook when the window is
21280 * MainMenu.cs: Add an internal Paint event, the mdi window manager
21281 needs this so that it can redraw its buttons when the menu is
21283 * InternalWindowManager.cs:
21284 * Form.cs: The method order has changed for DrawMaximizedButtons,
21285 so that it can be a PaintEventHandler.
21287 2006-06-13 Jackson Harper <jackson@ximian.com>
21289 * MdiClient.cs: When we close a maximized mdi window, the next mdi
21290 window is activated and maximized, even if it wasn't before.
21291 - When a new window is activated repaint the decorations of the
21292 old one, so that it no longer has the Active "look" (the blue
21294 * InternalWindowManager.cs: Open up CreateButtons to base classes
21295 so they can recreate the buttons on state changes.
21296 - If a window is maximized give it all three buttons
21297 * MdiWindowManager.cs: Create the titlebar buttons when the state
21298 is changed, this is needed because a toolwindow will not have all
21299 three buttons until it is maximized.
21301 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
21303 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21306 2006-06-12 Jackson Harper <jackson@ximian.com>
21308 * KeysConverter.cs: Make sure we handle the Ctrl special case
21309 if its the only key.
21311 2006-06-12 Jackson Harper <jackson@ximian.com>
21313 * Theme.cs: Add a method to get the size of a managed window
21315 * InternalWindowManager.cs: Remove the ButtonSize property, this
21316 should be retrieved from the theme.
21317 * MdiWindowManager.cs: Get the button size from the theme
21318 * ThemeWin32Classic.cs: Make the method to get the managed window
21319 titlebar button size public.
21320 - Handle the different button sizes of maximized toolwindows
21321 (should match any maximized window).
21322 - Get the titlebar height from the theme, not the WM (which gets
21323 it from the theme).
21325 2006-06-12 Jackson Harper <jackson@ximian.com>
21327 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21328 event down to the mdi window manager.
21329 - Expose some extra stuff to base classes
21330 - Make sure to end the Capture on an NC Mouse up, so that we can
21331 get double clicks properly, and the sizing doens't stick.
21332 - When doing PointToClient contain it in the workable desktop
21333 area, this prevents windows from changing size when the cursor is
21334 pulled outside of the working area while sizing.
21335 * MdiWindowManager.cs: When we get a double click maximize the
21337 - Reset the cursor after handling mode changes.
21339 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
21341 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
21342 current desktop, instead of just assuming a 0, 0 origin. This
21343 is needed for our internal window manager, to know the top
21344 margin of the desktop
21346 2006-06-12 Chris Toshok <toshok@ximian.com>
21348 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21349 we need this to get rid of the selected background in the bool
21351 (CancelEditing): move the ConcedeFocus call to above the Abort
21352 call. Also, set is_changing to false and invalidate the row
21353 header if we were changing before.
21354 (ProcessKeyPreviewInternal): remove, since noone outside this
21355 class calls it anymore. Roll the code into ProcessKeyPreview.
21356 (EndEdit): remove the internal version.
21357 (InvalidateCurrentRowHeader): make private.
21359 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
21360 Keys.Escape handling (and with it the last call to
21361 DataGrid.EndEdit from outside the class.)
21364 2006-06-12 Chris Toshok <toshok@ximian.com>
21366 * DataGridTextBox.cs (.ctor): isedit defaults to false.
21367 (OnKeyPress): set isedit to true.
21368 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
21369 already handled by the grid.
21371 * DataGrid.cs (set_CurrentCell): more work here. it's still not
21373 (set_DataSource): SetDataSource always returns true, so stop
21374 putting it in an if statement.
21375 (EndEdit): get rid of some {}'s
21376 (ProcessGridKey): return true in case Keys.Escape.
21377 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21378 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21379 PositionChanged, stopped connecting to CurrentChanged.
21380 (GetDataSource): simplify this a bunch.
21381 (SetDataSource): change return type from bool to void.
21382 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21383 to this, and make sure we don't set ListManager.Position inside
21385 (OnListManagerItemChanged): if we're passed an actual index,
21388 * CurrencyManager.cs (set_Position): don't call PullData here.
21390 2006-06-09 Jackson Harper <jackson@ximian.com>
21392 * TreeNode.cs: Recalculate the visible order before doing the
21393 Expand/Collapse Below calls, because those calls generate an
21395 - Reduce calls to the TreeView property, which is mildly expensive
21396 by using a local var.
21397 * Form.cs: Layout the MDI child windows when creating the parent
21399 - Don't use the internal constructor anymore
21400 * MdiClient.cs: use the parent form width/height (if available)
21401 when laying out the child windows, we do this because the
21402 mdiclient isn't docked yet when the initial layout is done.
21403 - Don't need an internal constructor anymore.
21405 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21407 * FileDialog.cs: handle access errors when trying to create a folder
21408 or changing to a directory. No need to initialize out parameters.
21410 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21412 * FileDialog.cs: Append a number when creating a new folder if the
21413 folder already exists (use parenthesis instead of square brackets)
21415 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21418 - Disabled registry support for windows and added better registry
21419 error checking for other systems (need to investigate why it
21420 works perfectly on my system)
21421 - If a folder already exist show an error MessageBox instead of
21422 trying to create an indexed name.
21423 - Fixed a non intentional typo.
21425 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21427 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21429 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21431 * FileDialog.cs: When creating a new folder don't crash if the
21432 folder already exists.
21434 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21436 * FileDialog.cs: Allmost a complete rewrite.
21437 - added a "virtual" file system that handles the differences
21438 between unix and windows file systems (especially the directory
21439 structure). Moved most of the directory and file handling code
21441 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21442 UnixFileSystem and FSEntry.
21443 - Recently used folder/directory, size, location and used file names
21444 (file name ComboBox) are now stored in the registry and get read
21445 before the dialog shows up (fixes part 6 of bug #78446).
21446 - Creation of new folders/directories is now possible (context menu
21447 or ToolBar). Added TextEntryDialog for this that fills in the gap
21448 until ListView.LabelEdit works.
21449 - Fixed cursor handling (bug #78527) and focus handling for
21451 - Various "Search in" ComboBox enhancements. The content of the
21452 dropdown listbox now almost matches ms.
21453 - Changed the behaviour when the user switches to SpecialFolder
21454 Recent to show the ListView in View.Details.
21455 - Beside using the ToolBar to change the View property of the
21456 file ListView it is now possible to use the context menu too.
21458 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
21460 * ComboBox.cs: Don't create a new ObjectCollection when an item
21461 gets inserted. Just insert the item in the existing object_items
21464 2006-06-08 Jackson Harper <jackson@ximian.com>
21466 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21467 that the treeview and root node checks are done also, this fixes a
21468 regression i caused in the unit tests.
21470 2006-06-07 Wade Berrier <wberrier@novell.com>
21472 * RichTextBox.cs: More ISO8859-1 -> unicode
21474 2006-06-07 Mike Kestner <mkestner@novell.com>
21476 * ComboBox.cs : use items to hold highlight/selection so that
21477 collection insertions don't require synchronization.
21479 2006-06-07 Jackson Harper <jackson@ximian.com>
21481 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21482 routine. We now always keep the sized edge at the cursor instead
21483 of computing movement and adjusting rects. There is one buglet
21484 with this method though when the cursor is moved over area that
21485 the window can not expand too (such as the toolbars on the desktop).
21487 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21489 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21490 here. Fixes crash on startup in AlbumSurfer.
21492 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
21494 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21497 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21499 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21500 statement to avoid calling XNextEvent which will block if another thread
21501 took the event that we were expecting. Fixes bug #78605.
21503 2006-06-07 Mike Kestner <mkestner@novell.com>
21505 * ListView.cs : isolated checkbox clicking from the selection logic.
21506 Toggle check state on item doubleclicks. Really fixes #78454 part2.
21508 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21510 * Form.cs: Check that the value passed to Form.DialogResult
21511 is a valid enum value.
21513 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21515 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21516 Computer'. Clicking it in the network view goes to 'My Computer'.
21517 Added CIFS filesystem type. Display the mount point of filesystems.
21518 Avoid duplicate mount points (happens for me with CIFS);
21520 2006-06-06 Jackson Harper <jackson@ximian.com>
21522 * InternalWindowManager.cs: Draw the maximized windows buttons
21525 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21527 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21528 all other dialogs. Fixes bug #78585.
21530 2006-06-06 Mike Kestner <mkestner@novell.com>
21532 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21533 Only invalidate checkbox on checkstate changes to avoid flicker.
21534 * ListBox.cs : avoid unselect/select when clicking selected item.
21535 avoid reselection flicker for already multiselected items.
21538 2006-06-06 Jackson Harper <jackson@ximian.com>
21540 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21541 the parent form so that the menu is removed if needed.
21543 2006-06-06 Mike Kestner <mkestner@novell.com>
21545 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
21546 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
21548 2006-06-06 Mike Kestner <mkestner@novell.com>
21550 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
21553 2006-06-06 Jackson Harper <jackson@ximian.com>
21555 * Control.cs: Use the property (instead of the field) to get the
21556 default cursor so it is instantiated correctly.
21557 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21558 resizes so we need to manually repaint the window decorations here.
21559 - Set the titlebar button locations as soon as they are created,
21560 otherwise they are not set correctly on win32.
21562 2006-06-06 Chris Toshok <toshok@ximian.com>
21564 * CurrencyManager.cs (set_Position): call PullData before
21566 (AddNew): after calling IBindingList.AddNew, update our
21567 listposition, and call OnCurrentChanged/OnPositionChanged (without
21569 (OnCurrentChanged): remove the call to PullData from here.
21570 (OnItemChanged): remove the call to PushData from here.
21571 (OnPositionChanged): change the test from == null to != null to
21572 match the other methods.
21573 (ListChangedHandler): the grossest part of the patch. Implement
21574 this such that it passes the unit tests in CurrencyManagerTest and
21575 the output more or less matches that of MS's implementation.
21577 2006-06-06 Mike Kestner <mkestner@novell.com>
21579 * ListView.cs : only update check state on single click.
21580 * ThemeWin32Classic.cs : fix focus drawing for details view without
21581 fullrowselect. Fixes #78454.
21582 * XplatUIX11.cs : fix for double click emission.
21584 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
21586 * PropertyGridView.cs : Applied Atsushi's patch to fix
21587 font dialog bug (#78197).
21589 2006-06-05 Jackson Harper <jackson@ximian.com>
21591 * TreeNode.cs: Compute the next node for expanding/collapsing
21592 correctly. We now factor in nodes without a NextNode
21593 correctly. (Fixes somes cases in nunit-gui).
21594 * InternalWindowManager.cs: Set the bounds when updating the
21595 virtual position of a tool window.
21597 2006-06-05 Chris Toshok <toshok@ximian.com>
21599 * DataGrid.cs: rename cached_currencymgr to list_manager.
21600 (set_CurrentCell): move SetCurrentCell code here, and clean it up
21602 (CurrentRow, CurrentColumn): single accessors so we can make the
21603 cursor movement code a lot easier to understand.
21604 (CurrentRowIndex): implement this in terms of CurrentRow.
21605 (BeginEdit): clean this up a bit.
21606 (CancelEditing): sort out the is_editing/is_changing/is_adding
21608 (EndEdit): minor changes.
21609 (OnKeyDown): add a comment about a (most likely) unnecessary
21611 (OnMouseDown): cancel editing when we click on a row header. And
21612 use the CurrentRow setter, not CurrentCell.
21613 (ProcessDialogKey): directly call ProcessGridKey.
21614 (UpdateSelectionAfterCursorMove): factor out this common block of
21615 code (it's used everywhere that we move the cursor by updating row
21617 (ProcessGridKey): pretty substantial overhaul. Use the
21618 CurrentRow/CurrentColumn properties to make the code a lot more
21619 readable. Only use the CurrentCell property when we have to
21620 modify both row and column at once. Tab behavior is still broken,
21621 and Delete is untested.
21622 (Select): if we have no selected rows, set selection_start to
21624 (EditCurrentCell): rename EditCell this. It was only ever invoked
21625 with CurrentCell as the arg, so drop the arg and rename it.
21627 * DataGridColumnStyle.cs: clean up the constructors a little, and
21628 drop CommonConstructor().
21630 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21631 actually get notified when the user hits it.
21632 (ProcessKeyMessage): *substantially* simplify this method.
21633 There's no reason (that I can see) for the textbox to be making
21634 calls into the datagrid at all. Remove all of them but the ones
21635 for Enter handling. those will take some more work.
21637 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21638 calling HideEditBox.
21639 (HideEditBox): if we have an active textbox, render it invisible
21640 without causing a re-layout of the datagrid.
21642 2006-06-05 Mike Kestner <mkestner@novell.com>
21644 * ListView.cs : fix NRE crasher when focuseditem is cleared by
21645 collection changes by resetting it to Items[0]. Fixes #78587.
21647 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21649 * MessageBox.cs: if the height of the text is larger than the icon_size,
21650 use that. Fixes bug #78575.
21652 2006-06-05 Jackson Harper <jackson@ximian.com>
21654 * TreeView.cs: Fix line drawing when scrolling. To do this each
21655 node is basically responsible for drawing its entire horizontal
21656 area. When drawing a node it draws its parent node lines if
21658 - Adjust the clip area to the viewport rectangle
21659 - Fix Left/Right key handling to match MS. (It expand/collapses
21660 and moves to parents/first child but does not move selection to
21662 - Fix SetTop to work with new bound calculation code
21663 - When scrollbars are no longer needed we need to reset scrolling
21664 vars and recalculate the visible order so the redraw is correct
21665 * TreeNode.cs: We can't expand/collapse nodes with no children.
21667 2006-06-03 John Luke <john.luke@gmail.com>
21669 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21670 so the colors work without dev packages
21672 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
21675 - Select: Implemented to just use activate. Seems to match MS
21676 behaviour closest. Documented to only do actual control walking
21677 based on it's parameters if in a container control so I moved
21679 - Removed selection check logic from our internal Select() method
21680 * ContainerControl.cs:
21681 - Select: Moved selection logic from Control here, since MS documents
21682 that containers obey the bool arguments. No longer calling base
21684 2006-06-02 Jackson Harper <jackson@ximian.com>
21686 * TreeView.cs: If the selected node isn't changed when we get
21687 focus update the previously selected node so that we see the
21690 2006-06-02 Mike Kestner <mkestner@novell.com>
21692 * ComboBox.cs: restructure grab and general mouse event handling.
21693 Make the composite control raise mouse events like it was a single
21694 control for leaves/enters/motion/up/down events. fix dropdown list
21695 coordinate mangling and refactor it into the scrollbar subclass to
21696 reduce code duplication. Fixes #78282 #78361 and #78457.
21698 2006-06-02 Mike Kestner <mkestner@novell.com>
21700 * ScrollBar.cs: remove Capture setting/clearing, as it happens
21701 automatically in the Control.WndProc.
21703 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21705 * FileDialog.cs: fix crash when running SharpChess, which sets the
21706 FilterIndex to 2 with only one Filter.
21708 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21710 * ToolBar.cs: add SizeSpecified property.
21711 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21712 try to figure out our real size, otherwise fallback to what the
21715 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21717 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21718 * Control.cs (WndProc): MS always calls the DefWndProc to pass
21721 2006-06-01 Mike Kestner <mkestner@novell.com>
21723 * ListView.cs: revamp the focus management in ListView. It still
21724 causes churn of LostFocus/GotFocus emissions on clicks, but it's
21725 better than not handling focus at all. Will revisit when pdb feels
21726 the general focus handling is solid. Fixes #78526.
21728 2006-06-01 Jackson Harper <jackson@ximian.com>
21730 * TreeView.cs: Set the default border style in the constructor.
21731 - Move painting to use OnPaintInternal instead of capturing
21732 WM_PAINT, this is the correct way of doing things
21733 - UpdateBelow shouldn't invalidate the scrollbar area
21734 - Cap the top on update below in case the node was above the top
21735 of the viewport rectangle.
21736 - ExpandBelow and Collapse below need to obey Begin/End Update.
21737 * TreeNode.cs: Make is_expanded internal so the treenode
21738 collection can change it without firing the whole event chain.
21739 * TreeNodeCollection.cs: When clearing all the child nodes make
21740 sure to recalc the visible order.
21741 - Improve algo for remove the top node
21743 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21745 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21746 SendMessage directly calling window procedures, which in turn might
21749 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
21751 * Control.cs: Don't handle WM_SETFOCUS if the same window already
21752 has focus (works around X11 sending a FocusIn after our SetFocus)
21753 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21755 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
21757 * Mime.cs: Fix for the NET_2_0 build.
21758 NameValueCollection needs StringComparer now.
21760 2006-05-31 Chris Toshok <toshok@ximian.com>
21762 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21763 return (via an out parameter) the starting X of the column.
21764 (UpdateVisibleColumn): track change to FromPixelToColumn.
21765 (HitTest): add a ColumnResize case here.
21766 (DrawResizeLine): new function, probably poorly named.
21768 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
21769 only need to keep one reference.
21770 (set_ListManager): same.
21771 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21772 Also, add support for HitTestType.ColumnResize.
21773 (OnMouseMove): add column resize behavior here, and change the
21774 cursor to the correct one as we move around the datagrid.
21775 (OnMouseUp): terminate the column resize if we're resizing.
21776 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21777 for the current cell.
21778 (ConnectListManagerEvents): use cached_currencymgr.
21779 (DisconnectListManagerEvents): fill this in, using
21780 cached_currencymgr.
21781 (SetCurrentCell): remove cached_currencymgr_events handling.
21782 (SetDataMember): only call DisconnectListManagerEvents if
21783 cached_currencymgr is != null.
21784 (SetDataSource): same.
21785 (OnListManagerCurrentChanged): cached_currencymgr_events ->
21786 cached_currencymgr.
21788 2006-05-31 Jackson Harper <jackson@ximian.com>
21790 * BindingManagerBase.cs: Remove somedebug code that creeped into
21792 * TreeNode.cs: We get the indent level dynamically right now, so
21793 don't track it as a member.
21794 * TreeNodeCollection.cs: Make sure all nodes added to the list
21795 have parents, treeviews/topnodes setup properly.
21796 - Don't attempt to track indent level.
21798 2006-05-30 Jackson Harper <jackson@ximian.com>
21800 * BindingContext.cs: Create the currency manager tables here.
21801 This allows us to more easily create null tables (when bad data
21802 members are used), and more easily create related currency
21804 * CurrencyManager.cs: All the table creation stuff is done by the
21805 binding context now.
21806 - Current should throw an exception if listposition is -1.
21807 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21810 2006-05-30 Mike Kestner <mkestner@novell.com>
21812 * ListView.cs: allow reexpansion of zero-width column headers.
21815 2006-05-28 Chris Toshok <toshok@ximian.com>
21817 * CurrencyManager.cs (get_Current): after the late binding
21818 listposition = -1 fix, we need to guard against it here and return
21819 null, otherwise we raise an exception (which is swallowed
21820 elsewhere, and breaks datagrid databinding.)
21822 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21824 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21825 than WM_SYSKEY, don't throw if get something unexpected (#78507)
21827 2006-05-26 Jackson Harper <jackson@ximian.com>
21830 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21831 values, it's faster and it's all we care about (we don't care if
21832 the names aren't equal).
21833 * KeyboardLayouts.cs: Eliminate some dead code.
21835 * X11Keyboard.cs: Lazy init keyboard detection.
21836 - Cleanup access modifiers a little.
21838 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21840 * XplatUIX11.cs: Once again, attempting to get layout just right.
21842 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
21844 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21845 the sizes of each link section, that will result in sizes that
21846 match DrawString's layout (Fixes #78391)
21848 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
21850 * FileDialog.cs: If AddExtension property is true autocomplete the
21851 extensions in SaveFileDialog correctly. Fixes bug #78453.
21852 Set MyNetwork and MyComputer to "C:\" for windows. This should
21853 fix part 8 of bug #78446 for now.
21855 2006-05-26 Chris Toshok <toshok@ximian.com>
21857 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
21858 invalidate the current row header if we need to, but presumably
21859 we'll invalidate the row corrsponding to the bounds or
21861 (GridHScrolled): switch back to this method, as it's part of the
21862 public api. *sigh*.
21863 (GridVScrolled): same.
21864 (OnMouseWheel): hack up something that more or less works. Call
21865 GridHScrolled/GridVScrolled directly, instead of duplicating much
21866 of their code here.
21867 (EnsureCellVisibility): reinstate a bunch of this code, since we
21868 can't just set the scrollbar Value and expect to do all the work
21869 in the ValueChanged handler. Also, Call Update() after scrolling
21870 in one direction so the other XplatX11.ScrollWindow call has the
21871 proper stuff in the proper places.
21872 (EditCell): set is_editing to true before calling .Edit.
21874 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21875 don't bother comparing first.
21876 (OnKeyPress): call grid.ColumnStartedEditing before calling
21877 base.OnKeyPress. this will set is_changing and invalidate the row
21878 header if necessary.
21879 (ProcessKeyMessage): for WM_CHAR messages, call
21880 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
21883 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21884 it's done in the DataGrid.
21885 (NextState): call grid.ColumnStartedEditing, which takes care of
21886 invalidating the row header (and setting is_changing).
21888 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21889 here. it's done in the DataGrid.
21891 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21893 * Control.cs: allow changing the cursor when the mouse position is
21894 out of bounds but Capture is set.
21895 * LinkLabel.cs: handle the case when the mouse button is pressed on the
21896 linklabel but released somewhere else.
21898 2006-05-25 Jackson Harper <jackson@ximian.com>
21900 * TreeView.cs: When we get focus if there is no selected node make
21902 - Remove some uneeded setup code from Draw.
21903 * TreeNodeCollection.cs: If the tree doesn't have a top node when
21904 a new node is inserted make the new node the top.
21906 * Timer.cs: Use Utc time so that no local time zone stuff needs to
21907 be used (should be faster).
21909 2006-05-25 Chris Toshok <toshok@ximian.com>
21911 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
21912 problem with the last commit.
21914 2006-05-25 Chris Toshok <toshok@ximian.com>
21916 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
21917 need the invalidate call here, while scrolling right-to-left via
21918 the left arrow key (i.e. moving the editing cell while scrolling).
21920 * DataGrid.cs (.ctor): remove the initialization of
21921 ctrl_pressed/shift_pressed. We no longer track them using key
21922 up/down handlers, but by using Control.ModifierKeys. Also, switch
21923 to using ValueChanged handlers on the scrollbars instead of
21924 Scrolled event handlers. This simplifies a bunch of the scrolling
21926 (GridHValueChanged): rename from GridHScrolled, and change it to
21927 work with the new event args.
21928 (GridVValueChanged): same.
21929 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
21930 (OnMouseWheel): actually scroll the datagrid. Don't change the
21932 (ProcessGridKey): correct all the keyboard navigation stuff I
21933 could find. Ctrl up/down/left/right/home/end work now.
21934 (EnsureCellVisibility): correct method name spelling. Also,
21935 simplify this a touch by not explicitly calling the
21936 ScrollToRow/ScrollToColumnInPixels methods. We just set the
21938 (OnKeyUpDG): no need for this method now.
21940 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21942 * LinkLabel.cs: display the OverrideCursor when hovering the label.
21945 2006-05-25 Chris Toshok <toshok@ximian.com>
21947 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
21950 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
21952 * Application.cs: Moved setting of is_modal and closing to before
21953 we create the control, to allow the event handlers called as a
21954 result of creation affect closing. Also removed Gonzalo's previous
21955 change to setting DialogResult, the behaviour has been moved to
21958 - ShowDialog(): Removed explicit creation of the form, let RunLoop
21960 - ShowDialog(): If no dialog result is set, we need to return Cancel
21961 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
21962 the close is cancelled
21964 2006-05-25 Jackson Harper <jackson@ximian.com>
21966 * StatusBar.cs: We only need to update the sizes of the other
21967 panels when we have auto size contents. Also we are only updating
21968 the contents of the panel, not the borders, so compensate for the
21969 border width (TODO: get this width from the theme somehow).
21970 * TreeView.cs: Scrollable is true by default
21971 - Use invalidate instead of refresh where needed
21972 - Factor the scrollable value into scrollbar updating
21973 - Update the scrollbars if the Scrollable property is altered
21974 - Update the selected node if its ImageIndex is changed
21975 - Handle null nodes in UpdateNode (mainly so we don't have to
21976 check if selected is null when updating it
21977 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
21978 are factored into the visible count
21979 - Use VisibleCount for clarity in the code
21980 - When the font is changed we need to recurse through all the
21981 nodes and invalidate their sizes
21983 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21985 * Application.cs: set the DialogResult to fixed when the main form is
21986 hidden or destroyed while being modal.
21988 2006-05-25 Miguel de Icaza <miguel@novell.com>
21990 * Theme.cs: Use Tangoified messagebox icons.
21992 (GetSizedResourceImage): Also cope with width = 0 and do not
21993 trigger a warning in that case (0 means "give me your icon from
21994 the resouce, no special size needed).
21996 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
21998 * Application.cs: Leave runloop if the the main modal form is
21999 hidden (fixes #78484)
22001 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
22003 * BindingContext.cs : reject null datasource in Contains() and
22005 * CurrencyManager.cs : check data_member validity when data_source
22006 is dataset. When it is late binding, the initial position is -1.
22008 2006-05-24 Jackson Harper <jackson@ximian.com>
22010 * TreeNodeCollection.cs: Dont't recalculate the visible order on
22011 inserted nodes that aren't visible. This changes the
22012 max_visible_order which confuses scrollbar settings.
22013 - Use the enumerator to get the prev node instead of duplicating
22015 * TreeView.cs: Use new method for setting scrollbar values
22016 - Don't set the bounds every time the scrollbar is updated
22017 - When updating below the root node use an invalidate instead of a
22018 refresh to prevent the child controls (scrollbars) from being
22019 refreshed. (UpdateBelow still needs to be reworked anyways).
22020 - Reenable SetBottom now that visible orders are set correctly,
22021 added some debug code incase we ever get bad values there again.
22022 - Set the scrollbar max to 2 less then the max value, this
22023 compensates for the max value being one above the node count, and
22024 for scrollbars adding one extra "notch".
22025 - When drawing image nodes if there is an imagelist we draw the
22026 first image in the list if the supplied image index is out of the
22027 image list's bounds.
22029 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22031 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
22032 we receive a size change from the WM (Fixes #78503)
22034 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22036 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
22037 rectangle (Fixes #78501)
22039 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
22042 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
22044 - Fixed MouseMove to no longer switch pressed state unless the left
22045 mouse button is pressed. Atsushi provided the original patch (#78485)
22047 2006-05-24 Jackson Harper <jackson@ximian.com>
22049 * ScrollBar.cs: New internal methods that allow us to change a
22050 couple values on the scrollbar (the most common case is maximum
22051 and large change) without getting multiple invalidates.
22053 2006-05-24 Chris Toshok <toshok@ximian.com>
22055 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22056 (Edit): save off the original state in oldState, and set
22057 grid.is_editing to true.
22058 (OnKeyDown): abort editing if escape is pressed. also, call
22059 NextState if space is pressed.
22060 (OnMouseDown): call NextState.
22061 (NextState): factor out shared code from OnKeyDown and OnMouseDown
22062 here. Also, only invalidate the row header once (on the initial
22063 is_changing switch) to save on redraws.
22065 2006-05-24 Chris Toshok <toshok@ximian.com>
22067 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22068 if the value in the cell is different than it was before. This
22069 keeps us from triggering a layout when we move around a datarid
22070 with a highlighted cell.
22071 (Edit): suspend layout when creating/positining the text box, and
22072 resume passing false so we don't ever actually re-layout.
22073 (ReleaseHostedControl): same.
22074 (EnsureTextBox): reformat slightly, and set WordWrap to false.
22076 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22077 control-key sequences should go to the datagrid - remove that
22078 lock. Also, modify the conditions under which we move between
22079 cells when moving the cursor within a cell, and remove the "this"
22080 and "base" from field accesses. We weren't even consistent, given
22081 they all were in the base class.
22083 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
22085 * Binding.cs : (.ctor)
22086 An obvious NRE fix for BindingTest.CtorNullTest().
22088 2006-05-23 Chris Toshok <toshok@ximian.com>
22090 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22091 them between lines. This fixes some quirks editing cells in the
22094 2006-05-23 Jackson Harper <jackson@ximian.com>
22096 * TreeView.cs: Use begin/end update when doing expand/collapse all
22097 so that we don't get flicker on the scrollbar.
22099 2006-05-23 Jackson Harper <jackson@ximian.com>
22101 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
22102 treenode calculations to be independant of the painting code. To
22103 do this nodes track a visible order which is calculated by the
22105 - Call new methods for expanding/collapsing nodes. These methods
22106 use scrollwindow so we don't have to update everything below the
22108 * TreeView.cs: Refactored drawing and scrolling code. We don't
22109 need to update nodes when drawing anymore or calculate scrollbar
22111 - Added new methods for expanding/collapsing nodes. These methods
22112 use ScrollWindow so as to not have to redraw all the nodes below.
22113 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22114 we add/remove nodes or sort.
22115 - Handle removing the selected and the top node properly.
22117 2006-05-23 Chris Toshok <toshok@ximian.com>
22119 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22120 maybe this should actually happen in the datagrid code?
22121 (EndEdit): no need to invalidate anything, given that
22122 ReleaseHostedControl causes the datagrid to relayout, which
22123 invalidates everything anyway.
22125 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22126 in SetCurrentCell).
22127 (set_SelectionBackColor): call InvalidateSelection instead of
22129 (set_SelectionForeColor): same.
22130 (BeginEdit): Flesh this out a bit.
22131 (CancelEditing): only do any of this if we're editing/adding.
22133 (OnMouseDown): there's no need to cancel editing here, it's done
22135 (SetCurrentCell): only invalidate the current row header if it's a
22136 different row than the new one.
22137 (ShiftSelection): fix this to work like MS does.
22138 (ResetSelection): factor out the invalidation of selected_rows to
22139 InvalidateSelection.
22140 (SetDataSource): cancel any editing that's going on.
22142 * DataGridColumnStyle.cs
22143 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22144 call the non-interface version.
22146 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22147 header rectangle with the clip rectangle so we don't redraw the
22148 entire header for just a small area. Gets rid of the last flicker
22149 when horizontally scrolling.
22150 (DataGridPaintRow): same.
22152 2006-05-23 Mike Kestner <mkestner@novell.com>
22154 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22155 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
22156 poorly placed checkbox on the MS control. Fixes Alex's unfiled
22157 Critical bug report.
22159 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22161 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22162 and this fixes #78493
22164 2006-05-23 Miguel de Icaza <miguel@novell.com>
22166 * Theme.cs (GetSizedResourceImage): Scale images if the proper
22169 * FileDialog.cs: Do not change the background for the side bar as
22170 it wont work nicely with the theme, and also reduces the artifacts
22171 in rendering the icons (which I want to fix too).
22173 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22174 resources, not resgen resources.
22176 (PlatformDefaultHandler): Pull images using the new API.
22178 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
22180 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22181 a reference to the hwnd and will not remove it unless there are
22182 no pending exposures (fixes #78341)
22183 * XplatUI.cs: Improved debug
22185 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
22187 * MenuAPI.cs : don't handle OnClick event when it was not the left
22188 button. Fixed bug #78487.
22190 2006-05-23 Mike Kestner <mkestner@novell.com>
22192 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22193 prefer submenus to the top menu for item lookup, to avoid popping down
22196 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
22198 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22199 Graphics.FillRectangle as the visual results are really bad (even
22200 on win). We now draw perfect arrows (and perfect shadows when the
22201 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22202 Pen.DashPattern to draw the dots of each line.
22204 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
22206 * FileDialog.cs: Update the filename combobox when navigating through
22207 the ListView with the cursor keys. Fixes part 7 of bug #78446.
22209 2006-05-22 Mike Kestner <mkestner@novell.com>
22211 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22214 2006-05-22 Mike Kestner <mkestner@novell.com>
22216 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22217 requests. Fix a misspelled parameter and a copy paste exception error
22220 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
22222 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22223 to get the same width/height (5/13) on X11 as the default font has on
22224 win32. This means that our DefaultFont emSize is smaller than the
22225 the MS SWF equivalent (even thought the width/height stays the same)
22227 2006-05-20 Jackson Harper <jackson@ximian.com>
22230 * MdiWindowManager.cs:
22231 * InternalWindowManager.cs: Make sure to use the border width from
22234 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
22236 * PrintDialog.cs: Implements printer details
22238 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
22240 * FileDialog.cs: Added focus handling for PopupButtonPanel.
22241 Fixes part 1 and 2 of bug #78446
22243 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
22245 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22246 instead of sticking to the first ever calculated value
22248 2006-05-19 Mike Kestner <mkestner@novell.com>
22250 * ComboBox.cs: fix mouse motion selection to use MousePosition and
22251 PointToClient, since Capture is set. Fixes #78344.
22253 2006-05-19 Mike Kestner <mkestner@novell.com>
22255 * ListView.cs: match MS behavior in Details view where items are not
22256 drawn if Columns.Count == 0.
22257 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22258 Use a separate pen to draw the check, since changing the width affects
22259 the box as well. Fixes #78454.
22261 2006-05-18 Miguel de Icaza <miguel@novell.com>
22263 * ListView.cs: ArgumentOutOfRangeException, single versions of the
22264 exception should throw the name of the invalid argument.
22266 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22267 there are no files listed.
22269 2006-05-18 Jackson Harper <jackson@ximian.com>
22271 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22274 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22276 * Control.cs: Brought back our old UpdateZOrder method as a private
22277 function and switched our calls from UpdateZOrder to the new one.
22278 This fixes the Paint.Net canvas disappearing bug.
22280 2006-05-18 Jackson Harper <jackson@ximian.com>
22283 * ThemeWin32Classic.cs:
22284 * InternalWindowManager.cs: Move the drawing into the theme,
22285 expose everything the theme should need from the window manager.
22287 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22289 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
22290 from the call to NativeWindow to avoid walking up the parent chain
22291 further than needed (speeds up setting cursors and avoids setting
22292 the wrong cursor if a parent has another cursor defined)
22293 * Cursor.cs: When loading an icon as cursor, MS uses the center of
22294 the icon as hotspot, not what's contained as hotspot in the icon
22295 file. This fixes the perceived drawing offset seen with Paint.Net
22297 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22300 - Store the calculated rectangle in Hwnd object and use it when
22301 setting the client size
22302 - Force Toolwindows to always be type Dock, to ensure they're on top
22304 2006-05-18 Mike Kestner <mkestner@novell.com>
22306 * ComboBox.cs: first pass at ComboBox rework. Layout is more
22307 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
22308 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
22309 Substantial refactoring to remove confusing nested classes. Coding
22310 standard and Get+Set->property refactorings. Shift to index based
22311 highlighting in ComboListBox instead of constantly using IndexOf and
22312 Items[]. Add invalidations on resize for DropDownList to fix ugliness
22313 in FileDialog growth. Draw borders manually since Simple mode needs
22314 to look like two independent controls. Make listbox border
22315 conditional to DropDownStyle. Improved OwnerDraw support.
22317 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
22319 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
22320 Don't set the disposed graphics to null, so we can throw the "right"
22321 exception if the graphics is reused later (added a flag to avoid
22322 double disposing). Some behaviours are different under 2.0 and are
22323 filled under bug #78448.
22325 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
22327 * Control.cs: When double-buffering is enabled, we need to reset
22328 our graphics context between paint calls. Otherwise, any
22329 transformations and other alterations on the context will
22330 become cumulative (#77734)
22332 2006-05-18 Mike Kestner <mkestner@novell.com>
22334 * ListView.cs: do focused item selection like MS on clicks.
22335 Rework focus handling for ItemControl so LostFocus invalidates as
22337 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22338 the ListView ItemControl has focus.
22340 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
22342 * XplatUIX11.cs: If client_window ends up being width or height zero
22343 due to border settings, move it off window inside whole_window (#78433)
22345 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22347 * Mime.cs: Shrink the mime file cache correctly.
22349 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
22351 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22353 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22355 * XplatUIX11.cs (AddExpose): More sanity checks
22357 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22360 - AddExpose: Don't add expose ranges outside the size of our
22362 - Cast opacity values to Int32 to avoid crashes with certain
22364 - Added disabled code paths that protect against illegal cross-
22365 thread painting (Developers.exe)
22367 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22369 * ProgressBar.cs: Invalidate the control when it's resized
22370 since block size is based on control size. (#78388)
22372 2006-05-16 Miguel de Icaza <miguel@novell.com>
22374 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22375 of setting the incoming argument to the "reset" value, we set the
22376 this.datamember to string.empty (before we were invalidating the
22381 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22383 * Form.cs: Only apply transparency settings after the form
22384 is created. (Fixes #77800)
22386 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22388 * ApplicationContext.cs: Grab the HandleDestroyed event so
22389 we know when to fire OnMainFormClosed
22391 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22393 * Application.cs: Introduced sub-class to allow tracking of
22394 threads and centralized triggering of the event mess for
22395 ThreadExit, AppExit, etc.. (#76156)
22397 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
22400 - Do not return a null icon index value for a mime subclass.
22401 Instead try the main mime type class too.
22402 - Seems that some newer distributions don't have a link to some
22403 gnome default icons anymore. So check the default gnome dir too.
22406 2006-05-16 Jackson Harper <jackson@ximian.com>
22408 * MdiClient.cs: Don't paint the parent background image if we have
22409 our own background image.
22411 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
22414 - PerformLayout: Do not shrink space filled by DockStyle.Fill
22415 controls, all filled controls are supposed to overlap (#78080)
22416 - UpdateZOrder is supposed to update the control's z-order in the
22417 parent's z-order chain. Fixed to behave like that
22418 - BringToFront: Removed obsolete code
22419 - SendToBack: Simplyfied
22420 - SetChildIndex: Trigger layout calculations when Z-order changes
22421 since layout is done by z-order
22423 2006-05-16 Chris Toshok <toshok@ximian.com>
22425 [ fixes bug #78410 ]
22426 * DataGrid.cs (set_AlternatingBackColor): use
22427 grid_drawing.InvalidateCells instead of Refresh().
22428 (set_BackColor): call grid_drawing.InvalidateCells.
22429 (set_BackgroundColor): use Invalidate instead of Refresh.
22431 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22432 invalidate the cell area.
22434 2006-05-15 Chris Toshok <toshok@ximian.com>
22436 [ fixes bug #78011 ]
22437 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22438 on to DataGridPaintRow.
22439 (DataGridPaintRow): take a clip argument, and only draw the cells
22440 which intersect it. same with the not_usedarea.
22442 * Theme.cs (DataGridPaintRow) add @clip parameter.
22444 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22445 XplatUI.ScrollWindow.
22446 (ScrollToRow): same.
22448 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22449 with last column which was causing a gray swath to appear with the
22450 XplatUI.ScrollWindow code.
22452 2006-05-15 Chris Toshok <toshok@ximian.com>
22454 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22455 use XplatUI.ScrollWindow.
22456 (VerticalScrollEvent): use XplatUI.ScrollWindow.
22458 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22460 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22462 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22464 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22465 file since there are no equivalent X11 cursors
22467 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22469 * MonthCalendar.cs : DateTimePicker should reflect selected date
22470 on mouse*up*, not mouse*down*. Fixed originally reported part of
22473 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
22475 * TabControl.cs : When argument index is equal or more than tab
22476 count, just ignore. Fixed bug #78395.
22478 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
22480 * Control.cs: Dispose all child controls when control is diposed (#78394)
22482 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22484 * ColorDialog.cs: Finally it is possible to select the color with
22487 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22489 * PrintDialog.cs: Fix typo
22491 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
22493 * PrintDialog.cs: PrintDialog is not resizable
22494 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22495 color. Made some ToolBar drawing methods protected virtual.
22497 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
22499 * PrintDialog.cs: Implementation of the PrintDialog
22501 2006-05-12 Chris Toshok <toshok@ximian.com>
22503 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22504 thumb, instead use MoveThumb. This has the side effect of making
22505 most of the other thumb moving machinery use MoveThumb as well.
22506 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22507 need to actually invalidate the rectangle where the new thumb will
22509 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22510 We force an Update() after, so it's not as fast as it could be,
22511 but at least there's zero flicker and no droppings.
22512 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22513 (UpdateThumbPos): add another argument (dirty), which says whether
22514 or not to calculate/add dirty regions which we later invalidate.
22515 For cases where we know we're going to use MoveThumb, we pass
22516 false for this. Otherwise, pass true.
22518 2006-05-12 Jackson Harper <jackson@ximian.com>
22520 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22523 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
22525 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22526 and GetClipRegion methods and UserClipWontExposeParent property.
22527 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22528 overriding UserClipWontExposeParent property, setting to false, since
22529 Win32 handles the required expose messages to draw our clipped parent
22531 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22532 PaintEventStart to set the user clip region if set.
22534 - Now internally tracking the Region for the control since we need to
22535 store it if the handle is not yet created and only set it when it
22536 becomes created. Before setting the region forced handle creation
22537 - Added code to draw the parents underneath a user-clipped region
22538 * Hwnd.cs: Added UserClip property
22540 2006-05-12 Chris Toshok <toshok@ximian.com>
22542 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22543 (set_Maximum): same.
22544 (set_Minimum): same.
22545 (set_SmallChange): same.
22546 (OnMouseUpSB): remove the call to refresh when releasing the
22547 thumb. We shouldn't need it.
22549 2006-05-12 Miguel de Icaza <miguel@novell.com>
22551 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22552 AutoSize set to None, we do not need to relayout everything, we
22553 just need to invalidate the current region.
22555 (Draw): Do not draw the entire ClientArea, just redraw the
22556 clip area being passed.
22558 * MdiClient.cs: Make MdiClient constructor with the Form argument
22561 2006-05-12 Jackson Harper <jackson@ximian.com>
22563 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22564 parents background image, but strangely not their own.
22565 - (DrawStatusBarPanel): Take into account horizontal alignment
22566 when drawing the strings and icons.
22568 2006-05-12 Mike Kestner <mkestner@novell.com>
22570 * ListBox.cs: avoid invalidations for focus when the collection is
22573 2006-05-12 Chris Toshok <toshok@ximian.com>
22575 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22576 invalidate the entire thumb area. Call InvalidateDirty which
22577 limits the redraw to the thumb itself and surrounding pixels.
22579 * XplatUIX11.cs (ScrollWindow): optimize copying.
22581 2006-05-12 Chris Toshok <toshok@ximian.com>
22583 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22584 Figure out the positioning/layout in a single pass instead of
22585 multiple recursive invocations. Speeds up the initial display of
22586 the data grid. Also, make many things private that were
22587 originally public but unused outside this class.
22589 2006-05-11 Jackson Harper <jackson@ximian.com>
22591 * MdiClient.cs: Improved layout code.
22593 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
22595 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22596 not SelectedObject.
22598 2006-05-11 Chris Toshok <toshok@ximian.com>
22600 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22601 union of that will always be {0,0,width,height}.
22603 2006-05-11 Jackson Harper <jackson@ximian.com>
22605 * Form.cs: Match MS's DefaultSize for forms (they must have
22606 changed the size in sp2).
22608 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22610 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22612 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
22614 * TextControl.cs : Fixed bug #78109. This incorrect position
22615 comparison caused crash on automatic line split.
22616 * TextBoxBase.cs : reduce duplicate code.
22618 2006-05-10 Jackson Harper <jackson@ximian.com>
22620 * MdiClient.cs: Active form is only sent to the back when using
22621 the Next form functionality, when a form is clicked the current
22622 active shouldn't be sent to the back.
22623 - Layout the mdi windows when the container is first made visible.
22624 * Form.cs: Give the MdiClient a ref to the containing form when we
22627 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22629 * LinkLabel.cs : link_font could be uninitialized, so populate one
22630 before actual use. Fixed bug #78340.
22632 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
22634 * XplatUIX11.cs : clipboard format native value is IntPtr.
22637 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22640 - Instead of showing context menus directly we send WM_CONTEXTMENU,
22641 which is passed up the parent chain by DefWndProc
22642 - We now handle WM_CONTEXTMENU to display any menu, or pass it
22643 to DefWndProc (#77956)
22644 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22646 2006-05-10 Jackson Harper <jackson@ximian.com>
22648 * MdiClient.cs: We need to remove the controls from the mdi
22649 collection, when we close the window.
22650 * MdiWindowManager.cs: Special handling of closing mdi windows.
22651 * InternalWindowManager.cs: Make the close method virtual so the
22652 mdi window manager can handle it specially.
22654 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
22657 - Recalculate grid when the data source has changed
22658 - Matches styles provided by user from all data sources types
22659 * DataGridTableStyle.cs: For columns that provided by the user set the
22660 with the preferred value is there was unassigned.
22661 * CurrencyManager.cs: throw OnItemChanged event
22663 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22665 * PictureBox.cs: Don't animate until handle is created. Start animation
22666 when handle is created.
22668 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22670 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22672 * XEventQueue.cs: We don't need to provide the extra info
22674 2006-05-10 Jackson Harper <jackson@ximian.com>
22676 * MdiClient.cs: If the mdi clients parent form has a background
22677 image set, we draw that background image for the mdi area's
22680 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
22682 * TextBoxBase.cs: Set IBeam cursor (#78347)
22684 2006-05-10 Mike Kestner <mkestner@novell.com>
22686 * ToolBar.cs: fix some text padding issues with ButtonSize
22687 calculation. Update the default size to match MS documentation.
22688 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22689 button size. Fixes #78296.
22691 2006-05-10 Mike Kestner <mkestner@novell.com>
22693 * ListBox.cs: use is_visible for scrollbar positioning in case the
22694 control isn't on screen yet. Fix off by one with Right vs Width
22695 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22697 2006-05-10 Jackson Harper <jackson@ximian.com>
22699 * X11Dnd.cs: Drop to a control with another control on top of it.
22700 * ToolBar.cs: Work on a copy of the buttons list, so that it can
22701 be modified in click handlers. TODO: Look for similar problems in
22704 2006-05-09 Jackson Harper <jackson@ximian.com>
22706 * Form.cs: Window managers need the old window state when setting
22708 * InternalWindowManager.cs: Allow the base mdi window manager to
22709 handle more of the MDI only stuff (like maximize buttons).
22710 * MdiWindowManager.cs: Fix some snafus in changing the window
22711 state. Add all the menu functionality, for both popup and
22713 * MdiClient.cs: When a new form is selected the currently
22714 activated form is sent to the back, this matches MS.
22715 - Implement a new method to activate the next mdi child window.
22717 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
22720 - Added new InternalCapture method to allow controls to prevent
22721 the capture behaviour on the click handlers
22722 - Switched to use InternalCapture
22724 - Using InternalCapture to prevent mouse captures from being released
22725 on mouse button release (Fixes #78100)
22726 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22727 returns Form borders if a caption is present. (Fixes #78310)
22729 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
22731 * TreeNode.cs: Changed serialization .ctor to not require every field
22732 to be present. (#78265)
22733 * OwnerDrawPropertyBag.cs: Added serialization .ctor
22735 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
22737 * MimeIcon.cs: for is faster than foreach for strings.
22739 2006-05-05 Mike Kestner <mkestner@novell.com>
22741 * CheckedListBox.cs: update check handling code to not use selected.
22742 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22743 behavior for visual feedback, motion response, shift/ctrl handling,
22744 and properly deal with all 4 selection modes. Updates to bounds
22745 handling logic. Add scroll wheel support. [Fixes #77842]
22747 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
22750 - Moved adding of Implicit controls into .ctor. That way, subsequent
22751 creation of the controls will not cause them to think they are
22752 toplevel windows (fixes #78200 header problem)
22753 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22754 - Switched visibility setting of header control to use internal field
22755 to avoid triggering handle creation
22756 - Now checking if handle is created before causing a refresh when items
22757 are added (This makes us now match handle creation time with MS)
22758 * Splitter.cs: Removed loading of private splitter cursor, switched to
22759 Cursors version now that that is loading the right ones
22760 * Cursors.cs: Load proper splitter cursors from resources
22761 * Cursor.cs: Added second method of loading resource cursors for the
22762 VS.Net users amongst us
22764 2006-05-05 Mike Kestner <mkestner@novell.com>
22766 * ListView.cs: give header_control a minimum size based on the
22769 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
22771 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22772 window seems to do that with metacity, so set that type. (#78120)
22774 2006-05-05 Mike Kestner <mkestner@novell.com>
22776 * ListViewItem.cs: fix Details mode checkbox layout bug.
22777 * ThemeWin32Classic.cs: draw a ListView column header for unused space
22778 at the end of the header, if it exists. [Fixes for #78200]
22780 2006-05-04 Jackson Harper <jackson@ximian.com>
22782 * MdiClient.cs: Add a helper property to get the container form.
22783 * MdiWindowManager.cs: We have to make sure to use the menu origin
22784 when drawing the icons and buttons, this fixes maximized window
22785 icons/buttons on win32.
22786 * InternalWindowManager.cs: Reset the restore captions when a
22787 window goes from Maximized to Minimized and vice versa. Move the
22788 DrawMaximizedButtons into the MdiWindowManager source, tool
22789 windows can't be maximized. NOTE: This could use a little
22790 refactoring if time ever permits.
22792 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22794 * TextBox.cs: Add MWFCategoryAttributes
22795 * TextBoxBase.cs: Add MWFCategoryAttributes
22796 * Form.cs: Add MWFCategoryAttributes
22798 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22800 * Control.cs: Add MWFCategoryAttributes
22801 * ScrollableControl.cs: Add MWFCategoryAttributes
22803 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
22805 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22806 Divider is true. Fix a little glitch in PropertyToolBar
22809 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
22812 - Dispose: Call base.Dispose, this causes the disposed event
22813 to be fired (and probably other, more important stuff)
22814 - SetVisibleCore: Set is_visible to true after creating the
22815 window so that the window still gets created invisible (if
22816 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22817 to generate a WM_ACTIVE message
22818 * Form.cs: Call Dispose when we want to destroy the window, instead of
22819 just destroying the handle (Dispose will do that for us)
22821 - RootWindow also needs a queue, so we can properly process the
22822 property change events from RootWindow (like Activate)
22823 - Generatic synthetic WM_ACTIVE message when the active window is
22826 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22828 * LinkLabel.cs: Trigger a recalc of our label dimensions when
22831 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22833 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22834 for determining width and height (image might not be assigned if
22835 we're drawing an imagelist)
22837 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
22839 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22840 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22842 * Theme.cs: No longer returns hardcoded menu height, instead calls
22844 * Form.cs (OnLoad): Scaling happens before triggering Load events
22847 2006-05-01 Mike Kestner <mkestner@novell.com>
22849 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
22851 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
22853 * TextBoxBase.cs: Removed Fixme
22854 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22856 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
22859 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22860 the rectangle relative to the parent, considering borders. We
22861 don't really want that.
22862 - ScrollWindow: Fixed warning to be more understandable
22863 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22864 scrollbars and scroll only the visible area
22865 * RichTextBox.cs: Removed debug output
22867 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22869 * NumericUpDown.cs (Text): Just use base
22870 * UpDownBase.cs: Ensure txtView is created before using it
22872 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22874 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22875 casting to IntPtr to avoid 64bit overflow errors
22877 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22880 - AllowDrop: Don't force handle creation.
22881 - CreateHandle: Added call to tell driver if we're allowed to drop
22883 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22885 * FileDialog.cs: Remember the last directory not only for the
22886 current instance but also for new FileDialog instances.
22888 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22890 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22891 broke sending async messages
22893 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
22896 - ScrollWindow: Fixed method. We finally generate expose events again
22897 for scrolled areas. This was causing 'garbage' when scrolling
22898 textbox and other controls that used ScrollWindow
22899 - Switched from using the regular queue for paint events to the MS
22900 model of 'generating' paint events when the queue is empty.
22901 We use the new XQueueEvent.Paint subclass to store which windows
22903 - AddExpose now takes the x/y/width/height of the exposed area
22904 and inserts the window into the paint queue if not already there
22905 - InvalidateWholeWindow: Switched to use new AddExpose method
22906 - UpdateMessageQueue: Added which queue to monitor for paint events
22907 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22908 the unlikely case nothing above handles it. We reset the expose
22909 pending states to get them off the queue.
22910 - GetMessage: Now pulls a paint event if no other events are in the
22912 - Invalidate: Switched to new AddExpose method
22913 - PeekMessage: Updated to understand pending paint events
22914 - UpdateWindow: Fixed logic bug. We were only updating if the window
22915 didn't need updating. Also switched to sending WM_PAINT directly,
22917 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
22918 and random access Remove(). The random access is needed to handle
22919 UpdateWindow() where a WM_PAINT is sent directly without accessing
22921 * ScrollBar.cs: Added Update() calls to cause immediate updates to
22922 allow for better feedback when scrolling. Scrollbars are small and
22923 the immediate update should make it 'feel' more responsive without
22924 slowing things down. ScrollBar still needs it's invaliate logic
22925 updated to not always invalidate the whole bar on certain changes.
22927 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22930 (BackColor): if the control does not support a transparent background,
22931 return the default backcolor when the parent backcolor is transparent.
22933 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
22935 * Application.cs: Updated to new StartLoop/GetMessage API
22936 * RichTextBox.cs: Provide some output on RTF parsing errors
22937 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
22938 new queue_id argument to GetMessage and PeekMessage to allow faster
22939 handling of per-thread queues in drivers.
22940 * Hwnd.cs: Added Queue tracking and property
22941 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
22942 * XEventQueue.cs: Added thread trackingA
22943 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
22945 - Implemented new per-thread queue
22946 - GetMessage: Fixed return/break behaviour on several cases. We were
22947 returning stale messages in some cases, instead of just processing
22950 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
22952 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
22954 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
22956 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
22957 fixed off-by-one comparisons between Width/Height and Right/Bottom.
22959 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
22961 * PropertyGridView.cs: Fix drop down width.
22963 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22965 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
22966 a mess in DrawToolBar, so I removed one of them.
22968 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
22970 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
22971 needed (clip). Otherwise we get artifacts.
22973 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22975 * FixedSizeTextBox.cs: Added constructor to allow specifying which
22977 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
22978 and switched FixedSizeTextBox to only be fixed vertical (#78116)
22979 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
22980 if it matches the scale base font (avoids unneeded scaling)
22982 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
22984 * X11DesktopColors.cs: One gtk_init_check should be enough
22986 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22988 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22991 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
22994 - Generate OnTextChanged for Backspace even if we're only deleting
22995 the current selection
22996 - When setting the Text property, only select all text if the
22997 control does not have focus when it is being set. Otherwise
22998 just place the cursor at the beginning of the control
23000 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
23002 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23003 Added a little helper to draw PropertyGrid ToolBar with a different
23004 border and a different BackColor.
23005 * PropertyGrid.cs: Some background parts didn't get painted with the
23006 correct background color. Added a class that helps us to draw the
23007 correct border for PropertyGridView and a class that helps us to
23008 draw ToolBars with a different backcolor
23009 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23011 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
23013 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23014 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23016 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23018 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23019 into the palette entries. Also, since we're working on a copy
23020 we needed to copy the palette back onto the bitmap.
23021 * Cursor.cs: Same fix as XplatUIWin32.cs.
23023 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23025 * ImageListStreamer.cs: Need to read the var (or we're off)
23027 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
23029 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
23030 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
23031 TextBoxBase.cs: Unused var fixes
23032 * AxHost.cs: Small 2.0 fix
23033 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
23034 as it seems that is what at least Metacity expects. This will make
23035 icons show up on 64bit platforms. We still have some 64bit size
23036 issues, though, since the startup app window size still won't match.
23038 2006-04-25 Mike Kestner <mkestner@novell.com>
23040 * *.cs: cleanup newly reported exception var unused warnings.
23042 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23044 * ThemeWin32Classic.cs: Button image alignment now matches exactly
23047 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23049 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23050 image. The image position is always the same, no matter if the
23051 button is pressed or not.
23053 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
23055 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23056 selection and set the correct filename for SaveFileDialog.
23057 Patch by Emery Conrad.
23059 2006-04-24 Mike Kestner <mkestner@novell.com>
23061 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23062 check for item.X outside the ClientRect instead of item.Y. Fixes
23065 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23067 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23068 trust that value blindly and do some sanity check. Fixes bug #77814.
23070 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23072 * ImageListStreamer.cs: save the mask as a 1bpp image.
23074 2006-04-21 Mike Kestner <mkestner@novell.com>
23076 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23077 pass Checked and Indeterminate to the Theme Engine. Improve
23078 encapsulation with ListBox.
23079 * ListBox.cs: Keep a StringFormat instead of calculating it every item
23080 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23081 nested types. Move all CheckState functionality to CheckedListBox.
23082 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
23083 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
23084 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23085 single base list. Fix scrollbar sizing and placement to mirror MS.
23086 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23088 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23089 for CheckedListBox by using new DrawItemState info. Center the
23090 checkboxes on the items. Use new StringFormat property.
23092 2006-04-18 Jackson Harper <jackson@ximian.com>
23094 * Form.cs: MdiChildren don't do default locations the same way as
23095 regular forms. This prevents a crash when trying to position the
23098 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
23100 * PropertyGridTextBox.cs: Formatting, copyright
23101 * PropertiesTab.cs: Formatting
23102 * PropertyGrid.cs: Formatting
23103 * PropertyGridView.cs: Formatting, fix drop down, enabled double
23104 click toggling of values
23106 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
23108 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23109 * Control.cs (.ctor): verify_thread_handle is static, don't reset
23110 every time a control is created
23111 * Application.cs: Removed obsolete EnableRTLMirroring method
23113 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
23115 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23116 SelectedIndex to -1. Fixes bug #78121.
23118 2006-04-17 Jackson Harper <jackson@ximian.com>
23120 * Binding.cs: Handle null values for Current and BindingContext.
23121 This occurs when binding is a little delayed.
23122 * CurrencyManager.cs: return null for Current when there are no
23124 - Hookup to the listchanged event on the DataView and update
23125 bindings when the list is changed. This fixes late binding of
23128 2006-04-17 Jackson Harper <jackson@ximian.com>
23131 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23134 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
23136 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23138 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23139 with the correct ButtonState
23141 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
23143 * XplatUIX11.cs: Improved distinguishing between window types to
23144 tell the WM a type closer to what the app wants (Fixes #78107)
23146 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23148 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23151 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
23153 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23154 drawing code to reflect the size grip changes
23156 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23158 * ImageListStreamer.cs: fix handling of the mask that follows the main
23159 bitmap when deserializing and serialize it properly. The generated mask
23160 should better be a 1bpp image, but I'll do that later.
23162 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23164 * FileDialog.cs: Show something in the DirComboBox on *nix if the
23165 path doesn't fit into some of our Current.Places
23167 2006-04-13 Jackson Harper <jackson@ximian.com>
23169 * ComboBox.cs: Use borders instead of drawing our own decorations,
23170 try to obey correct rules for heights.
23173 * ThemeClearLooks.cs:
23174 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23175 this is now handled by borders.
23176 - Remove unused DrawListBoxDecorationSize method.
23178 2006-04-13 Mike Kestner <mkestner@novell.com>
23180 * MenuAPI.cs: null guarding for the disbled click check fixes crash
23183 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
23185 * ThemeWin32Classic.cs:
23186 - Fixed CPDrawStringDisabled
23187 - Corrected drawing of disabled menu items
23188 - Fixed drawing of disabled radio buttons (bug #78095)
23189 - Draw check in a disabled CheckBox with color ControlDark
23191 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23193 * Form.cs: Use the provided width when calculating the menu size;
23194 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23195 and ClientSize.Width won't be updated yet
23196 * Application.cs: Use Visible instead of Show() to make form visible,
23197 this way we create the handle later and menusize is considered
23199 2006-04-12 Mike Kestner <mkestner@novell.com>
23201 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23204 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23206 * TextBox.cs: Implemented context menu
23208 2006-04-12 Mike Kestner <mkestner@novell.com>
23210 * ListView.cs: implement box selection. fixes #77838.
23211 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23213 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23215 * XplatUIX11.cs: Added setting of window type when transient window
23216 is created (metacity would move it otherwise)
23217 * X11Structs.cs: Added WINDOW_TYPE atoms
23218 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23219 background (the control is Opaque but still wants transparent
23222 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23224 * Control.cs: Added OnPaintBackgroundInternal to allow controls
23225 that set Opaque but don't mean it (like all ButtonBase-derived
23226 controls) to still draw their background
23227 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23230 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23232 * Control.cs (PaintControlBackground): Set the graphics object
23233 on our PaintEvent to null to prevent it from being disposed
23234 when the PaintEvent gets disposed
23236 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
23238 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23239 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23241 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
23244 - Added transparency check to BackColor property. Transparent
23245 backgrounds are only allowed if the control styles permit it
23246 - Added recursive painting of parent control background and
23247 foreground if a control with a transparent backcolor is drawn
23248 (Thanks to Tim Ringenback for providing his 'hack' as a base
23249 for this patch) Fixes #77985 and #78026.
23250 - Added Opaque style check before calling OnPaintBackground, no
23251 need to draw the background if the control is opaque
23252 - Removed ControlAccessibleObject owner variable (inherited from
23253 base, no need to define again)
23254 - Added some documentation links explaining the drawing events
23257 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23259 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23260 that the affected control is the located at the left border of our
23261 parent (Fixes #77936)
23263 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23265 * TextBoxBase.cs: When rendering disabled or readonly controls,
23266 draw the background with 'Control' instead of 'Window' color as
23267 long as the user hasn't specifically set a color
23269 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23271 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23272 since that won't be updated if the user types text (only if it's
23273 programatically set)
23275 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23277 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23278 layout changes do to app-triggered resizes will have the proper
23279 display rectangle for layout
23281 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
23283 * ThemeWin32Classic.cs:
23284 - Make use of the SystemBrushes and SystemPens wherever possible
23285 - Corrected some highlight colors
23286 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23288 * Theme.cs: Added Empty field to CPColor struct
23290 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
23292 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23293 is displayed when calculating the display rectangle. Thanks to Mike
23294 for teaching me the err of my ways.
23296 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
23298 * ScrollableControl.cs:
23299 - Rewrote DisplayRectangle code, now returning the proper x/y coords
23300 (instead of 0,0) and we now return the real width/height instead of
23301 just the clientrectangle, adjusted for padding. The rectangle is
23302 now cached and created by the new CalculateDisplayRectangle method.
23303 - Created new CalculateDisplayRectange method, which basically does
23304 what get_DisplayRectangle() did originally, but now using the
23305 right edge instead of DisplayRectangle to determine the size of
23307 - get_Canvas(): Fixed it to properly calculate canvas for
23308 right/bottom controls which seem to be placed to the right/bottom
23309 of any controls that have a fixed location
23310 - Removed TODO that's taken care of
23311 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23312 and SetDisplayRectLocation according to new MSDN2 docs
23313 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23314 event when that is called, this is added for compatibility
23315 - ScrollControlIntoView(): Implemented.
23316 - Switched scrollbars to be implicit, they shouldn't be selectable
23317 * ContainerControl: Now that ScrollControlIntoView is implemented, we
23318 call it when the active control is set/changed
23319 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23320 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23321 implicit_control variable (used for native Win32 message generation)
23322 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
23323 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23324 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23325 * XplatUIStructs.cs: Added ScrollBarCommands enum
23327 2006-04-10 Jackson Harper <jackson@ximian.com>
23330 * CheckedListBox.cs:
23337 * PrintPreviewControl.cs:
23343 * UpDownBase.cs: Fixup base event overrides.
23345 2006-04-06 Mike Kestner <mkestner@novell.com>
23347 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23348 all user-initiated value changes to min <= value <= max-thumbsz+1.
23349 (set_Value): check for vert/horiz when calculating new thumb position.
23350 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23352 (OnMouseMoveSB): refactor the thumb dragging code and refine
23353 invalidation logic to reduce flicker.
23354 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23355 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23356 (UpdateThumbPosition): small code readability cleanup
23358 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
23360 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23363 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23365 * ThemeNice.cs: Use a better graphics effect when a button is pressed
23367 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
23369 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23370 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23371 This dramatically reduces the number of Pen.Dispose calls.
23372 Where possible call ResPool methods only once instead of calling it
23373 over and over again (for example for the same color).
23375 2006-04-06 Mike Kestner <mkestner@novell.com>
23377 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23378 Also remove an unused private field on the collection. Fixes #77972.
23380 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23382 * ThemeNice.cs: Added ToolBar drawing code
23384 2006-04-06 Mike Kestner <mkestner@novell.com>
23386 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23387 I'm assuming that means we need to look up the toplevel for the
23388 provided control. Fixes the crash trace in #77911 but exposes another
23389 crash in some strange reflection usage in NDocGui.
23391 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
23393 * ThemeNice.cs: Gave it a little silver touch and added Images
23395 * FontDialog.cs: FontDialog is not resizable
23396 * FileDialg.cs: Added SizeGripStyle.Show
23398 2006-04-05 Jackson Harper <jackson@ximian.com>
23400 * KeyboardLayouts.cs: Remove warning.
23402 2006-04-05 Jackson Harper <jackson@ximian.com>
23404 * Control.cs: Enable OnPaintInternal so we can use it for drawing
23405 all of our controls instead of Paint +=.
23420 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23421 use OnPaintInternal. Remove Width/Height and Visible checks in
23422 paint handler, this is done at a higher level now.
23423 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23424 * PaintEventArgs.cs: Add a handled flag so controls that don't
23425 want anymore painting after OnPaintInternal can make sure OnPaint
23428 2006-04-05 Mike Kestner <mkestner@novell.com>
23430 * Form.cs: fix the menu WndProc hacks to respect the native enabled
23431 state of the form, so that we don't process events when Modal dialogs
23432 are up. Fixes #77922.
23434 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
23436 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23439 2006-04-05 Mike Kestner <mkestner@novell.com>
23441 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23443 2006-04-05 Mike Kestner <mkestner@novell.com>
23445 * ListView.cs (HeaderMouseMove): null guarding for the over column
23446 when setting up the drag_to_index. Fixes #78015.
23448 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23450 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23451 in the taskbar. Transient windows seem to accomplish that.
23453 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
23456 - Re-enabled CreateParams.X/Y code for FormStartPosition
23457 - Added code for manual placement when creating the Control
23458 - Incomplete patch to treat MDI forms differently when
23459 setting the ClientSizeCore. (Still need to figure out handling
23462 - When we're explicitly setting the X/Y position of a non-Child
23463 window, let the WM know. Metacity really wants this.
23465 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23467 * ThemeNice.cs: Added CPDrawButton
23469 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23471 * ThemeNice.cs: Changed the color for focused buttons and activated
23472 the arrows for small scroll buttons.
23474 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
23476 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23477 anymore. Changed some method modifiers to protected (virtual)
23478 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23480 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23481 Updated drawing of menus, buttons and progressbars; added
23484 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23486 * ImageListStreamer.cs: implemented serialization/deserialization
23489 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
23491 * ThemeWin32Classic.cs:
23492 - Removed all the DrawFrameControl stuff; CPDrawButton,
23493 CPDrawCheckBox and CPDrawRadioButton are now handled directly
23495 - Updated and corrected the drawing code of CPDrawButton,
23496 CPDrawCheckBox and CPDrawRadioButton to better match ms
23497 - Updated theme checkbox and radiobutton code to use the CP*
23500 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23502 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23505 2006-03-31 Jackson Harper <jackson@ximian.com>
23507 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23509 * UpDownBase.cs: Don't CreateGraphics manually, use a
23510 Refresh. Ideally we would invalidate the correct areas here.
23512 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23515 - We now track the mapping state of windows. If a window (or
23516 one of it's parents) is not mapped we no longer permit
23517 WM_PAINT messages to be generated since we'd otherwise get
23518 lots of BadMatch X errors. Jackson did all the work figuring
23520 - Destroying the caret if the window it's contained in is
23521 destroyed. Can't use regular DestroyCaret method since it
23522 might fall into a drawing function (trying to remove the
23523 caret) and with that generate new BadMatch errors. Again,
23524 Jackson tracked this down.
23525 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23526 make sure we send the messages to all windows. (The old code
23527 would send the WM_DESTROY to the window, and then all child
23528 windows would be 'gone' because the WM_DESTROY handle lookup
23529 would no longer find the destroyed window)
23530 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23531 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23533 2006-03-31 Jackson Harper <jackson@ximian.com>
23535 * ScrollableControl.cs: Dont recalc if we are not visible.
23537 2006-03-31 Mike Kestner <mkestner@novell.com>
23539 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23540 the visibility branch.
23542 2006-03-31 Jackson Harper <jackson@ximian.com>
23544 * ScrollBar.cs: Cap values when incrementing/decrementing.
23546 2006-03-31 Mike Kestner <mkestner@novell.com>
23548 * MenuAPI.cs: setup menu.tracker for popup/context menus.
23549 * ToolTip.cs: guard against timer expirations with no active control.
23550 Not sure why it happened.
23552 2006-03-31 Mike Kestner <mkestner@novell.com>
23554 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23556 * ToolTip.cs: Position the tooltip based on where the cursor is at
23557 popup time, not at MouseEnter time. Add a Down state so that we don't
23558 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23559 positioning offset. Lookup DisplaySize at positioning time, since it
23560 can theoretically change during invocation.
23561 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23562 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23564 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23566 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23567 Fixes behaviour when the Text property of the box is String.Empty
23569 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
23571 * XplatUIX11.cs: Only send mouseleave for our client windows, not
23572 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23575 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23577 * FileDialog.cs: Visual enhancement for the popup buttons in
23580 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
23582 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23585 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
23587 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23588 highlighted menu items to match ms
23590 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
23592 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23594 2006-03-30 Mike Kestner <mkestner@novell.com>
23596 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23597 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23598 go active to account for HotLight to Selected transition.
23599 * MenuItem.cs: add internal Selected prop. Fill out the Status
23600 property by calculating it from item info. Add HotLight,
23601 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23603 2006-03-30 Mike Kestner <mkestner@novell.com>
23605 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23607 2006-03-29 Jackson Harper <jackson@ximian.com>
23609 * Form.cs: Implement TODO.
23611 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23613 * PrintPreviewDialog.cs: Implemented missing methods and events; still
23614 missing proper dialog setup in the constructor
23616 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
23618 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23620 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23621 - Fixed ResetBindings and removed TODO
23622 - Added check for cross-thread calls to get_Handle()
23623 - Added Marshaller attribute for set_Font to satisfy class status
23624 * FontDialog.cs: Removed TODOs that seemed implemented
23625 * UpDownBase.cs: Removed unneeded TODO and Fixme
23626 * MessageBox.cs: Implemented support for Default button and removed TODO
23627 * FileDialog.cs: Removed obsolete TODO
23628 * DomainUpDown.cs: Removed obsolete TODO
23629 * ButtonBase.cs: Removed obsolete TODO
23630 * XplatUIWin32.cs: Removed obsolete TODO
23632 - Removed obsolete TODO
23633 - Calling CheckAcceptButton when the acceptbutton is changed to allow
23634 internal status updates
23635 - Making sure the active control is selected when the control is created
23636 * CurrencyManager.cs: Removed obsolete TODO
23638 2006-03-29 Mike Kestner <mkestner@novell.com>
23640 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23641 of PrintPreviewDialog and RichTextBox.
23643 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23645 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23646 DarkDark, Light and LightLight colors for a specific color
23647 * ThemeWin32Classic.cs:
23648 - Use Button drawing code to draw RadioButtons and CheckBoxes with
23649 Appearance = Button
23650 - Make use of the new ResPool helper CPColor
23651 - Draw ProgressBar and StatusBar with correct 3D borders
23653 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
23655 * ColorDialog.cs: Return selected color. Fixes bug #77940.
23657 2006-03-28 Mike Kestner <mkestner@novell.com>
23659 * ListView.cs: fix Icon layout to plan for scrollbar widths when
23660 calculating col/row counts.
23662 2006-03-28 Mike Kestner <mkestner@novell.com>
23668 switch to explicit interface method implementation for some methods
23669 corcompare identifies as inconsistent with MS.
23671 2006-03-28 Mike Kestner <mkestner@novell.com>
23675 add a few missing methods from the class status output.
23677 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
23679 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23682 2006-03-28 Mike Kestner <mkestner@novell.com>
23684 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23686 2006-03-27 Mike Kestner <mkestner@novell.com>
23688 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23689 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23691 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
23693 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23695 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23697 * ThemeWin32Classic.cs:
23698 - GroupBox: Inserted a little gap between the text and the lines
23700 - Made the code in CPDrawBorder3D more readable
23701 - Corrected the drawing location of the up and down arrows in
23704 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23706 * ControlPaint.cs: Corrected line widths in DrawBorder for
23707 ButtonBorderStyle Inset and Outset
23709 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23711 * ThemeWin32Classic.cs:
23712 - Rewrote the totally broken CPDrawBorder3D method. That was
23713 one of the main problems for the terrific ThemeWin32Classic
23715 - Updated and corrected Button drawing
23716 - Correct the dimensions of the SizeGrip to match ms ones
23717 - Removed a small drawing glitch in DrawComboBoxEditDecorations
23718 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23719 Border3DStyle.Sunken to match ms.
23721 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
23723 * ThemeWin32Classic.cs: First small part of the "de-uglify
23724 ThemeWin32Classic" effort, SizeGrip
23726 2006-03-24 Jackson Harper <jackson@ximian.com>
23728 * XplatUIX11.cs: Give a max idle time of one second, this matches
23729 MS and forces an Idle event every second when there are no other
23730 events in the queue.
23732 2006-03-24 Mike Kestner <mkestner@novell.com>
23734 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23735 * ListView.Item.cs: fix layout issues with null image lists and images
23736 smaller than checkbox size.
23737 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23738 mode like MS does. It's weird, but consistent. ;-)
23741 2006-03-24 Mike Kestner <mkestner@novell.com>
23743 * ListView.cs: Scroll wheel support for the item control. Fixes
23746 2006-03-23 Jackson Harper <jackson@ximian.com>
23748 * ScrollableControl.cs: Special case negative sized areas, not
23750 * MonthCalendar.cs: Save the rect of the clicked date so we can
23751 use it for invalidation.
23752 - Try to cut down on the number of invalidates
23753 - Invalidate the rect the mouse is over and was over when moving
23754 the mouse, so we get the focus box following the cursor.
23756 2006-03-23 Mike Kestner <mkestner@novell.com>
23758 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23759 focus rectangle drawing. Fixes #77835.
23761 2006-03-23 Mike Kestner <mkestner@novell.com>
23763 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23764 the if and else if and reverting back to the original == check on the
23767 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
23769 * FontDialog.cs: Update the example panel if the selected index of
23770 the fontListBox changes.
23772 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
23774 * FileDialog.cs: Make FileDialog remember which directory it was in
23775 last in the same execution.
23777 2006-03-22 Mike Kestner <mkestner@novell.com>
23779 * FileDialog.cs: make the DropDownMenu on the toolbar display
23780 RadioChecks since they are mutually exclusive and that's what MS does.
23782 2006-03-22 Mike Kestner <mkestner@novell.com>
23784 * Theme.cs: add Color param to CPDrawMenuGlyph.
23785 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23786 checks and radio marks and arrows are visible on highlighted items.
23787 * ControlPaint.cs: update to use new Theme signature.
23789 2006-03-22 Mike Kestner <mkestner@novell.com>
23791 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23792 is active. Fixes #77870.
23794 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
23796 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23797 to be focused/selected after startup
23799 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
23802 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23803 CustomColors and ShowHelp properties
23804 - Some internal rewrites to get better results when using the
23807 2006-03-22 Mike Kestner <mkestner@novell.com>
23809 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23810 HoverSelection. Fixes #77836.
23812 2006-03-22 Mike Kestner <mkestner@novell.com>
23814 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
23815 ToggleButtons. (De)Sensitize the Back button around a stack count of
23816 1, not 0. Update ButtonSize based on a pixel count of the win32
23817 control. Adjust the toolbar size/location for new button size.
23819 2006-03-22 Jackson Harper <jackson@ximian.com>
23821 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23823 * ScrollBar.cs: When doing increments and decrements we need to
23824 set the Value property so that ValueChanged gets raised. A
23825 possible optimization here would be to make an internal SetValue
23826 that doesn't invalidate immediately.
23827 * ToolTip.cs: Tooltips get added to their container (when
23828 supplied) so they get disposed when the container is disposed.
23829 - Don't create tooltips for String.Empty. This prevents all these
23830 little 2-3 pixel windows from showing up when running nunit-gui
23831 and driving me mad.
23832 * Form.cs: Don't set topmost when setting the owner if the handles
23833 haven't been created yet. The topmost set will happen when the
23834 handles are created.
23836 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
23839 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23840 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
23841 visible (to allow them to recalculate their sizes)
23843 2006-03-21 Mike Kestner <mkestner@novell.com>
23845 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23846 methods. Removed a ton of redundant code. Still not really happy with
23847 the border rendering, but I think that's mainly because of the
23848 ControlDarkDark being black instead of a dark grey. Depending on how
23849 close we want to be, we might want to revisit those color choices.
23850 Among the new features added during the refactor were DropDownArrow
23851 pressed rendering, Disabled image rendering. Proper flat appearance
23852 boundary rendering. Removed the Divider and Wrapping dividers since I
23853 can't figure out any combination of themes and conditions to make the
23854 MS control draw a horizontal line on a toolbar despite what the
23855 Divider property docs indicate.
23856 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23857 conditions and incorrect layout. Updated to coding standard.
23858 * ToolBarButton.cs: refactored layout and positioning code from
23859 ToolBar to here. Invalidate wherever possible instead of forcing
23860 redraws of the whole toolbar.
23861 (Known remaining issues: explicit ButtonSize smaller than provided
23864 2006-03-21 Mike Kestner <mkestner@novell.com>
23866 * ContextMenu.cs (Show): use the position parameter instead of just
23867 showing at the MousePosition.
23869 2006-03-21 Jackson Harper <jackson@ximian.com>
23871 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23872 control handle this.
23873 * TreeNodeCollection.cs: If we are clearing the root node we need
23874 to reset top_node so calcs can still happen.
23875 * ThemeWin32Classic.cs: This is a Flags so we need to check
23878 2006-03-21 Jackson Harper <jackson@ximian.com>
23880 * DataGrid.cs: Create columns when the binding context has been
23882 * X11Structs.cs: Keysyms are uints.
23883 - Add size to fix build.
23885 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
23887 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
23889 - Added ResetMouseHover method to allow controls to retrigger
23890 hovering if they need it more than once
23891 - Implemented MouseHoverTime and MouseHoverSize properties
23892 * Timer.cs: Start() must reset the interval
23893 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23896 2006-03-21 Jackson Harper <jackson@ximian.com>
23898 * X11Keyboard.cs: improved layout detection. Move the nonchar
23899 tables into this file.
23900 * KeyboardLayouts.cs: Move the tables into resource files.
23902 2006-03-21 Mike Kestner <mkestner@novell.com>
23904 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23906 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
23908 * Mime.cs: Various speed optimizations. Looking up mime types
23909 is now 2 times faster than before
23911 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
23913 * CreateParams.cs: Added internal menu field
23915 - Switched call order for UpdateBounds; now we always call
23916 the one that also takes ClientSize, and we're calculating the
23917 client size via driver method in the others. The previous
23918 method of tracking client size by difference wasn't working
23919 for forms where even the starting client size wouldn't match
23920 the overall form size (due to borders) (Part of fix for #77729)
23921 - CreateParams(): Do not use parent.Handle unless the handle is
23922 already created. Causes havoc with Nexxia and throws off our
23923 creation of controls
23925 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
23926 - Switched handling of ConfigureNotify over to new PerformNCCalc
23927 method (consolidates code)
23928 - Changed RequestNCRecalc to use new PerformNCCalc method
23929 - Added calls to RequestNCRecalc when menus and borders are changed
23930 to allow app to set NC size. (Part of fix for #77729) This matches
23931 when MS send a WM_NCRECALC on Win32 windows.
23932 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
23933 (Part of fix for #77729). This matches what MS does, they also
23934 send that message when the form is made visible.
23935 - XException.GetMessage: Improved usability of X errors by including
23936 a translation of the window into Hwnd and Control class
23937 - Improved debug info for window creation, reparenting and destruction
23938 - Created helper method WindowIsMapped() [Currently not used]
23939 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
23941 - CreateParams: Now setting our menu on the new internal menu field
23942 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
23943 avoid calculating the same property twice
23945 - Improved usability of ToString() for debugging purposes
23946 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
23947 determine the height of the menu, instead of just the font. This
23948 required to also create a graphics context and to keep a bmp
23949 around (for performance reasons)
23951 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
23953 * MenuAPI.cs: Added OnMouseUp method
23955 - Now remembering the requested client size, avoids size errors
23956 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
23957 instead of base if the menu is active. This is required due to
23958 control now capturing and releasing on down/up and it would
23959 prematurely release our menu capture
23961 2006-03-17 Jackson Harper <jackson@ximian.com>
23963 * KeyboardLayouts.cs: Add the czech layouts.
23965 2006-03-16 Jackson Harper <jackson@ximian.com>
23967 * Control.cs: Use the viewport space when sizing not the controls
23968 client size, so things like ScrollableControl that effect the
23969 viewport size (when scrollbars are added) are computed correctly.
23970 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
23972 - Handle creating BindingManagers for null data sources.
23973 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
23974 source, otherwise when rows are added they are added to the 'fake'
23975 datasource and we will crash when trying to set the position in
23977 - Use Implicit scrollbars on the datagrid so they arent
23980 2006-03-16 Jackson Harper <jackson@ximian.com>
23983 * InternalWindowManager.cs:
23984 * MdiWindowManager.cs:
23985 * X11Keyboard.cs: I really want Mike to love me again (fix
23986 compiler warnings).
23988 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
23991 - OnMouseDown: Switch to editing mode when clicking on the cell
23992 even if we're clicking on the cell that's currently
23994 - ProcessGridKey: Left/Right now wrap like MS.Net does
23995 - ProcessGridKey: Tab now knows to add a new row when tab is
23996 pressed in the cell of the last column of the
23998 - ProcessGridKey: Enter now adds another row if pressed in the last
23999 row and selectes the new row, same column cell
24000 - ProcessGridKey: Home/End navigate columns, not rows, like
24001 originally implemented
24002 - Broke ProcessKeyPreview code out into an extra Internal method
24003 so it can be called from the edit code
24004 * DataGridTextBox.cs (ProcessKeyMessage):
24005 - Switched to accept Tab keypresses
24006 - Added F2 handling to allow jumping to the end of the edited cell
24007 - Added logic to allow moving caret left/right inside edited cell
24008 and making the edited cell jump when the caret hits cell borders
24009 - Tab and Enter are now passed to the datagrid after being handled
24011 - Removed capture code now that Control handles it
24012 - set_SelectionStart now ensures caret is visible
24014 2006-03-16 Jackson Harper <jackson@ximian.com>
24016 * TrackBar.cs: Debackwards the increment/decrement for handling
24017 mouse clicks on the bar with vertical trackbars.
24018 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24019 bottom to match MS.
24021 2006-03-16 Mike Kestner <mkestner@novell.com>
24023 * ListView.cs: make shift/ctrl keyboard and mouse selection
24024 consistent with the MS control. Fix a bug in
24025 SelectedListViewItemCollection.Clear that was pissing me off for the
24026 better part of a day because the collection was being altered
24027 underneath us as we walked the list.
24029 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
24031 * Control.cs: Not sure how we could miss this so long, but it seems
24032 that MS.Net has Capture set all the way from before calling
24033 OnMouseDown through sending the mouse events until after
24034 OnMouseUp. This will fix DataGrid's selection being set to end
24035 at the location of the MouseUp.
24037 2006-03-15 Jackson Harper <jackson@ximian.com>
24039 * BindingContext.cs: Check the binding after its added so that it
24040 can initialize the binding managers and hookup to events.
24041 * Binding.cs: Data members seem to sometimes include rows/cols in
24042 the format Row.Column we now take this into account.
24043 - Hookup to the position changed event so we can update the
24044 control when the position has changed in the data set.
24045 * CurrencyManager.cs: Take into account the row/col naming
24046 convention when creating dataset tables.
24047 * BindingContext.cs: Using a newer better way of storing
24048 datasource/datamember pairs. Hopefully this better matches MS for
24049 looking up binding managers.
24052 2006-03-15 Jackson Harper <jackson@ximian.com>
24054 * BindingContext.cs: The currency manager needs the data member
24055 name, if the member is a data set we use the name to find the
24057 * CurrencyManager.cs: When creating the list prefer an IList over
24059 - Attempt to create a DataTable from a DataSet (TODO: might need
24060 some better error checking here, although MS doesn't seem to have much)
24061 - If we have a DataTable create a view and use it as our list.
24063 2006-03-15 Mike Kestner <mkestner@novell.com>
24065 * ListView.cs: keep a matrix of the icon mode layout to facilitate
24066 keyboard navigation. Support Up/Down/Left/Right selection correctly
24067 for all 4 View modes.
24068 * ListViewItem.cs: add internal row/col fields for icon layouts.
24070 2006-03-15 Jackson Harper <jackson@ximian.com>
24072 * TabControl.cs: Redraw the tabs when we resize so their newly
24073 calculated sizes are drawn on screen.
24074 * X11Keyboard.cs: Begginnings of XIM support. We also now support
24075 composite characters.
24076 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24077 - filter events so that composite characters can be created
24079 * X11Structs.cs: Add XIMProperties enum.
24081 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24083 * Control.cs (BringToFront, SendToBack): Don't use window or handle
24084 unless it's created
24086 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24088 * Control.cs (PerformLayout): We don't need to consider visiblity
24089 for anchoring, only for docking. This fixes 'whacky' alignment
24090 in listbox and other controls that use implicit scrollbars after
24091 the previous PerformLayout patch
24092 * ListBox.cs: Switched to use implicit scrollbars
24094 2006-03-14 Mike Kestner <mkestner@novell.com>
24098 - chain up the "new event" overrides to base and use
24099 OnEvent to raise them. Part of fix for bug #76509.
24101 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
24103 * FileDialog.cs: Do not select an item in the parent directory
24106 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24108 * Control.cs (PerformLayout): It would seem that we considered
24109 invisible windows for our layout. Not quite the right thing
24110 to do. Now we don't any longer, thereby fixing bug #76889.
24112 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
24114 * Control.cs (CanFocus): I goofed. A control can have focus
24115 even though it's not selectable. Made it match MS docs.
24117 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24119 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24120 center by default (fixes #76895)
24121 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
24122 all uses of Border3DSides.All with the explicit ORd together
24123 Left|Right|Top|Bottom because I assume that nobody was aware
24124 that All also implies a center fill. Most places I checked had
24125 a fill right above.
24126 * ProgressBarStyle.cs: Added
24128 2006-03-13 Mike Kestner <mkestner@novell.com>
24130 * ListView.cs: fix breakage in drag shadow header positioning
24131 from Peter's csc compilation fix.
24133 2006-03-13 Mike Kestner <mkestner@novell.com>
24135 * ListView.cs: fix NRE produced by backspacing twice in a focused
24138 2006-03-13 Mike Kestner <mkestner@novell.com>
24140 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24142 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24144 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24146 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24147 the allowed size before making programmatic size changes
24149 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24151 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
24152 set, metacity is broken and will still use the emty sizes in
24153 the struct. (Fix for #77089)
24155 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
24157 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
24158 WindowExStyles and marked both enums as Flags
24159 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24160 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24161 to match WindowStyles split
24163 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24164 - Updated to match WindowStyles split
24166 - Fixed FosterParent creation, was using ExStyle on the Style field
24167 (This should help with Popup focus issues)
24168 - Updated to match WindowStyles split
24170 2006-03-13 Jackson Harper <jackson@ximian.com>
24172 * MdiWindowManager.cs: Use the system menu height. Fixes some
24173 strange sizing issues.
24175 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24177 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24179 - Scroll to caret after inserting text (#77672)
24180 - Make scroll range one pixel higher, fixes off-by-one error (and
24181 makes underlines visible on the last line)
24183 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24185 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24186 the keyboard state from being stuck with keys in 'pressed' state when
24187 focus is switched away via keyboard
24188 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24189 reset the keyboard if no X11 KeyUp events are expected to come
24190 * X11Structs.cs: Switched type of Visible to bool to match driver
24192 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
24195 - Switched caret to be just 1 pixel wide, matches MS and looks less
24197 - Moved caret display 1 pixel down from the top of the control
24199 - InsertCharAtCharet: Update the selection start if moving the caret
24200 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24201 - No longer always creating the caret when the caret methods are
24202 called. Only the actual ShowCaret/HideCaret will do that now
24203 - Only setting caret visible if the owner control has focus
24204 - UpdateView: Added invalidation-shortcut logic for center and right
24205 aligned text. Previously we'd update all according to the left
24206 logic which caused drawing errors. Also fixed height of invalidated
24207 areas, now properly invalidating the whole area (was off-by-one)
24208 - owner_HandleCreated: Always generate the document when the
24209 handle is created; this ensures that
24211 - Fixed situation where caret would disappear under the right
24212 window border, also improved scrolling behaviour on left-
24214 - Fixed right-aligned textboxes to have a border to the
24215 right instead of the caret being under the right border
24217 - Switched from 'nested' to simple visible/not visible tracking
24218 for caret (part of fix for #77671)
24219 - No longer passing through translated FocusIn/FocusOut messages
24220 since we were notifying too often and the wrong windows. Instead
24221 we just notify our focussed window of receiving or loosing focus
24222 * XplatUIWin32.cs: Switched from 'nested' show/hide
24223 counting for caret to simple visible yes/no behaviour (part of
24226 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24228 * Mime.cs: Remove debug code...
24230 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
24232 * MimeGenerated.cs: Removed
24233 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24234 and subclasses) from /usr/(local/)share/mime and
24235 $HOME/.local/share/mime.
24237 2006-03-10 Jackson Harper <jackson@ximian.com>
24239 * MdiWindowManager.cs: Recalc the NC area when a window is
24240 maximized/restored so that the menu area is drawn on forms that
24243 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24245 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24246 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24247 us to force a WM_NCCALCRESIZE message being sent. This is needed
24248 for MDI maximizing.
24250 2006-03-10 Jackson Harper <jackson@ximian.com>
24252 * Form.cs: We need to use the ActiveMenu when calculating menu
24254 - Fix nullref when the window manager hasn't been created yet.
24255 * Control.cs: Fix nullref when we try to bring a control to the
24256 front that has no parent.
24257 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24259 - Add a dummy item to the maximized menu so it always has the
24260 correct height. Otherwise when there are no menus we don't get our
24264 2006-03-10 Jackson Harper <jackson@ximian.com>
24266 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24268 * Form.cs: Make the window_state internal so the window managers
24270 - When an MDI child is maximized let its window manager create the
24271 main menu (so it can add its icon).
24272 - Notify the window managers of state changes
24273 - Let the window manager paint its buttons and handle button
24274 clicks on the menu when it is maximized.
24275 * InternalWindowManager.cs: Move the prev_bounds into the mdi
24276 window manager, since tool windows don't use it, only mdi windows.
24277 - Tell the main form that we don't want it to handle NCPAINT
24278 itself to avoid extra painting.
24279 - Handle clicks on a maximized windows menu.
24280 - Handle window state changes
24281 - Handle minimize/maximize clicks correctly by setting the window state.
24282 * MdiWindowManager.cs: Add an icon menu that (the menu you get
24283 when clicking on the forms icon).
24284 - New method to create a forms maximized menu. This is its normal
24286 - Handle window state changes.
24287 - Handle sizing of maximized windows. Maximized windows are just
24288 drawn bigger then the parent visible area. All controls are still
24289 there, they are just outside the visible area (this matches windows).
24290 * MdiClient.cs: No scrollbars when a child window is maximized.
24291 - Let the children windows figure out how big they should be when
24292 sizing maximized windows.
24293 - Implement a version of ArrangeIconicWindows somewhat similar to
24294 Windows version. There are some little differences, but I don't
24295 think any app will rely on the layout of minimized mdi windows.
24297 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24299 * Padding.cs: Several fixes to allow compiling with csc 2.0
24301 2006-03-09 Jackson Harper <jackson@ximian.com>
24304 * MenuItem.cs: Cheap hack so we can add items to the list without
24305 the events being raised. This allows adding mdi items during
24306 drawing. TODO: Should probably find a better time to add the items.
24308 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24310 * ThemeWin32Classic.cs:
24311 - CheckBox_DrawText: Added logic to not wrap if not enough space
24312 is available (Fix for bug #77727)
24313 - RadioButton_DrawText: Added logic not to wrap if not enough
24314 space is available (Fix for bug #77727). Also removed some
24315 duplicate code, DrawString always drawing the regular text
24316 before hitting the if statement.
24318 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24320 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24322 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
24324 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24325 * ContainerControl.cs: Partial implementation of some 2.0 scaling
24326 methods. Moved the new 2.0 properties into alphabetical order with
24327 other properties and added MonoTODO tags
24329 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24331 * AutoScaleMode.cs: Added. Fix build.
24333 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24335 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24336 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24337 and was requiring premature handle creation for calls from above
24338 * Form.cs, Control.cs: Removed handle arguments from calls to
24339 CalculateClientRect()
24341 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24343 * ListView.cs (HeaderMouseMove): Fix csc compilation.
24344 drag_column.column_rect is MarshalByRef and can't be used that way
24346 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24348 * AxHost.cs: Added deserialization constructor for
24349 AxHost+State (fixes 77743)
24351 2006-03-09 Mike Kestner <mkestner@novell.com>
24354 - Added column drag reordering for details view.
24355 - fixed behavior when mouse is dragged off column and
24356 AllowColumnReorder is false.
24357 * ColumnHeader.cs: clone the format too in Clone.
24358 * Theme.cs: add DrawListViewHeaderDragDetails method.
24359 * ThemeWin32Classic.cs:
24360 - impl new method for drawing drag column shadows and targets.
24361 - support column offset for details mode in DrawListViewItem.
24363 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24365 * TextControl.cs: Reset the char_count when the document is cleared
24366 (Fixes bug reported on mono-winforms mailing list)
24368 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24370 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24371 of calling base we simply process the key ourselves, since both
24372 DefWindowProc and the handled method would set m.Result.
24375 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
24377 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24378 method also moves the window; instead implemented a copy of
24379 Control.ScaleCore (Part of fix for #77456)
24381 - Created new CreateGraphicsInternal method to allow providing
24382 a graphics context when no handle is created without triggering
24383 handle creation. (Part of fix for #77456)
24384 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24386 - Switched Constructor to require TextBoxBase instead of Control (to
24387 allow uncast access to CreateGraphicsInternal)
24388 - Safeguarded use of owner.Handle property. No longer accessing it
24389 unless the handle is already created.
24390 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24391 - Now triggering a recalc when owning control becomes visible
24392 * TextBox.cs, RichTextBox.cs: Switched to use new internal
24393 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24394 premature handle creation (Part of fix for #77456)
24396 - We now only destroy our double-buffering buffers when the
24397 control is resized or disposed, but not when visibility
24398 changes. (The code even re-created them twice every time)
24399 - Now requiring a redraw of the buffer on visibility changes
24400 (fixes bug 77654 part 2)
24401 - Not passing OnParentVisibleChanged up unless the control
24403 - CanFocus: Fixed to match MS documentation
24404 - Focus: Fixed to return actual focus state and to check if
24405 setting focus is legal before setting it
24407 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
24409 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24410 when to draw focus rectangle by looking at parent focus and
24411 selected state instead. This fixes TabPages on Linux sometimes
24412 having none or multiple focus rectangles.
24413 * XplatUIX11.cs (SetFocus):
24414 - Don't set the focus if the same window already has focus
24415 - Use SendMessage instead of PostMessage (like it's Win32
24416 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24417 to match MS behaviour
24418 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24419 are not selectable.
24421 2006-03-07 Jackson Harper <jackson@ximian.com>
24423 * PictureBox.cs: Revert line I accidently committed last week.
24425 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
24428 - Added new IsRecreating and ParentIsRecreating properties to
24429 allow testing if RecreateHandle has been called on ourselves
24430 or one of our parents
24431 - WndProc(WM_DESTROY): If our control handle is being recreated
24432 we immediately need to create the handle when receiving the
24433 destroy, that way our child windows find a valid parent handle
24434 when they themselves are being recreated upon WM_DESTROY receipt
24435 (fix for bug #77654 part 1)
24437 - DestroyWindow: WM_DESTROY must be sent to our own window before
24438 notifying any child windows. MS documents that child windows
24439 are still valid when WM_DESTROY is received. (Control now relies on
24441 - Added some fine-grain debug options
24443 2006-03-06 Jackson Harper <jackson@ximian.com>
24445 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24446 box and base calculations off this.
24447 * MdiChildContext.cs:
24448 * MdiWindowManager.cs: Don't need to ensure scrollbars here
24451 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
24453 * Splitter.cs: In situations where the affected control is added
24454 to the parent's control list after the splitter, we would not
24455 populate affected. Now we try populating it on mousedown, if
24456 it's not already set, and force it to be re-set whenever our
24459 2006-03-03 Matt Hargett <matt@use.net>
24461 * Control.cs: implement Control.Padding
24462 * Padding.cs: -Padding.All returns -1 when constructing with the
24463 implicit default ctor
24464 -Padding.ToString() matches MS.NET
24465 * ContainerControl.cs: implement
24466 ContainerControl.AutoScaleDimensions
24467 * ListControl.cs: implement ListControl.FormattingEnabled
24468 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24470 * TabPage.cs: Implement UseVisualStyleBackColor.
24471 * PictureBox.cs: Implement PictureBox.InitialImage.
24473 2006-03-03 Mike Kestner <mkestner@novell.com>
24475 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24476 event declarations to proxy to base event.
24477 * ListViewItem.cs: update to use ItemControl.
24478 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24479 * ThemeWin32Classic.cs: update to new ListView theme API and fix
24480 column header label rendering for 0 width columns.
24482 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
24484 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24485 that causes the control to be created. Fixes #77476.
24487 2006-03-02 Jackson Harper <jackson@ximian.com>
24489 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24492 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
24494 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24495 passed in for the EventArgs (fixes #77690)
24497 2006-03-01 Jackson Harper <jackson@ximian.com>
24499 * ScrollBar.cs: Refresh afterbeing resized.
24501 2006-02-28 Mike Kestner <mkestner@novell.com>
24503 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24504 Clean up a tracker compile warning.
24505 * MenuItem.cs: add internal PerformPopup method.
24508 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24510 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24511 implicit expose) when the text is set to null
24513 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24515 * RichTextBox.cs (FlushText): When newline is true, we always
24516 need to split the line, even if no text is on it and we may
24517 never eat newlines. (Fixes #77669)
24519 2006-02-28 Mike Kestner <mkestner@novell.com>
24521 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
24522 and set Selected instead.
24523 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
24526 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
24528 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24530 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
24533 - Got rid of the panel. All controls are now directly added to
24535 - It is now possible to set a font with the Font property
24536 - MinSize and MaxSize property do now what they should
24537 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24538 - Searching and selecting a font with the font textbox works now,
24539 the same applies to the style and size textbox
24540 - Draw the correct 3D border in the example panel
24541 - Fixed a little mem leak (unused fonts didn't get disposed)
24542 - Many other internal updates/rewrites...
24545 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24548 - InsertRTFFromStream: Added 'number of characters inserted' argument
24549 - set_SelectedRTF: Now using the number of characters to calculate
24550 the new location for the selection and cursor (x/y cannot be used
24551 due to potentially already wrapped text)
24553 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24555 * TextControl.cs: Added property and implemented means to allow
24556 disabling recalculation of a document (can be used to speed up
24557 multiple inserts and is needed to make RTF inserts predictable, see
24559 * RichTextBox.cs: Using the new NoRecalc property of Document to
24560 keep x/y insert locations predictable. Also makes it faster inserting
24561 large chunks of RTF
24563 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
24565 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24566 it's easier for a child control to handle the other messages without
24567 having to duplicate the special functionality
24569 - WndProc: Removed calling base handler for WM_KEYDOWN and added
24570 code to handle processing the key ourselves, in order to get
24571 access to the result of KeyEventArgs.Handled. We now only call
24572 ProcessKey if they key hasn't been handled already. Fixes #77526.
24573 - set_Text: If null or empty string is given, just clear the
24574 document. Fixes part of #77526
24576 2006-02-27 Jackson Harper <jackson@ximian.com>
24578 * SizeGrip.cs: Paint the background color before painting the grip
24579 so things look right.
24580 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24582 2006-02-27 Mike Kestner <mkestner@novell.com>
24585 - Restructure layout and invalidation model to remove a ton of
24586 flicker from the control and speed up performance in general.
24587 - Add manual column resize, flickers like crazy, but I already have
24588 some ideas on how I'll fix that. (#76822)
24589 - Merge the three Icon-based views into a single layout method.
24590 - Move item selection interaction logic from the item since
24591 interaction with the collections is more appropriate to the view.
24592 - Deselection on non-item clicks.
24594 - Encapsulate most of the layout. Add some internal props to trigger
24595 layout. Move to a model where Items invalidate themselves instead
24596 of just invalidating the whole control every time something changes.
24597 - Invalidate on Text/Caption changes.
24598 - switch to an offset based layout model to avoid having to absolute
24599 position every element on item moves.
24600 - correct checkbox layout to conform to MS layout.
24601 * ThemeWin32Classic.cs:
24602 - refactor some column header drawing code.
24603 - fix string justification for column headers (#76821)
24604 - make SmallIcon labels top justified for compat with MS impl.
24605 * ThemeClearlooks.cs:
24606 - adjust to new ListViewItem internal checkbox bounds api.
24608 2006-02-27 Jackson Harper <jackson@ximian.com>
24610 * Control.cs: Change where implicit controls fall in the zorder.
24611 They are now on top of all children.
24612 - Synced AddImplicit code with Add
24613 - Removed unused enumerator.
24614 * SizeGrip.cs: Remove the TODO as its been TODONE.
24616 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24618 * TextControl.cs(Insert): Combine the last lines unless the insertion
24619 string ends with \n\n, otherwise we leave one line too many (Fixes
24620 something I noticed with the testapp for #77526; the bug itself was
24621 already fixed in the previous checkin)
24623 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
24626 - SelectionColor and SelectionFont methods no longer set absolute
24627 styles. Instead, the keep font or color respectively (This
24628 resolves a long-standing FIXME in the code)
24629 - When flushing RTF text, the insert code now considers text trailing
24630 behind the insertion point (Fixes the bug where when replacing
24631 the selected text via SelectedRTF the remainder of the line behind
24632 the selection would stay on the first insertion line)
24634 - AppendText now updates the selection points after inserting text
24635 - AppendText now ensures that the last tag (sometimes 0-length) of
24636 the document is used for the style information (Fixes part of
24639 - Created new FontDefiniton class to allow describing partial style
24641 - StreamLine() now takes a lines argument, to allow it to decide
24642 whether an encountered zero-length tag is the last in the document
24643 (which must be kept to not loose the font/color contained in it,
24645 - Created Combine() and Split() methods for Marker structs, to
24646 support marker updates due to reformatted documents (soft line
24648 - Implemented Document.CaretTag setter
24649 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24650 of the last line (Not the cause, but also exposed by bug #77220)
24651 - Added LineTag argument to InsertString method, to allow callers
24652 to force a certain tag to be used (required to force use of the
24653 trailing zero-length tag of a document)
24654 - Now updating markers in Combine(), to avoid stale tag markers
24655 - Added some method descriptions to aid maintenance
24656 - Implemented new FormatText concept, allowing additive/subtractive
24657 formatting by only specifying the components that are to be
24658 changed. This was needed for resolving the RTB.SelectedColor/
24659 RTB.SelectedFont fixmes
24660 - Added Break() support method to allow breaking up linetags (used
24661 for partial formatting)
24662 - Added GenerateTextFormat() method. It is used for partial
24663 formatting and allows to generate a full font/color from given
24664 attributes and an existing tag.
24666 2006-02-26 Jackson Harper <jackson@ximian.com>
24668 * XplatUIX11.cs: Use the correct caption height.
24669 - Translate hittest coordinates to screen coords to match MS.
24670 * XplatUIWin32.cs: When we create MDI windows we need to reset
24671 some of the style flags, so we get a nice blank window, and can
24672 draw all the decorations ourselves.
24673 - Set a clipping rectangle on the non client paint event, the
24674 window manager drawing code needs one.
24675 * Form.cs: The window manager needs to know when the window state
24677 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24678 don't need to factor in border and title sizes in these
24679 methods. TODO: Remove the args and fix the call points.
24680 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24682 - Let the driver set the cursors.
24683 - Improve active window handling
24684 - Correct sizes for title bars and buttons.
24685 - Match MS drawing better
24686 * MdiWindowManager.cs: We don't need to handle border style
24687 updates specially anymore.
24688 - Check for scrollbars when windows are done moving
24689 - Handle Active properly.
24690 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24691 correctly. I am spewing the exception though, so we don't hide the
24694 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
24696 * DataGridViewRowPostPaintEventArgs.cs,
24697 DataGridViewCellPaintingEventArgs.cs,
24698 DataGridViewRowCollection.cs,
24699 DataGridViewRowPrePaintEventArgs.cs,
24700 DataGridViewCell.cs: Clear a few warnings and implement a few
24701 exceptions that should be thrown.
24703 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24705 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24706 'inheriting' our parent's (non-default) cursor. (Part of
24707 the fix for #77479)
24709 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24711 * XplatUIX11.cs: Fixed cast to make csc happy
24713 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
24715 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24716 it's for the client area (part of fix for #77479 and needed
24717 for MDI window cursor handling)
24719 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24720 the appropriate default cursors and also passing the message
24721 up the parent chain
24722 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24723 for non-client areas
24725 2006-02-15 Jackson Harper <jackson@ximian.com>
24727 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24728 is a real MDI window
24730 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
24732 * X11DesktopColors.cs: Instead of checking the desktop session
24733 string for "KDE" check if it starts with "KDE"
24735 2006-02-10 Jackson Harper <jackson@ximian.com>
24737 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24740 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
24742 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24745 - Got rid of the panel. All controls are now directly added to
24747 - Changed to mono coding style
24749 2006-02-10 Jackson Harper <jackson@ximian.com>
24751 * InternalWindowManager.cs: We don't need the set visibility to
24752 false hack anymore now that peter has written beautiful shutdown
24755 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
24757 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24758 where already explicitly destroyed
24760 2006-02-10 Jackson Harper <jackson@ximian.com>
24762 * MdiClient.cs: Handle the case where windows are too high or to
24763 the left and we need scrollbars.
24765 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
24767 * MimeIcon.cs: Added some icons
24770 - Got rid of the panel. All controls are now directly added to
24772 - Changed to mono coding style
24773 - On Linux "My Computer" and "My Network" will now show some
24774 more usefull information. A new class, MasterMount, gathers
24775 this information from /proc/mount. Updated MWFFileView to make
24776 use of this information
24777 - Fixed a bug that caused FileDialog to crash when
24778 ".recently_used" file had a zero size
24779 - FilterIndex does now what it should
24781 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24784 2006-02-09 Jackson Harper <jackson@ximian.com>
24786 * ComboBox.cs: Don't touch if null.
24788 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
24790 * Cursor.cs: 64bit safeness fix
24791 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24793 2006-02-09 Jackson Harper <jackson@ximian.com>
24795 * Form.cs: If a form is made into an MDI form update the styles so
24796 all the props can get set correctly.
24797 - Kill the mdi_container when we dont need it anymore.
24798 * InternalWindowManager.cs: Add missing NOT
24800 2006-02-08 Jackson Harper <jackson@ximian.com>
24802 * InternalWindowManager.cs: Respek clipping when drawing MDi
24805 2006-02-08 Jackson Harper <jackson@ximian.com>
24807 * Hwnd.cs: Add bits to track non client expose events.
24808 * XplatUIX11.cs: Track non client expose events on the hwnd. This
24809 gives us a proper invalid rect and will allow for some nice
24810 optimizations with NC client drawing
24811 - MDI windows are children windows, so move their style handling
24812 into the child window block.
24813 * InternalWindowManager.cs: Remove a state reset that was
24814 getting invoked at the wrong time. Fixes managed windows getting
24815 into a 'stuck' captured state.
24817 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
24819 * TextControl.cs (Document.ctor): Now initializing
24820 selection_anchor. Fixes #77493
24822 2006-02-07 Jackson Harper <jackson@ximian.com>
24824 * TrackBar.cs: The increment/decrements were backwards.
24826 2006-02-07 Mike Kestner <mkestner@novell.com>
24828 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24829 to the instance itself.
24831 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
24833 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24834 on ulongs and pointers, the size differs between 32bit and 64bit
24837 2006-02-07 Mike Kestner <mkestner@novell.com>
24839 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24840 for 64 bit platforms to work around a metacity bug.
24842 2006-02-07 Jackson Harper <jackson@ximian.com>
24844 * TrackBar.cs: Process the input keys we need, and hookup to
24845 KeyDown instead of using WndProc, so we get key messages.
24847 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
24849 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24851 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24852 we need to translate the XdndVersion atoms array before sending it
24854 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
24857 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24858 number of bits for the property, not the number of bytes. The
24859 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24860 but would not crash since it specified 8 bits instead of 4 bits)
24861 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24862 defined as XID -> long in the C headers)
24863 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
24864 references since those are now IntPtr to begin with
24865 - Switched all Atom.XXX 'int' casts to IntPtr casts
24866 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24867 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24868 - Added XChangeActivePointerGrab DllImport (for X11DnD)
24870 - Changed 'int' type for Atoms in XEvent structures to IntPtr
24871 - Changed atom in HoverStruct to be IntPtr
24873 - Removed local DllImports, switched code to use those from XplatUIX11
24874 - Removed/fixed casts related to the switch of Atom to be a IntPtr
24876 2006-02-06 Mike Kestner <mkestner@novell.com>
24878 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
24879 method signatures in the import region. There may still be some
24880 lingering struct marshaling issues, as I didn't drill down into those.
24883 2006-02-06 Jackson Harper <jackson@ximian.com>
24885 * ComboBox.cs: Dont manually set the top_item, this is computed
24886 when the scrollbar position is set.
24888 2006-02-06 Mike Kestner <mkestner@novell.com>
24890 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24891 startup crashes on amd64. There's other fixes needed. All pinvoke
24892 usage of Atom needs to be mapped to IntPtr for example. And there are
24893 likely other int/long issues to be addressed.
24895 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
24897 * FileDialog.cs: One more...
24899 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24901 * FileDialog.cs: Next try
24903 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24905 * FileDialog.cs: First part of fix for #77464
24907 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
24909 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24910 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
24911 AcceptButton border drawing.
24913 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
24915 * Form.cs: Moved positioning of form after auto scaling is applied,
24916 otherwise it would possibly use wrong form size.
24918 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
24920 * Control.cs (RecreateHandle): No need to re-create any child
24921 controls, the child windows will get destroyed automatically by
24922 the windowing system or driver, and re-created when the handle
24923 is being accessed the first time. Fixes #77456
24924 * Form.cs: No longer setting the form to closing if the handle is
24925 being recreated. This seems like the right thing to do, don't
24926 have a bug or testcase for this, though.
24928 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
24930 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
24931 controls to avoid unwanted side effects
24933 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
24936 - ScaleCore needs to scale the bounds, not the ClientSize of the
24937 control. Fixes #77416.
24938 - DefaultSize is 0,0 for control
24940 - DefaultSize is 100, 20
24941 - SetBoundsCore: Now enforcing the height, no matter if the provided
24942 height is more or less than the preferred one, as long as AutoSize
24944 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
24946 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
24949 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
24950 call unless both performLayout is true *and* we have a pending
24952 - ResumeLayout: MS does not completely nest Suspend and Resume,
24953 they bottom out at 0, fixed our code to match that.
24954 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
24955 SetBoundsCore, we were updating even when we shouldn't. This fixes
24956 swf-anchors mis-anchoring when resizing the app fast and lots.
24957 - UpdateDistances: Now only setting the left and top distance if
24958 we have a parent and are not suspended, this is based on
24959 a suggestion by Don Edvaldson in bug #77355.
24960 - OnVisibleChanged: Fixed logic when to create the control. We may
24961 not create the control if we have no parent or if it's not visible;
24962 switched to using Visible property instead of is_visible field
24963 since the property also considers parent states. This fixes a bug
24964 when starting Paint.Net
24966 2006-02-02 Jackson Harper <jackson@ximian.com>
24968 * Form.cs: If the forms handle hasn't been created yet don't call
24969 into xplatui to make it top most, just set the topmost flag on the
24970 form in CreateParams
24971 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
24973 2006-02-01 Jackson Harper <jackson@ximian.com>
24975 * ScrollableControl.cs: Refactored the Recalculate method a
24976 little, this wasn't handling all the variants of bottom and right
24977 bars needed to be added and added/removed based on their
24978 counterparts being added/removed (which changes the drawable
24979 size). Also we special case client widths and heights of 0 and
24980 don't add the scrollbar for those.
24982 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
24985 - Added method to get AbsoluteGeometry(); currently unused, but might
24986 be used in the future, if we try again to figure out toplevel
24987 coordinates with some more crappy window managers
24988 - Added FrameExtents() method to retrieve the WM set decoration size
24989 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
24990 to deal with at least KDE, FVWM and metacity (Fixes #77092)
24992 - Added whacky_wm tracking var for metacity
24993 - Added logic to have default menu height if the actual menu height
24994 has not yet been calculated (part of fix for #77426)
24995 * Form.cs: Keep track whether client size has been set and re-set
24996 it if a menu is added/removed afterwards (Fixes #77426)
24998 2006-01-31 Jackson Harper <jackson@ximian.com>
25000 * Control.cs: When a new Site is set on the component attempt to
25001 pull the AmbientProperties from it.
25003 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
25005 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25006 in the background of the owning form. Fixes #77332
25008 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25010 * MimeIcon.cs: Fix for #77409
25012 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
25014 * XplatUIX11GTK.cs: Initial import
25016 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
25018 * FixedSizeTextBox: fixes class signature
25020 2006-01-30 Jackson Harper <jackson@ximian.com>
25022 * FixedSizeTextBox.cs: New internal class that represents a
25023 textBox that will not be scaled.
25026 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25029 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25031 * XplatUIX11.cs: Retrieve default screen number instead of
25032 assuming 0. Attempted fix for #77318
25034 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
25037 - GetWindowPos: When a window is parented by FosterParent, use
25038 the desktop instead of FosterParent as the base to get coordinates
25039 - CreateWindow: Don't make FosterParent the parent window for Popups
25040 if we don't want a taskbar entry, Popups automatically don't get one
25041 * Hwnd.cs: Need to call remove to actually remove the key from the
25044 2006-01-30 Mike Kestner <mkestner@novell.com>
25046 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
25048 2006-01-30 Jackson Harper <jackson@ximian.com>
25051 * TreeNode.cs: Raise events no matter how the treenode is
25052 checked. Patch by Don Edvalson.
25054 2006-01-30 Jackson Harper <jackson@ximian.com>
25056 * TreeNode.cs: Signature fix.
25058 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
25060 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25062 2006-01-20 Mike Kestner <mkestner@novell.com>
25064 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25065 event forwarding when menus are active.
25066 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
25067 Most of the patch is pdb's with a little rework.
25069 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25071 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
25072 Removed GetMenuDC and ReleaseMenuDC methods; replaced
25073 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25074 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25075 * InternalWindowManager.cs: Added use of PaintEventStart/End to
25076 handling of WM_NCPAINT message, now passing the PaintEventArgs to
25077 the PaintWindowDecorations method
25078 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25079 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25080 * MenuAPI.cs: Made tracker window invisible
25082 - Removed GetMenuDC and ReleaseMenuDC methods
25083 - Implemented the client=false path for PaintEventStart and
25086 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25088 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25089 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25092 - MaximizeBox, MinimizeBox: Recreate the handle when setting
25094 - CreateParams: Reworked the styles to match MS look'n'feel,
25095 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25096 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25098 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25100 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
25101 window is not mapped, since otherwise every form that's being
25102 created is considered minimized, which is wrong.
25103 * Form.cs: Catching the exception and returning our internal value
25106 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
25108 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25109 SetWindowMinMax() to have means to tell the driver about the minimum,
25110 maximum and maximized state window sizes. (Part of the fix for #76485)
25112 - Implemented tracking of minimum and maximum window size, now calling
25113 new SetWindowMinMax() driver method to tell the driver (Part of the
25115 - Finished handling of WM_GETMINMAXINFO method, now setting all values
25116 (Completes fix for #76485)
25117 - Calling new SetWindowMinMax driver method when the handle for a
25118 form is created, to make sure the driver knows about it even if
25119 the values have been set before the window was created
25120 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25121 to avoid messing up our anchoring calculations (partial fix
25123 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25125 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25126 - Improved GetWindowState() to detect 'Minimized' state on Metacity
25127 (and presumably other freedesktop.org compliant WMs). Left the
25128 assumption unmapped=minimized, needed for SetVisible to work.
25129 - Now setting the window state when creating windows
25130 - Fixed SetVisible to consider/set the window state when mapping
25131 a Form. We cannot set the state before it's mapped, and we cannot
25132 use Form.WindowState once it's mapped (since it would ask the
25133 driver and get 'normal'. Therefore, we grab the state before
25134 mapping, map, and then set state.
25135 - Implmemented SetWindowMinMax method; Metacity does not seem to
25136 honor the ZoomHints, though.
25138 - Removed MINMAXINFO (moved to XplatUIStructs)
25139 - Added SetWindowMinMax stub (on Win32 the only way to set that
25140 information is in response to the WM_GETMINMAXINFO message, which
25141 is handled in Form.cs)
25142 - Added logic to SetVisible to set the proper window state when a
25143 form is made visible (fixes #75720)
25145 2006-01-26 Jackson Harper <jackson@ximian.com>
25147 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25148 same way we handle them with Invoke.
25150 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
25153 - Added tracking of window state so CreateParams can return
25154 the appropriate style
25155 - Moved setting of WS_CAPTION style in CreateParams to allow
25156 styles without caption
25157 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
25158 control if the TextBox property is accessed. Fixes #77345
25160 - get_Created: now uses is_disposed and is_created to determine
25161 return value (suggested by Jackson)
25162 - CreateHandle: No longer exits if the handle is being recreated
25163 - RecreateHandle: If the handle is not yet created call the
25164 appropriate method to create either control or handle. If the
25165 control is already created CreateHandle will simply exit instead
25166 of just creating the handle
25167 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25168 now SendMessage WM_DESTROY directly to the control when DestroyWindow
25171 - When DestroyWindow is called, instead of waiting for the
25172 DestroyNotification from X11, we directly post it to the WndProc
25173 and immediately dispose the hwnd object.
25174 Same applies to DestroyChildWindows, and this obsoletes the
25175 expose_pending tracking. Contrary to Win32 behaviour we destroy our
25176 child windows before our own, to avoid X11 errors.
25177 - Removed the direct sending of WM_PAINT on UpdateWindow
25179 - Reworked DoEvents and GetMessage to allow access to internal queue
25180 even when trying non-blocking access to the queue. Fixes #77335.
25181 Based on a patch suggestion by Don Edvalson. The new private
25182 GetMessage can now also be used as a backend for a PeekMessage
25184 * XplatUI.cs: Improved debug output for CreateWindow
25186 2006-01-25 Jackson Harper <jackson@ximian.com>
25188 * Help.cs: Allow param to be null. Patch by Don Edvalson.
25190 2006-01-24 Jackson Harper <jackson@ximian.com>
25192 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25193 when we have a MaxDropItems lower then the selected index.
25195 2006-01-24 Jackson Harper <jackson@ximian.com>
25197 * Control.cs: Don't allow selection of non visible controls, allow
25198 selection of controls without parents.
25200 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25202 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25203 * DataGridDrawingLogic.cs: Add editing row only when is necessary
25205 2006-01-23 Jackson Harper <jackson@ximian.com>
25207 * UpDownBase.cs: Make the textbox handle all the selection and
25208 tabbing. This fixes tabing to updown controls.
25210 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
25212 * TextBoxBase.cs: fixes exception thown the object was null
25214 2006-01-23 Jackson Harper <jackson@ximian.com>
25216 * ButtonBase.cs: Just use the base CreateParams. They set
25217 visibility and enabled correctly.
25220 * MonthCalendar.cs: Lets let the base set as much of the
25221 createparams as possible so we don't have duplicate code all over
25224 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
25226 * ThemeGtk.cs: Added TrackBar and some experimental code to
25227 get double buffering back
25229 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
25231 * DataGrid.cs: Allows row number set internally higher than the last
25232 when creating a new row. Restores the editing functionality.
25234 2006-01-20 Mike Kestner <mkestner@novell.com>
25236 * MimeIcon.cs: delay Image creation until the icons are accessed
25237 instead of creating 190 scaled images on GnomeHandler startup.
25239 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25241 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25242 first call base before processing the event. Fixes #77279
25244 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
25246 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25247 that the stride for the GDI bitmap would match the stride of
25250 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
25252 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25254 2006-01-19 Jackson Harper <jackson@ximian.com>
25256 * ComboBox.cs: Hookup the text controls keydown event so we get
25257 those when the text control has the focus.
25259 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25261 * Label.cs: Now using the base events instead of defining new ones;
25262 this allows us to just call the base properties without having to
25263 duplicate all base property logic
25265 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25267 * Label.cs: A label by default is not a tabstop (Fixes one of our
25268 failing nunit tests)
25270 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25272 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25273 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25275 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
25277 * Cursor.cs: Reimplemented creating cursor bitmaps without using
25278 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25281 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
25282 constructor creates images that can't be saved. Part of the fix
25284 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25285 - SetWindowState: Switched ShowWindow flags (part of an upcoming
25286 bug fix for handling window state in forms properly)
25288 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25290 * ThemeGtk.cs: Simplify ScrollBar drawing
25292 2006-01-18 Jackson Harper <jackson@ximian.com>
25294 * Splitter.cs: Set the default dock style for the splitter control
25295 in the constructor.
25297 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25299 * ThemeGtk.cs: Corrected StateType and ShadowType for
25302 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25304 * Control.cs: Make use of Theme.DoubleBufferingSupported
25306 - Added drawing for flat style buttons
25307 - Added ScrollBar drawing
25309 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
25311 * ThemeClearlooks.cs: Removed some unneeded code.
25312 * ThemeGtk.cs: First part of ThemeGtk enhancements.
25314 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25316 * LinkLabel.cs: We need to update the hover drawing when
25317 leaving the control as well.
25319 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
25321 * DataGrid.cs: Clicking on non empty areas in the columns
25322 area was giving an exception
25324 2006-01-17 Jackson Harper <jackson@ximian.com>
25326 * ThemeWin32Classic.cs:
25327 * ListView.cs: Do not draw/clip the headers when the header style
25330 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25332 * DataGrid.cs: Fixes 77260
25334 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
25336 * DataGrid.cs: Clicking on a column on a empty grid was giving
25339 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
25341 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25342 or any keypress will crash the grid.
25344 2006-01-17 Mike Kestner <mkestner@novell.com>
25346 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25347 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
25348 invisible/previously-visible items.
25351 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
25353 * ThemeClearlooks.cs:
25354 - Added CL_Draw_Button method; now other theme controls that are
25355 not derived from button or do not have a button can draw buttons
25357 - Updated ComboBox drawing
25358 - Beautified RadioButton drawing
25359 - Corrected drawing of bottom and left tabs
25360 - Beautified DateTimePicker and MonthCalendar
25361 - Added CPDrawButton and CPDrawRadioButton
25363 2006-01-16 Jackson Harper <jackson@ximian.com>
25365 * ComboBox.cs: Set the initial value of the scrollbar to the
25366 current index. Reduce the numbers of refreshs and IndexOfs called.
25368 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
25370 * FileDialog.cs: When the file listview is focused hitting the
25371 backspace key moves the fileview to the parent directory
25373 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25376 - Added RecreateHandle call when changing taskbar visibility to
25377 trigger reparenting in Win32 driver (Fixes #75719)
25378 - If a window has minimize or maximize buttons, it cannot have
25381 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25382 the toplevel form with FosterParent (A toolwindow not on the
25383 taskbar) (Fixes #75719)
25384 - Made FosterParent a toolwindow
25386 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25388 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25390 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25392 * ToolTip.cs: If SetToolTip is called from a control and the mouse
25393 is currently over that control, make sure that tooltip_window.Text
25396 2006-01-13 Mike Kestner <mkestner@novell.com>
25398 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25400 2006-01-13 Jackson Harper <jackson@ximian.com>
25402 * TreeView.cs: On MS GetNodeAt never actually factors in the X
25403 value passed. Also redraw the selected node when we recieve
25404 focus, so tabbing between trees works correctly.
25406 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
25408 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25409 ~/.gconf/%gconf-tree.xml, so use
25410 .gconf/desktop/gnome/interface/%gconf.xml
25412 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25414 * TextControl.cs: Draw text in gray if control is disabled
25416 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25418 * TreeView.cs: Draw the focus rectangle outside the highlight, to
25419 make sure it's always visible. Fixes #76680.
25421 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
25423 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25425 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
25427 * PageSetupDialog.cs: Added.
25428 * PrintDialog.cs: Attributes.
25429 * PrintPreviewControl.cs: Updates.
25430 * PrintPreviewDialog.cs: Updates.
25432 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25434 * Control.cs: Undid my selection check fix, since it's not needed
25436 - Now considering the presence of hscroll/vscroll when sizing
25437 vscroll/hscroll respectively. Fixed bug #77077
25438 - Added Left/Up/Down/Right to IsInputKey list to prevent
25439 ContainerControl from stealing them. This fixes what I broke
25440 with my last checkin.
25442 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25444 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25445 I finally understand how the property can be set without a setter :-)
25447 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25450 - Switched RunLoop to use static Message.Create to create a
25452 - Added PreProcessMessage call in runloop for keyboard events; this
25453 is part of the fix for #77219, I overlooked this originally in the
25454 MSDN doc for PreProcessMessage
25456 - Removed call to PreProcessMessage from handling of keyboard
25457 messages; it's supposed to be done in the message pump
25458 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25459 per MSDN documentation.
25460 - IsInputChar: All chars are input chars by default; removed the
25461 parent calling chain, MS does not document that
25462 - PreProcessMessage: If IsInputChar is true, we want to return false
25463 to allow dispatching of the message
25464 - When selecting the next control, now also check that we're not
25465 selecting ourselves again and therefore return a false positive.
25467 - Tried to match return values for IsInputKey and ProcessDialogKey
25468 to what MS returns; moved processing of our special keys outside
25469 ProcessDialogKey since MS does not seem to return true on those.
25470 - Moved code that previously was in ProcessDialogKey into new private
25471 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25472 - Reworked handling of WM_CHAR to not have to duplicate code from
25473 Control.cs anymore, instead we simply call down to base.
25475 2006-01-12 Jackson Harper <jackson@ximian.com>
25477 * ComboBox.cs: We always need to refresh the text area when
25478 EndUpdate is called. Fixes the combobox in the file dialog.
25479 * Control.cs: Don't create the creator_thread until the controls
25480 handle is created. Also in InvokeRequired we check if the
25481 creator_thread is null. This gives the effect of InvokeRequired
25482 returning true if the controls handle is not created yet, and
25485 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25488 - Added StartLoop() driver method. This is used to allow drivers to
25489 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25490 loop for a particular thread
25491 - Added EndLoop() driver method. This is called once the message
25492 pump for the thread is shut down
25493 - Added SupportsTransparency method to allow the driver to indicate
25494 opacity support for windows
25496 - Removed TODO attribute, completed AllowTransparency property
25497 - Added documented logic to Opacity
25498 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25499 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25500 versions of CompatibleTextRendering
25501 * X11Structs.cs: Added opacity atom to our atom enumeration
25502 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25503 of a form might be set before it's reparented by the WM, and we need
25504 the opacity value without calling up to Form)
25505 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
25506 SupportsTransparency() driver methods
25507 * Application.cs: Now calling StartLoop and EndLoop driver methods
25509 - Added opacity atom registration
25510 - Added StartLoop()/EndLoop() methods. They're empty right now but
25511 will need to get implemented when we switch to a per-thread queue
25512 - Implemented SupportsTransparency() method
25513 - Implemented SetWindowTransparency() method
25514 - Added support for setting the opacity value when a window is
25515 reparented (since the opacity needs to be set on the WM frame)
25516 * XplatUIOSX.cs, XplatUIWin32.cs:
25517 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25519 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25521 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25523 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
25525 * FileDialog.cs: Added ToolTip for MWFFileView
25526 * MimeIcon.cs: Rewrote GnomeHandler.
25527 - Get currently used gnome icon theme from
25528 ($HOME)/.gconf/%gconf-tree.xml
25529 - Make use of inherited icon themes
25530 - Support SVG icon themes like Tango via librsvg
25532 2006-01-12 Miguel de Icaza <miguel@novell.com>
25534 Revert's Jackson's revert which broke 2.0 builds. Fix both
25537 * Application.cs: Move the use_compatible_text_rendering outside
25538 the NET_2_0 define. If we ever need to use the
25539 use_compatible_text_rendering on the individual controls they will
25540 access the variable from the common shared code paths.
25542 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
25545 - Added more granular debug options
25546 - Added method to print both window text and id
25547 - Switched debug output to use new Window() debug method
25548 - Added IsEnabled() driver method
25549 - Added EnableWindow() driver method
25551 - Removed end_modal; no longer needed, new loop handles termination
25552 via 'closing' variable
25553 - If form is modal, setting DialogResult will now initiate loop
25554 termination via 'closing' variable
25555 - Added support for is_enabled/WS_DISABLED to CreateParams
25556 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25558 - Removed code that's now in RunLoop from ShowDialog()
25559 - Added various documented sanity checks to ShowDialog()
25560 - Added handling of WM_DESTROY message; we set 'closing' on getting
25561 the message to indicate the message pump to terminate
25562 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25563 send by the Application.ExitThread method. (We send the message
25564 to destroy the window after all other events have been
25565 processed through the queue, instead of destroying the handle
25567 - Moved code from Close() method to WM_CLOSE handler; added logic
25568 to only send close-related events if the form is not displayed
25570 * Splitter.cs (..ctor): Fixed typo in resource name
25572 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25574 - set_Cursor: Now only setting calling into XplatUI if the handle for
25575 the control is already created; this avoids implict handle creation
25576 or crashes if it's not created
25577 - set_Enabled: Now setting the enabled state via the new driver method
25578 instead of just tracking it
25579 - CreateParams: Added logic to set WS_DISABLED based on enabled state
25580 - CreateControl: Reordered event firing and method calls to more
25581 closely fire events in the order MS does. Now setting the
25582 enabled state in the driver when creating the control.
25583 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25585 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25586 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
25587 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25589 - Added tracking of window enabled state (get_Enabled/set_Enabled)
25590 - Added EnabledHwnd property to easily allow a driver to find the
25591 handle of the first enabled window in the parent chain (this is
25592 used by drivers to pass up input events of disabled windows)
25593 * XplatUIDriver.cs: Added IsEnabled() method
25595 - Removed crude and obsolete exiting tracking variable
25596 - Removed internal ModalRun(); replaced by RunLoop()
25597 - Implemented private CloseForms() method to allow closing all
25598 windows owned by a particular (or all) threads
25599 - Exit() now properly closes all windows without forcing the message
25601 - Removed obsolete InternalExit() method
25602 - Changed Run() methods to use new RunLoop() message pump
25603 - Implemented new RunLoop() method for both modal and non-modal forms
25605 - get_CreateParams: Added setting of WS_DISABLED
25606 - Simplified ShowDialog(); now all the work is done in RunLoop(),
25607 invoked via Form.ShowDialog()
25608 * NativeWindow.cs: We don't remove the window from the collection when
25609 the handle is destroyed; there might still be messages for it in the
25610 queue (mainly the resulting WM_DESTROY); instead it will be removed
25611 when Control calls InvalidateHandle in the WM_DESTROY handler
25613 - CreateWindow: Added logic to handle the WS_DISABLED window style
25614 - EnableWindow: Implemented based on Hwnd.Enabled
25615 - GetMessage: Reset PostQuitState so the method can be called again
25616 - Implemented support for disabled windows (passing messages to the
25617 first enabled parent) in handling all input messages
25618 - Added optimizations for handling Expose events
25619 - Implemeted new driver method IsEnabled()
25620 - Now always resetting paint pending tracking vars when we start paint
25621 - Re-implemented UpdateWindow via just sending a WM_PAINT message
25622 * XplatUIOSX.cs: Added IsEnabled method stub
25623 * XplatUIWin32.cs: Implemented new IsEnabled() method
25625 2006-01-11 Jackson Harper <jackson@ximian.com>
25627 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25628 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25629 variables a little.
25630 * ColorDialog.cs: Clear out the old form before adding the new
25633 2006-01-11 Jackson Harper <jackson@ximian.com>
25635 * X11Dnd.cs: Make sure to add all the text formats when adding
25636 strings to the data object.
25637 * TreeNodeCollection.cs: When adding to a sorted tree we need to
25638 do some redrawing too. Also change the UpdateNode to an
25639 UpdateBelow so the newly added node gets painted.
25641 2006-01-11 Miguel de Icaza <miguel@novell.com>
25643 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25644 LinkLabel.cs, PropertyGrid.cs: Implement the
25645 UseCompatibleTextRendering property for 2.x
25647 * Application.cs (SetCompatibleTextRenderingDefault): Add.
25649 2006-01-11 Jackson Harper <jackson@ximian.com>
25651 * TreeView.cs: Use the property for setting the selected node so
25652 the correct events get raised.
25653 * TreeNode.cs: Update the tree when the fore/back colours of a
25656 2006-01-10 Jackson Harper <jackson@ximian.com>
25658 * TreeView.cs: Allow setting SelectedNode to null.
25660 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25662 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25664 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25666 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25668 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25670 * PrintDialog.cs: Added attributes and set default property values.
25672 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25674 * PrintControllerWithStatusDialog.cs:
25675 Added PrintControllerWithStatusDialog.
25677 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25679 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
25680 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25682 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
25684 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25686 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
25688 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25689 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25691 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
25693 * MimeIcon.cs: Added internal class SVGUtil.
25695 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
25697 * FileDialog.cs: Don't crash if there are two files with the
25698 same name but different locations.
25700 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
25702 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25703 dates across multiple month grids. Used to not highlight entire
25704 month, but does now.
25706 2006-01-06 Jackson Harper <jackson@ximian.com>
25708 * MonthCalendar.cs: Removed DoEvents call to prevent a running
25709 message loop. Change timer intervals to numbers that seem more
25712 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
25714 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25715 object for location info since screen object is now implemented.
25717 2006-01-05 Jackson Harper <jackson@ximian.com>
25719 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25720 * AsyncMethodResult.cs: We no longer use a WeakReference for the
25721 AsyncMethodResult, this is because we ALWAYS want the
25722 ManualResetEvent to get set.
25723 * Control.cs: When disposing use an async invoke to call shutdown
25724 code, so that thigns don't block on the finalizer thread. Also
25725 check if we even have a message loop before trying to send
25726 messages, if we don't then don't bother sending messages.
25727 - No more weak references for async methods
25728 * XplatUIDriver.cs: No more weak references for async methods.
25730 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25732 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25733 returns two FontFamily with the same name
25735 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
25737 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
25738 drawing disabled text. Instead using the ColorGrayText color
25740 2006-01-04 Jackson Harper <jackson@ximian.com>
25742 * TreeNode.cs: redraw the node when its image index is changed.
25744 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
25746 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25747 time I checked there are no others like it.
25749 2006-01-04 Jackson Harper <jackson@ximian.com>
25751 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25752 this gives the behavoir I was looking for.
25753 * Control.cs: Special case Invoking EventHandlers, this matches MS
25754 and fixes part of bug #76326.
25756 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25758 * ThemeClearlooks.cs, FileDialog.cs:
25759 - Reflect the latest Theme class changes
25760 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
25763 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
25765 * Theme.cs: Cache UI resource images and resize them if needed
25767 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25769 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25770 is called. This fixes the crash in Nexxia when setting the font
25771 attributes in the chat. [However, RTF needs a look-over to make sure
25772 that all SelectionXXX methods handle the special case that selection
25773 is empty and therefore the change must be applied to all text starting
25774 at the cursor/selection start]
25776 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25778 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25779 XplatUIOSX.cs: Added SendMessage and PostMessage methods
25780 * X11Keyboard.cs: Switched to new way of calling PostMessage
25782 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
25784 * Theme.cs: Added theme interface for images to allow the theme to
25785 control what images are used for things like FileDialog, MessageBox
25787 * MessageBox.cs: Now uses the new Theme icon/image interfaces
25789 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
25792 - Removed some dead code
25793 - Opening a recently used file does work now
25794 - Small UI enhancements
25797 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
25799 * FileDialog.cs: Forgot too add __MonoCS__
25801 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
25803 * FileDialog.cs: We are able to read recently used files now let's
25804 go on and write them.
25806 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
25808 * FileDialog.cs: Breathe some life into "last open"/"recently used"
25810 * MimeIcon.cs: Do a check for the top level media type also
25812 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
25814 * ThemeClearlooks.cs:
25815 - Added CPDrawStringDisabled
25816 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25817 some chars if the text doesn't fit into text_rect
25818 - DrawListViewItem: If View = View.LargeIcon center the image;
25819 rewrote the drawing of ListViewItem.Text if View =
25822 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
25824 * MimeIcon.cs: Use default KDE icon theme if there is no
25825 "48x48" directory for the current icon theme, fixes #77114
25826 * Mime.cs: Disable not working and actually not used code.
25827 * ThemeWin32Classic.cs:
25828 - Replace "new SolidBrush" in GetControlBackBrush and
25829 GetControlForeBrush with ResPool.GetSolidBrush
25830 - Changed DrawListViewItem from private to protected virtual
25832 - Added form.MaximizeBox = true
25833 - Don't throw an exception if there is a broken symbolic link
25835 2005-12-23 Jackson Harper <jackson@ximian.com>
25837 * TabControl.cs: Give the panels focus, keyboard navigation is
25838 fixed so this works correctly now.
25839 - We need these key events also.
25840 * ToolBar.cs: Remove some of the poor mans double buffering.
25842 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
25844 * ComboBox.cs: The internal TextBox now returns the focus.
25846 2005-12-23 Jackson Harper <jackson@ximian.com>
25848 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
25850 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25852 * Control.cs: Removed debug code
25853 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25856 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25858 * Control.cs: When creating the control, update the Z-order after
25859 all it's children are created, too. (Fixes nexxia not showing
25862 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
25864 * Control.cs: Do not update the anchoring distances if layout is
25865 suspended, instead do it once layout is resumed
25867 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25870 - After many hours of debugging, for both Jackson and
25871 myself, it turns out that it helps to set the parent of a control
25872 if you want to actually see it onscreen. In the spirit of that
25873 discovery, we're now setting the parent of the control and
25874 it's children when the control's handle is created. This fix
25875 will make Lutz Roeder's Reflector run happily.
25876 - now just creating the handle instead of the whole control when
25877 getting a graphics context for the control.
25879 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25881 * ScrollableControl.cs: When calculating the canvas, don't consider
25882 the scrollbar widths. Instead, predict if horizontal scrollbar
25883 will affect canvas when deciding on vertical display and vice versa.
25885 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
25887 * RichTextBox.cs: Set default RTF font for documents that don't
25888 have a font table (Fixes #77076)
25890 2005-12-22 Jackson Harper <jackson@ximian.com>
25892 * TextBoxBase.cs: It's difficult to do, but you can have an empty
25893 clipboard. This prevents a NullRef in that case.
25894 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25895 clipboard. PRIMARY is for the currently selected text only. (We
25896 should implement PRIMARY at some point.
25898 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25900 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25901 a Unicode function with a structure that was defined in Ansi way.
25904 2005-12-21 Jackson Harper <jackson@ximian.com>
25906 * StatusBar.cs: Statusbar handles its fore/back colours on it's
25907 on. Because thats how it rolls. (and this avoids it using ambient
25909 * ThemeWin32Classic.cs: Use the proper back color for filling.
25910 * Menu.cs: Use the system menu bar color for drawing menu
25911 bars. Using the window back color will bring ambient colours into
25914 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
25916 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
25917 Bitmaps were created and not disposed.
25919 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25921 * Control.cs (CreateControl): Don't do anything if the control is
25922 already created, otherwise we'd fire the OnCreated event more than
25925 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25927 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
25928 will always match. Instead return -1. Fixes #76464.
25930 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25932 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
25933 neither the beginning nor the end of the line (Fixes bug #76479)
25935 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
25938 - ControlNativeWindow.ControlFromHandle(): Now handling situation
25939 where handle is invalid
25940 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
25941 instead of slower linear search
25942 * NativeWindow.cs: Don't remove the window from the hashtable until
25943 after the driver has destroyed it (since the driver might use
25944 Control.FromHandle to lookup the control object
25945 * Hwnd.cs: Added DestroyPending property to track if a window is
25946 already destroyed as far as the driver is concerned and only hasn't
25947 yet notified the control
25949 - Activate(): Check if the window is still valid before using the
25951 - Implemented DestroyChildWindow() method to mark child windows as
25952 destroyed when a window is destroyed. This prevents situations
25953 where we might call an X method based on queued events for a
25954 window that already has been destroyed but we haven't yet pulled
25955 the destroy method from the queue.
25956 - Added a call to the new DestroyChildWindow() method to the drivers
25957 DestroyWindow code. Also now marking the destroyed window itself
25960 2005-12-20 Jackson Harper <jackson@ximian.com>
25963 * StatusBarPanel.cs: Don't calculate panel sizes on draw
25964 anymore. Just do them when needed, also track the rects of panels
25965 so that we can optimize refreshing more in the future.
25967 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
25969 * ColorDialog.cs: Fixed focus drawing in small color controls
25971 2005-12-19 Jackson Harper <jackson@ximian.com>
25973 * InternalWindowManager.cs:
25974 * MdiWindowManager.cs: Cleanup some coordinate system changes so
25975 moving windows works properly.
25977 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
25980 - Removed call to InitLayout() from SetBoundsCore(); doc says
25981 it's only called when a control is added to a container
25982 - Split InitLayout logic, moved to separate UpdateDistances() method
25983 since we need to perform those calculations more often than just
25984 when adding the control to a container. (Needed to fix #77022)
25985 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25986 - Reduced the OnBindingContextChanged events count, don't send them
25987 unless the control is created, we still aren't totally matching
25988 MS, but I can't quite figure out some of their rules
25990 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25992 * ThemeClearlooks.cs: Corrected distance between ProgressBar
25995 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
25997 * ThemeClearlooks.cs:
25998 - Updated ProgressBar drawing
25999 - Corrected drawing of ScrollBars and scroll buttons
26000 - Some temporary fixes for minor pixel artefacts
26002 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
26005 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26006 cause events to be sent in the same order as MS does.
26007 - Added ChangeParent() method to trigger various OnXXXChanged events
26008 that need to be fired when a parent changes (This is a reworking
26009 of the patch from r54254, with the X11 errors fixed)
26010 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26011 since on MS we get OnLayoutChanged events when calling Clear()
26012 - Changed Enabled property to consider parent state as well, if a
26013 parent is not enabled, the control will not be either
26014 - Changed Parent property to simply call Controls.Add() since that
26015 now does all the work required, this way we avoid code duplication
26016 - Threw in a few OnBindingsContextChanged calls to try and match
26017 when MS sends them. We seem to send a few too many, though.
26018 - Added call to CreateControl when adding the control to a parent.
26019 We were never calling CreateControl. Still needs some work, in
26020 some places we treat HandleCreated and ControlCreated as equal,
26022 - Removed obsolete commented out code from UpdateZOrder()
26024 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
26026 * ThemeClearlooks.cs: Updated TrackBar drawing.
26028 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26030 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
26032 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
26034 * FileDialog.cs: Add the Help button and the open readonly
26035 checkbox only if needed
26037 2005-12-16 Jackson Harper <jackson@ximian.com>
26039 * Control.cs: Make sure we have an active menu before trying to
26040 process commands on it. Prevents menu-less forms from crashing
26041 when Alt is pressed.
26042 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
26044 * RichTextBox.cs: Expand statement to help out gmcs and fix the
26047 2005-12-16 Jackson Harper <jackson@ximian.com>
26049 * InternalWindowManager.cs: Don't translate tool windows screen
26050 coordinates. This fixes windows 'bouncing' around when being moved.
26052 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26055 - MaxLength now treats 2^31-1 equal to unlimited length (this is
26056 not quite MS compatible, MS uses that number only for single line
26057 and 2^32-1 for multi-line, but I figure it won't hurt keeping
26059 - Now enforcing the MaxLength limit when entering characters
26060 - Added argument to internal Paste() method to track if it's called
26061 from programatically or via keyboard, since keyboard driven pastes
26062 need to enforce max-length
26063 - Added logic to Paste to only paste as many chars as MaxLength
26065 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26067 - Added Length property to return number of characters in document
26068 - Added private CharCount property which only tracks actual chars
26069 in the document (no linefeeds) and fires event when CharCount
26071 - Added tracking of character count to all methods that alter it
26072 - Added LengthChanged event to allow applications to subscribe
26073 to any changes to the document
26075 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
26078 - Removed local password_char field (moved to TextBoxBase)
26079 - Now setting the document's password var when password is
26082 - Added password_char field (needed here so MultiLine can
26084 - Added logic to MultiLine property setter to set the document's
26085 variable when password display is allowed
26086 - Removed debug code and made some debug code conditional
26088 - Added RecalculatePasswordLine() method to handle special password
26090 - Added PasswordChar property, also added related tracking vars
26091 - Draw() method now uses local text var for grabbing text to draw,
26092 this var is set to line.text unless we're doing password display,
26093 then it is set to the pre-generated all-password-chars line
26094 - Added calling RecalculatePasswordLine() method for password lines
26096 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26099 - Added Reparented property to allow tracking of Window Manager
26100 reparenting actions (which affect X/Y calculations of toplevel
26102 - Made ToString() print window handles in hex
26104 - AddConfigureNotify(): Now uses reparented state off Hwnd to
26105 determine if X/Y needs offsetting
26106 - AddConfigureNotify(): Fixed offset calculations
26107 - Now adds ReparentNotify messages into the queue
26108 - Now processes ReparentNotify messages and causes a
26109 WM_WINDOWPOSCHANGED message to be sent upstream if a window
26110 is reparented (as most likely it's X/Y coordinates are changed
26113 2005-12-14 Jackson Harper <jackson@ximian.com>
26115 * XplatUIX11.cs: Tool windows still need to respek focus.
26117 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
26119 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26120 have a working release
26122 2005-12-13 Jackson Harper <jackson@ximian.com>
26124 * Form.cs: Update styles after setting the border style regardless
26125 of whether or not the window is using a window manager.
26127 2005-12-13 Jackson Harper <jackson@ximian.com>
26129 * Form.cs: We now hook into an internal window manager instead of just an
26130 MDI subsystem, this is so we can have properly behaving tool windows.
26131 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26132 * InternalWindowManager.cs: New internal class that acts as a
26133 window manager for tool windows and as a base for mdi windows.
26134 * MdiWindowManager.cs: New class that acts as a window manager for
26137 2005-12-12 Jackson Harper <jackson@ximian.com>
26139 * Control.cs: Updates so we match behavoir for for implicit
26140 controls. Fixes explosions in MDI.
26142 2005-12-12 Jackson Harper <jackson@ximian.com>
26144 * Control.cs: Implement Invalidate (Region).
26146 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
26149 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
26150 the same events as MS does. MS fires events for each property
26151 except, for unknown reasons, Cursor, when the control is reparented.
26152 I can't seem to totally match add/remove since MS also fires some
26153 VisibleChanged events, which makes no sense. Consolidated the
26154 parenting code into a separate method so it can be called from
26155 both Add and Remove. set_Parent no longer needs any special logic
26156 as it calls the parent's add method which implicitly fires
26158 - Removed some obsolete code and debug output
26159 - Enabled state is inherited from parents, if this is enabled
26161 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26163 * Form.cs: Removed commented out code
26165 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
26168 - Added internal version of Invoke, with additional argument
26169 indicating if we're calling it from a Dispose() handler. That
26170 way we can avoid BeginInvoke throwing an exception if we're
26171 calling for an already destroyed window.
26172 - Added a dispose argument to BeginInvokeInternal, and made the
26173 check if a valid window handle chain exists conditional on
26174 it not being a dispose call
26175 - Removed code in DestroyHandle to destroy our children. Since we
26176 now handle the WM_DESTROY message we will catch all our children
26178 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26180 - Added a field to track the application context of the form.
26181 - No need to set closing variable as response to WM_CLOSE, instead
26182 we destroy the window. We also call PostQuitMessage if the form
26183 has an application context (which makes it the main app form,
26184 which, when closed terminates the app)
26186 - Dropped Exit() method, it's naming was confusing
26187 - Added PostQuitMessage() which causes GetMessage to return false
26188 once the message queue is empty
26189 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
26191 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26192 no longer a valid XplatUI method, but left it in since it's used
26193 internally. Added empty PostQuitMessage() method.
26194 * MenuAPI.cs: Replaced call to Exit() with call to
26195 PostQuitMessage, even though this is probably no longer needed.
26196 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26197 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26199 - Replaced call to XplatUI.Exit() with PostQuitMessage()
26200 - Removed old debug code that would call XplatUI for exception
26201 display, enabled standard exception handling (Still not enabled
26202 though, until NativeWindow's ExternalExceptionHandler define
26205 - Added internal method to allow control to update NativeWindow
26206 after a window has been destroyed
26207 - Added handling of already destroyed windows when calling i
26209 - Added removal of handle from list on ReleaseHandle
26211 - Dropped GetMessageResult var and related code
26212 - Added PostQuitState to field to track if PostQuitMessage has been
26214 - Dropped Exit() method
26215 - Added PostQuitMessage() method
26216 - GetMessage now will return false if PostQuitState is set and no
26217 more messages are in the queue.
26218 - Expose handler will no longer generate WM_PAINT messages if we are
26219 in PostQuitState since it's very likely any windows have already
26220 been destroyed, and since Hwnd won't get updated until we have
26221 processed the DestroyNotify we'd be causing X errors.
26223 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26225 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26226 Thanks to Mike for pointing out the err of my ways.
26228 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26230 * Control.cs(PreProcessMessage): Moved menu handling back, but
26231 after all other key handling, to match MS (who handles Menu in
26233 * Menu.cs (WndProc): Removed my brainfart
26235 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26237 * Control.cs(PreProcessMessage): Removed special menu handling
26238 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26240 2005-12-07 Mike Kestner <mkestner@novell.com>
26242 * Control.cs : special case SYSKEYUP so that we can adjust keynav
26243 state according in tracker.
26244 * Menu.cs : promote tracker field to base class and provide a tracker
26245 lookup capability. Add/Remove shortcuts dynamically if the top menu
26246 has a tracker. Unparent items that are removed from the collection.
26247 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26248 * Theme*.cs: add always_show_hotkeys field to support configurability
26249 of mnemonic display. win32 doesn't show mnemonics until Alt is
26252 2005-12-07 Jackson Harper <jackson@ximian.com>
26254 * MdiChildContext.cs: Use Control.ResetCursor.
26255 * Control.cs: ResetCursor needs to set the property so that the
26256 correct XplatUI call gets made.
26258 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26260 * Control.cs: More fixes to make our key events match MS. We
26261 were not setting the modifier state on KeyData, and we were
26262 not generating any events when Alt was pressed with a key
26263 since handling of WM_SYSxxx was missing for the OnKey methods.
26265 2005-12-07 Jackson Harper <jackson@ximian.com>
26267 * MdiChildContext.cs: reenable the sizing code.
26268 - When the mouse leaves a window reset its cursor.
26270 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26272 * ThemeClearlooks.cs: Reflect latest Hwnd changes
26274 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
26276 * Hwnd.cs: Now using the theme 3d bordersize to calculate
26277 widths of Fixed3D borders
26279 2005-12-07 Jackson Harper <jackson@ximian.com>
26281 * MdiClient.cs: Fix warnings. Earn Mike's love.
26283 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
26285 * ThemeClearlooks.cs:
26286 - Adjusted mouse over button color
26287 - Added first parts of CheckBox drawing
26288 - Added correct color for selected text background
26289 - Fixed ComboBox drawing
26290 - Added CPDrawBorder3D and CPDrawBorder
26292 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26294 * XplatUIX11.cs: Added call to XBell for AudibleAlert
26296 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26298 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26299 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26300 alert users via sound. We could add an enum arg with different
26301 types of alerts in the future
26303 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
26305 * Control.cs: Fix behaviour problems pointed out by Mike
26307 2005-12-05 Mike Kestner <mkestner@novell.com>
26309 * StatusBarPanel.cs: add Invalidate method and hook it into all the
26310 prop setters. Calls parent.Refresh for now, but could be maybe be
26311 optimized with an internal method on StatusBar at some point.
26314 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
26316 * RichTextBox.cs: Implemented get_SelectionColor
26318 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
26320 * ThemeClearlooks.cs:
26321 - Removed dead code
26322 - Draw black button border only if button is Form.AcceptButton
26323 - Draw correct button color for pressed RadioButton if the mouse
26324 has entered the button
26325 - Updated ProgressBar drawing!
26326 - Updated CPDrawSizeGrip drawing
26327 - Updated StatusBarPanel drawing
26329 2005-12-05 Mike Kestner <mkestner@novell.com>
26331 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26332 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26334 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
26336 * ThemeClearlooks.cs: Initial check-in, activate with
26337 export MONO_THEME=clearlooks
26338 * ThemeEngine.cs: Added ThemeClearlooks
26340 2005-12-03 Mike Kestner <mkestner@novell.com>
26342 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26345 2005-12-02 Jackson Harper <jackson@ximian.com>
26347 * Form.cs: If the child form has no menu the default main menu is
26348 used as the active menu.
26350 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26352 * ListBox.cs: Check if any items exist before trying to resolve
26353 coordinates into items
26355 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26357 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26358 as the second color for the background hatch
26360 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
26362 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26363 * RichTextBox.cs: FormatText position arguments are 1-based, now making
26364 sure that what we pass to FormatText is always 1-based. Fixes #76885
26366 2005-11-29 Miguel de Icaza <miguel@novell.com>
26368 * NumericUpDown.cs (EndInit): When we are done initializing,
26369 reflect any updates on the UI.
26371 2005-12-02 Jackson Harper <jackson@ximian.com>
26373 * ImplicitHScrollBar.cs:
26374 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26375 their container controls.
26376 * TreeView.cs: Use the new implicit scrollbars.
26378 2005-12-02 Jackson Harper <jackson@ximian.com>
26380 * TreeView.cs: Make top_node internal so the TreeNodeCollections
26382 * TreeNodeCollection.cs: If we remove the topnode we need to
26383 update topnode to the next node in line.
26384 - When clearing nodes go through the same process as removing
26385 them, so they get depareneted and checked if they are top node.
26387 2005-12-01 Jackson Harper <jackson@ximian.com>
26389 * TreeView.cs: When imagelists are used the image area is
26390 selectable as well as the text.
26391 - If there are no selected nodes select the first one.
26392 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26393 so don't do it more then we need to.
26395 2005-12-01 Jackson Harper <jackson@ximian.com>
26397 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26398 that arrows can be scaled.
26400 2005-12-01 Jackson Harper <jackson@ximian.com>
26402 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26403 fail. Patch by Dieter Bremes
26405 2005-11-30 Jackson Harper <jackson@ximian.com>
26407 * Form.cs: Property is 2.0 only
26408 * PrintDialog.cs: Signature fix.
26410 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26413 - No longer artificially moves text 2 pixels down (now that we have
26414 borders this is no longer needed)
26415 - Added calcs for left, hanging and right indent
26417 2005-11-23 Mike Kestner <mkestner@novell.com>
26419 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26421 2005-11-30 Jackson Harper <jackson@ximian.com>
26423 * MdiChildContext.cs: Set the cloned menus forms, as these don't
26424 get cloned as part of CloneMenu ().
26425 * Menu.cs: Make sure the parent of the items get set correctly
26426 when they are added. And the owners are notified of the changes.
26427 * Form.cs: Create an ActiveMenu property, so that when MDI is used
26428 we can change the menu being displayed/handled by the form without
26429 changing the menu assosciated with the form.
26430 - Don't let Mdi children draw/handle menus.
26432 2005-11-30 Jackson Harper <jackson@ximian.com>
26434 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26435 a MenuChanged event. Just to make the API a little more
26438 * MenuItem.cs: Use the new OnMenuChanged
26439 * MdiChildContext.cs: Handle menu merging.
26440 * Form.cs: Implement MergedMenu.
26442 2005-11-30 Jackson Harper <jackson@ximian.com>
26444 * Menu.cs: We were misusing Add. Add goes behind the specified
26445 index according to the docs, and does not replace the specified
26446 index. So I added an Insert method.
26448 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
26450 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26451 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26453 * RichTextBox.cs: Added calls to base for DnD events
26455 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
26458 - Fixed drag-selection related crash; style fixes
26459 - Implemented undo class
26460 o Implemented method to capture document state for specified
26461 range in document tree
26462 o Implemented method to restore captured document state
26463 o Implemented cursor tracking
26464 o Implemented basic undo stack
26465 - Added undo cursor tracking to methods altering cursor location
26466 - Added undo tracking to selection deletion (still missing
26467 other text-altering hookups)
26469 - Added SelectionLength property
26470 - Implemented CanPaste()
26471 - Implemented Paste()
26472 - Added missing protected methods
26473 - Fixed RTF->Document conversion; now uses font index 0 and color
26474 index 0 as the default font for the parsed text
26475 - Fixed RTF<->Document font size translation
26476 - Fixed RTF generation, now properly handles cross-tag boundaries
26477 for single line selection
26478 - No longer always appends blank line to generated RTF
26480 - Added missing attributes
26481 - Hooked up undo-related methods
26483 - Implemented Copy()
26484 - Implemented Paste()
26485 - Implemented Cut()
26486 - Fixed caret mis-behaviour on backspace across line-boundaries
26488 2005-11-29 Jackson Harper <jackson@ximian.com>
26490 * MdiClient.cs: Add a method for activating mdi children. Very
26491 basic right now. I imagine someday it might need more girth.
26492 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26493 children windows names are added to the menu item.
26494 * ThemeWin32Classic.cs: Draw the arrow if the item is an
26495 mdilist. This happens regardless of whether or not there are any
26496 mdi windows to see in the list, and according to my tests happens
26497 before the items are even added. Also happens if there isn't even
26498 an mdi client to get windows from.
26500 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
26502 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26503 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26505 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
26507 * DataGridTableStyle.cs:
26508 - Create always the styles for the missing columns even if they are
26509 provided by the user (not default table style)
26512 - Fixes SetDataBinding (always re-attach source)
26513 - Fixes SetNewDataSource (only clear styles if they are not for
26515 - Expands OnTableStylesCollectionChanged to handle style refresh
26516 and remove properly
26518 2005-11-29 Jackson Harper <jackson@ximian.com>
26520 * FileDialog.cs: Implement missing bits, remove some dead
26522 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26523 creation of the panel so that the options set on the dialog are
26524 seen when the panel is created.
26525 * TreeView.cs: raise a click when items are clicked.
26527 2005-11-29 Jackson Harper <jackson@ximian.com>
26529 * MdiClient.cs: Pass some signature methods through to base.
26531 2005-11-28 Jackson Harper <jackson@ximian.com>
26533 * ListView.cs: Raise the click event when items are clicked.
26535 2005-11-28 Jackson Harper <jackson@ximian.com>
26537 * MdiClient.cs: Make this algorithm even more beautiful. And fix
26540 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
26542 * ThemeNice.cs: - Removed 1 pixel bitmaps
26543 - Use SmoothingMode.AntiAlias where it makes sense
26544 (ScrollButton arrow for example)
26545 - Enhanced Button focus drawing
26546 - Fixed ComboBox drawing (no artefacts anymore, focus
26547 rectangle is back again, reduced size of ComboButton, etc.)
26548 - Fixed RadioButton focus drawing for Appearence.Button
26549 - Slight ScrollButton redesign
26550 - Some LinearGradientBrush size fixes
26551 - GroupBoxes have now rounded edges
26552 - Fixed StatusBar drawing
26554 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
26556 * ThemeNice.cs: - Remove dead code
26557 - use correct background colors for menus, etc.
26558 - Fake pixel drawing with 1 pixel bitmaps
26560 2005-11-24 Jackson Harper <jackson@ximian.com>
26562 * MdiClient.cs: Size the scrollbars when resizing the window.
26563 - Resize the maximized windows when the client is resized
26564 * Form.cs: Make the child context available
26566 2005-11-23 Jackson Harper <jackson@ximian.com>
26568 * MdiChildContext.cs: Don't size windows if they are maximized.
26570 2005-11-23 Mike Kestner <mkestner@novell.com>
26572 * ContextMenu.cs: use MenuTracker.
26573 * Control.cs: remove menu handle usage.
26574 * Form.cs: remove menu handle usage.
26575 * Hwnd.cs: remove menu handle usage.
26576 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26577 motion and clicks to the new Tracker handlers.
26578 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26580 * MenuAPI.cs: refactored to combine popup and menubar event handling.
26581 Killed the MENU and MENUITEM data types and associated collections
26582 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26583 MenuTracker class that exposes the leftovers from the old MenuAPI
26584 static methods. Restructured Capture handling so that only one grab is
26585 done for the entire menu hierarchy instead of handing off grabs to
26586 submenus. Tracker now has an invisible control to Capture when active.
26587 * MenuItem.cs: add sizing accessors, kill Create
26589 * Theme.cs: remove menu handle and MENU(ITEM) usage.
26590 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26591 MENU(ITEM). remove menu handle usage, use Menu directly.
26592 * XplatUIDriver.cs: remove menu handle usage.
26593 * XplatUIOSX.cs: remove menu handle usage.
26594 * XplatUIWin32.cs: remove menu handle usage.
26595 * XplatUIX11.cs: remove menu handle usage.
26597 2005-11-22 Jackson Harper <jackson@ximian.com>
26599 * Hwnd.cs: Don't compute the menu size for
26600 DefaultClientRectangle.
26601 - Reenable menu sizes being computed for GetClienRectangle.
26602 * Form.cs: Remove comment of trechery
26604 2005-11-22 Jackson Harper <jackson@ximian.com>
26606 * Hwnd.cs: The adjustments for the menu bar are made when it is
26607 attached to the form.
26609 2005-11-19 Jackson Harper <jackson@ximian.com>
26611 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26612 (just like on windows).
26614 2005-11-19 Jackson Harper <jackson@ximian.com>
26616 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26617 use real buttons anymore because they are in non client area. The
26618 one TODO here is that I need to somehow invalidate a section of
26619 the non client area.
26621 2005-11-18 Jackson Harper <jackson@ximian.com>
26623 * Control.cs: Put the enum check back in now that MDI doesnt have
26624 to use this to set border styles.
26625 * Form.cs: Only set mdi child windows borders if the handle has
26627 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26628 this directly on to the driver.
26629 - Get the move start position before adjusting for the titlebar
26630 height, this fixes the windows "skipping" when they are first
26633 2005-11-18 Jackson Harper <jackson@ximian.com>
26635 * XplatUIX11.cs: Just compute the mdi borders separately as they
26636 don't totally match up with normal form borders.
26638 2005-11-18 Jackson Harper <jackson@ximian.com>
26640 * Control.cs: Set WS_ styles for borders, so that the driver does
26641 not have to retrieve the control instance to figure out what kind
26642 of borders it should have.
26643 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26644 driver can know its an mdi child easily.
26645 * XplatUIX11.cs: Get the border styles and whether the window is
26646 MDI from the Styles and ExStyles params instead of having to get a
26647 control. This prevents a chicken and egg problem.
26649 2005-11-18 Jackson Harper <jackson@ximian.com>
26651 * MdiClient.cs: Fix typo so scrollbars show up correctly.
26653 2005-11-18 Jackson Harper <jackson@ximian.com>
26655 * MdiClient.cs: Calculate when to add and remove scrollbars
26657 * MdiChildContext.cs: Adjust the y position to take the titlebar
26659 - No height for FormBorderStyle.None
26661 2005-11-18 Jackson Harper <jackson@ximian.com>
26663 * Control.cs: Allow non enum values to be used for
26664 InternalBorderStyle. MDI does this to set a special border style.
26665 - New utility methods for converting points to/from client coords
26666 - Add the newly created control to the Controls collection before
26667 updating its style. This way UpdateStyle can walk the control
26668 heirarchy to find the control if needed.
26669 so I don't need to create a new Point object all the time.
26670 * Form.cs: Let MDI windows handle their border styles.
26671 - Set styles on MDI windows so the correct title style is derived.
26672 * MdiChildContext.cs: Move all the painting and window handling
26673 into the non client area.
26674 - Use correct sizing and put correct buttons on frames based on
26675 the FormBorderStyle.
26676 - Notify the mdi client about scrolling
26677 - Need to handle the buttons ourselves now, because they are all
26678 in non client areas and we can't add controls there.
26679 * MdiClient.cs: Halfway to scrolling, this implementation is
26680 somewhat broken though, we need to check to make sure other
26681 windows aren't causing scrolling before removing the bars. Also
26682 the bars need to be drawn on top, maybe I can switch implicit
26683 controls to be on top.
26684 * Hwnd.cs: caption_height and tool_caption_height are now
26685 properties of an hwnd, this way they can be set by the driver
26686 based on the type of window they are. In X11 the window manager
26687 handles the decorations so caption_height is zero unless its an
26689 - Add 3 pixel borders for MDI windows (0xFFFF).
26690 - Get rid of some code duplication, have DefaultClientRectanle
26691 just call GetClientRectangle.
26692 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26694 - Set border styles differently for mdi windows.
26695 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26698 2005-11-15 Mike Kestner <mkestner@novell.com>
26700 * Menu.cs: when adding an item to the collection, if item is already
26701 parented, remove it from the parent.
26703 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
26705 * X11DesktopColors.cs: Added KDE support
26707 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
26710 - Clipboard methods now can translate Rtf format
26711 - No longer removes clipboard contents whenever a new format is added
26712 to allow placing multiple formats on the clipboard
26713 * Clipboard.cs: Clipboard now supports getting a IDataObject and
26714 will place all formats contained in it onto the clipboard. Also
26715 now cleans the clipboard before placing a new object onto it
26717 - Implemented set_Rtf
26718 - Implemented set_SelectedRtf
26719 - Created InsertRTFFromStream() method to allow single code base
26720 for all properties and methods that insert RTF into document
26721 - Removed debug output
26723 - Fixed Delete(int) to fix up line numbers
26724 - Fixed ReplaceSelection to combine start and end line
26725 - Fixed serious DeleteChars bug that would leave the document tree
26727 - Improved DumpTree with several logic checks to detect broken
26729 - Removed debug lines
26730 - Fixed Caret.WordForward/WordBack moving code, now always also
26731 updates caret.tag (fixes crash when word-selecting across tag
26732 boundaries via keyboard)
26733 - Added Insert() method for inserting multiline text into documents
26734 - Fixed DeleteChars() calculation errors that would cause a broken
26735 tag chain with multiple tag lines
26736 - DeleteChars() no longer crashes on multi-tag lines if not all tags
26737 - Split() no longer moves caret if split is at caret location
26738 - ReplaceSelection() now updates the cursor and re-displays it
26739 - ReplaceSelection() now uses new Insert() method to avoid code
26741 - FormatText() can now handle formatting partial lines
26743 - Append now uses new TextControl.Insert() method (this avoids
26745 - Implemented Ctrl-X (Cut) (
26746 - Implemented Ctrl-C (Copy)
26747 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
26748 regeneration when pasting text; roundtripping Copy&Paste within
26749 edit control still fails due to some calculation bugs in GenerateRTF)
26750 - The Delete key will now remove the current selection if it is visible
26751 * TextBox.cs: Removed debug lines
26752 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26753 driver to be initialized and can't therefore be done via a static ctor)
26755 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
26757 * TextControl.cs: Added backend code for finding char arrays and strings
26759 - Added mouse wheel scroll support
26760 - Added support for VScroll and HScroll events
26762 - Implemented all seven Find() variants
26763 - Implemented GetCharFromPosition()
26764 - Implemented GetCharIndexFromPosition()
26765 - Implemented GetLineFromIndex()
26766 - Implemented GetPositionFromCharIndex();
26767 - Implemented SaveFile for PlainText and UnicodeText
26768 - Fixed set_Font, now setting a new font applies that font to
26770 - Implemented generic Document to RTF converter
26771 - Implemented SaveFile for RichText format (still missing unicode
26772 conversion for non-ansi chars)
26773 - Implemented get_Rtf
26774 - Implemented get_SelectedRtf
26776 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
26778 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26779 to allow any captures to be released before triggering OnClick. This
26780 way a click handler may capture the mouse without interference.
26781 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26782 This way we send them even though X may not allow a grab (if the window
26783 isn't visible, for example)
26785 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
26787 * DataGridViewRowEventArgs.cs: DataGridView implementation
26788 * DataGridViewElement.cs: DataGridView implementation
26789 * DataGridViewComboBoxCell.cs: DataGridView implementation
26790 * DataGridViewDataErrorContexts.cs: DataGridView implementation
26791 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26792 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26793 * ImageLayout.cs: DataGridView implementation
26794 * DataGridViewComboBoxColumn.cs: DataGridView implementation
26795 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26796 * DataGridViewSelectionMode.cs: DataGridView implementation
26797 * IDataGridViewEditingControl.cs: DataGridView implementation
26798 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26799 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26800 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26801 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26802 * DataGridViewColumnSortMode.cs: DataGridView implementation
26803 * DataGridView.cs: DataGridView implementation
26804 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26805 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26806 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26807 * Padding.cs: DataGridView implementation
26808 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26809 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26810 * DataGridViewRowEventHandler.cs: DataGridView implementation
26811 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26812 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26813 * DataGridViewButtonCell.cs: DataGridView implementation
26814 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26815 * DataGridViewEditMode.cs: DataGridView implementation
26816 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26817 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26818 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26819 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26820 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26821 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26822 * DataGridViewCellEventHandler.cs: DataGridView implementation
26823 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26824 * DataGridViewCellStyleConverter.cs: DataGridView implementation
26825 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26826 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26827 * DataGridViewColumnEventArgs.cs: DataGridView implementation
26828 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26829 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26830 * QuestionEventArgs.cs: DataGridView implementation
26831 * IDataGridViewEditingCell.cs: DataGridView implementation
26832 * DataGridViewTriState.cs: DataGridView implementation
26833 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26834 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26835 * DataGridViewColumnCollection.cs: DataGridView implementation
26836 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26837 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26838 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26839 * DataGridViewColumn.cs: DataGridView implementation
26840 * DataGridViewCellBorderStyle.cs: DataGridView implementation
26841 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26842 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26843 * DataGridViewRow.cs: DataGridView implementation
26844 * DataGridViewImageCellLayout.cs: DataGridView implementation
26845 * DataGridViewImageCell.cs: DataGridView implementation
26846 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26847 * DataGridViewCheckBoxCell.cs: DataGridView implementation
26848 * DataGridViewHeaderCell.cs: DataGridView implementation
26849 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26850 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26851 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26852 * DataGridViewTextBoxColumn.cs: DataGridView implementation
26853 * QuestionEventHandler.cs: DataGridView implementation
26854 * DataGridViewCellStyleScopes.cs: DataGridView implementation
26855 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26856 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26857 * DataGridViewCell.cs: DataGridView implementation
26858 * DataGridViewCellEventArgs.cs: DataGridView implementation
26859 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26860 * DataGridViewCellStyle.cs: DataGridView implementation
26861 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26862 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26863 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26864 * TextFormatFlags.cs: DataGridView implementation
26865 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26866 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26867 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26868 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26869 * DataGridViewButtonColumn.cs: DataGridView implementation
26870 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26871 * HandledMouseEventArgs.cs: DataGridView implementation
26872 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26873 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26874 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26875 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26876 * DataGridViewRowCollection.cs: DataGridView implementation
26877 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26878 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26879 * DataGridViewHitTestType.cs: DataGridView implementation
26880 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26881 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26882 * DataGridViewColumnEventHandler.cs: DataGridView implementation
26883 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26884 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26885 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26886 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26887 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26888 * DataGridViewContentAlignment.cs: DataGridView implementation
26889 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26890 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26891 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26892 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26893 * DataGridViewPaintParts.cs: DataGridView implementation
26894 * DataGridViewCellCollection.cs: DataGridView implementation
26895 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26896 * DataGridViewImageColumn.cs: DataGridView implementation
26897 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26898 * DataGridViewElementStates.cs: DataGridView implementation
26899 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26900 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26901 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26902 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26903 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26904 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26905 * DataGridViewRowHeaderCell.cs: DataGridView implementation
26906 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26907 * DataGridViewTextBoxCell.cs: DataGridView implementation
26908 * DataGridViewBand.cs: DataGridView implementation
26909 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26910 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
26911 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
26912 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
26913 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
26914 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
26915 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
26916 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
26917 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
26918 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
26919 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
26921 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
26923 * ThemeWin32Classic.cs:
26924 - Draw the outside focus rectangle around buttons
26925 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
26926 doesn't use end caps for every dash of a line anymore. This
26927 workaround ignores the forecolor.
26929 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
26931 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
26934 2005-11-07 Jackson Harper <jackson@ximian.com>
26936 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
26938 2005-11-07 Jackson Harper <jackson@ximian.com>
26940 * ScrollableControl.cs: Calculate the maximum and change vars
26941 (more) correctly so that scrollbars appear as a sensible size.
26943 2005-11-04 Jackson Harper <jackson@ximian.com>
26945 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
26947 * TreeView.cs: When the tree is sorted null out the top_node so
26948 that it is recalculated.
26949 - Use dotted lines instead of dashed lines to match MS better.
26951 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
26954 - Implements key search for items. Useful when browsing files with FileDialog
26955 - When changing view mode or when clear the items reset scrollbar positions
26957 2005-11-04 Jackson Harper <jackson@ximian.com>
26959 * CurrencyManager.cs: Implement the MetaDataChanged event, the
26960 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
26961 as to what the method may do as there is no real way of creating a
26962 derived CurrencyManager and calling the method.
26964 2005-11-03 Jackson Harper <jackson@ximian.com>
26966 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
26967 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
26968 method which seems to just be used internally to refresh the tabs.
26970 2005-11-03 Jackson Harper <jackson@ximian.com>
26972 * TabControl.cs: Implement the remove method. Fix some broken
26975 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26977 * DateTimePicker.cs:
26978 - Added missing DateTimePickerAccessibleObject class
26979 - Added missing events
26980 - Added OnFontChanged method
26981 * Form.cs: Added missing attributes
26982 * TreeView.cs: Added missing attributes
26984 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26986 * GridItemCollection.cs: Fix signatures
26988 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
26990 * XplatUI.cs: Updated build rev/date
26991 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
26992 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26993 * Application.cs: Trigger context-specific ExitThread events
26995 2005-11-03 Jackson Harper <jackson@ximian.com>
26999 * GridTableStylesCollection.cs:
27004 * MonthCalendar.cs: Signature fixes
27006 2005-11-03 Jackson Harper <jackson@ximian.com>
27008 * TreeNodeCollection.cs: Remove should not be virtual.
27009 * TreeView.cs: Implement the last of the missing methods.
27011 2005-11-03 Jackson Harper <jackson@ximian.com>
27013 * TreeNodeConverter.cs: Implement to get off my class-status back.
27015 2005-11-03 Jackson Harper <jackson@ximian.com>
27017 * TreeView.cs: Hookup the bits for drag and drop.
27018 * TreeNode.cs: Don't cache the tree_view or index anymore, now
27019 that nodes can be moved from tree to tree easily this just causes
27020 all sorts of problems.
27021 * TreeNodeCollection: Don't need to give treenodes an index and
27022 treeview anymore when they are added, these are computed on the
27023 fly. Also make sure to remove a node before its added.
27025 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
27028 - Added CaretSelection enum
27029 - Added comparison methods to Marker struct, makes selection code
27031 - Added SelectionStart and SelectionEnd as 'moveable' location for
27032 the CaretDirection enum and handler
27033 - Added selection_prev variable to track optimized invalidation for
27034 word and line selection
27035 - Added SelectionVisible property (returns true if there is a valid
27037 - Switched CaretHasFocus to only display the caret if there is no
27039 - Avoiding StringBuilder.ToString to retrieve a single char, instead
27040 using the direct character index; should be much faster
27041 - Added various conditional debug statements
27042 - Fixed invalidation calculation for selection ranges
27043 - Added ExpandSelection() method to support word and line selection
27044 - Switched SetSelectionToCaret to use new Marker compare overloads
27045 - Added central IsWordSeparator() method to determine word
27046 separators/whitespace and FindWordSeparator() to streamline common
27047 usage of IsWordSeparator()
27049 - Removed unneeded grabbed variable, it was just mirroring
27051 - No longer firing OnTextChanged event when Text setter is called,
27052 since the base will fire the event for us
27053 - Added handling of Ctrl-Up/Down selection
27054 - Added handling of Shift-Cursorkey selection
27055 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27057 - Added handling of Shift and Ctrl-Shift-Home/End selection
27058 - Removed some debug output
27059 - Added handling for single/double/tripple-click to place caret/
27060 select word/select line respectively (Fixes bug #76031)
27061 - Added support for drag expansion of word/line selection
27062 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27065 2005-11-02 Jackson Harper <jackson@ximian.com>
27067 * X11Dnd.cs: If the drag is going to and from a MWF window just
27068 copy the data instead of sending it out through the X Selection
27071 2005-11-02 Jackson Harper <jackson@ximian.com>
27074 * XplatUIX11.cs: When in a drag we don't want motion notify
27075 messages to get passed on to the other controls. This prevents
27076 mouse move messages from showing up in the drag source.
27078 2005-11-02 Jackson Harper <jackson@ximian.com>
27080 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
27081 the correct button is release to end a drag.
27082 * XplatUIX11.cs: Make the button state internal so the drag system
27083 can access it. Dragging needs to know about all button releases,
27084 not just left button.
27086 2005-11-02 Miguel de Icaza <miguel@novell.com>
27088 * Form.cs (Icon): If the icon is null, reset the icon to the
27091 * Cursor.cs: When writing the AND-mask bitmap do not include the
27092 number of colors, but hardcode those to two (black and white),
27093 fixes the loading of color cursors (Paint Dot Net).
27095 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27096 turn off autoscaling.
27098 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27100 2005-11-02 Jackson Harper <jackson@ximian.com>
27102 * X11Dnd.cs: Make sure to send a status message if the pointer
27103 enters a control that can not accept a drop, otherwise the cursor
27104 isn't updated correctly. Also tried to compress the lines of code
27107 2005-11-02 Jackson Harper <jackson@ximian.com>
27109 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27110 set actions correctly. This isn't perfect as XDND and win32 have
27111 some differences on how you allow actions. I'll clear this up by
27112 adding a path for drag from MWF to MWF windows.
27113 * XplatUIX11.cs: Hook into the dnd system.
27115 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
27117 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27118 previously shown but they are no longer need it. Very obvious when
27119 browsing files with FileDialog.
27121 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
27123 * Control.cs: We always need to call OnPaintBackground. We pretty much
27124 ignore AllPaintingInWmPaint and always do the painting there, whether
27125 it's set or not, since we always ignore the WM_ERASEBKGND message
27126 (which we don't generate on X11). This fixes #76616.
27127 * Panel.cs: Removed unneeded background painting. This happens properly
27128 in Control.cs already
27130 2005-10-31 Mike Kestner <mkestner@novell.com>
27132 * Menu.cs: Add items to collection before setting their index.
27133 * MenuItem.cs : add range checking with ArgumentException like MS.
27136 2005-10-31 Jackson Harper <jackson@ximian.com>
27138 * ListBox.cs: Invalidate if the area is visible at all not just
27139 contained in the visible rect. Fixes unselection of semi visible
27142 2005-10-31 Jackson Harper <jackson@ximian.com>
27144 * Control.cs: Consistently name the dnd methods. Make them
27145 internal so we can override them to match some MS behavoir
27147 * Win32DnD.cs: Use the new consistent names.
27149 2005-10-31 Jackson Harper <jackson@ximian.com>
27151 * TreeView.cs: Don't draw the selected node when we lose focus.
27153 2005-10-31 Jackson Harper <jackson@ximian.com>
27155 * X11Dnd.cs: We still need to reset the state even though a full
27156 reset isn't being done, otherwise status's still get sent all over
27159 2005-10-31 Jackson Harper <jackson@ximian.com>
27161 * Control.cs: Make the dnd_aware flag internal so the dnd
27162 subsystem can check it. Catch exceptions thrown in dnd handlers to
27164 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27165 * X11Dnd.cs: Handle null data in the converters. Set the XDND
27166 version when sending a XdndEnter. Use the control/hwnd dnd_aware
27167 flags to reduce the number of dnd enters/status's sent.
27169 2005-10-31 Jackson Harper <jackson@ximian.com>
27171 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27173 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
27175 * PictureBox.cs: Fixes 76512
27177 2005-10-28 Jackson Harper <jackson@ximian.com>
27179 * X11Dnd.cs: Early implementation to support winforms being a drag
27180 source for data on X11. Also restructured the converters so they
27181 can go both ways now.
27182 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27184 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
27186 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27189 2005-10-27 Jackson Harper <jackson@ximian.com>
27191 * TreeNode.cs: Implement serialization so my DnD examples will work.
27193 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
27195 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27196 TreeView.cs: Don't dispose objects that are not owned.
27198 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
27200 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27201 should retrieve the current cursor and report that, but XplatUI
27202 doesn't (yet) have an interface for that (and I'm not sure I even
27204 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27205 until any message loop processing is done (and the WM_SETCURSOR
27206 replaces the cursor to the proper one)
27208 - Fixed override behaviour, we can't set the cursor globally on X11,
27209 just for our windows.
27210 - Invalidating the System.Drawing X11 display handle when we are
27212 * Control.cs: Fix to make csc happy
27214 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
27217 - get_Text: Add last line (without trailing newline) to returned
27218 value (Fixes 76212)
27219 - get_TextLength: Count last line in returned length
27220 - ToString: Call Text property instead of duplicating code
27222 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
27224 * ImageList.cs: Dispose ImageAttributes objects.
27226 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27228 * ImageList.cs: Use attribute constructors with less arguments where
27231 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
27233 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27234 Use typeof instead of strings when assembly is referenced. Added
27235 some more comments.
27237 2005-10-21 Jackson Harper <jackson@ximian.com>
27239 * ListView.cs: Raise a double click event. Also tried to somewhat
27240 fix when the selectedindexchanged event is raised. Its still
27243 2005-10-21 Jackson Harper <jackson@ximian.com>
27245 * TreeView.cs: New method to invalidate the plus minus area of a
27246 node without invalidating the whole node (maybe this can be used
27247 in some more places).
27248 * TreeNodeCollection.cs: When adding to an empty node we need to
27249 invalidate its plus minus area so the little block shows up.
27251 2005-10-21 Jackson Harper <jackson@ximian.com>
27253 * TreeView.cs: Make sure that when we invalidate a node the bounds
27254 are big enough to cover the selected box and the focus
27255 rectangle. Use a different colour for the lines connecting nodes
27256 so they show up with all themes.
27258 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27260 * NativeWindow.cs: Don't call anything that could call into the driver,
27261 we might be on a different thread.
27263 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27265 * Control.cs(Dispose): Since Dispose might run on a different thread,
27266 make sure that we call methods that could call into the driver via
27267 invoke, to avoid thread issues
27269 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
27271 * XplatUI.cs: Removed finalizer
27272 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27273 not allowing to be called on the finalizer thread.
27275 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
27278 - Reverted r51889 and r51891.
27279 - Added ImageListItem class that stores unmodified image items and image
27280 properties required to create list images until handle is created.
27281 - Added AddItem and moved image creation logic to AddItemInternal.
27282 - Added CreateHandle method that creates images based on unmodified items.
27283 - Added DestroyHandle that changes state to store unmodified items.
27284 - Add and AddStrip methods no more create handle.
27285 - ReduceColorDepth has no return value.
27286 - Dispose destroys handle.
27287 - Modified other methods to reflect the above changes.
27288 - Implemented key support.
27289 - Added profile 2.0 members and attributes.
27290 - Added private Reset and ShouldSerialize methods that provide the same
27291 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27292 them as they are private.
27293 - Added some more comments about implementation details.
27295 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27297 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27299 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27301 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27303 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
27305 * DataGridDrawingLogic.cs: Fixes column hit calcultation
27306 * DataGridColumnStyle.cs: Remove debug message
27308 2005-10-20 Jackson Harper <jackson@ximian.com>
27310 * TreeView.cs: We can always get input keys regardless of whether
27311 or not editing is enabled. They are used for navigation.
27313 2005-10-20 Jackson Harper <jackson@ximian.com>
27315 * TreeNode.cs: Use the viewport rect for determining if a node
27316 needs to be moved for visibility. Don't use Begin/End edit. This
27317 calls a full refresh when its done.
27318 * TreeView.cs: New SetBottom works correctly. Make the viewport
27319 rect property internal so the treenodes can see it. When clicking
27320 on a node we need to ensure that its visible because it might just
27321 be partly visible when clicked.
27323 2005-10-20 Jackson Harper <jackson@ximian.com>
27325 * TreeNodeCollection.cs: Remove debug code.
27327 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27329 * Datagrid.cs: Implements column sorting in Datagrid
27330 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27332 2005-10-20 Jackson Harper <jackson@ximian.com>
27334 * TreeNodeCollection.cs: Remove items properly. Update the correct
27335 area after removing them.
27337 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
27339 * Datagrid.cs: Should not call base.OnPaintBackground
27341 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27343 * XplatUIX11.cs (GetMessage):
27344 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27345 window instead of client window
27346 - Now properly calculates NC_xBUTTONUP message coordinates
27347 - ScreenToMenu now properly calculates it's coordinates of whole
27348 window, since menus are in the whole window, not in the client
27350 - Added WholeToScreen coordinate translation method
27352 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27354 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27355 want to return a message, loop back to the beginning of the function
27356 and grab the next real message to process instead.
27358 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
27360 * Splitter.cs: Properly set limits if no filler control is used
27362 2005-10-19 Jackson Harper <jackson@ximian.com>
27364 * ColorDialog.cs: Don't show the help button if it is not enabled
27365 instead of disabling it (this is what MS does). Don't create the
27366 panel until the dialog is run, otherwise the vars (such as
27367 ShowHelp) are not set yet.
27369 2005-10-19 Jackson Harper <jackson@ximian.com>
27371 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27372 are reduced when adding nodes.
27374 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27377 2005-10-19 Jackson Harper <jackson@ximian.com>
27379 * FolderBrowserDialog.cs: End editing our treeview so the window
27380 actually gets refreshed.
27382 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27384 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
27385 Obsoleted handling of WM_ERASEBKGND, now always draws our background
27388 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27390 * MenuAPI.cs: Returns after Hidding window
27391 * XplatUIX11.cs: Added TODO found while debugging menu issues
27393 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
27395 * XplatUIX11.cs: Do not re-map the whole window when it's size
27396 becomes non-zero unless it's supposed to be actually visible
27398 2005-10-18 Jackson Harper <jackson@ximian.com>
27400 * TreeView.cs: We don't need to keep a count anymore.
27401 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27402 use the Grow method.
27404 2005-10-18 Jackson Harper <jackson@ximian.com>
27406 * TreeNodeCollection.cs: Insert is not supported on arrays, so
27407 implement it manually here.
27409 2005-10-18 Jackson Harper <jackson@ximian.com>
27411 * ImageList.cs: Dont kill the list when the colour depth is
27412 changed, just change the colour depth of all the images.
27413 - Same goes for setting the image size. Just resize them all
27414 instead of killing the list softly.
27416 2005-10-18 Jackson Harper <jackson@ximian.com>
27418 * Control.cs: Don't invalidate empty rectangles.
27420 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27423 - Adds checked item to the Checked/Item lists (where empty before)
27424 - Do not add items to the Selected lists if they are already present
27426 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27427 - When deleting items make sure that we delete them for the Selected
27428 and Checked list also.
27430 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
27432 * Label.cs: Dispose objects no longer used
27433 * ThemeWin32Classic.cs: Dispose objects no longer used
27435 2005-10-18 Jackson Harper <jackson@ximian.com>
27437 * TabControl.cs: Don't refresh the whole control when the tabs are
27438 scrolled, we just need to refresh the tab area.
27440 2005-10-17 Jackson Harper <jackson@ximian.com>
27442 * XplatUIX11.cs: Compress code a little bit. Only calculate the
27443 after handle when we need it.
27445 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27447 * Control.cs: When the parent size changes, recalculate anchor
27448 positions. Partial fix for #76462
27450 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
27452 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
27453 drawn. Fixes #76462
27455 2005-10-17 Jackson Harper <jackson@ximian.com>
27457 * MonthCalendar.cs: Don't create the numeric up down until our
27458 handle is created. Otherwise our handle is created in the
27459 constructor and we don't know if we are a WS_CHILD or WS_POPUP
27462 2005-10-17 Jackson Harper <jackson@ximian.com>
27464 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27467 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
27468 * TreeNode.cs : small logical fix (was using local var instead of field)
27470 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27472 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27474 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
27476 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27478 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
27481 - Re-implemented anchoring code. My first version was really broken.
27482 This fixes bug #76033. Unlike the previous implementation we will
27483 no longer have round errors since all numbers are calculated from
27484 scratch every time. Removed various anchor-related obsolete vars.
27485 - InitLayout no longer causes layout event firing and layout to be
27488 2005-10-16 Jackson Harper <jackson@ximian.com>
27490 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27493 2005-10-16 Jackson Harper <jackson@ximian.com>
27495 * TabControl.cs: Remove debug code.
27497 2005-10-16 Jackson Harper <jackson@ximian.com>
27499 * XEventQueue.cs: Increase the default queue size (very simple
27500 apps needed to grow the queue).
27501 * Hwnd.cs: No finalizer so we don't need to suppress
27502 finalization. Compute the invalid area manually so a new rectangle
27503 does not newto be created.
27504 * ScrollableControl.cs: Don't set any params (otherwise visibility
27505 isn't set correctly).
27506 * MdiChildContext.cs: New constructor takes the mdi parent so it
27507 doesn't have to be computed and avoids a crash on windows. Draw
27508 the window icon properly, and allow the text to be seen.
27509 * Form.cs: Use new MdiChildContext constructor. Make sure the
27510 child context isn't null in wndproc.
27511 * TabControl.cs: Don't set focus, this is muddling keyboard
27512 behavoir. Expand the tab rows when a window size increase will
27513 allow extra tabs to be seen. Don't allow tabs smaller than the
27514 width of a window to be scrolled out of view.
27516 * TreeView.cs: Use measure string to calculate a nodes width, the
27517 width is cached and only updated when the text or the font is
27518 changed. Don't check for expand/collapse clicks on the first level
27519 nodes if root lines are disabled.
27521 2005-10-16 Ritvik Mayank <mritvik@novell.com>
27523 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27525 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27527 * DataGridBoolColumn.cs: fixes warning
27529 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
27531 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27532 to match more to match more precisely the MS Net behavior
27534 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27536 * Hwnd.cs: Added field to track if window is mapped
27538 - Unmap windows if they become 0-size, re-map when
27539 they are >0 again; fixes #76035
27540 - Re-set our error handler after initializing X11Desktop
27541 to override any error handlers Gtk or whatever was called
27544 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27546 * CheckedListBox.cs: Removed unused vars
27547 * ListView.cs: Fixed signatures
27548 * RichTextBox.cs: Removed unused vars
27549 * TextBoxBase.cs: Removed unused vars
27550 * XplatUIWin32.cs: Removed unused vars
27551 * XplatUIX11.cs: Removed unused vars
27552 * XplatUI.cs: Updated version and date to latest published
27554 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27556 * Cursor.cs: Added private .ctor to work around a bug in
27557 resourceset (Thanks to Geoff Norton for the help on this)
27558 * SplitterEventArgs.cs: Made fields accessible so we don't
27559 waste boatloads of objects and can reuse the same one
27561 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27562 any captions and borders when generating screen coordinates
27563 * Splitter.cs: Reimplemented control, now fully complete, uses
27564 rubberband drawing, supports and obeys all properties, has
27567 2005-10-13 Miguel de Icaza <miguel@novell.com>
27569 * Form.cs (Form): Setup default values for autoscale and
27570 autoscale_base_size; Make these instance variables, not static
27573 (OnLoad): on the first load, adjust the size of the form.
27575 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
27577 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
27578 width argument to DrawReversibleRectangle()
27579 * XplatUIWin32.cs, XplatUIX11.cs:
27580 - Implemented width for DrawReversibleRectangle()
27581 - Added logic to DrawReversibleRectangle that recognizes a zero
27582 width or height and only draws a line in that situation
27584 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27586 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27587 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27588 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27589 method (it uses our FosterParent window to get a graphics context)
27591 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
27593 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
27594 and SetWindowBackground methods
27596 - Setting proper ControlStyles
27597 - We no longer call XplatUI.SetWindowBackground and XplatUI.
27598 EraseWindowBackground, instead we draw the window background
27599 ourselves in PaintControlBackground. This behaviour is
27600 required to match MS, where, when OnPaintBackground is not
27601 called, the background is not drawn.
27602 - Removed unneeded Refresh() in set_Text
27603 * Hwnd.cs: Dropped the ErasePending support. No longer needed
27605 - Created DeriveStyles method to translate from CreateParams to
27606 FormBorderStyle and TitleStyle, also handles BorderStyle (which
27607 matches FormBorderStyle enum values)
27608 - Consolidated SetHwndStyles and CalculateWindowRect border/title
27609 style calculations into single DeriveStyles method
27610 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27611 from redrawing the whole window on any resize or expose.
27612 - Fixed CreateWindow usage of SetWindowValuemask. Before not
27613 all styles were applied to our whole/client window appropriately
27614 - Removed EraseWindowBackground() and SetWindowBackground() methods
27615 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27616 no longer clear/redraw the background through X
27617 - Removed handling of erase_pending bit, we have no use for it (or
27620 - Removed generation and handling of WM_ERASEBKGND message
27621 - Removed EraseWindowBackground() and SetWindowBackground() methods
27622 - Removed handling of hwnd.ErasePending flag
27624 - Removed EraseWindowBackground() and SetWindowBackground() methods
27625 - We no longer call EraseWindowBackground on PaintEventStart, we
27626 ignore the fErase flag, erasing is handled in Control in the
27628 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27629 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27630 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
27631 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
27632 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
27633 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27634 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27636 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
27638 * PropertyGrids.cs: Get sub properties
27639 * PropertyGridView.cs: Fix drawing code
27641 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27643 * ListBox.cs: Fixes 76383
27645 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27647 * DataGridTextBoxColumn.cs: Sets location and size before attachment
27648 * ThemeWin32Classic.cs: Fixes border drawing and calculations
27649 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27652 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27654 * ComboBox.cs: Fixes border drawing
27656 2005-10-10 Miguel de Icaza <miguel@novell.com>
27658 * MimeIcon.cs: Ignore errors if the file can not be read.
27660 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
27662 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27663 - Fixed border calculations
27664 - Fixed horizontal scrolling in single column listboxes
27665 - Fixed drawing issues
27667 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
27669 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
27670 FormBorderStyle enum
27671 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
27672 code to determine FormBorderStyles from CreateParams
27674 - Fixed bug where we'd set the wrong window styles if we were
27675 not creating an MDI window
27676 - Added call to XplatUI.SetBorderStyle when form borders are set
27677 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27679 - Removed obsolete edge style
27680 - Switched from BorderStyle to FormBorderStyle
27682 2005-10-10 Jackson Harper <jackson@ximian.com>
27684 * Form.cs: Use the property to get the window handle instead of
27685 accessing it directly. Prevents a null reference exception.
27687 2005-10-10 Jackson Harper <jackson@ximian.com>
27689 * TreeView.cs: Don't adjust the rect given to DrawString now that
27690 our libgdiplus draws correctly.
27692 2005-10-08 Jackson Harper <jackson@ximian.com>
27694 * TreeView.cs: Don't try to find the clicked on node if there are
27695 no nodes in the tree.
27697 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
27703 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
27705 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27706 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27708 Use ResPool for brushes and dispose System.Drawing objects that
27709 are not used anymore.
27711 2005-10-07 Jackson Harper <jackson@ximian.com>
27713 * MdiChildContext.cs: Use the new borders instead of drawing them
27716 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
27718 * Calling UpdateBounds after changing the window's BorderStyle
27719 since the style can change the ClientSize
27721 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27723 * Control.cs: Made PaintControlBackground virtual
27724 * Panel.cs: Overriding PaintControlBackground instead of using paint
27725 event; paint event method was interfering with 'real' users of the
27728 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
27730 * ThemeWin32Classic.cs: remove border drawing since it is handled
27731 by the base control class now and was causing double border drawing.
27733 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27735 * Panel.cs: Redraw our background on paint. Not a pretty solution,
27736 but it does seem to match MS behaviour. This fixes bug #75324
27738 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27740 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27741 somewhat hackish looking
27743 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27746 - We now accept Enter even if AcceptEnter is false, if the containing
27747 form does not have an AcceptButton configured (fixes bug #76355)
27748 - Calculations are now fixed to no longer use Width/Height, but
27749 ClientSize.Width/Height, since we now support borders (this was
27750 a result of fixing borders and therefore bug #76166)
27751 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
27752 true (fixes bug #76354)
27754 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27757 - Defaulting BorderStyle and setting it in XplatUI when our window
27759 - Added enum check to InternalBorderStyle setter
27761 - Added drawing of window borders
27762 - Now properly calculates WM decorations offset for toplevel
27763 windows (fixes bug #74763)
27765 - Implemented BorderStyles for windows (we're letting win32 draw
27767 - Fixed the signature for SetWindowLong
27768 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27769 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
27771 * UpDownBase.cs: Remove drawing of borders, this is handled by
27772 the driver, outside the client area
27773 * ListView.cs: Removed bogus border calculations. The control should
27774 be oblivious to borders, since those are not part of the client
27776 * X11DesktopColors.cs: Commented out (currently) unneeded variables
27777 * ThemeWin32Classic.cs: Removed border calculations from ListView
27780 2005-10-06 Jackson Harper <jackson@ximian.com>
27782 * MdiChildContext.cs: Clear out the old virtual position remove
27783 all the unneeded calls to CreateGraphics.
27785 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27787 * TextControl.cs: Use proper color for highlighted text; fixes #76350
27789 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27792 - Added loading and setting of our new default icon
27793 - Only set icon if window is already created
27795 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
27798 - Do not explicitly set the foreground and background colors, to
27799 allow inheriting from parents (fixes #76302)
27800 - Use Control's InternalBorderStyle property to deal with borders
27802 2005-10-06 Jackson Harper <jackson@ximian.com>
27804 * MdiChildContext.cs: Use the new xplatui function to draw a
27807 2005-10-06 Jackson Harper <jackson@ximian.com>
27809 * Form.cs: Add the parent before creating the child context cause
27810 we need the parent when setting up the child.
27812 2005-10-06 Jackson Harper <jackson@ximian.com>
27814 * FolderBrowserDialog.cs: redo the tree population code so a
27815 second thread isn't used. Should be a lot faster and more stable
27818 2005-10-05 Jackson Harper <jackson@ximian.com>
27820 * TreeView.cs: There are no expand/collapse boxes if the node has
27823 2005-10-05 Jackson Harper <jackson@ximian.com>
27825 * X11DesktopColors.cs: Get menu colours for the gtk theme.
27827 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
27829 * FileDialog.cs: Fix InitialDirectory
27831 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
27834 - Fixes changing between styles
27835 - Fixes simple mode
27836 - Fixes last item crashing when navigating with keyboard
27838 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
27840 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27842 2005-10-05 Jackson Harper <jackson@ximian.com>
27844 * TreeView.cs: If updating the root node do a full refresh.
27845 * TreeNode.cs: The root node should be expanded by default. Also
27846 added a utility prop to tell if we are the root node.
27847 * TreeNodeCollection.cs: Only refresh if the node we are being
27848 added to is expanded. Also added a comment on a potential
27851 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
27853 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
27854 in dispose method. Fixes #76330
27856 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
27858 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27860 - Implements vertical and horizontal scrolling using XplatUI
27861 - Fixes keyboard navagation
27862 - Fixes EnsureVisible
27864 - Handles and draws focus properly
27867 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
27869 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27870 Create handle. NET_2_0: Destroy handle when value is null.
27872 2005-10-03 Jackson Harper <jackson@ximian.com>
27874 * ScrollBar.cs: My last scrollbar patch was broken. This is a
27875 revert and a new patch to prevent the thumb from refreshing so
27878 2005-10-02 Jackson Harper <jackson@ximian.com>
27880 * ScrollBar.cs: Don't update position if it hasn't actually
27881 changed. This occurs when you hold down the increment/decrement
27882 buttons and the thumb gets to the max/min.
27884 2005-10-01 Jackson Harper <jackson@ximian.com>
27887 * MdiChildContext.cs:
27888 * MdiClient.cs: Implement ActiveMdiChild in Form.
27890 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
27892 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27894 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
27896 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27899 2005-09-30 Jackson Harper <jackson@ximian.com>
27901 * ListBox.cs: Don't do a full refresh unless some data has
27904 2005-09-30 Jackson Harper <jackson@ximian.com>
27906 * TreeView.cs: Make sure that the checkboxes size is factored in
27907 even when not visible.
27909 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
27911 * FileDialog.cs: Fix Jordi's build break
27913 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
27916 - Use standard the Windows colours for the combobox as espected
27917 - Dispose objects that use resouces when no longer need them
27919 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
27921 * X11DesktopColors.cs: Initial incomplete implementation
27922 * XplatUIX11.cs: Added call to initialize X11DesktopColors
27924 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
27927 - Switched Theme color names to match the names defined in
27928 System.Drawing.KnownColors. Life's hard enough, no need to make
27930 - Added setters to all theme color properties so themes can set
27931 their color schemes. The setters also propagate the color changes
27932 to System.Drawing.KnownColors via reflection
27933 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
27934 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
27935 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
27936 use the new, more logical theme color names
27937 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
27939 * ThemeWin32Classic.cs:
27940 - Removed code to set the old classic Windows colors. Instead it
27941 now relies on the colors returned by System.Drawing.KnownColors
27942 which will be either modern static colors (Unix) or colors
27943 read from the user's configuration (Win32)
27944 - Updated to use the new, more logical theme color names
27945 - Switched DataGrid drawing code to use only Theme colors instead of
27946 a mix of System.Drawing.KnownColors and Theme colors
27947 - DrawFrameControl(): Removed code that fills the button area, the
27948 fill would overwrite any previous fill done by a control. This
27950 - Added DrawReversibleRectangle() stub
27951 * ScrollableControl.cs: Set visible state to false when scrollbars
27952 are removed (pdn fix)
27953 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
27954 DrawReversibleRectangle() method to allow drawing primitive
27956 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
27958 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27960 * ImageList.cs: Add(Icon): Create handle.
27962 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
27965 * ThemeWin32Classic.cs:
27966 - Fixes detail mode
27968 - Issues with drawing
27970 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27972 * ImageList.cs: Moved RecreateHandle back to ImageList as event
27973 source has to be the ImageList.
27975 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27977 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
27979 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27981 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27983 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27985 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27987 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
27988 * GridItem.cs: Fixed TODOs
27989 * GridItemCollection.cs: Added ICollection interface
27991 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
27993 * ImageList.cs: Resize icons when needed.
27995 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
27998 - Fixes GetBounds and returns on screen rects
28000 - Fixes vertical and horzintal scrolling of items
28001 * ThemeWin32Classic.cs:
28004 2005-09-29 Raja R Harinath <harinath@gmail.com>
28006 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28008 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
28010 * ImageList.cs: Added comments about handle creation. Moved Handle,
28011 HandleCreated and OnRecreateHandle implementations to ImageCollection.
28012 Handle is created in Add methods.
28014 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28016 * DataGridDrawingLogic.cs:
28017 - Takes rows into account on Colum calculations
28018 - Returns the column when clickig
28020 - Fixes default HitTestInfo values
28021 - Fixes HitTestInfo.ToString
28022 - Fixes ResetBackColor
28024 2005-09-28 Jackson Harper <jackson@ximian.com>
28026 * MdiChildContext.cs: Obey rules for fixed sized windows (no
28027 sizing or cursor changes). Also added some temp code to draw the
28028 titlebars text (Makes dev a little easier).
28030 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28032 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
28034 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
28036 * ListBox.cs: Fixes bug 76253
28038 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
28040 * ImageList.cs: Added comments about the current implementation. Added
28041 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
28042 Format32bppArgb to preserve transparency and can use Graphics.FromImage
28043 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
28044 with Bitmap.LockBits for better performance. Revised the whole file to
28045 match MS.NET behaviour and provide better performance. Non-public
28046 interface members are calling public members even when they throw
28047 NotSupportedException for better maintainability. Moved ColorDepth,
28048 ImageSize, ImageStream and TransparentColor implementations to
28049 ImageCollection for better performance as these properties are not used
28051 * ImageListStreamer.cs: Added a new internal constructor that takes an
28052 ImageList.ImageCollection and serializes Images based on
28053 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28054 match ImageList property name.
28056 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
28058 * ListBox.cs: Fixes IndexFromPoint for last item
28060 2005-09-27 Jackson Harper <jackson@ximian.com>
28062 * Form.cs: Set the position of new mdi children correctly.
28064 2005-09-27 Jackson Harper <jackson@ximian.com>
28066 * MdiClient.cs: New mdi children need to be added to the back of
28067 the controls collection so the zorder is set correctly. Also add a
28068 count of all the child windows that have been created.
28070 2005-09-27 Jackson Harper <jackson@ximian.com>
28072 * Form.cs (CreateParams): Setup MDI forms correctly.
28074 2005-09-27 Jackson Harper <jackson@ximian.com>
28076 * MdiChildContext.cs:
28077 * MonthCalendar.cs:
28083 * ScrollableControl.cs:
28084 * ComboBox.cs: Add implicit controls using the new implict control
28085 functionality in ControlCollection. Also try to block multiple
28086 control add in a suspend/resume layout to save some cycles.
28088 2005-09-27 Jackson Harper <jackson@ximian.com>
28090 * Control.cs: Add functionality to the controls collection to add
28091 'implicit controls' these are controls that are created by the
28092 containing control but should not be exposed to the user. Such as
28093 scrollbars in the treeview.
28094 * Form.cs: The list var of the ControlsCollection is no longer
28095 available because of the potential of implicit controls getting
28096 ignored by someone accessing the list directly.
28098 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
28100 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28101 loose it's parent. (Fixed bug introduced in r49103 when we added
28102 setting the child parent to null on Remove)
28104 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
28106 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28107 * Splitter.cs: Added missing attributes for BorderStyle property.
28108 * TextBoxBase.cs: Marked Calculate* methods internal.
28109 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28112 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
28114 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28116 2005-09-25 Jackson Harper <jackson@ximian.com>
28118 * TreeView.cs: Update the node bounds correctly regardless of
28119 whether the node is visible.
28121 2005-09-25 Jackson Harper <jackson@ximian.com>
28123 * ImageList.cs: Don't dispose the image after it is added to the
28124 image list. Only reformat images that need to be resized.
28126 2005-09-25 Jackson Harper <jackson@ximian.com>
28128 * ImageList.cs: Don't set the format when changing the image.
28130 2005-09-25 Jackson Harper <jackson@ximian.com>
28132 * TreeView.cs: We can't just assume the node has a font. Use the
28133 treeviews font if no node font is available.
28135 2005-09-25 Jackson Harper <jackson@ximian.com>
28137 * TreeView.cs: Allow the scrollbars to be reset with negative
28139 - Don't add scrollbars to negative sized windows.
28141 2005-09-23 Jackson Harper <jackson@ximian.com>
28143 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28144 old Mono.Posix. Also remove some stray code that shouldn't have
28147 2005-09-23 Jackson Harper <jackson@ximian.com>
28149 * TreeView.cs: Attempt at proper sizing of the horizontal
28150 scrollbar. Also don't resize the scrollbars unless they are
28153 2005-09-23 Jackson Harper <jackson@ximian.com>
28155 * TreeView.cs: We don't need to expand the invalid area when the
28156 selection changes, as this is all drawn in the node's bounding
28157 box. The area needs to be expanded (previous typo was contracting
28158 it) when the focus rect moves.
28160 2005-09-23 Jackson Harper <jackson@ximian.com>
28162 * TreeView.cs: Display the selection box under the correct
28163 circumstances. We were rendering white text with no selection box
28166 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
28168 * TextControl.cs(Split): Now updates selection start/end if it points
28169 into a line that's being split. Fixes a FIXME and bug #75258
28171 2005-09-23 Jackson Harper <jackson@ximian.com>
28174 * ListControl.cs: Don't use the path when retrieving binding
28175 managers from the binding context. My bat sense tells me that the
28176 path is only used on insertion.
28178 2005-09-22 Jackson Harper <jackson@ximian.com>
28180 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28182 2005-09-22 Jackson Harper <jackson@ximian.com>
28184 * Splitter.cs: There are special cursors used for splitting.
28185 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28187 2005-09-22 Jackson Harper <jackson@ximian.com>
28189 * Splitter.cs: Change the cursor appropriately when the splitter
28190 is moused over, so the user actually knows there is a splitter
28193 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28195 * Label.cs : Fix ToString method to give same output as MS.NET
28197 2005-09-22 Jackson Harper <jackson@ximian.com>
28199 * TreeView.cs: Create the scrollbars when the handle is created
28200 and add them right away, just make them invisble. Also account for
28201 the window being shrunk vertically to the point that the vert
28202 scrollbar needs to be added.
28203 - Remove some 0.5 adjustments to get around anti aliasing issues.
28205 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
28207 * MainMenu.cs: Fixes default value
28208 * MenuItem.cs: Fixes default value
28210 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
28212 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28214 2005-09-21 Jackson Harper <jackson@ximian.com>
28216 * Control.cs: Don't try to set the border style on the window if
28217 it hasn't been created. When the window is created the border
28218 style will be used.
28220 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28222 * Control.cs (Update): Don't call XplatUI if we don't have a
28225 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28227 * ContainerControl.cs: Instead of throwing an exception, print
28228 a one-time warning about Validate not being implemented
28229 * XplatUIWin32.cs: Removed debug output
28231 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28233 * Control.cs: Only set XplatUI background if we expect the windowing
28234 system to handle the background. This stops controls that draw their
28235 own background from flickering
28237 * XplatUIX11.cs: Support custom visuals and colormaps for window
28238 creation. This allows, amongst other things, using MWF X11 windows
28241 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
28243 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28244 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28245 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28246 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28247 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28248 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28249 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28250 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28251 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28252 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28253 GridColumnStylesCollection.cs,
28254 IDataGridColumnStyleEditingNotificationService.cs,
28255 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28256 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28257 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
28258 TreeNodeCollection.cs, AmbientProperties.cs,
28259 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28260 DataObject.cs, ErrorProvider.cs, Splitter.cs,
28261 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28262 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28263 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28264 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28265 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28266 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28267 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28268 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28269 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28270 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28271 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28272 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28273 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28274 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28275 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28276 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28277 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28278 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28279 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28280 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28281 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28282 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28283 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28284 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28285 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28286 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28287 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28288 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28289 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28290 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28291 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28292 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28293 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28294 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28295 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28297 2005-09-21 Jackson Harper <jackson@ximian.com>
28299 * TreeNode.cs: Call Before/After Expand not Collapse when
28302 2005-09-20 Jackson Harper <jackson@ximian.com>
28304 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28306 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28310 - Fixes proper storing of subitems
28311 - Fixes not updated items
28313 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28315 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28316 things if our window handle isn't created yet. Also disabled
28317 debug for TextBoxBase
28319 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
28321 * MenuAPI.cs: Remove filtering of events to allow menu usage
28323 2005-09-20 Miguel de Icaza <miguel@novell.com>
28325 * Cursor.cs: Allow null to be passed to Cursor.Current.
28327 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
28329 * ThemeWin32Classic.cs:
28330 - Change some private methods/fields to protected virtual so that
28331 they can be accessed and overriden in derived classes
28332 - First refactoring of some methods. Derived themes now don't
28333 need to duplicate the complete code from ThemeWin32Classic
28335 - Added nice StatusBar
28336 - Derive from ThemeWin32Classic and not Theme
28337 - Removed duplicate ThemeWin32Classic code
28339 2005-09-20 Miguel de Icaza <miguel@novell.com>
28341 * Control.cs (ControlCollection.Add): If the value null is passed
28342 the control is ignored.
28344 Optimize this loop.
28346 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28348 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28349 PostQuitMessage state.
28350 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28352 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
28354 * Application.cs: Our constructor will never get called, move
28355 initialization to fields; fixes bug #75933
28357 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28360 - Allow files to be selected properly using file name
28362 - Add ability to change diretory (absolute / relative)
28363 using file name combo box.
28365 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
28368 - Fixes Multicolumn listboxes item wrong calculations
28369 - Allows to click when only one item is in the listbox
28370 - Fixes crash when no items using keyboard navigation
28372 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
28374 * ComboBox.cs: Reverted almost everything from the latest patch which
28377 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
28380 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28382 - When DropDownStyle is Simple, it does not show scrollbar
28383 to the last item of the list.
28384 - When DropDownStyle is Simple, it crashed when the list was
28385 scrolled down with the down cursor key.
28386 - Fixed a bug that when DropDownStyle is DropDownList, the
28387 selected item was not shown.
28388 - The position of the selected item was not preserved when
28389 the next dropdown happened.
28390 * ThemeWin32Classic.cs:
28391 - Items were wrapped at the right end.
28392 * CheckedListBox.cs:
28395 - Items should be fully shown.
28396 - When resizing and vertical scrollbar disappeared, the item
28397 of index 0 should be on the top of the list.
28398 - GetItemRectangle should consider the size of ver. scrollbar
28400 - SizingGrip area should not be allocated when it is not
28402 - Now it reflects MinWidth of the containing panel and
28403 fixed a crash that happens when its width becomes so small.
28405 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28407 * CheckedListBox.cs: Fixes bug 76028
28408 * ListBox.cs: Fixes bug 76028
28410 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
28412 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28413 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28415 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
28417 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28419 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28421 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
28423 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
28425 * IRootGridEntry.cs: Added
28426 * PropertyGridCommands.cs: Added
28427 * PropertiesTab.cs: Added missing methods and property
28428 * PropertyGridView.cs: Made class internal
28429 * PropertyGridTextBox.cs: Made class internal
28431 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28433 * MimeIcon.cs: Try to check some other environment variables
28434 if "DESKTOP_SESSION" returns "default"
28436 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28438 * ThemeNice.cs: Corrected background colors (e.g. menus)
28439 * ColorDialog.cs: Use correct background colors for controls
28441 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
28443 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28445 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
28447 * RichTextBox.cs: Added initial implementation
28448 * lang.cs: Removed. Was accidentally checked in long time ago
28449 * TODO: Removed. Contents were obsolete
28451 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28453 * PropertiesTab.cs : Added
28455 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
28457 * PropertyGrid.cs : Update
28458 * PropertyGridView.cs : Update
28459 * System.Windows.Forms.resx : Added images and strings
28461 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28463 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28465 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
28467 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28468 a busy loop right after the Ungrab the X11 display is otherwise
28471 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
28473 * ThemeWin32Classic.cs: Optimise the use of clipping
28475 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
28477 * DataGrid.cs: fixes recursion bug
28479 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
28482 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28485 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
28487 * ThemeNice.cs: Draw nice ProgressBars
28489 2005-09-01 Miguel de Icaza <miguel@novell.com>
28491 * VScrollBar.cs: Another buglet found by Aaron's tool.
28493 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28496 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
28499 - Added nicer menu drawing
28503 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28505 * CreateParams.cs (ToString): Made output match MS
28506 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
28507 handle is already created (to avoid forcing window creation)
28508 * XplatUIX11.cs: Set window text to caption after creating window,
28509 in case Text was set before window was created
28510 * Form.cs: Use this.Text instead of a static string as caption
28512 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28514 * NotifyIcon.cs: Don't set the window to visible; this screws
28515 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28516 OnPaint without a bitmap)
28517 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
28518 happen very often anyway; we could add the check to the WM_PAINT
28519 event generation code
28521 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28523 * NotifyIcon.cs: Fill the icon area with a background color, to
28524 avoid 'residue' when transparent icons are drawn
28526 - Handle whole_window == client_window when destroying windows
28527 - SystrayAdd(): Set client_window to whole_window value to
28528 get mouse and other events passed to NotifyIcon
28530 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
28532 * Form.cs: Set proper default for Opacity property
28534 - ShowSystray(): Don't bother creating telling the OS
28535 about the systray item if no icon is provided
28536 - Now handles WM_NCPAINT message to deal with whole/client window
28538 - Create window as visible to not get caught by Expose optimization
28539 * Hwnd.cs: Removed debug message
28540 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28541 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
28542 PaintEventStart/End to use new client argument
28544 - Commented out debug messages
28545 - Switched PaintEventStart/End to use new client argument
28546 * XplatUI.cs: Added client window bool to PaintEventStart()/
28547 PaintEventEnd() calls, to support drawing in non-client areas
28548 * XplatUIDriver.cs:
28549 - Added client window bool to PaintEventStart()/PaintEventEnd()
28550 calls, to support drawing in non-client areas
28551 - Added conditional compile to allow using MWF BeginInvoke
28554 - Added some conditional debug output
28555 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28556 whole/client window split
28557 - Implemented handling of client argument to PaintEventStart()/End()
28559 - Throw exception if BeginInvoke() is called and the window handle
28560 or one of the window's parent handles is not created
28561 - Added conditional compile to allow using MWF BeginInvoke on
28563 - get_Parent(): Only sets parent if handle is created. This avoids
28564 forcing window handle creation when parent is set.
28565 - Now fires Layout and Parent changed events in proper order
28566 - Switched to use Handle instead of window.Handle for Z-Order setting,
28567 the get_Parent() patch above causes us to possibly get null for 'window'
28568 - Implemented handling of client argument to PaintEventStart()/End()
28569 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28571 - Now sends a Refresh() to all child windows when Refresh() is called
28573 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
28575 * Form.cs: Added (non-functional) Opacity property
28576 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28578 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
28579 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28580 use export MONO_THEME=nice to activate it.
28581 Currently supported controls:
28585 - TabControl (TabAlignment.Top only, other will follow)
28586 * ThemeEngine.cs: Add theme nice
28587 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28590 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
28592 * Splitter.cs: Resize docked control and its neighbor.
28594 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28595 -- Making Windows with Menus layout correctly --
28596 * Form.cs : The first leg of the fix
28597 Menu setter - adjust Client Size as needed to make space for the menu
28598 SetClientSizeCore - doesn't call base version to be able to pass the
28599 menu handle to XplatUI.CalculateWindowRect
28600 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28601 * XplatUIX11.cs: The critical second leg of the fix
28602 GetWindowPos needs to use a recalculated client_rect
28603 so that resizing the window doesn't break layout of child controls.
28604 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28605 Lots of \t\n killed
28607 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
28609 * Label.cs: Now properly recalculates width and height on Font and Text
28610 changes if AutoSize is set
28612 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28613 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28615 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
28617 * ImageList.cs: Makes ToString method compatible with MS
28619 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
28621 * MenuAPI.cs: fixes bug 75716
28623 2005-08-11 Umadevi S <sumadevi@novell.com>
28624 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28626 2005-08-11 Umadevi S <sumadevi@novell.com>
28627 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28629 2005-08-10 Umadevi S <sumadevi@novell.com>
28630 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28632 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
28634 * Menu.cs: fixes bug 75700
28635 * MenuAPI.cs: fixes navigation issues
28637 2005-08-09 Umadevi S <sumadevi@novell.com>
28638 * CheckedListBox.cs - simple fix for GetItemChecked.
28640 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
28642 * ComboBox.cs: Serveral fixes
28643 * ListBox.cs: Serveral fixes
28645 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28647 * ComboBox.cs: Fixes FindString methods and GetItemHeight
28648 * ListBox.cs: Fixes FindString methods
28650 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
28652 * DataGrid.cs: fixes bugs exposed by new tests
28654 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
28656 * Mime.cs: Compile Mono assembly references only if compiling
28657 with Mono (Allows to build with VS.Net again)
28659 2005-07-28 Marek Safar <marek.safar@seznam.cz>
28661 * Control.cs (PaintControlBackground): Draw background image
28663 (CheckForIllegalCrossThreadCalls): Stubbed.
28665 * Form.cs (OnCreateControl): Center when should be centered.
28667 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28669 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
28671 * Binding.cs: Binding to properties should be case unsensitive
28673 2005-07-18 vlindos@nucleusys.com
28675 * DataGrid.cs: fixes setmember order
28677 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
28679 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28680 * FileDialog.cs: FileDialog is now resizable and uses the new
28683 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
28685 * DataGridTextBoxColumn.cs: default value
28686 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28687 * GridTableStylesCollection.cs: fixes checking MappingName
28688 * DataGridDrawingLogic.cs: fixes drawing logic issues
28689 * DataSourceHelper.cs: rewritten to make compatible with more data sources
28690 * DataGrid.cs: fixes
28692 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
28694 * MimeGenerated.cs: Use case sensitive comparer for
28695 NameValueCollections
28697 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
28699 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
28700 * ThemeWin32Classic.cs: bug fixes, code refactoring
28701 * DataGridDrawingLogic.cs: bug fixes, code refactoring
28702 * DataGrid.cs: bug fixes, code refactoring
28703 * DataGridTextBox.cs: bug fixes, code refactoring
28704 * DataGridColumnStyle.cs: bug fixes, code refactoring
28705 * Theme.cs: bug fixes, code refactoring
28707 2005-07-01 Peter Bartok <pbartok@novell.com>
28709 * TextControl.cs: Quick fix for the reported crash on ColorDialog
28710 and other text box usage
28712 2005-07-01 Jackson Harper <jackson@ximian.com>
28714 * TabControl.cs: Make sure the bottom of the tab covers the pages
28717 2005-06-30 Peter Bartok <pbartok@novell.com>
28719 * Form.cs (ShowDialog): Assign owner of the dialog
28720 * TextBoxBase.cs: Always refresh caret size when deleting, caret
28721 might have been moved to a tag with different height
28723 2005-06-30 Jackson Harper <jackson@ximian.com>
28725 * Form.cs: Don't create an infinite loop when setting focus
28726 * MenuItem.cs: Don't dirty the parents if we don't have any
28728 2005-06-29 Ben Maurer <bmaurer@ximian.com>
28730 * LibSupport.cs: Rename
28732 2005-06-29 Peter Bartok <pbartok@novell.com>
28734 * TextBoxBase.cs: Re-align caret after deleting a character
28736 - DeleteChars(): Ensure that tag covers the provided position
28737 - StreamLine(): Drop reference for dropped tag
28739 2005-06-29 Peter Bartok <pbartok@novell.com>
28742 - Selections now work properly, anchoring at the initial location
28743 and properly extending in either direction (SetSelectionToCaret(),
28744 SetSelectionStart() and SetSelectionEnd())
28745 - No longer redraws the whole control on selection change, now
28746 calculates delta between previous and new selection and only
28747 invalidates/redraws that area
28748 - Fixed FindPos() math off-by-one errors
28749 - Changed DeleteChars() to verify the provided tag covers the
28750 provided position, selections may have a tag that doesn't cover
28751 the position if the selection is at a tag border
28752 - Fixed off-by-one errors in DeleteChars()
28753 - Added missing streamlining check in DeleteChars() to remove
28755 - Implemented Invalidate() method, now properly calculates exposures
28756 between two given lines/positions
28757 - Implemented SetSelection()
28758 - Obsoleted and removed FixupSelection()
28759 - Improved RecalculateDocument() logic, removing code duplication
28761 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28763 * LibSupport.cs: changes to match different input/output arguments.
28765 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28767 * LibSupport.cs: added libsupport.so init routine.
28769 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
28771 * ControlBindingsCollection.cs
28772 - Throws an exception on null datasource when adding
28773 - Checks for duplicated bindings when adding
28775 2005-06-28 Jackson Harper <jackson@ximian.com>
28777 * TreeView.cs (OnKeyDown): Support left and right properly
28778 (navigates as well as expanding and collapsing.
28779 - Add support for Multiply, this expands all the selected nodes
28781 - Fix some tabbing.
28783 2005-06-28 Jackson Harper <jackson@ximian.com>
28785 * TreeView.cs: Implement keyboard navigation, currently supports,
28786 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28787 support for toggling checkboxes with the space bar.
28789 2005-06-28 Jackson Harper <jackson@ximian.com>
28791 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28794 2005-06-28 Jackson Harper <jackson@ximian.com>
28796 * TreeView.cs: Add missing event.
28798 2005-06-27 Peter Bartok <pbartok@novell.com>
28801 - Made line ending size configurable (now allows for counting
28802 lineendings as \n or \r\n)
28803 - Added margin to viewport to keep caret visible on right side
28804 - Fixed translation routines for line/pos to documentpos to consider
28805 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28806 - Fixed some line-endings to be unix style
28807 - Fixed Document.FormatText to perform it's calculations 1-based
28808 - Added descriptions for a few methods that might otherwise get
28810 - Added NOTE section with some basic conventions to remember at
28811 the top of the file
28812 - Major fixup for RichTextBox selection drawing:
28813 * Fixed crashes when multiple tags on a single line were selected
28814 * fixed selection box drawing not overlaying text
28815 * fixed bogus offset calculation for tags not starting at index 1
28816 * Switched behaviour from using multiple Substrings of a
28817 StringBuilder.ToString() to using multiple
28818 StringBuilder.ToString(start, length) statements, hoping this is
28819 faster (kept original version commented out in the code, in case
28820 original version was faster)
28821 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
28823 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28826 2005-06-27 Jackson Harper <jackson@ximian.com>
28828 * TabControl.cs: Move to the left and right with the arrow
28829 keys. These keys don't cycle beyond first and last like
28830 tab. Refresh all the tabs when scrolling them to the left or
28833 2005-06-27 Jackson Harper <jackson@ximian.com>
28836 - ToString: Added method
28837 - CreateParams: Remove TODO and comment
28838 - OnKeyDown: Cycle through bounds properly.
28839 - SelectedIndex: Scroll to the right or left if we need to
28840 display the newly selected tab.
28842 2005-06-23 Jackson Harper <jackson@ximian.com>
28844 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28847 2005-06-23 Jackson Harper <jackson@ximian.com>
28849 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28850 CTRL-SHIFT-TAB, and HOME, END are there any others?
28852 2005-06-23 Jackson Harper <jackson@ximian.com>
28854 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28856 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
28858 * DataGridTextBoxColumn.cs: fixes and enhancements
28859 * ThemeWin32Classic.cs: fixes and enhancements
28860 * DataGridBoolColumn.cs: fixes and enhancements
28861 * DataGridDrawingLogic.cs: fixes and enhancements
28862 * CurrencyManager.cs: fixes and enhancements
28863 * DataGrid.cs: fixes and enhancements
28864 * DataGridColumnStyle.cs: fixes and enhancements
28866 2005-06-22 Jackson Harper <jackson@ximian.com>
28868 * TabControl.cs: Add some missing methods that just call into the
28869 base. Make the TabPageCollection's IList interface behave in the
28870 same manner as the MS implementation.
28872 2005-06-22 Peter Bartok <pbartok@novell.com>
28874 * TextControl.cs: Added sanity check
28876 - Fixed wrapping behaviour, don't set wrap on single line controls
28877 (this fixes the breakage of colordialog introduced in an earlier
28879 - Added rudimentary support for autoscrolling right-aligned controls
28880 (still needs fixing, also, center alignment scroll is missing)
28882 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
28884 * ScrollBar.cs: Fixes thumbpos on Maximum values
28886 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
28888 * PropertyGridView.cs: Pass context information to UITypeEditors
28890 2005-06-21 Peter Bartok <pbartok@novell.com>
28893 - Now calling PositionCaret with absolute space coordinates
28894 - Enabled vertical scrolling
28895 - Better tracking of scrollbar changes, tied into WidthChange
28897 - Improved cursor tracking
28898 - Removed debug output
28900 - PositionCaret coordinates are now works in absolute space, not
28902 - Improved tracking of document size
28903 - Added events for width and height changes
28905 2005-06-21 Peter Bartok <pbartok@novell.com>
28907 * Form.cs: Set focus to active control when form is activated
28909 - Added word-wrap functionality to RecalculateLine()
28910 - Added some short function descriptions for VS.Net to aid in
28911 writing dependent controls
28912 - Added Caret property, returning the current coords of the caret
28913 - Added ViewPortWidth and ViewPortHeight properties
28914 - Added Wrap property
28915 - Added CaretMoved event
28916 - Removed some old debug code
28917 - Split() can now create soft splits
28918 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
28919 - Added method to format existing text
28920 - Fixed size/alignment calculations to use viewport
28921 - RecalculateDocument now can handle changing line-numbers while
28925 - Added some wrap logic, we don't wrap if alignment is not left
28926 - Added casts for scrollbar var, base class switched types to
28927 also support RichTextBoxA
28928 - Implemented handling of scrollbar visibility flags
28931 - Switched scrollbars type to RichTextBoxScrollBars to support
28933 - Added tracking of canvas width/height
28934 - Switched scrollbars to be not selectable (to keep focus on text)
28935 - Added central CalculateDocument() method to handle all redraw
28937 - Added ReadOnly support
28938 - Added WordWrap support
28939 - Fixed handling of Enter key (we now treat it as a DialogKey)
28940 - Fixed caret positioning when h or v scroll is not zero
28941 - Fixed placing/generation of vertical scrollbar
28942 - Added CalculateScrollBars() method to allow updating scrollbar
28943 limits and visibility
28944 - Fixed handling of horizontal scroll
28945 - Added handling of vertical scroll
28946 - Implemented auto-'jump' when caret moves to close to a left or
28947 right border and there is text to be scrolled into view (currently
28948 there's the potential for a stack overflow, until a bug in
28949 scrollbar is fixed)
28951 2005-06-21 Geoff Norton <gnorton@customerdna.com>
28953 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
28955 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
28959 - return application/x-zerosize for files with size zero
28960 (if no extension pattern matches).
28961 - check matches collection for strings too.
28962 - return only the first mime type if the name value
28963 collection has more than one mime type.
28965 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
28967 * PropertyGrid.cs: Cleaned up some TODOs
28968 * PropertyGridView.cs: Added support for UITypeEditors
28970 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
28972 * DataGrid.cs: clears cached value
28974 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
28976 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
28977 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
28978 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
28979 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28981 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
28983 * ThemeWin32Classic.cs: fixes colour
28985 2005-06-15 Peter Bartok <pbartok@novell.com>
28987 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28988 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28989 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28990 * Control.cs: Added some MWFCategory and MWFDescription attributes
28991 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28993 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
28995 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28998 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
29000 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29001 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29002 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29003 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29004 * DataGrid.cs: default datagrid settings for Default Styles, fixes
29005 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29007 2005-06-13 Jackson Harper <jackson@ximian.com>
29009 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29010 isn't printed when the user enables dropping. (X11 does accept
29013 2005-06-13 Jackson Harper <jackson@ximian.com>
29015 * TreeView.cs: Remove some TODOS.
29017 2005-06-13 Jackson Harper <jackson@ximian.com>
29019 * Form.cs: Hook into the mdi framework.
29020 * MdiClient.cs: Use the base control collections add method so
29021 parents get setup correctly. Set the default back colour and dock
29023 * MdiChildContext.cs: New class, this bad actor handles an
29024 instance of an MDI window. Right now there is only basic
29025 support. You can drag, close, and resize windows. Minimize and
29026 Maximize are partially implemented.
29028 2005-06-13 Jackson Harper <jackson@ximian.com>
29030 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
29031 freaky when both vals are negative. NOTE: There are probably other
29032 places in XplatUIX11 that this needs to be done.
29034 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
29036 * DataGrid.cs: implement missing methods, move KeyboardNavigation
29037 * DataGridColumnStyle.cs: fixes signature
29039 2005-06-12 Jackson Harper <jackson@ximian.com>
29041 * XplatUIX11.cs: Use sizing cursors similar to the ones on
29044 2005-06-11 Jackson Harper <jackson@ximian.com>
29046 * StatusBarPanel.cs: Signature cleanups. Implement
29049 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
29051 * DataGridTextBoxColumn.cs: Honors aligment
29052 * GridColumnStylesCollection.cs: Contains is case unsensitive
29053 * GridTableStylesCollection.cs: several fixes
29054 * DataGridTableStyle.cs: default column creation
29055 * DataGridDrawingLogic.cs: fixes
29056 * CurrencyManager.cs: ListName property
29057 * DataGrid.cs: multiple styles support
29058 * DataGridColumnStyle.cs: fixes
29061 2005-06-10 Peter Bartok <pbartok@novell.com>
29063 * Control.cs(Select): Moved SetFocus call to avoid potential
29064 loops if controls change the active control when getting focus
29065 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29066 the up/down buttons
29068 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
29070 * ImageListConverter.cs: Implemented
29072 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29074 * MonthCalendar.cs: Wired in NumericUpDown control for year
29076 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
29078 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29079 DoubleClick events, since they are not meant to be fired.
29081 2005-06-09 Peter Bartok <pbartok@novell.com>
29083 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29084 Jonathan's standalone controls into MWF, implemented missing
29085 events, attributes and methods; added xxxAccessible classes
29086 * AccessibleObject.cs: Made fields internal so other classes
29087 can change them if needed
29089 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
29091 * UpDownBase.cs: Complete implementation
29092 * NumericUpDown.cs: Complete implementation
29093 * DomainUpDown.cs: Complete implementation
29095 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
29097 * DataGridTextBoxColumn.cs: drawing fixes
29098 * DataGridCell.cs: fixes ToString method to match MSNet
29099 * DataGridTableStyle.cs: fixes
29100 * DataGridBoolColumn.cs: fixes, drawing
29101 * DataGridDrawingLogic.cs: fixes, new methods
29102 * DataGridTextBox.cs: Keyboard and fixes
29104 - Keyboard navigation
29106 - Row selection (single, multiple, deletion, etc)
29109 2005-06-07 Jackson Harper <jackson@ximian.com>
29111 * ThemeWin32Classic.cs: Clear the background area when drawing
29114 2005-06-06 Peter Bartok <pbartok@novell.com>
29116 * ImageListStreamer.cs: Fixed signature for GetData
29117 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29119 - Added missing ChildAccessibleObject class
29120 - Added missing OnXXXFocus overrides, switched to using those
29121 instead of the event handler
29123 - Added Parent property for ControlAccessibleObject
29126 - Added ResetBindings()
29127 * ListBindingConverter.cs: Implemented some methods
29128 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29129 * ImageList.cs: Implemented basic handle scheme, removed TODOs
29130 * ContainerControl.cs: Fixed signature, now subscribing to the
29131 ControlRemoved event instead of overriding the handler, LAMESPEC
29132 * CurrencyManager.cs: Added missing attribute
29133 * MonthCalendar.cs: Added missing properties
29135 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29137 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29139 2005-06-06 Gaurav Vaish and Ankit Jain
29141 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29142 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29144 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
29146 * Control.cs: fixes CreateParams Width / Height.
29148 2005-06-05 Peter Bartok <pbartok@novell.com>
29150 * Win32DnD.cs: Removed compilation warnings
29152 2005-06-05 Peter Bartok <pbartok@novell.com>
29154 * Control.cs (CreateParams): Since we don't know if one of the
29155 properties we use is overridden, lets make sure if we fail accessing
29156 we continue with a backup plan
29158 2005-06-05 Peter Bartok <pbartok@novell.com>
29161 - Removed debug output
29162 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29164 - Plugged resource leak
29165 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29168 2005-06-05 Peter Bartok <pbartok@novell.com>
29170 * XplatUIWin32.cs: Removed DnD code
29171 * Win32DnD.cs: Implemented drop source and drop target functionality
29173 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29175 * UpDownBase.cs: remove duplicate addition of event, enable some code
29176 that was commented out.
29177 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29178 Validate input when a key is pressed. It works fine now for every
29179 combination of Hexadecimal. Only missing some drawing love when sharing
29180 space with other controls.
29182 2005-06-04 Peter Bartok <pbartok@novell.com>
29185 - We need to pass a window for DragDrop, so enable callback events
29186 - Added DnD callback events when being a DragSource
29187 * XplatUI.cs (StartDrag): Added window handle argument
29188 * XplatUIDriver.cs (StartDrag): Added window handle argument
29189 * QueryContinueDragEventArgs: Made fields internally accessible so
29190 drivers can set them
29191 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29194 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
29196 * DataGridTextBoxColumn.cs: column text editing
29197 * DataGridTableStyle.cs: Respect columns styles created by the user
29198 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29199 * DataGridBoolColumn.cs: bool column editing
29200 * DataGrid.cs: fixes to scrolling, properties, etc
29201 * DataGridTextBox.cs: handle keyboard
29202 * DataGridColumnStyle.cs: fixes
29204 2005-06-02 Jackson Harper <jackson@ximian.com>
29206 * ImageListStreamer.cs: Somewhat broken implementation of
29207 GetObjectData. The RLE needs some work to match MS properly.
29209 2005-06-02 Jackson Harper <jackson@ximian.com>
29211 * X11Dnd.cs: Attempting to keep at least one file in MWF
29214 2005-06-02 Peter Bartok <pbartok@novell.com>
29216 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29219 2005-06-02 Peter Bartok <pbartok@novell.com>
29221 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29222 * XplatUI.cs: Added DoDragDrop() method
29223 * XplatUIDriver.cs: Added DoDragDrop() method
29225 2005-06-02 Jackson Harper <jackson@ximian.com>
29227 * Splitter.cs: Implement BorderStyle.
29229 2005-06-02 Jackson Harper <jackson@ximian.com>
29231 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29232 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29235 2005-06-02 Peter Bartok <pbartok@novell.com>
29238 - Added Data setter
29239 - Fixed broken insertion code for SetData, now also
29240 overwrites any existing entry of the same format name
29241 * Hwnd.cs: Added list of pointers that automatically gets
29242 freed when the window is disposed
29243 * XplatUI.cs: Call driver initialization method when loading
29246 - OnDragLeave takes EventArgs, not DragEventArgs
29247 - Added setting of WS_EX_ACCEPTFILES style when dropping is
29249 - Forces style update when drop state changes
29250 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29251 not perfect since we cannot (yet) call the IDataObject.GetData()
29252 method, we keep getting 0x80004005 error, dunno why)
29254 2005-06-02 Peter Bartok <pbartok@novell.com>
29256 * DragEventArgs.cs: Make fields internal so we can cache the
29257 object and re-set the fields from XplatUI
29259 2005-06-02 Jackson Harper <jackson@ximian.com>
29261 * Control.cs: Add some internal methods so the DnD subsystem can
29262 raise DnD events. Also call into the driver when AllowDrop is set.
29264 * XplatUIDriver.cs: New method for setting whether or not a window
29265 is allowed to accept drag and drop messages.
29267 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
29269 * ScrollBar.cs: Make sure that values sent in Scroll events
29270 are always between Maximum and Minimum.
29272 2005-06-01 Marek Safar <marek.safar@seznam.cz>
29274 * Menu.cs: Call MenuChanged when menuitem visibility has been
29276 * MenuItem.cs: Rebuild menu when item is (not) visible.
29277 * MainMenu.cs: MainMenu has special MenuChanged.
29278 * Theme.cs: Caption and FrameBorderSize are not fixed.
29279 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29280 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29282 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29283 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29285 2005-05-30 Jackson Harper <jackson@ximian.com>
29287 * DataFormat.cs: We can't statically initialize this stuff because
29288 it calls into the xplatui and could create a loop. So we lazy init
29291 2005-05-28 Jackson Harper <jackson@ximian.com>
29293 * Control.cs: Proper implementation of Product(Name/Version).
29295 2005-05-27 Jackson Harper <jackson@ximian.com>
29297 * DataObject.cs: Dont crash if no data is found.
29299 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
29300 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29301 as per status page, guessing it should be set to true
29303 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
29305 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29306 * DataGridTableStyle.cs: set proper formatting text, def header text
29307 * ThemeWin32Classic.cs: new themable paramaters
29308 * DataGridBoolColumn.cs: paint check box, get data, fixes
29309 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29310 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29311 * DataGridColumnStyle.cs: fixes
29312 * Theme.cs: new themable paramaters
29314 2005-05-26 Peter Bartok <pbartok@novell.com>
29316 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29318 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29319 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29321 2005-05-24 Peter Bartok <pbartok@novell.com>
29323 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29324 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29325 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29326 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29327 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29328 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29329 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29330 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29331 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29332 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29333 missing attributes, etc
29334 * DataGridPreferredColumnWidthTypeConverter.cs: Added
29336 2005-05-24 Peter Bartok <pbartok@novell.com>
29338 * Help.cs: Added, implemented trivial functions, throws up MessageBox
29339 when user tries to get help
29340 * DataObject.cs, DataFormats.cs, LinkArea.cs,
29341 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29342 to suppress warnings
29343 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29344 avoid unreachable code warning
29346 2005-05-20 Peter Bartok <pbartok@novell.com>
29348 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29350 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29352 * DataGridTextBoxColumn.cs: Basic painting methods
29353 * DataGridTableStyle.cs: Set table style in the column
29354 * ThemeWin32Classic.cs: Use Theme for colors
29355 * DataGridDrawingLogic.cs: Implement more drawing
29356 * DataGrid.cs: drawing, theming, enhacements, fixes
29357 * DataGridColumnStyle.cs: fixes, drawing
29358 * Theme.cs: theming for Datagrid
29360 2005-05-20 Peter Bartok <pbartok@novell.com>
29362 * Cursor.cs: Implemented GetObjectData() method
29364 2005-05-20 Peter Bartok <pbartok@novell.com>
29366 * Cursors.cs: Added setting of cursor name
29368 - Implemented constructors
29369 - Implemented Draw and DrawStretched
29370 - Implemented Current property
29371 - Implemented == and != operators
29372 - Implemented Dispose()
29373 - Implemented ToString
29374 - Added missing attributes
29376 - Added missing reset for OverrideCursor when DoEvents is called
29377 - Fixed creation of cursor, logic was wrong
29379 - Added missing reset for OverrideCursor when DoEvents is called
29380 - Fixed creation of cursor, bit arrays were swapped
29381 * Clipboard.cs: Removed obsolete MonoTODO attribute
29383 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29385 * ComboBox.cs: fixes OnSelectedItemChanged
29386 * ControlBindingsCollection.cs: fixes item range check
29388 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
29391 - Calc preferred height properly
29392 - Implement missing properties
29394 * NumericUpDown.cs: Implement missing events
29396 2005-05-19 Jackson Harper <jackson@ximian.com>
29398 * TabControl.cs: New method that resizes the tab pages before
29399 redrawing them. This as needed as the control is double buffered
29400 and sizing will not be recalculated unless ResizeTabPages is
29402 * TabPage.cs: Set base.Text instead of Text in the constructor so
29403 that UpdateOwner does not get called. Use the new Redraw method of
29404 TabControl instead of Refresh so the sizing is recalculated.
29405 * ThemeWin32Classic.cs: Draw the text for button tabs.
29407 2005-05-19 Jackson Harper <jackson@ximian.com>
29409 * Control.cs: Paint control background images. Fix typo where
29410 PaintControlBackground was not getting called correctly.
29412 2005-05-19 Peter Bartok <pbartok@novell.com>
29414 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29415 I can investigate, apparently I broke FileDialog
29417 2005-05-19 Marek Safar <marek.safar@seznam.cz>
29419 * AxHost.cs: Some simple properties.
29420 * Control.cs: window must be accessible after ctor.
29421 * Form.cs: Added TransparencyKey property.
29422 * TextBoxBase.cs: Implemented Clear. Text property can be null.
29423 * XplatUIWin32.cs: SetBorderStyle implemented.
29425 2005-05-18 Peter Bartok <pbartok@novell.com>
29427 * DataObject.cs: Entries are not global but particular to the
29428 DataObject, now it behaves that way
29429 * XplatUIWin32.cs: Implemented Clipboard methods
29430 * Clipboard.cs: Implemented
29431 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29432 * XplatUIOSX.cs: Updated to final clipboard prototypes
29433 * XplatUIX11.cs: Implemented Clipboard methods
29434 * XplatUIDriver.cs: Updated to final clipboard prototypes
29435 * XplatUIStructs.cs:
29436 - Added BITMAPINFOHEADER struct
29437 - Added ClipboardFormats enum
29439 - Added ClipboardStruct
29440 - Added Atom enum items for clipboard types
29441 - Fixed atom types for Selection event structures
29443 - Added internal properties and methods for drivers to enumerate
29445 - Switched initialization method to allow drivers to assign their
29446 own IDs even for the MS predefined clipboard IDs
29447 * XplatUI.cs: Updated to final clipboard interface
29449 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29450 * PropertyGridView.cs: Fixed compiler warnings.
29452 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29453 * PropertyGrid.cs: Added some event calls
29454 * PropertyGridView.cs: Change drawing code to use double buffering
29455 * PropertyGridTextBox.cs: Changed Text property name
29456 * GridItem.cs: Added Bounds property.
29457 * GridEntry.cs: Added Bounds property.
29459 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
29461 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29462 since GetType() may not return the correct type if the object is
29465 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
29467 * TreeNodeCollection.cs: fixes get/set item ranges
29469 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29471 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29473 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
29475 * ComboBox.cs: Fix item range comparation
29476 * ListView.cs: Fix item range comparation
29478 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29481 - Clear example panel when OnPaint is called
29482 - Better solution for displaying the example panel text
29483 - Select default indexes in the ListBoxes
29485 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29487 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
29489 2005-05-11 Peter Bartok <pbartok@novell.com>
29491 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29492 * SelectionRangeConverter.cs: Implemented
29493 * PropertyGrid.cs: Fixed attribute value
29495 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29496 - Added Sebastien Pouliot's CAS Stack Propagation fixes
29497 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29498 that's common to all drivers. First methods to go there are
29499 Sebastien Pouliot's CAS Stack Propagation helper methods
29500 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29501 Sebastien Pouliot for CAS Stack Propagation
29503 2005-05-11 Geoff Norton <gnorton@customerdna.com>
29506 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29508 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
29510 * DataGridTextBoxColumn.cs: fixed some members
29511 * GridColumnStylesCollection.cs: indexed column is case insensitive
29512 * DataGridTableStyle.cs: fixes
29513 * ThemeWin32Classic.cs: add new theme parameter
29514 * Theme.cs: add new theme parameter
29515 * DataGridDrawingLogic.cs: Datagrid's drawing logic
29516 * DataGrid.cs: fixes, new internal properties, etc.
29517 * DataGridColumnStyle.cs: allows to set grid value
29520 2005-05-10 Peter Bartok <pbartok@novell.com>
29522 * AccessibleObject.cs:
29523 - Removed MonoTODO attribute on help, method is correct
29524 - Fixed Bounds property
29525 * AxHost.cs: Moved MonoTODO
29526 * ButtonBase.cs: Now setting AccessibleObject properties
29527 * RadioButton.cs: Setting proper AccessibleObject role
29528 * CheckBox.cs: Setting proper AccessibleObject role
29529 * ControlBindingsCollection.cs: Added properties, methods and attributes
29530 * DataFormats.cs: Fixed awkward internal API, and changed to enable
29531 userdefined DataFormats.Format items as well
29532 * ListControl.cs: Removed data_member from the public eye
29533 * OpenFileDialog.cs:
29534 - Made class sealed
29535 - Added missing attributes
29536 * SaveFileDialog.cs: Added missing attributes
29537 * ImageListStreamer.cs: Fixed code that caused warnings
29538 * LinkLabel.cs: Removed unreachable code
29539 * TreeView.cs: Fixed code that caused warnings
29540 * PropertyGridView.cs: Fixed code that caused warnings
29541 * GridColumnStylesCollection.cs: Added missing attributes
29542 * GridTableStylesCollection: Added missing attribute
29543 * PropertyManager: Added .ctor
29544 * SecurityIDType: Added
29545 * DataObject.cs: Implemented class
29546 * LinkArea.cs: Added missing attribute
29548 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
29550 * RadioButton.cs: call base method to allow to fire OnClick event
29551 * UpDownBase.cs: OnMouseUp call base method
29552 * CheckedListBox.cs: call base method before returning
29553 * TrackBar.cs: call base method before returning
29556 2005-05-10 Peter Bartok <pbartok@novell.com>
29558 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29561 2005-05-10 Peter Bartok <pbartok@novell.com>
29563 * DataFormats.cs: Implemented
29564 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29565 XplatUIX11.cs: Added Clipboard APIs
29566 * XplatUIWin32.cs: Implemented Clipboard APIs
29567 * FolderBrowserDialog.cs: Added missing event, attributes
29569 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
29571 * CheckBox.cs: call base method to allow to fire OnClick event
29573 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
29575 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29577 2005-05-06 Peter Bartok <pbartok@novell.com>
29579 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29580 * Screen.cs: Implemented
29581 * HelpNavigator.cs: Added
29582 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29584 * HelpProvider.cs: Implemented all we can do until we have a CHM
29585 help library (which means that "What's This" does work now)
29587 2005-05-06 Jackson Harper <jackson@ximian.com>
29589 * XplatUIX11.cs: Fix waking up the main loop.
29591 2005-05-05 Peter Bartok <pbartok@novell.com>
29593 * XplatUI.cs: Updated revision
29594 * Form.cs: Removed enless loop
29595 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29596 * Label.cs (OnPaint): Added call to base.OnPaint()
29597 * ToolTip.cs: Made ToolTipWindow reusable for other controls
29598 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29599 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29601 * ButtonBase.cs: Moved base.OnPaint() call to end of method
29602 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29603 to ToolTip.ToolTipWindow for drawing and size methods; this allows
29604 reuse of ToolTipWindow by other controls
29605 * SizeGrip.cs: Moved base.OnPaint() call to end of method
29606 * XplatUIX11.cs: Now clipping drawing area (experimental)
29607 * PictureBox.cs: Moved base.OnPaint() call to end of method
29608 * Theme.cs: Fixed ToolTip abstracts to match new format
29609 * ErrorProvider.cs: Implemented
29611 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
29613 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29617 - Implements LinkBehavior
29618 - Fixes many issues
29620 2005-05-03 Jackson Harper <jackson@ximian.com>
29622 * ListView.cs: Calculate the scrollbar positioning on resize and
29623 paint, so they get put in the correct place.
29625 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
29627 * ColorDialogs.cs: The small color panels are now handled by
29628 SmallColorControl. This fixes drawing of the focus rectangle
29629 and adds a 3D border.
29631 2005-05-03 Peter Bartok <pbartok@novell.com>
29633 * Control.cs: Modified version of Jonathan Chamber's fix for
29636 2005-05-03 Jackson Harper <jackson@ximian.com>
29638 * ListView.cs: Remove redraw variable. Control now handles whether
29639 or not a redraw needs to be done, and will only raise the paint
29640 event if redrawing is needed.
29642 2005-05-03 Jackson Harper <jackson@ximian.com>
29644 * Splitter.cs: No decorations for the splitter form. Cache the
29647 2005-05-03 Jackson Harper <jackson@ximian.com>
29649 * TreeView.cs: Use dashed lines to connect nodes. Use the
29650 ControlPaint method for drawing the focus rect instead of doing
29653 2005-05-02 Peter Bartok <pbartok@novell.com>
29655 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29657 2005-04-29 Jackson Harper <jackson@ximian.com>
29659 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29660 entire image buffer. Just clear the clipping rectangle.
29662 2005-04-29 Jackson Harper <jackson@ximian.com>
29664 * ThemeWin32Classic.cs: Don't draw list view items that are
29665 outside the clipping rectangle.
29667 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
29669 * ListBox.cs: added horizontal item scroll
29671 2005-04-29 Jackson Harper <jackson@ximian.com>
29673 * ThemeWin32Classic.cs: Remove some old debug code that was
29674 causing flicker with the new double buffering code.
29676 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
29678 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29679 behave like combobox and comboboxlist (still not sure if this is
29682 2005-04-28 Jackson Harper <jackson@ximian.com>
29684 * ThemeWin32Classic.cs: Don't fill the middle of progress
29685 bars. This fills areas outside of the clip bounds that don't need
29688 2005-04-28 Jackson Harper <jackson@ximian.com>
29690 * Control.cs: Don't expose functionality to touch the image buffers.
29692 * ListView.cs: We do not need to (and no longer can) manipulate
29693 the image buffers directly. All of this is handled by Control.
29695 2005-04-28 Peter Bartok <pbartok@novell.com>
29697 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29698 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29699 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29701 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
29704 - Adjust control's height for non-simple comboboxes (bug fix)
29706 * MenuAPI.cs: remove unused var
29707 * ScrollBar.cs: remove unsed var
29709 * ListBox.cs: unselect items when clearing
29711 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
29713 * ListControl.cs: honors OnPositionChanged and default Selected Item
29714 * ListBox.cs: unselect items when clearing
29716 2005-04-27 Jackson Harper <jackson@ximian.com>
29718 * X11Keyboard.cs: Initialize a default keyboard and give a warning
29719 if a "correct" keyboard is not found. This will make us not crash,
29720 but might give some users bad keyboard layouts...seems to be the
29721 same thing rewind does.
29723 2005-04-27 Jackson Harper <jackson@ximian.com>
29725 * BindingManagerBase.cs: Attach the current/position changed
29726 handlers to their respective events.
29728 2005-04-27 Jackson Harper <jackson@ximian.com>
29730 * Control.cs: Make sure that the first WM_PAINT does a full draw,
29732 * ThemeWin32Classic.cs: Don't fill the background for picture
29733 boxes. This could overright user drawing.
29734 * ComboBox.cs: Just fill the clipping rect not the entire client
29735 rect when drawing the background. This prevents pieces of the
29736 image buffer from getting overwritten and is theoretically faster.
29738 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
29740 * ComboBox.cs: Databinding support fixes, fire missing events
29741 * ListControl.cs: implement missing methods and properties, fixes
29742 * ThemeWin32Classic.cs: Databiding support on Drawing
29743 * CheckedListBox.cs: Databinding support fixes, fire missing events
29744 * ListBox.cs: Databinding support fixes, fire missing events
29746 2005-04-25 Peter Bartok <pbartok@novell.com>
29748 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29750 2005-04-25 Jackson Harper <jackson@ximian.com>
29752 * TreeView.cs: Use the horizontal scrollbars height not width when
29753 determining how much of the client area is available.
29755 2005-04-25 Jackson Harper <jackson@ximian.com>
29757 * Control.cs: Double buffering is handled differently now. As per
29758 the spec, the extra buffer is created in the WM_PAINT message and
29759 passed down to the control's drawing code.
29767 * PropertyGridView.cs:
29779 * DateTimePicker.cs:
29781 * TreeView.cs: Update to new double buffering system.
29782 * MonthCalendar.cs: Uncomment block, as Capture is now
29783 working. Update to new double buffering
29784 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29785 * PaintEventArgs.cs: New internal method allows us to set the
29786 graphics object. This is used for double buffering.
29787 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29788 rectangle. The internal paint_area var has been removed from
29789 StatusBar. The clipping rect should be used instead.
29790 * Theme.cs: Give the PictureBox drawing method a clipping rect.
29791 * TabPage.cs: The RefreshTabs method was removed, so just call the
29792 tab controls Refresh method now.
29793 * TabControl.cs: Update to new double buffering. Make sure the
29794 handle is created before sizing the tab pages, otherwise we will
29795 get stuck in a loop.
29797 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
29799 * LinkLabel.cs: Fix typo, bug #74719; patch
29800 from Borja Sanchez Zamorano
29802 2005-04-22 Jackson Harper <jackson@ximian.com>
29804 * TreeNode.cs: Implement Handle stuff.
29805 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29807 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
29809 * DataGridTextBoxColumn.cs: call base constructors, fixes
29810 * GridColumnStylesCollection.cs: missing events, methods, and functionality
29811 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29812 * DataGridTableStyle.cs: implements create default column styles
29813 * DataGridBoolColumn.cs: which types can handle
29814 * DataGrid.cs: missing methods, fixes, new functionality
29815 * DataGridColumnStyle.cs: fixes
29817 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
29818 * FolderBrowserDialog.cs:
29819 - Use a thread to fill the TreeView
29820 - Adjusted some sizes
29822 2005-04-19 Peter Bartok <pbartok@novell.com>
29824 * LinkLabel.cs: (Re-)create the pieces when setting the Text
29825 property. Fixes #74360.
29827 2005-04-19 Jackson Harper <jackson@ximian.com>
29829 * XEventQueue.cs: Lock when getting the lockqueue size.
29830 * PictureBox.cs: Call base OnPaint
29832 2005-04-19 Peter Bartok <pbartok@novell.com>
29834 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29835 messages were no longer being processed (this broke BeginInvoke)
29838 2005-04-18 Jackson Harper <jackson@ximian.com>
29840 * TreeView.cs: buglet that caused node images to get drawn
29841 regardless of whether or not they were in the clipping rectangle.
29843 2005-04-18 Jackson Harper <jackson@ximian.com>
29845 * CurrencyManager.cs: There are four rules for GetItemProperties:
29846 - If the type is an array use the element type of the array
29847 - If the type is a typed list, use the type
29848 - If the list contains an Item property that is not an object, use
29850 - use the first element of the list if there are any elements in
29853 2005-04-17 Jackson Harper <jackson@ximian.oom>
29855 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29856 click. This handles offsets for scrolling properly and reduces
29857 memory. Also fixed GetNode to not offset now that TopNode works
29859 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29861 2005-04-17 Jackson Harper <jackson@ximian.com>
29863 * CursorConverter.cs: Initial implementation.
29865 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
29867 * ListControl.cs: work towards complex data binding support on ListControl
29868 * CurrencyManager.cs: work towards complex data binding support on ListControl
29869 * ListBox.cs: work towards complex data binding support on ListControl
29872 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
29874 * GridTableStylesCollection.cs: fixes name and constructor
29875 * DataGridTableStyle.cs: fixes
29876 * DataGridBoolColumn.cs: fixes names and constructors
29877 * DataGrid.cs: define methods and properties. Some init implementations
29878 * DataGridCell.cs: define methods and properties. Some init implementations
29879 * GridTablesFactory.cs: Define methods and properties
29881 2005-04-15 Geoff Norton <gnorton@customerdna.com>
29883 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
29884 graphics port changes. We still want the coordinates in global screen
29887 2005-04-14 Jackson Harper <jackson@ximian.com>
29889 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29890 check plus minus or checkbox clicks unless those features are enabled.
29892 2005-04-14 Jackson Harper <jackson@ximian.com>
29894 * TreeView.cs: Add methods for setting the top and bottom visible
29895 nodes. TreeNode::EnsureVisible uses these methods.
29896 * TreeNode.cs: Implement EnsureVisible
29898 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
29900 * Form.cs: Pospone menu assignation if the window has not been created yet
29901 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29904 2005-04-12 Jackson Harper <jackson@ximian.com>
29906 * TreeView.cs: Set the TopNode properly when scrolling
29907 occurs. This has the added benifit of reducing the amount of
29908 walking that needs to be done when drawing. Also removed an old
29910 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
29912 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
29914 * Timer.cs: fixes interval setting when the timer is already enabled
29916 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
29918 * FolderBrowserDialog.cs: First approach
29920 2005-04-09 Peter Bartok <pbartok@novell.com>
29922 * FolderBrowserDialog: Added
29924 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
29926 * LinkLabel.cs: move drawing code into the theme
29927 * ThemeWin32Classic.cs: drawing code and painting background bugfix
29928 * Theme.cs: define DrawLinkLabel method
29930 2005-04-05 Jackson Harper <jackson@ximian.com>
29932 * BindingContext.cs: Use weak references so these bad actors don't
29933 stay alive longer then they need to.
29935 2005-04-05 Jackson Harper <jackson@ximian.com>
29937 * ListControl.cs: Basic implementation of complex databinding.
29939 * ListBox.cs: Add calls to ListControl databinding methods.
29941 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
29944 - Don't change PopupButtonState to Normal when the
29945 PopupButton gets pressed several times.
29946 - Renamed ButtonPanel to PopupButtonPanel
29948 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
29950 * ColorDialog.cs: Use cached objects instead of creating them
29951 * LinkLabel.cs: Use cached objects instead of creating them
29952 * Splitter.cs: Use cached objects instead of creating them
29953 * FontDialog.cs: Use cached objects instead of creating them
29954 * PropertyGridView.cs: Use cached objects instead of creating them
29955 * MessageBox.cs: Use cached objects instead of creating them
29956 * FileDialog.cs: Use cached objects instead of creating them
29957 * ThemeWin32Classic.cs: Use cached objects instead of creating them
29958 * TreeView.cs: Use cached objects instead of creating them
29960 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
29962 * Control.cs: use Equals to compare the font since no == op
29963 * ScrollBar.cs: use Equals to compare the font since no == op
29965 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
29967 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
29969 2005-04-01 Jackson Harper <jackson@ximian.com>
29971 * Binding.cs: Implement IsBinding.
29972 * BindingManagerBase.cs:
29973 * PropertyManager.cs:
29974 * CurrencyManager.cs: Add IsSuspended property.
29976 2005-04-01 Jackson Harper <jackson@ximian.com>
29978 * Binding.cs: Had some IsAssignableFrom calls backwards.
29980 2005-04-01 Jackson Harper <jackson@ximian.com>
29982 * Binding.cs: Handle null data members when pulling data.
29983 * PropertyManager.cs: Handle the data member being a property that
29986 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29988 * DataGridTextBoxColumn.cs: fixes signature
29989 * DataGrid.cs: calls right constructor
29991 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
29993 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29994 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29995 * GridTableStylesCollection.cs: implements GridTableStylesCollection
29996 * DataGridTableStyle.cs: implements DataGridTableStyle
29997 * DataGridBoolColumn.cs: implements DataGridBoolColumn
29998 * DataGridTextBox.cs: implements DataGridTextBox
29999 * DataGridColumnStyle.cs: implements DataGridColumnStyle
30001 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
30003 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30005 2005-03-29 Peter Bartok <pbartok@novell.com>
30008 - Properly implemented CompanyName property
30009 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30010 returns a path that includes CompanyName, ProductName and
30011 Version (fixes bug #70330)
30013 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
30015 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30018 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30020 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30022 - Added ReadOnly CheckBox
30023 - Further refactoring: moved some code from Open-/SaveFileDialog
30026 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
30028 * OpenFileDialog.cs: Fixed CheckFileExists
30030 Moved FileView and DirComboBox outside FileDialog class.
30031 They can now be used outside FileDialog
30033 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30035 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
30036 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
30038 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
30040 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30041 - Added missing CreatePrompt property in SaveDialog
30042 - Overall SaveDialog handling should be better now
30043 - Added non standard ShowHiddenFiles property
30044 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
30045 - Added InitialDirectory and RestoreDirectory support
30047 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
30049 * FileDialog.cs: Made dirComboBox usable
30051 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
30053 * FileDialog.cs: Added Filter support (case sensitiv)
30055 2005-03-24 Jackson Harper <jackson@ximian.com>
30057 * TabControl.cs: Need a couple more pixels for the lines.
30059 2005-03-23 Jackson Harper <jackson@ximian.com>
30061 * TabControl.cs: Give the tab page focus when it is selected.
30063 2005-03-23 Jackson Harper <jackson@ximian.com>
30065 * TabControl.cs: Account for the drawing of tabs borders when
30066 invalidating. If the slider was clicked dont do click detection on
30069 2005-03-23 Jackson Harper <jackson@ximian.com>
30071 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30073 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
30075 * CategoryGridEntry.cs: Added
30076 * GridItem.cs: Added helper properties
30077 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30078 * GridEntry.cs: Updated code for collection
30079 * PropertyGrid.cs: Cleaned up some formatting
30080 * PropertyGridView.cs: Added drop down functionality for enums.
30081 * GridItemCollection.cs: Added enumerator logic
30082 * PropertyGridEntry.cs: Added
30084 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30087 - Removed unnecessary commented code
30088 - Fixed handling for entering the filename manually in the combobox
30090 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
30092 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30094 2005-03-18 Peter Bartok <pbartok@novell.com>
30096 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30097 them being touching the border
30099 2005-03-18 Peter Bartok <pbartok@novell.com>
30101 * TextControl.cs: Quick hack to center text better
30103 2005-03-18 Peter Bartok <pbartok@novell.com>
30106 - Don't throw NotImplemented exceptions, just print a notice once
30107 instead (requested by Miguel). This makes running existing SWF
30110 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30111 - Added context menu trigger on right click
30112 * Panel.cs: Trigger invalidate on resize
30114 - Removed old double-buffer drawing
30115 - Added ResizeRedraw style to force proper update of statusbar
30117 - Removed debug output
30118 * ThemeWin32Classic.cs:
30119 - Fixed drawing of status bar, now draws Text property if there
30120 are no defined panels
30122 2005-03-18 Jackson Harper <jackson@ximian.com>
30124 * ImageList.cs: When the image stream is set pull all the images
30126 * ImageListStreamer.cs: Implement reading image list streams.
30128 2005-03-18 Peter Bartok <pbartok@novell.com>
30130 * ThemeWin32Classic.cs (DrawPictureBox):
30131 - Fixed calculations for centered drawing
30132 - Fixed drawing for normal mode, not scaling the image on normal
30134 2005-03-18 Peter Bartok <pbartok@novell.com>
30136 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30139 - Made Open/Save button the accept button for FileDialog
30140 - Tied the cancel button to the IButtonControl cancel button
30141 - Save/Open now properly builds the pathname
30142 - Now handles user-entered text
30143 - Preventing crash on right-click if no item is selected
30144 - Fixed Text property, now uses contents of textbox
30145 - Fixed SelectedText property, now just returns the text part that
30146 is selected in the text box
30148 2005-03-18 Jackson Harper <jackson@ximian.com>
30150 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30151 rect, make sure to de-adjust the interior rect after drawing the
30154 2005-03-18 Peter Bartok <pbartok@novell.com>
30156 * MenuAPI.cs: Remove menu *before* executing selected action to
30157 prevent the menu from 'hanging around'
30159 2005-03-17 Geoff Norton <gnorton@customerdna.com>
30161 * XplatUIOSX.cs: Implemented WorkingArea property
30163 2005-03-17 Peter Bartok <pbartok@novell.com>
30165 * XplatUIX11.cs: Fixed menu coord calculations
30166 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30167 for calculating offsets
30169 2005-03-17 Peter Bartok <pbartok@novell.com>
30171 * Hwnd.cs: Do not consider menu presence for default client
30172 rectangle location/size
30173 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30174 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30175 translation functions
30176 * FileDialog.cs: Fixed (what I presume is a) typo
30178 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
30180 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30181 X access (avoids X-Async errors)
30183 2005-03-16 Jackson Harper <jackson@ximian.com>
30185 * TabControl.cs: Raise the SelectedIndexChanged event.
30187 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
30189 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30190 - Removed vertical ToolBar and replaced it with a custom panel
30191 (desktop and home button already work)
30192 - Added Help button (some controls get resized or relocated then)
30193 - Draw correct text depending on Open or Save.
30194 - Fixed some typos...
30196 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
30199 - Only change Maximum and Minimum when need it (bug fix)
30201 2005-03-15 Peter Bartok <pbartok@novell.com>
30203 * Form.cs: Use Handle for icon, to trigger creation if
30204 the window does not yet exist
30206 - CanSelect: Slight performance improvement
30207 - Focus(): Preventing possible recursion
30208 - Invalidate(): Removed ControlStyle based clear flag setting
30209 - WM_PAINT: fixed logic for calling OnPaintBackground
30210 - WM_ERASEBKGND: Fixed logic, added call to new driver method
30211 EraseWindowBackground if the control doesn't paint background
30213 - Moved EraseWindowBackground() method to internal methods
30214 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30215 is sent via SendMessage on BeginPaint call on Win32
30217 - Added EraseWindowBackground() method
30218 - No longer sends WM_ERASEBKGND on .Expose, but on call to
30219 PaintEventStart, which more closely matches Win32 behaviour
30220 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30221 - Fixed SetFocus() to properly deal with client and whole windows
30222 * Hwnd.cs: Added ErasePending property
30223 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30224 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30226 2005-03-12 Geoff Norton <gnorton@customerdna.com>
30229 - Fix hard loop when timers exist.
30230 - Fix bugs with middle and right click for 3 button mice.
30232 2005-03-11 Peter Bartok <pbartok@novell.com>
30235 - get_WorkingArea: Need to call X directly, GetWindowPos only
30236 returns cached data now
30237 - Added sanity check to GetWindowPos hwnd usage
30239 2005-03-11 Jackson Harper <jackson@ximian.com>
30241 * BindingManagerBase.cs: This method isn't used anymore as
30242 PullData now updates the data in the control.
30244 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
30246 * Form.cs: fixes menu drawing on X11
30247 * MenuAPI.cs: fixes menu drawing on X11
30249 2005-03-11 Peter Bartok <pbartok@novell.com>
30251 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30252 from Jonathan Gilbert; should fix bug #73606
30253 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30254 in Screen coordinates. Thanks, Jordi.
30255 * Form.cs: Added missing attribute
30257 2005-03-11 Peter Bartok <pbartok@novell.com>
30260 - Rudimentary Mdi support
30261 - Removed outdated FormParent code
30262 - Implemented lots of missing properties and methods, still missing
30263 transparency support
30264 - Added missing attributes
30265 - Implemented support for MaximumBounds
30266 - Added firing of various events
30267 * XplatUI.cs: Added SetIcon() method
30268 * XplatUIDriver.cs: Added SetIcon() abstract
30269 * XplatUIOSX.cs: Stubbed out SetIcon() method
30271 - Implemented SetIcon() support
30272 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30273 - Switched to unix line endings
30275 - Made POINT internal so for can access it as part of MINMAX
30276 - Implemented SetIcon() support
30277 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30278 native Mdi support again, might have to go managed)
30279 * Control.cs: Now fires the StyleChanged event
30280 * MdiClient.cs: Added; still mostly empty
30282 2005-03-10 Peter Bartok <pbartok@novell.com>
30284 * SaveFileDialog.cs: Added emtpy file
30286 2005-03-08 Peter Bartok <pbartok@novell.com>
30288 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30289 in turn triggers OnCreateContro) when creating a handle for the
30291 * TextControl.cs: Fixed endless loop in certain cases when
30292 replacing the current selection
30294 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
30297 - Honors NewValue changes in Scroll events allowing apps to change it
30298 - Adds First and Last Scroll events
30299 - Fixes Thumb events
30301 2005-03-07 Peter Bartok <pbartok@novell.com>
30303 * Hwnd.cs: Added DefaultClientRectangle property
30304 * XplatUI.cs: Now using the X11 driver Where() method, which provides
30305 more detailed debug information
30307 - Fixed size-change feedback loop, where we would pull an old size
30308 off the queue and mistakenly change our window's size to an
30310 - Now compressing ConfigureNotify events, to reduce looping and
30312 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30315 2005-03-07 Jackson Harper <jackson@ximian.com>
30317 * Binding.cs: Push data pushes from data -> property. Check if the
30318 property is readonly when attempting to set it.
30320 2005-03-07 Jackson Harper <jackson@ximian.com>
30322 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30323 instead of IsSubclassOf. Pulling data now sets the value on the
30325 * PropertyManager.cs:
30326 * CurrencyManager.cs: Just need to pull data when updating now,
30327 because PullData will set the value on the control.
30329 2005-03-04 Jackson Harper <jackson@ximian.com>
30331 * Binding.cs: Implement data type parsing and converting on pulled
30332 data. TODO: Are there more ways the data can be converted?
30334 2005-03-04 Jackson Harper <jackson@ximian.com>
30336 * Binding.cs: Support <Property>IsNull checks. Also bind to the
30337 controls Validating method so we can repull the data when the
30338 control loses focus.
30340 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
30343 - Fixes null string format
30346 - Adds enum type checks
30347 - Fixes redrawing and recalc need after changing some properties
30348 - Fixes on focus_item set after the event
30349 - Fixes adding columns after the control has been created
30351 * ThemeWin32Classic.cs:
30352 - Fixes CheckBox focus rectangle
30353 - Fixes ColumnHeader drawing
30356 2005-03-03 Jackson Harper <jackson@ximian.com>
30358 * Binding.cs: Bind to <Property>Changed events so we can detect
30359 when properties are changed and update the data.
30361 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
30364 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30365 - Fixes ImageList constructor with ImageList container
30366 - Fixes image scaling (wrong parameters at DrawImage)
30368 2005-02-02 Jackson Harper <jackson@ximian.com>
30370 * Binding.cs: Make property searches case-insensitive. Eliminate
30371 some duplicated code.
30373 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
30376 - Handle focus event
30377 - Fix scrollbar events
30378 - Discard highlighted item if remove it
30379 - Fixes SelectedItem with strings
30381 2005-03-01 Peter Bartok <pbartok@novell.com>
30384 - Fixed Visible property, now follows (once again) parent chain
30385 to return false if any control in the chain is visible=false
30386 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30387 - Fixed several places where is_visible instead of Visible was used
30388 - Implemented FIXME related to focus selection when setting focused
30389 control to be invisible
30391 * XplatUIWin32.cs: Now using proper method to find out if window is
30392 visible. Thanks to Jordi for pointing it out
30394 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
30396 * ComboBox.cs: show/hide scrollbar instead of creating it
30398 2005-02-27 Jackson Harper <jackson@ximian.com>
30400 * CurrencyManager.cs: Add PositionChanged stuff.
30402 2005-02-27 Peter Bartok <pbartok@novell.com>
30404 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30405 * XplatUIOSX.cs: Added GetMenuOrigin() stub
30406 * XplatUIWin32.cs: Implemented GetMenuOrigin()
30408 - Implemented GetMenuDC()
30409 - Implemented GetMenuOrigin()
30410 - Implemented ReleaseMenuDC()
30411 - Implemented generation of WM_NCPAINT message
30412 - Implemented generation and handling of WM_NCCALCSIZE message
30413 * Form.cs: Added debug helper message for Jordi's menu work
30415 - Modified ClientRect property; added setter, fixed getter to handle
30416 setting of ClientRect
30417 - Added MenuOrigin property
30419 2005-02-26 Peter Bartok <pbartok@novell.com>
30422 - Destroys the caret if a window that's being destroyed contains it
30423 - Ignores expose events coming from the X11 queue for windows that
30424 already are destroyed
30425 - Now uses the proper variable for handling DestroyNotify, before we
30426 marked the wrong window as destroyed
30427 - Improved/added some debug output
30429 2005-02-26 Peter Bartok <pbartok@novell.com>
30431 * X11Keyboard.cs: Fixes to work on 64bit systems
30433 2005-02-26 Peter Bartok <pbartok@novell.com>
30436 - Now calling OnHandleDestroyed from DestroyHandle()
30437 instead of Dispose()
30438 - Removed bogus call to controls.Remove() from DestroyHandle()
30440 2005-02-26 Peter Bartok <pbartok@novell.com>
30442 * Control.cs: Properly destroy child windows when our handle is
30445 2005-02-25 Peter Bartok <pbartok@novell.com>
30448 - Added 'DriverDebug' define to allow tracing XplatUI API calls
30449 - Alphabetized Static Methods and Subclasses
30452 - Added XException class to allow custom handling of X11 exceptions
30453 - Created custom X11 error handler, tied into XException class
30454 - Added support for MONO_XEXCEPTIONS env var to allow the user
30455 to either throw an exception on X errors or continue running
30456 after displaying the error
30457 - Added handling of DestroyNotify message
30458 - Added handler for CreateNotify message (still disabled)
30459 - Improved (tried to at least) Where method to provide file and lineno
30461 - Added XErrorHandler delegate
30462 - Added XRequest enumeration (to suppor translation of errors)
30464 2005-02-25 Jackson Harper <jackson@ximian.com>
30466 * PropertyManager.cs: Implement editing features
30467 * CurrencyManager.cs:
30468 * Binding.cs: First attempt at UpdateIsBinding
30469 * BindingManagerBase.cs: Call UpdateIsBinding before
30470 pushing/pulling data.
30472 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
30474 * MenuAPI.cs: Respect disabled items
30475 * ThemeWin32Classic.cs
30476 - Caches ImageAttributes creation for DrawImageDisabled
30477 - Fixes vertical menu line drawing
30478 - Draws disabled arrows in disable menu items
30480 2005-02-24 Peter Bartok <pbartok@novell.com>
30483 - Added UserData property to allow associating arbitrary objects
30485 - Fixed leak; now removing Hwnd references from static windows array
30487 - Fixed Graphics leak in PaintEventEnd
30488 - Removed usage of HandleData, switched over to Hwnd class
30489 * HandleData.cs: Removed, obsoleted by Hwnd.cs
30491 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30493 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30494 * ScrollBar.cs: Fixes bug
30495 * TrackBar.cs: removes death code, clipping, mimize refreshes,
30496 keyboard navigation enhancements
30498 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
30500 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30501 * GroupBox.cs: Add control styles
30502 * Label.cs: Add control styles
30503 * UpDownBase.cs: Add control styles
30504 * ListBox.cs: Add control styles
30505 * XplatUIWin32.cs: Fixes wrong parameter order
30508 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
30510 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30512 2005-02-23 Jackson Harper <jackson@ximian.com>
30514 * PropertyManager.cs: Implement property binding. This doesn't
30515 seem to work yet though as (I think) there are some bugs in
30516 System.ComponentModel.PropertyDescriptor.
30517 * BindingContext.cs: Use new PropertyManager constructor.
30519 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
30521 * ProgressBar.cs: use clip region in ProgressBar
30522 * ThemeWin32Classic.cs: use clip region in ProgressBar
30524 2004-02-22 Jackson Harper <jackson@ximian.com>
30526 * BindingsCollection.cs: Remove some debug code.
30528 2005-02-22 Jackson Harper <jackson@ximian.com>
30530 * BindingContext.cs:
30531 * ControlBindingsCollection.cs:
30532 * CurrencyManager.cs:
30534 * BindingManagerBase.cs: Initial implementation
30535 * BindingsCollection.cs: Add an internal contains method that the
30536 BindingManagerBase uses to ensure bindings aren't added twice to
30538 * PropertyManager.cs: Stubbed out.
30540 * ContainerControl.cs: Hook up databinding
30542 2005-02-22 Geoff Norton <gnorton@customerdna.com>
30545 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30546 Fixed Invalidate/Update chain.
30547 Fixed tons of other minor bugs (this is almost a complete rewrite).
30549 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
30551 * ComboBox.cs: do subcontrol creation when the control is created
30553 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30555 * Label.cs: fixes image drawing (image and imagelist)
30556 * ThemeWin32Classic.cs: cache brushes
30558 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30560 * Form.cs: Move menu drawing code to Theme class
30561 * ComboBox.cs: Move ComboBox drawing code to Theme class
30562 * MenuItem.cs: Move menu drawing code to Theme class
30563 * MenuAPI.cs: Move menu drawing code to Theme class
30564 * ThemeWin32Classic.cs: New methods
30565 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30566 * ListBox.cs: Move Listbox drawing code to Theme class
30567 * Theme.cs: New methods
30569 2005-02-20 Peter Bartok <pbartok@novell.com>
30572 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30573 only process mnemonics on those)
30574 - Fixed event sequence for key handling; first calling
30575 ProcessKeyEventArgs now
30577 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30578 for processing non-character keys
30579 - Fixed WM_CHAR to generate proper event sequence before processing
30580 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30583 2005-02-19 Peter Bartok <pbartok@novell.com>
30585 * UserControl.cs: Added TextChanged event; added attributes
30586 * SizeGrip.cs: Implemented resizing and optional display of grip
30587 * Form.cs: Fixed attribute
30588 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30589 Changed meaning of ScrollWindow bool argument; instead of the
30590 clear attribute (which will be true usually anyway), it gives the
30591 option of moving child controls as well.
30593 - Changed to match new ScrollWindow argument
30594 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30595 now handles the implicit parent window a WM puts around us
30596 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30598 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30599 * TreeView.cs: Adjusted to new ScrollWindow arguments
30601 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
30603 * Form.cs: Menu integration with non-client area
30604 * MenuItem.cs: Menu integration with non-client area
30605 * MenuAPI.cs: Menu integration with non-client area
30607 2005-02-18 Peter Bartok <pbartok@novell.com>
30609 * MethodInvoker.cs: Added
30610 * MdiLayout.cs: Added
30611 * SendKeys.cs: Started implementation
30612 * ErrorIconAlignment.cs: Added
30614 2005-02-18 Peter Bartok <pbartok@novell.com>
30616 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30617 * Form.cs: Added handling for Menu-related Non-client messages
30619 2005-02-17 Peter Bartok <pbartok@novell.com>
30621 * UpDownBase.cs: Fixed typo, compilation errors
30622 * DomainUpDown.cs: Fixed attribute value
30624 2005-02-16 Miguel de Icaza <miguel@novell.com>
30626 * UpDownBase.cs: Attach entry events.
30628 Add ForeColor property, Focused, InterceptArrowKeys (interception
30629 does not work yet).
30631 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
30634 - Redraw non client are on Setmenu
30635 - Calc proper menu starting point
30637 2005-02-17 Peter Bartok <pbartok@novell.com>
30639 * Application.cs: Fixed message_filter check
30641 2005-02-17 Peter Bartok <pbartok@novell.com>
30643 * Application.cs: Now calls registered message filters
30644 * DockStyle.cs: Fixed attribute
30645 * Form.cs: Fixed attribute
30646 * Menu.cs: Fixed attribute
30647 * ToolTip.cs: Fixed attribute
30648 * TreeNode.cs: Added missing attributes and arranged in regions
30649 * PropertyGrid.cs: Fixed signatures
30650 * TreeNodeCollection.cs: Added attributes
30651 * Splitter.cs: Added missing attributes; arranged into regions
30652 * TabPage.cs: Added missing attributes; arranged into regions
30653 * TextBoxBase.cs: Added missing attributes
30654 * TextBox.cs: Added missing attributes
30655 * ArrangeDirection.cs: Added missing attributes
30656 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30657 * ToolBarButton.cs: Fixed attributes
30658 * AnchorStyles.cs: Fixed attribute
30659 * TrackBar.cs: Fixed attributes
30660 * TabControl.cs: Added missing attributes and arranged into regions
30661 * ToolBar.cs: Fixed attribute
30662 * StatusBar.cs: Fixed signature, organized into regions and added
30664 * StatusBarPanel.cs: Fixed attributes
30665 * ContentsResizedEventArgs.cs: Implemented
30666 * ContentsResizedEventHandler.cs: Implemented
30667 * DateBoldEventArgs.cs: Implemented
30668 * DateBoldEventHandler.cs: Implemented
30669 * UpDownEventArgs.cs: Implemented
30670 * UpDownEventHandler.cs: Implemented
30672 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
30674 * Form.cs: first Menu NC refactoring
30675 * MenuAPI.cs: first Menu NC refactoring
30677 2005-02-16 Peter Bartok <pbartok@novell.com>
30679 * ImeMode.cs: Added missing attributes
30680 * Menu.cs: Fixed attribute
30681 * GroupBox.cs: Fixed attribute
30682 * Label.cs: Fixed attribute
30683 * ColorDialog.cs (RunDialog): Removed TODO attribute
30684 * ComboBox.cs: Fixed attributes
30685 * ListControl.cs: Added missing attributes
30686 * PropertyGrid.cs: Fixed attributes
30687 * Control.cs: Fixed attributes
30688 * ListViewItem.cs: Added TypeConverter attribute
30689 * NotifyIcon.cs: Fixed attributes
30690 * ListView.cs: Fixed attributes
30691 * ButtonBase.cs: Fixed attribute
30692 * ImageList.cs: Added missing attributes
30693 * ContainerControl.cs: Fixed signature
30694 * CheckedListBox.cs: Fixed attribute; added missing attributes
30695 * Panel.cs: Fixed attributes
30696 * PropertyTabChangedEventArgs.cs: Added missing attribute
30697 * PropertyValueChangedEventArgs.cs: Added missing attribute
30698 * Binding.cs: Fixed attribute
30699 * ListViewItemConverter: Implemented ListViewSubItemConverter class
30700 * ListBox.cs: Fixed attribute; added missing attributes;
30701 * ScrollableControl.cs: Added missing attributes
30702 * PictureBox.cs: Added missing attributes; implemented missing property
30703 * DateTimePicker.cs: Added missing attributes
30704 * Theme.cs (ToolWindowCaptionHeight): Fixed type
30705 * MonthCalendar.cs: Fixed attributes
30706 * StatusBarPanel.cs: Added missing attributes
30707 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30709 2005-02-16 Peter Bartok <pbartok@novell.com>
30711 * TextBoxBase.cs: The previous method to enforce height yet remember
30712 the requested high was less than ideal, this is an attempt to do
30714 * Control.cs: Added comment about possible problem
30715 * Copyright: Updated format
30716 * GridItemType.cs: Fixed swapped values
30718 2005-02-15 Jackson Harper <jackson@ximian.com>
30720 * BaseCollection.cs: Use property so we never access an
30721 uninitialized list. Also initialize the list in the property.
30723 2005-02-15 Peter Bartok <pbartok@novell.com>
30725 * GroupBox.cs (ProcessMnemonic): Implemented
30726 * Label.cs (ProcessMnemonic): Implemented
30727 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30730 2005-02-15 Peter Bartok <pbartok@novell.com>
30732 * RadioButton.cs (ProcessMnemonic): Implemented
30733 * CheckBox.cs (ProcessMnemonic): Implemented
30735 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30737 - Added internal method to allow calling ProcessMnemonic from other
30739 * ContainerControl.cs:
30740 - Started support for handling validation chain handling
30741 - Implemented ProcessMnemonic support
30742 - Added Select() call to Active, to make sure the active control
30744 * Form.cs: Setting toplevel flag for Forms (this was lost in the
30745 FormParent rewrite)
30746 * ThemeWin32Classic.cs:
30747 - DrawCheckBox(): Fixed stringformat to show hotkeys
30748 - DrawRadioButton(): Fixed stringformat to show hotkeys
30749 * CommonDialog.cs: Removed WndProc override, not needed
30751 2005-02-14 Peter Bartok <pbartok@novell.com>
30753 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30754 missed those in the rewrite
30756 2005-02-14 Miguel de Icaza <miguel@novell.com>
30758 * NumericUpDown.cs (Increment, ToString): Add.
30759 (DecimalPlaces): implement.
30763 * UpDownBase.cs: Add the designer attributes.
30765 2005-02-13 Peter Bartok <pbartok@novell.com>
30767 * Panel.cs: Removed border_style, now in Control
30768 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30769 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30771 2005-02-13 Peter Bartok <pbartok@novell.com>
30773 * MouseButtons.cs: Added missing attributes
30774 * XplatUIStructs.cs: Added enumeration for title styles
30775 * LeftRightAlignment.cs: Added missing attributes
30776 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30777 it compatible with Graphics.FromHwnd()
30778 * SelectedGridItemChangedEventArgs.cs: Fixed property type
30779 * Keys.cs: Added missing attributes
30780 * SelectionRange.cs: Added missing attributes
30781 * SelectionRangeConverter.cs: Added
30783 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30784 ReleaseMenuDC methods
30785 - Renamed ReleaseWindow to UngrabWindow
30786 - Added proper startup notice to allow version identification
30788 - Added missing attributes
30789 - Removed FormParent concept
30790 * Label.cs: Removed border_style field, now in Control
30791 * RadioButton.cs: Now properly selects RadioButton when focus is
30793 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30795 - Added missing attributes
30796 - Added borderstyle handling
30797 - Removed FormParent concept support
30798 - Fixed calls to XplatUI to match changed APIs
30799 - Fixed bug that would case us to use disposed Graphics objects
30800 - Removed unneeded internal methods
30801 - PerformLayout(): Fixed to handle DockStyle.Fill properly
30802 - SelectNextControl(): Fixed to properly check common parents
30803 * TextBoxBase.cs: Removed border_style field (now in Control)
30805 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30806 fixed calculations for form size
30807 - Added support for localized strings and icons
30808 - Improved form size calculations, added border
30809 * ListView.cs: Removed border_style field (now in Control)
30810 * X11Structs.cs: Moved several structs from X11 driver here
30811 * X11Keyboard.cs: Changed debug message
30812 * Application.cs: Removed FormParent concept support
30814 - Resetting end_modal flag
30815 - Removed FormParent concept support
30816 * NativeWindow.cs: Removed FormParent concept support
30817 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30818 Client area and Non-Client whole window to allow support for WM_NC
30820 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30821 prevent using it until it supports Hwnd as per Geoff Norton's request
30822 * ToolBar.cs: Fixed drawing, was not doing proper drawing
30823 * PictureBox.cs: Removed border_style field, now in Control
30824 * XplatUIWin32.cs: Added new driver methods
30826 2005-02-12 Peter Bartok <pbartok@novell.com>
30828 * OpacityConverter.cs: Implemented
30829 * Hwnd.cs: Internal class to support drivers that need to emulate
30830 client area/non-client area window behaviour
30832 2005-02-11 Peter Bartok <pbartok@novell.com>
30834 * KeysConverter.cs: Implemented
30836 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
30838 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30839 * LinkLabel: Added missing attributes
30840 * MainMenu.cs: fixes ToString
30841 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30842 * ListBox.cs: fixes event position
30843 * TrackBar.cs: adds missing attributes and events
30845 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
30847 * MenuItem.cs: Use SystemInformation and bug fixes
30848 * MenuAPI.cs: Use SystemInformation and bug fixes
30850 2005-02-09 Jackson Harper <jackson@ximian.com>
30852 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30853 their keystate otherwise things like VK_MENU get stuck "on".
30855 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
30857 * ListBox.cs: Fixes AddRange bug
30859 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
30862 - Add missing attributes
30863 - Add missing method
30865 * CheckedListBox.cs: Added missing attributes
30866 - Add missing attributes
30867 - Remove extra method
30869 * ComboBox.cs: Added missing attributes
30870 * VScrollBar.cs: Added missing attributes
30871 * ScrollBar.cs: Added missing attributes
30872 * ListBox.cs: Fixes signature, add missing consts
30873 * LinkArea.cs: Added missing attributes
30876 2005-02-08 Peter Bartok <pbartok@novell.com>
30878 * Menu.cs: Added missing attributes
30879 * MainMenu.cs: Added missing attributes
30880 * GroupBox.cs: Added missing attributes
30881 * Label.cs: Added missing attributes
30882 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30884 - Added Instance and Options properties
30885 - Added missing attributes
30886 * Cursor.cs: Made Serializable
30887 * NotifyIcon: Added missing attributes
30888 * MenuItem.cs: Added missing attributes
30889 * TextBoxBase.cs: Implemented AppendText() and Select() methods
30890 * Panel.cs: Added Missing attributes
30891 * MonthCalendar.cs: Fixed CreateParams
30893 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
30897 - Fixes issues with links
30898 - Adds the class attributes
30900 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
30903 - Fixes button when no items available in dropdown
30904 - Fixes repainting problems
30905 - Adds the class attributes
30907 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30909 * XplatUIOSX.cs: Detect the menu bar and title bar height from
30910 the current theme. Cache these on startup.
30912 2005-02-07 Jackson Harper <jackson@ximian.com>
30914 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
30915 the scrollbar buttons when they are depressed.
30917 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30919 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
30920 Get the display size from the main displayid. We currently dont
30921 support multiple display configurations.
30923 2005-02-07 Geoff Norton <gnorton@customerdna.com>
30925 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
30927 2005-02-07 Miguel de Icaza <miguel@novell.com>
30929 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
30931 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
30933 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
30935 2005-02-04 Jackson Harper <jackson@ximian.com>
30937 * ThemeWin32Classic.cs: Respect the clipping rect when
30938 drawing. Only fill the intersection of clips and rects so there
30939 isn't a lot of large fills.
30940 * ScrollBar.cs: Pass the correct clipping rect to the theme
30941 engine. Remove some debug code.
30943 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
30945 * DateTimePicker.cs:
30946 - Fixed crash on DateTime.Parse, use Constructor instead
30948 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
30952 - Owner draw support (MeasureItem and DrawItem)
30954 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
30957 - Implements FindMergePosition and MergeMenu functions (very poor documented)
30958 - Fixes MenuItems.Add range
30960 - MergeMenu and Clone and CloneMenu functions
30962 2005-02-03 Jackson Harper <jackson@ximian.com>
30964 * ScrollBar.cs: Make abstract
30965 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
30968 2005-02-03 Jackson Harper <jackson@ximian.com>
30970 * ScrollBar.cs: First part of my scrollbar fixups. This removes
30971 all the unneeded refreshes and uses invalidates with properly
30974 2005-02-03 Peter Bartok <pbartok@novell.com>
30976 * ComponentModel.cs: Added
30977 * IDataGridEditingService.cs: Added
30978 * Timer.cs: Added missing attributes
30979 * ToolTip.cs: Added missing attributes
30981 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
30983 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30985 2005-02-03 Peter Bartok <pbartok@novell.com>
30987 * ListBox.cs: Added missing attributes
30989 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
30992 - Fixes font height after font change
30993 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30995 2005-02-02 Peter Bartok <pbartok@novell.com>
30997 * HandleData.cs: Introduced static methods to allow class
30998 to be more self-contained and track it's own HandleData objects
30999 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31000 HandleData to use new static methods
31002 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
31005 - Fixes default size and PreferredHeight
31007 - ObjectCollection.Insert implementation
31013 - ObjectCollection.Insert implementation
31014 - No selection after clean
31017 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31019 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31021 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
31024 - Caches ItemHeight calculation for OwnerDrawVariable
31025 - Handles dropdown properly
31026 - Fixes several minor bugs
31028 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31031 - Fixes 71946 and 71950
31032 - Fixes changing Multicolumn on the fly
31033 - Fixes keyboard navigation on Multicolumn listboxes
31035 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31037 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
31038 crash reporter log.
31040 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31042 * XplatUIOSX.cs: Allow applications to actually exit.
31044 2005-01-31 Geoff Norton <gnorton@customerdna.com>
31046 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
31047 their parent at creation time rather than lazily later. Fixes a major
31048 regression we were experiencing.
31050 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
31052 * ThemeWin32Classic.cs: more date time picker painting fixes
31053 * DateTimePicker.cs: more monthcalendar drop down fixes
31054 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31056 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
31059 - When moving the thumb going outside the control should stop the moving
31060 - Adds the firing of missing events
31061 - Fixes no button show if Size is not specified
31062 - End / Home keys for keyboard navigation
31064 2005-01-30 Peter Bartok <pbartok@novell.com>
31066 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31067 sanity check to prevent theoretical loop
31068 * XplatUIWin32.cs (SetVisible): Removed debug output
31069 * XplatUIX11.cs (SystrayChange): Added sanity check
31070 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31071 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31072 behaviour, valid until the X11 client window rewrite is done
31073 * TextBox.cs (ctor): Setting proper default foreground and background
31076 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
31078 * Theme: Added DrawDateTimePicker to interface
31079 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31080 * DateTimePicker.cs: Created (still needs keys and painting code)
31081 * DateTimePickerFormat.cs: added
31082 * MonthCalendar.cs: fixed CreateParams for popup window mode
31084 2005-01-29 Peter Bartok <pbartok@novell.com>
31086 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31087 this should also the calculations for ligher/darker
31088 * Theme.cs: Fixed defaults for ScrollBar widths/heights
31090 2005-01-29 Peter Bartok <pbartok@novell.com>
31092 * ArrangeDirection.cs: Added
31093 * ArrangeStartingPositon.cs: Added
31094 * SystemInformation.cs: Implemented
31095 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31096 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31097 used by SystemInformation class
31098 * X11Strucs.cs: Added XSizeHints structure
31100 - Fixed CreateParams to make sure the menu window is always visible
31101 - TrackPopupMenu: Added check to make sure we don't draw the
31104 2005-01-29 Peter Bartok <pbartok@novell.com>
31106 * HandleData.cs: Added method for altering invalid area
31107 * TextBoxBase.cs: Implemented TextLength
31109 2005-01-28 Peter Bartok <pbartok@novell.com>
31111 * XplatUIX11.cs: Improvement over last patch, not sending
31112 the WM_PAINT directly anymore, instead we scroll any pending
31113 exposed areas and let the system pick out the WM_PAINT later
31115 2005-01-28 Peter Bartok <pbartok@novell.com>
31117 * SWF.csproj: Deleted, no longer used. Instead,
31118 Managed.Windows.Forms/SWF.csproj should be used
31119 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31120 directly, to avoid a potential race condition with the next
31123 2005-01-28 Peter Bartok <pbartok@novell.com>
31125 * XplatUI.cs: Made class internal
31127 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
31129 * CheckedListBox.cs:
31132 - Missing methods and events
31134 2005-01-27 Peter Bartok <pbartok@novell.com>
31136 * Application.cs (Run): Don't use form if we don't have one
31138 2005-01-27 Peter Bartok <pbartok@novell.com>
31140 * TextBoxBase.cs (get_Lines): Fixed index off by one error
31142 2005-01-27 Peter Bartok <pbartok@novell.com>
31144 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31145 * GridItem.cs: Added; Patch by Jonathan S. Chambers
31146 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31147 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31148 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31149 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31150 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31151 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31152 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31153 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31154 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31155 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31157 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31160 - Draw focus on Simple Combobox
31161 - Fixes drawing issues
31164 2005-01-27 Peter Bartok <pbartok@novell.com>
31167 - Place window in default location, instead of hardcoded 0/0
31168 - Send initial LocationChanged event
31170 - UpdateBounds after creation to find out where the WM placed us
31171 - Make sure that if the ParentForm changes location the Form
31173 * XplatUIX11.cs: XGetGeometry will not return the coords relative
31174 to the root, but to whatever the WM placed around us.
31175 Translate to root coordinates before returning toplevel
31177 * XplatUIWin32.cs: Removed debug output
31178 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31179 flag to GetWindowPos, to allow translation of coordinates on X11
31181 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
31183 * ListBox.cs: connect LostFocus Event
31185 2005-01-27 Peter Bartok <pbartok@novell.com>
31187 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31188 XplatUIX11.cs: Extended the Systray API
31189 * Form.cs: Removed debug output
31190 * Application.cs: Fixed focus assignment, always need to call
31191 XplatUI.Activate() since Form.Activate() has rules that may
31193 * NotifyIcon.cs: Should be complete now
31194 * ToolTip.cs: Worked around possible timer bug
31196 2005-01-27 Jackson Harper <jackson@ximian.com>
31199 - Only invalidate the effected tabs when the
31200 selected index changes. This reduces drawing and gets rid of some
31202 - Only refresh if the tabs need to be shifted, otherwise only
31203 invalidate the slider button.
31204 - On windows the tabs are not filled to right if the slider is
31207 2005-01-27 Jackson Harper <jackson@ximian.com>
31209 * TabControl.cs: Only refresh on mouseup if we are showing the
31210 slider. Also only invalidate the button whose state has changed.
31212 2005-01-26 Peter Bartok <pbartok@novell.com>
31214 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31215 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31216 and SystrayRemove() methods
31217 * XplatUIOSX.cs: Stubbed Systray methods
31219 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31221 - Fixed broken XChangeProperty calls (marshalling messed up things)
31222 * X11Structs.cs: Added enums and structs required for Size hinting
31223 * NotifyIcon.cs: Added & implemented
31225 2005-01-26 Jackson Harper <jackson@ximian.com>
31227 * TabControl.cs: Space vertically layed out tabs properly.
31229 2005-01-26 Peter Bartok <pbartok@novell.com>
31231 * Form.cs (CreateClientParams): Always set the location to 0,0
31232 since we're a child window.
31234 * Control.cs (SetVisibleCore): Always explicitly setting the location
31235 of a toplevel window, apparently X11 doesn't like to move windows
31236 while they're not mapped.
31238 2005-01-26 Jackson Harper <jackson@ximian.com>
31240 * TabControl.cs: Implement FillToRight size mode with vertically
31243 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31245 * ControlPaint.cs, ThemeWin32Classic.cs
31246 - Fixes DrawFocusRectangle
31248 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
31251 - MenuBar tracking only starts when item is first clicked
31252 - Fixes menu hidding for multiple subitems
31253 - Unselect item in MenuBar when item Executed
31256 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
31259 - IsInputKey for ListBox
31262 - Shift and Control item selection
31263 - Implement SelectionMode.MultiExtended
31264 - Fixes RightToLeft
31266 - IsInputKey implemented
31267 - Do not generate OnTextChangedEdit on internal txt changes
31269 2005-01-23 Peter Bartok <pbartok@novell.com>
31271 * AccessibleObject.cs: Partially implemented Select()
31272 * MonthCalendar.cs: Added missing attributes and events
31273 * Form.cs: Fixed CreateParams behaviour, now controls derived from
31274 form can properly override CreateParams.
31275 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31276 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31277 Control performs Invalidate & Update
31278 * NativeWindow (CreateHandle): Added special handling for Form
31279 and Form.FormParent classes to allow overriding of From.CreateParams
31281 - ControlNativeWindow: Renamed 'control' variable to more intuitive
31283 - ControlNativeWindow: Added Owner property
31284 - Removed usage of Refresh() on property changes, changed into
31285 Invalidate(), we need to wait until the queue is processed for
31286 updates, direct calls might cause problems if not all vars for
31287 Paint are initialized
31288 - Added call to UpdateStyles() when creating the window, to set any
31289 styles that CreateWindow might have ignored.
31290 - Added support for Form CreateParent overrides to UpdateStyles()
31291 * MessageBox.cs: Removed no longer needed FormParent override stuff,
31292 CreateParams are now properly overridable
31293 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31294 CreateParams are now properly overridable
31296 2005-01-23 Miguel de Icaza <miguel@ximian.com>
31298 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31301 Capture LostFocus and OnTextBoxChanged. The later introduces a
31302 recursive invocation that I have not figured out yet.
31304 Reset the timer when not using (it was accumulating).
31307 (OnTextBoxChanged): Set UserEdit to true here to track whether the
31308 user has made changes that require validation.
31310 Reset changing to avoid loops.
31312 2005-01-22 Miguel de Icaza <miguel@ximian.com>
31314 * NumericUpDown.cs: Display value at startup.
31316 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31319 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31320 filled in. Added some basic parsing of text.
31322 Still missing the OnXXX method overrides, and figuring out the
31323 events that must be emitted.
31325 * UpDownBase.cs: Handle UserEdit on the Text property.
31327 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
31330 - Fixes IntegralHeight
31333 2005-01-21 Jackson Harper <jackson@ximian.com>
31335 * TabControl.cs: Set the SelectedIndex property when SelectedTab
31336 is set so that the page visibility is updated and the tabs are
31339 2005-01-21 Jackson Harper <jackson@ximian.com>
31341 * TabControl.cs: Use cliping rectangle for blitting. Give the
31342 theme the clipping rect so we can do clipping while
31343 drawing. Remove some debug code.
31345 2005-01-21 Jackson Harper <jackson@ximian.com>
31347 * TabPage.cs: Add a new method so tab pages can force the tab
31348 control to recalculate the tab page sizes.
31349 * TabControl.cs: UpdateOwner needs to make the tab control recalc
31352 2005-01-20 Jackson Harper <jackson@ximian.com>
31354 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31356 2005-01-20 Jackson Harper <jackson@ximian.com>
31358 * TreeView.cs: Set the bounds for nodes properly. They were
31359 getting screwed up when checkboxes were not enabled, but images
31362 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
31365 - Owner draw support
31368 2005-01-20 Jackson Harper <jackson@ximian.com>
31370 * XplatUIStructs.cs: More misc keys
31371 * X11Keyboard.cs: Ignore some control keys.
31373 2005-01-20 Jackson Harper <jackson@ximian.com>
31375 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31376 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31378 2005-01-19 Peter Bartok <pbartok@novell.com>
31380 * Control.cs: Un-selecting the control when it is loosing focus
31382 2005-01-19 Jackson Harper <jackson@ximian.com>
31384 * TreeView.cs: Hook up to the text controls leave event so we can
31385 end editing when the users clicks outside the text box.
31387 2005-01-19 Jackson Harper <jackson@ximian.com>
31389 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31390 get set in the conversion array.
31392 2005-01-19 Peter Bartok <pbartok@novell.com>
31394 * Application.cs (ModalRun): Added a call to CreateControl to ensure
31395 focus is properly set
31397 - Added missing attributes
31398 - removed styles, those are already set in the base class
31400 - Added missing attributes
31401 - Added clip window styles
31402 * CheckBox.cs: Added missing attributes
31404 - FormParentWindow.CreateParams: Added required clip styles
31405 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31406 also filters modifier keys
31408 - Added assignment of Accept and Cancel button to enable Enter
31409 and Esc keys in MessageBox dialogs
31410 - FormParentWindow.CreateParams: Added required clip styles
31411 * RadioButton.cs: Added missing attributes
31412 * TextControl.cs: No longer draws selection if control does not
31415 - Now draws simple rectangle around test area to make it obvious
31416 there's a control. This is a hack until we properly support borders
31417 - A few simple fixes to support selections better, now erases selected
31418 text when typing, and resets selection when using movement keys
31420 2005-01-19 Miguel de Icaza <miguel@ximian.com>
31422 * UpDownBase.cs: Added some new properties.
31424 * DomainUpDown.cs: Implement a lot to get my test working.
31426 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31428 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31430 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31432 * OSXStructs (WindowAttributes): Fixed csc complaints
31434 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31437 OSXStructs.cs: Initial refactor to move enums and consts into
31438 OSXStructs and use them in the driver for greater readability.
31440 2005-01-19 Geoff Norton <gnorton@customerdna.com>
31442 * XplatUIOSX.cs: Initial support for Standard Cursors.
31443 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31445 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
31447 * ComboBox.cs: ability to change style when the ctrl is already
31448 created, missing methods and events, bug fixes, signature fixes
31450 2005-01-19 Peter Bartok <pbartok@novell.com>
31452 * Cursors.cs (ctor): Added ctor to fix signature
31454 2005-01-18 Peter Bartok <pbartok@novell.com>
31456 * Button.cs: Implemented DoubleClick event
31458 - Fixed keyboard handling to behave like MS, where the press of
31459 Spacebar is equivalent to a mousedown, and the key release is
31460 equivalent to mouseup. Now a spacebar push will give the same
31461 visual feedback like a mouse click.
31462 - Added missing attributes
31463 - Added ImeModeChanged event
31464 - Added support for generating DoubleClick event for derived classes
31466 - Implemented DoubleClick event
31467 - Added missing attributes
31468 * CommonDialog.cs: Added missing attribute
31469 * ContextMenu.cs: Added missing attributes
31471 - AutoChecked buttons do not allow to be unselected when clicked
31472 (otherwise we might end up with no selected buttons in a group)
31473 - Added missing attributes
31474 - Implemented DoubleClickEvent
31475 * ThreadExceptionDialog.cs: Enabled TextBox code
31477 2005-01-18 Peter Bartok <pbartok@novell.com>
31479 * Form.cs: Removed debug output
31480 * Button.cs: Added support for DoubleClick method
31482 2005-01-18 Peter Bartok <pbartok@novell.com>
31485 - Added method to parent window that allows triggering size
31486 calculations when a menu is added/removed
31487 - set_Menu: Cleaned up mess from early days of Form and Control,
31488 now properly triggers a recalc when a menu is added/removed
31489 - Added case to select form itself as focused form if no child
31491 - Added PerformLayout call when showing dialog, to ensure properly
31494 - Select(): Made internal so Form can access it
31495 - Focus(): Only call Xplat layer if required (avoids loop), and sets
31497 * Application.cs (Run): Removed hack and calls PerformLayout instead
31498 to trigger calculation when Form becomes visible
31500 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
31502 * ComboBox.cs: fixes for ownerdraw
31504 2005-01-18 Peter Bartok <pbartok@novell.com>
31507 - Sentinel is no longer static, each Document gets it's own, this
31508 avoids locking or alternatively overwrite problems when more
31509 than one text control is used simultaneously.
31510 - Switched to use Hilight and HilightText brushes for text selection
31512 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31514 2005-01-18 Peter Bartok <pbartok@novell.com>
31517 - Hooked up the following events:
31525 o SystemColorsChanged
31526 o ParentFontChanged
31528 - Removed debug output
31529 - Added a call to the current theme's ResetDefaults when a color change
31531 * Form.cs: Now setting the proper ImeMode
31532 * Theme.cs: Defined a method to force recreation of cached resources
31533 and rereading of system defaults (ResetDefaults())
31534 * ThemeWin32Classic.cs: Added ResetDefaults() stub
31536 2005-01-17 Peter Bartok <pbartok@novell.com>
31538 * Control.cs: Added missing attributes
31540 2005-01-17 Jackson Harper <jackson@ximian.com>
31542 * TreeNode.cs: Implement editing. Add missing properties selected
31544 * TreeView.cs: Implement node editing. Also some fixes to use
31545 Invalidate (invalid area) instead of Refresh when selecting.
31547 2005-01-17 Peter Bartok <pbartok@novell.com>
31550 - Implemented InvokeGotFocus() method
31551 - Implemented InvokeLostFocus() method
31552 - Implemented InvokePaint() method
31553 - Implemented InvokePaintBackground() method
31554 - Implemented InvokeClick() method
31555 - Implemented FindForm() method
31556 - Implemented RectangleToClient() method
31557 - Implemented ClientToRectangle() method
31558 - Implemented ResetBackColor() method
31559 - Implemented ResetCursor() method
31560 - Implemented ResetFont() method
31561 - Implemented ResteForeColor() method
31562 - Implemented ResetImeMode() method
31563 - Implemented ResetLeftToRight() method
31564 - Implemented ResetText() method
31565 - Implemented Scale() methods
31566 - Implemented ScaleCore() method
31567 - Implemented Update() method
31568 - Removed unused variables
31569 - Stubbed AccessibilityNotifyClients and
31570 ControlAccessibleObject.NotifyClients() methods (dunno what to do
31572 - Now setting proper default for RightToLeft property
31573 - Fixed bug in SetClientSizeCore that would cause windows to get
31575 - Now sending Click/DoubleClick events
31576 - Now selecting controls when left mouse button is clicked on
31578 * AccessibleEvents.cs: Added
31579 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31580 * XplatUIOSX.cs: Stubbed UpdateWindow() method
31581 * XplatUIWin32.cs: Implemented UpdateWindow() method
31582 * XplatUIX11.cs: Implemented UpdateWindow() method
31583 * Form.cs: Removed stray semicolon causing CS0162 warning
31584 * ThemeWin32Classic.cs: Fixed unused variable warnings
31585 * ScrollableControl.cs: Now calls base method for ScaleCore
31586 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31587 style to avoid interference with internal click handler (which is
31588 different than standard Control click handling)
31590 - Now unchecks all sibling radio buttons when control is
31591 selected (Fixes #68756)
31592 - Removed internal tabstop variable, using the one inherited from
31595 2005-01-17 Jackson Harper <jackson@ximian.com>
31597 * NavigateEventArgs.cs: Fix base type.
31598 * LinkLabel.cs: Sig fix
31600 2005-01-17 Jackson Harper <jackson@ximian.com>
31602 * TreeView.cs: Only invalidate the effected nodes bounds when
31605 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31607 * XplatUIWin32.cs: fixes Win32 marshaling
31608 * XplatUIX11.cs: fixes method signature
31610 2005-01-17 Peter Bartok <pbartok@novell.com>
31612 * XplatUIX11.cs: Clean up resources when we no longer need them
31614 2005-01-17 Peter Bartok <pbartok@novell.com>
31616 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31617 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31618 and DestroyCursor() methods.
31619 * Cursor.cs: Partially implemented, now supports standard cursors;
31620 still contains some debug code
31621 * Cursors.cs: Implemented class
31623 - WndProc(): Added handling of WM_SETCURSOR message, setting the
31625 - Implemented Cursor property
31626 - Replaced break; with return; more straightforwar and possibly
31628 - Now properly setting the result for WM_HELP
31629 * X11Structs.cs: Added CursorFontShape enum
31630 * XplatUIStructs.cs:
31631 - Added StdCursor enum (to support DefineStdCursor() method)
31632 - Added HitTest enum (to support sending WM_SETCURSOR message)
31634 - Now sends the WM_SETCURSOR message
31635 - Implemented new cursor methods
31636 * XplatUIOSX.cs: Stubbed new cursor methods
31638 - Implemented new cursor methods
31639 - Added GetSystemMetrics function and associated enumeration
31641 2005-01-15 Peter Bartok <pbartok@novell.com>
31644 - WndProc(): Now handles EnableNotifyMessage
31645 - SelectNextControl(): Fixed bug where if no child or sibling
31646 controls exist we looped endlessly
31648 2005-01-14 Jackson Harper <jackson@ximian.com>
31650 * TreeView.cs: Recalculate the tab pages when a new one is added
31651 so that the proper bounding rects are created.
31653 2005-01-14 Jackson Harper <jackson@ximian.com>
31655 * TreeView.cs: Draw a gray box instead of a grip in the lower
31656 right hand corner when there are both horizontal and vertical
31659 2005-01-14 Jackson Harper <jackson@ximian.com>
31661 * Control.cs: When erasing backgrounds use FromHwnd instead of
31662 FromHdc when there is a NULL wparam. This occurs on the X driver.
31663 * XplatUIX11.cs: Set the wparam to NULL.
31665 2005-01-13 Jackson Harper <jackson@ximian.com>
31667 * PictureBox.cs: Implement missing methods (except ToString, need
31668 to test that on windows) and events. When visibility is changed we
31669 need to redraw the image because the buffers are killed. When size
31670 is changed refresh if the sizemode needs it.
31672 2005-01-13 Peter Bartok <pbartok@novell.com>
31674 * Control.cs (SelectNextControl): Was using wrong method to select
31677 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31679 * ComboBox.cs: fixes dropstyle
31681 2005-01-13 Peter Bartok <pbartok@novell.com>
31684 - Implemented Select() override
31685 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31686 - Now sets keyboard focus on startup
31687 * Control.cs (SelectNextControl): Now properly handles directed=true
31689 - WndProc: Now passes tab key on to base if AcceptTabChar=false
31690 - Added (really bad) focus rectangle (mostly for testing)
31691 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31692 to enforce redraw on focus changes
31693 * ContainerControl.cs:
31694 - Fixed detection of Shift-Tab key presses
31695 - Fixed traversal with arrow keys
31696 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31697 gonna keep this or if it's complete yet
31699 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
31701 * ComboBox.cs: missing properties, fixes
31703 2005-01-13 Peter Bartok <pbartok@novell.com>
31705 * Panel.cs (ctor): Setting Selectable window style to off
31706 * Splitter.cs (ctor): Setting Selectable window style to off
31707 * GroupBox.cs (ctor): Setting Selectable window style to off
31708 * Label.cs (ctor): Setting Selectable window style to off
31710 2005-01-12 Miguel de Icaza <miguel@ximian.com>
31712 * UpDownBase.cs (InitTimer): If the timer has been already
31713 created, enable it.
31715 Use a TextBox instead of a Label.
31717 2005-01-12 Jackson Harper <jackson@ximian.com>
31719 * TreeView.cs: Refresh the tree after sorting the nodes. Always
31720 draw the connecting node lines (when ShowLines is true).
31721 * TreeNode.cs: The nodes index can now be updated. This is used
31722 when a node collection is sorted.
31723 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31724 insert or an existing unsorted node collection can be sorted.
31726 2005-01-12 Peter Bartok <pbartok@novell.com>
31728 * ContainerControl.cs: Implemented ProcessDialogKeys()
31730 2005-01-12 Peter Bartok <pbartok@novell.com>
31733 - Implemented SelectNextControl() method
31734 - Several focus related bug fixes
31735 - Fixed Docking calculations to match MS documentation and
31738 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
31740 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31743 2005-01-12 Peter Bartok <pbartok@novell.com>
31746 - Fixed broken Contains() method
31747 - Implemented GetNextControl() method. Finally. This is the pre-
31748 requisite for focus handling.
31750 2005-01-12 Peter Bartok <pbartok@novell.com>
31752 * OSXStrucs.cs: Added
31754 2005-01-12 Peter Bartok <pbartok@novell.com>
31757 - Removed PeekMessageFlags
31758 - Implemented SetWindowStyle() method
31759 * XplatUIStructs.cs: Added PeekMessageFlags
31760 * X11Structs: Added missing border_width field to XWindowChanges struct
31762 - PeekMessage: Now throws exception if flags which are not yet
31763 supported are passed
31764 - Implemented SetWindowStyle() method
31765 - Fixed SetZOrder to handle AfterHwnd properly
31766 * XplatUI.cs: Added SetWindowStyle() method
31767 * XplatUIDriver.cs: Added SetWindowStyle() abstract
31769 - Implemented UpdateStyles() method
31770 - Implemented UpdateZOrder() method
31771 * XplatUIOSX.cs: Added SetWindowStyle() stub
31773 2005-01-12 Geoff Norton <gnorton@customerdna.com>
31775 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31779 2005-01-11 Jackson Harper <jackson@ximian.com>
31781 * TreeView.cs: Still need to draw lines to siblings even if out of
31782 the current node is out of the clip.
31784 2005-01-11 Jackson Harper <jackson@ximian.com>
31786 * TreeView.cs: When setting the hbar/vbar/grip position use
31787 SetBounds so that perform layout is only called once. Also suspend
31788 and resume layout so layout is only done once for all controls.
31789 - Removed some debug fluff
31790 * SizeGrip.cs: Call base implmentation in overriding methods.
31791 - When visibility is changed the drawing buffers are killed so we
31794 2005-01-11 Jackson Harper <jackson@ximian.com>
31796 * TreeView.cs: Calculate the open node count while drawing. This
31797 saves us an entire tree traversal for every paint operation. Use
31798 a member var for the open node count so less vars are passed around.
31800 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
31802 * MonthCalendar.cs:
31803 - fixed selection to use mousemove, not mouse polling on timer
31804 * ThemeWin32Classic.cs
31805 - removed redundant unused variable "no_more_content"
31807 2005-01-11 Peter Bartok <pbartok@novell.com>
31809 * XplatUIX11.cs (DoEvents): Needs to return when no more events
31810 are pending, so it now calls PeekMessage instead of GetMessage;
31811 implemented a incomplete version of PeekMessage
31813 2005-01-11 Peter Bartok <pbartok@novell.com>
31815 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31817 * TextBoxBase.cs: Added sending of TextChanged event
31819 2005-01-10 Jackson Harper <jackson@ximian.com>
31821 * TreeView.cs: Try not to draw outside the clipping rectangle on
31824 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
31826 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31828 2005-01-10 Jackson Harper <jackson@ximian.com>
31831 - Implement fast scrolling. Now only the newly
31832 exposed nodes are drawn and the old image is moved using the
31833 XplatUI::ScrollWindow method.
31834 - Factor in height of nodes when calculating whether or not the
31835 node is in the clipping rect.
31837 2005-01-10 Jackson Harper <jackson@ximian.com>
31839 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31841 2005-01-10 Peter Bartok <pbartok@novell.com>
31843 * Application.cs: Added temporary hack to resolve all our resize
31844 required issues on startup. This will get fixed properly at
31845 some point in the future
31847 2005-01-10 Jackson Harper <jackson@ximian.com>
31849 * SizeGrip.cs: New internal class that is used as a sizing
31850 grip control...hence the name.
31852 2005-01-10 Peter Bartok <pbartok@novell.com>
31854 * Control.cs: Implemented proper TabIndex handling, now assigning
31855 a tabindex when a control is added to a container
31856 * GroupBox.cs (ctor): Now sets the Container style bit, required
31857 for Control.GetNextControl()
31859 2005-01-09 Jackson Harper <jackson@ximian.com>
31861 * TextBoxBase.cs: Clear window when scrolling (fixes build).
31863 2005-01-09 Peter Bartok <pbartok@novell.com>
31865 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31866 XplatUIX11.cs: Added ability to control ScrollWindow expose and
31867 an overload for ScrollWindow to allow only scrolling a rectangle
31869 2005-01-09 Peter Bartok <pbartok@novell.com>
31872 - Implemented SetDesktopBounds method
31873 - Implemented SetDesktopLocation method
31875 2005-01-08 Jackson Harper <jackson@ximian.com>
31877 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31878 the node count has changed, this removes to VScroll::Refresh calls
31881 2005-01-08 Geoff Norton <gnorton@customerdna.com>
31883 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31885 2005-01-07 Jackson Harper <jackson@ximian.com>
31887 * TreeNode.cs: Just update the single node when it is
31888 checked. Don't refresh after toggling, the Expand/Collapse already
31890 * TreeView.cs: Respect clipping a little more when drawing. Try
31891 not to redraw things that don't need to be redrawn. Just hide the
31892 scrollbars when they are no longer needed instead of removing
31893 them, so they don't have to be created again and again.
31895 2005-01-07 Geoff Norton <gnorton@customerdna.com>
31897 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
31898 coordinates to window space to place the caret properly, FIXED.
31899 Implement GetWindowState & SetWindowState
31901 2005-01-06 Peter Bartok <pbartok@novell.com>
31904 - Implemented ClientSize property
31905 - Implemented DesktopBounds property
31906 - Implemented DesktopLocation property
31907 - Implemented IsRestrictedWindow property
31908 - Implemented Size property
31909 - Implemented TopLevel property
31910 - Implemented FormWindowState property
31912 - Implemented GetTopLevel() method
31913 - Implemented SetTopLevel() method
31914 * X11Structs.cs (Atom):
31915 - Added AnyPropertyType definition
31916 - Added MapState definiton and updated XWindowAttribute struct
31917 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
31918 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
31919 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
31921 - Implemented GetWindowState() and SetWindowState() methods
31922 - Fixed Win32GetWindowLong return type
31924 - Introduced central function for sending NET_WM messages
31925 - Implemented GetWindowState() and SetWindowState() methods
31926 * TextBoxBase.cs (set_Lines):
31927 - Now uses Foreground color for text added via Text property (Duh!)
31928 - Added code to remember programmatically requested size (fixes
31929 behaviour when Multiline is set after Size)
31930 - Added AutoSize logic
31932 2005-01-06 Jackson Harper <jackson@ximian.com>
31934 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
31936 2005-01-06 Jackson Harper <jackson@ximian.com>
31938 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
31939 set to less then 0.
31941 2005-01-06 Jackson Harper <jackson@ximian.com>
31943 * ScrollableControl.cs: Lazy init the scrollbars.
31945 2005-01-06 Jackson Harper <jackson@ximian.com>
31947 * Theme.cs: Speed up getting pens and solid brushes, by using
31948 their ARGB as a hash instead of tostring and not calling Contains.
31950 2005-01-06 Peter Bartok <pbartok@novell.com>
31953 - Implemented OnActivated and OnDeactivate event trigger
31954 - Implemented Activate() method
31955 - Fixed ShowDialog() to activate the form that was active before
31956 the dialog was shown
31958 - Added global active_window var that tracks the currently active
31960 - Now always grabs Property changes from the root window to always
31961 catch changes on the active window property
31962 - Added code to PropertyNotify handler to send Active/Inactive
31963 messages when state changes. This puts X11 and Win32 en par on
31964 WM_ACTIVATE notifications (except for double notifications when
31965 the user clicks away from our modal window to another one of our
31968 2005-01-05 Jackson Harper <jackson@ximian.com>
31970 * ImageList.cs: Implment ctor
31972 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31974 * XplatUIOSX.cs: Implement Activate/SetTopmost
31976 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31978 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
31980 2005-01-05 Geoff Norton <gnorton@customerdna.com>
31982 * XplatUIOSX.cs: Implement GetActive/SetFocus.
31984 2005-01-05 Peter Bartok <pbartok@novell.com>
31986 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31987 XplatUIOSX.cs: Added GetActive method to return the currently
31988 active window for the application (or null, if none is active)
31990 - Implemented ActiveForm
31991 - Commented out owner assignment for modal dialogs (causes problems
31992 on Win32, since the owner will be disabled)
31993 - Reworked some Active/Focus handling (still incomplete)
31994 * CommonDialog.cs: Commented out owner assignment for modal dialogs
31995 (causes problems on Win32, since the owner will be disabled)
31996 * IWin32Window: Added ComVisible attribute
31998 2005-01-05 Peter Bartok <pbartok@novell.com>
32000 * ToolTip.cs (WndProc): Enable setting focus now that we have the
32001 required XplatUI functions.
32003 2005-01-05 Peter Bartok <pbartok@novell.com>
32005 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32006 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32007 to implement focus and activation handling; still incomplete and
32010 2005-01-04 Peter Bartok <pbartok@novell.com>
32012 * TextBoxBase.cs: Changed access level for Document property to
32013 match switch to internal for TextControl
32015 2005-01-04 Peter Bartok <pbartok@novell.com>
32017 * AccessibleObject: Added ComVisible attribute
32019 2005-01-04 Jackson Harper <jackson@ximian.com>
32021 * X11Keyboard.cs: Remove unneeded var.
32023 2005-01-04 Jackson Harper <jackson@ximian.com>
32025 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32027 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
32028 ClientMessage. This makes apps exit cleanly (more often).
32030 2005-01-04 Jackson Harper <jackson@ximian.com>
32032 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
32033 handling focus, return correct colors and fonts,
32034 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
32035 handle selection, horizontal scrolling, and mouse interaction.
32037 2005-01-04 Peter Bartok <pbartok@novell.com>
32039 * ICommandExecutor.cs: Added
32040 * IDataGridColumnStyleEditingNotificationService.cs: Added
32041 * IFeatureSupport.cs: Added
32042 * IFileReaderService.cs: Added
32043 * IDataObject.cs: Added ComVisible attribute
32044 * AmbientProperties.cs: Added
32045 * BaseCollection.cs: Added missing attributes
32046 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
32047 * BaseCollection.cs: Added missing attributes
32048 * Binding.cs: Added TypeConverter attribute
32049 * BindingContext.cs: Added DefaultEvent attribute
32050 * BindingsCollection.cs: Added DefaultEvent attribute
32051 * Button.cs: Added DefaultValue attribute
32052 * DragEventArgs.cs: Added ComVisible attribute
32053 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32054 * KeyEventArgs.cs: Added ComVisible attribute
32055 * KeyPressEventArgs.cs: Added ComVisible attribute
32056 * MouseEventArgs.cs: Added ComVisible attribute
32057 * NavigateEventArgs.cs: Added
32058 * NavigateEventHandler.cs: Added
32059 * FeatureSupport.cs: Added
32060 * OSFeature.cs: Added
32061 * Theme.cs: Added abstract Version property to support OSFeature
32062 * ThemeWin32Classic.cs: Added Version property to
32063 support OSFeature.Themes
32064 * ProgressBar.cs: Removed OnPaintBackground override, not required since
32065 the proper styles to avoid background drawing are set, also doesn't
32067 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32068 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32069 * ScrollEventArgs.cs: Added ComVisible attribute
32070 * SplitterEventArgs.cs: Added ComVisible attribute
32071 * AccessibleSelection.cs: Added Flags attribute
32072 * Appearance.cs: Added ComVisible attribute
32073 * Border3DSide.cs: Added ComVisible attribute
32074 * Border3DStyle.cs: Added ComVisible attribute
32075 * BorderStyle.cs: Added ComVisible attribute
32076 * DragAction.cs: Added ComVisible attribute
32077 * ErrorBlinkStyle.cs: Added
32078 * ScrollEventType.cs: Added ComVisible attribute
32079 * AnchorStyles.cs: Added Editor attribute
32080 * DockStyle.cs: Added Editor attribute
32081 * HorizontalAlignment.cs: Added ComVisible attribute
32082 * HelpEventArgs.cs: Added ComVisible attribute
32083 * PaintEventArgs.cs: Added IDisposable
32085 2005-01-04 Peter Bartok <pbartok@novell.com>
32087 * TextControl.cs: Switched Line, LineTag and Document classes to
32090 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32092 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32093 Simple mode, fixes, IntegralHeight, etc.
32095 2005-01-04 Peter Bartok <pbartok@novell.com>
32097 * TextBoxBase.cs: Using proper font variable now
32099 2005-01-04 Peter Bartok <pbartok@novell.com>
32101 * Form.cs (ShowDialog): Set parent to owner, if provided
32102 * GroupBox.cs: Removed unused vars
32104 - Added GetHashCode() for Document and LineTag classes
32105 - Removed unused variables
32106 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32107 to allow translation between continuous char position and line/pos
32108 * CheckBox.cs: Removed vars that are provided by base class
32109 * RadioButton.cs: Removed vars that are provided by base class, added
32110 new keyword where required
32111 * LinkLabel.cs: Added new keyword where required
32112 * Control.cs (WndProc): Removed unused variable
32114 - Finished SelectionLength property
32115 - Implemented SelectionStart property
32116 - Implemented Text property
32117 - Removed unused vars
32118 * MessageBox.cs: Added new keyword where required
32119 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32121 * MenuAPI.cs: Added new keyword where required
32122 * ButtonBase.cs: Removed vars that are provided by base class, added
32123 new keyword where required
32124 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32125 argument to double, to allow compiling with csc 2.0 (Atsushi ran
32127 * Application.cs (Run): Now triggers the ThreadExit event
32128 * CommonDialog.cs: Added new keyword where required; now properly sets
32129 parent (owner) for dialog
32130 * XplatUIX11.cs: Commented out unused vars
32131 * StatusBar.cs: Fixed signature for Text property
32132 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32134 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
32136 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32137 TrackBar.cs, MonthCalendar.cs: remove unused vars
32139 2005-01-03 Jackson Harper <jackson@ximian.com>
32141 * ThemeWin32Classic.cs:
32142 * X11Keyboard.cs: Remove unused vars.
32144 2005-01-03 Peter Bartok <pbartok@novell.com>
32147 - set_Text: Tied into TextControl
32148 - set_TextAlignment: Tied into TextControl
32150 - Added alignment properties and implemented alignment handling
32151 and drawing (still has a bug, not generating proper expose events)
32152 - Added new Line() constructor to allow passing the line alignment
32153 - Fixed selection setting, properly handling end<start now
32154 - Added aligment considerations to RecalculateDocument()
32156 - Now properly enforces control height for single line controls
32157 - Added support for CharacterCasing
32158 - Added IsInputKey override
32159 - Fixed Keys.Enter logic
32160 - Added SetBoundsCore override
32161 - Fixed mouse selection handling
32163 2005-01-03 Jackson Harper <jackson@ximian.com>
32166 - Collapse and uncheck all nodes when CheckBoxes is disabled.
32167 - Checkboxes are always aligned to the bottom of the node,
32168 regardless of item height.
32169 - Use the node bounds to draw the text so we can center it when
32170 the item height is greater then the font height.
32171 - Node::Bounds are only the text part of the node.
32172 * TreeNode.cs: New method to combine collapsing and unchecking all
32175 2005-01-02 Jackson Harper <jackson@ximian.com>
32177 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32178 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32179 tree when a check is changed. TODO: Only refresh the checked node.
32181 2004-12-30 Jackson Harper <jackson@ximian.com>
32183 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32184 * TreeNode.cs: When collapsing make sure to never collapse the
32187 2004-12-29 Jackson Harper <jackson@ximian.com>
32189 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32191 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
32193 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32195 2004-12-28 Peter Bartok <pbartok@novell.com>
32197 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32200 2004-12-28 Peter Bartok <pbartok@novell.com>
32202 * Control.cs (WndProc): Added WM_HELP handler, now generates
32203 HelpRequested event
32204 * Form.cs: Added HelpButton property and required support code
32205 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32207 2004-12-28 Peter Bartok <pbartok@novell.com>
32210 - Made DialogForm.owner variable internal
32211 - Added check to ensure owner form is set before setting
32212 owner properties in CreateParams
32214 2004-12-28 Geoff Norton <gnorton@customerdna.com>
32216 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
32217 swizzling. Implement ClientToScreen and ScreenToClient. Implement
32218 GetCursorPos. Fix major visibility issues. Rework the windowing
32219 system to support borderless/titleless windows (implements menus).
32220 Fix GetWindowPos. Implement initial background color support for
32223 2004-12-28 Peter Bartok <pbartok@novell.com>
32225 * Form.cs (get_CreateParams): Make sure we have an owner before using
32226 the owner variable. Implement proper default if no owner exists
32228 2004-12-28 Peter Bartok <pbartok@novell.com>
32230 * In preparation for making Managed.Windows.Forms the default build target
32231 for System.Windows.Forms, the following stubbed files were added.
32232 Dialogs are currently being implemented by contributors and are only
32233 short-term place holders.
32234 * ColorDialog.cs: Initial check-in (minmal stub)
32235 * DataGrid.cs: Initial check-in (minimal stub)
32236 * DataGridLineStyle.cs: Initial check-in (minimal stub)
32237 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32238 * DataGridTableStyle.cs: Initial check-in (minimal stub)
32239 * FontDialog.cs: Initial check-in (minimal stub)
32240 * FileDialog.cs: Initial check-in (minimal stub)
32241 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32242 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32243 * OpenFileDialog: Initial check-in (minimal stub)
32244 * IComponentEditorPageSite.cs: Initial check-in
32245 * Splitter.cs: Initial check-in (for Jackson)
32246 * SplitterEventArgs.cs: Initial check-in (for Jackson)
32247 * SplitterEventHandler.cs: Initial check-in (for Jackson)
32248 * TextBox.cs: Initial check-in; still needs some wiring to
32249 TextControl backend
32250 * Form.cs: Implemented ControlBox property
32251 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32252 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32253 * TextControl.cs: Added selection functionality; added todo header
32255 - Implemented Lines property
32256 - Implemented TextHeight property
32257 - Implemented SelectedText property
32258 - Implemented SelectionLength property
32259 - Implemented SelectAll method
32260 - Implemented ToString method
32261 - Removed and cleaned up some debug code
32262 - Implemented (still buggy) mouse text selection
32264 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
32266 * ComboBox.cs: Complete DropDownList implementation, fixes.
32268 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
32270 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32271 * ComboBoxStyle.cs: ComboBoxStyle enum
32272 * ComboBox.cs: Initial work on ComboBox control
32274 2004-12-21 Peter Bartok <pbartok@novell.com>
32276 * Control.cs (ctor, CreateParams): Moved setting of is_visible
32277 forward so that anything that creates a window gets the default,
32278 also no longer uses Visible property in CreateParams to avoid
32279 walking up the parent chain and possibly get the wrong visible
32280 status. Fixed IsVisible to no longer walk up to the parent.
32282 2004-12-21 Peter Bartok <pbartok@novell.com>
32284 * Form.cs (ShowDialog): Unset modality for the proper window
32286 2004-12-20 Peter Bartok <pbartok@novell.com>
32288 * CommonDialog.cs: Initial check-in
32290 2004-12-20 Peter Bartok <pbartok@novell.com>
32292 * Control.cs (Visible): Now uses the parent window instead of the
32293 client area window for the property
32296 - ShowDialog(): Now uses the proper window for modality
32297 - The default visibility state for the form parent is now false. This
32298 will prevent the user from seeing all the changes to the form and
32299 its controls before the application hits Application.Run()
32300 - Removed some stale commented out code
32303 - Added FindWindow() method to have a method to check for existence
32305 - Added ability to override default exception handling (for example
32306 when debugging with VS.Net; to do this the ExternalExceptionHandler
32308 - Removed some useless debug output
32311 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32312 not working as expected
32313 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32314 property to allow switching back to the modal window if focus is
32315 given to another one of our windows (Application Modal)
32316 - Now only sets override_redirect if we create a window
32318 - Moved EventMask selection before mapping of newly created window
32319 so we can catch the map event as well
32320 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32321 - Added various Atom related DllImports
32322 - Implemented Exit() method
32323 - .ctor() : No longer shows window if WS_VISIBLE is not defined
32324 in the CreateParams
32326 * MessageBox.cs: Now properly deals with the FormParent window by
32327 providing an override the FormParent CreateParams property to
32328 set as POPUP instead of OVERLAPPED window.
32330 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32332 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
32333 Minor code cleanup.
32335 2004-12-19 Geoff Norton <gnorton@customerdna.com>
32337 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32339 2004-12-18 Peter Bartok <pbartok@novell.com>
32341 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32342 implementing SetModal() method
32344 2004-12-18 Peter Bartok <pbartok@novell.com>
32346 * X11Structs.cs (XGCValues): Fixed type of function element
32347 * XplatUI.cs: Added ScrollWindow() method
32348 * XplatUIDriver.cs: Added ScrollWindow() abstract
32349 * XplatUIWin32.cs: Implemented ScrollWindow() method
32350 * XplatUIX11.cs: Implemented ScrollWindow() method
32351 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32353 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32355 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
32356 Some more keyboard support (INCOMPLETE)
32358 2004-12-17 Peter Bartok <pbartok@novell.com>
32361 - Added color attribute to line tags.
32362 - Added color argument to all functions dealing with tags
32363 - Added color argument support to various functions
32364 - Fixed miss-calculation of baseline/shift in certain circumstances
32366 * TextBoxBase.cs: Added new color option to test code
32368 2004-12-17 Jackson Harper <jackson@ximian.com>
32371 * MonthCalendar.cs: Signature fixes
32373 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32375 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32376 keyboard event moved it. Create a new graphics context for each paint resolves this
32378 2004-12-17 Geoff Norton <gnorton@customerdna.com>
32380 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32381 Make caret exist and go blink blink. Initial keyboard support.
32382 Fix exception handler, Add Invalidate support. Change way RefreshWindow
32385 2004-12-17 Jackson Harper <jackson@ximian.com>
32387 * XplatUIStructs.cs: Updated set of virtual keycodes.
32388 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32390 2004-12-17 Jackson Harper <jackson@ximian.com>
32392 * XplatUIX11.cs: Prune old keyboard code.
32394 2004-12-17 Jackson Harper <jackson@ximian.com>
32396 * XplatUIX11.cs: When generating mouse wparams get the modifier
32397 keys from the ModifierKeys property.
32399 2004-12-17 Jackson Harper <jackson@ximian.com>
32401 * X11Keyboard.cs: Send up/down input when generating
32402 messages. Remove some unused vars.
32404 2004-12-17 Jackson Harper <jackson@ximian.com>
32407 * TreeView.cs: get rid of warnings.
32409 2004-12-17 Jackson Harper <jackson@ximian.com>
32411 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32413 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
32415 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32416 CheckedListBox.cs: Implementation
32418 2004-12-17 Peter Bartok <pbartok@novell.com>
32420 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32422 2004-12-16 Peter Bartok <pbartok@novell.com>
32425 - InsertCharAtCaret(): Fixed start pos fixup
32426 - CaretLine_get: No longer derives the line from the tag, the tag
32427 could be stale if lines in the document have been added or deleted
32428 - RebalanceAfterDelete(): Fixed bug in balancing code
32429 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32430 - Line.Streamline(): Now can also elminate leading empty tags
32431 - DumpTree(): Added a few more tests and prevented exception on
32433 - Added Debug section for Combining lines
32434 - Delete(): Now copies all remaining properties of a line
32437 - Left mousebutton now sets the caret (and middle button still acts
32438 as formatting tester, which must go away soon)
32439 - Added Debug section for Deleting/Combining lines
32440 - Fixed calculations for UpdateView after Combining lines
32442 2004-12-16 Peter Bartok <pbartok@novell.com>
32444 * TextControl.cs: Now properly aligns text on a baseline, using the
32445 new XplatUI.GetFontMetrics() method. Simplified several calculations
32446 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32449 2004-12-16 Peter Bartok <pbartok@novell.com>
32451 * XplatUI.cs: Added GetFontMetrics() method
32452 * XplatUIDriver.cs: Added GetFontMetrics() abstract
32453 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32454 into libgdiplus, our private GetFontMetrics function
32455 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32456 * XplatUIWin32.cs: Implemented GetFontMetrics() method
32458 2004-12-16 Jackson Harper <jackson@ximain.com>
32460 * XplatUIStruct.cs: Add enum for dead keys
32461 * X11Keyboard.cs: Map and unmap dead keys.
32463 2004-12-16 Jackson Harper <jackson@ximian.com>
32465 * X11Keyboard.cs: Detect and use the num lock mask.
32467 2004-12-16 Peter Bartok <pbartok@novell.com>
32469 * Control.cs (CreateGraphics): Added check to make sure the
32470 handle of the window exists before calling Graphics.FromHwnd()
32472 2004-12-16 Peter Bartok <pbartok@novell.com>
32474 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32475 contains a lot of code that's not supposed to be there for the
32476 real thing, but required for developing/testing the textbox
32479 2004-12-16 Peter Bartok <pbartok@novell.com>
32482 - Fixed Streamline method
32483 - Added FindTag method to Line
32484 - Added DumpTree method for debugging
32485 - Added DecrementLines() method for deleting lines
32486 - Fixed UpdateView to update the cursor to end-of-line on single-line
32488 - Added PositionCaret() method
32489 - Fixed MoveCaret(LineDown) to move into the last line, too
32490 - Added InsertChar overload
32491 - Fixed InsertChar tag offset calculations
32492 - Added DeleteChar() method
32493 - Added Combine() method for folding lines
32494 - Fixed Delete() method, no longer allocates wasted Line object and
32495 now copies all properties when swapping nodes
32496 - Delete() method now updates document line counter
32498 2004-12-15 Jackson Harper <jackson@ximian.com>
32500 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32501 * X11Keyboard.cs: Expose the currently selected modifier keys
32502 through a property.
32504 2004-12-15 Peter Bartok <pbartok@novell.com>
32506 * TextControl.cs: Initial check-in. Still incomplete
32508 2004-12-15 Jackson Harper <jackson@ximian.com>
32511 * TreeView.cs: Fix build on csc (second time today ;-))
32513 2004-12-15 Jackson Harper <jackson@ximian.com>
32515 * TreeView.cs: Store the treenodes plus/minus box bounds when it
32516 is calculated and use this for click testing.
32517 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32519 2004-12-15 Jackson Harper <jackson@ximian.com>
32521 * TreeView.cs: Pass the nodes image index to the image list when
32522 drawing that image.
32524 2004-12-15 Jackson Harper <jackson@ximian.com>
32526 * X11Keyboard.cs: Set messages hwnd.
32527 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32528 post_message calls.
32530 2004-12-15 Jackson Harper <jackson@ximian.com>
32532 * X11Keyboard.cs: Fix to compile with csc.
32534 2004-12-15 Jackson Harper <jackson@ximian.com>
32536 * X11Structs.cs: Add key mask values
32537 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32538 * X11Keyboard.cs: New file - Extrapolates and interpolates key
32539 down/up foo into WM_CHAR foo
32540 * KeyboardLayouts.cs: Common keyboard layouts
32541 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32542 post messages into the main queue.
32544 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
32546 * Button.cs: implement ProcessMnemonic
32547 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32549 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32550 * ButtonBase.cs: Show HotkeyPrefix (not the &)
32552 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
32554 * MonthCalendar.cs: Implemented click-hold for next/previous month
32557 2004-12-11 Peter Bartok <pbartok@novell.com>
32560 - Added XKeyboardState (moved from XplatUIX11.cs)
32561 - Added XCreateGC related enums and structures
32562 - Added GXFunction for XSetFunction
32564 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32566 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32567 CaretVisible() calls
32569 * ToolTip.cs: Added code to prevent stealing focus from app windows
32571 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32572 DestroyCaret, SetCaretPos and CaretVisible)
32575 - Added implementation for caret functions
32576 - Moved hover variables into a struct, to make it a bit easier
32577 on the eyes and to debug
32578 - Removed XKeyboardState (moved to XplatUIX11.cs)
32579 - Moved Keyboard properties into the properties region
32581 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32582 call to get a graphics context for our control
32584 * XplatUIOSX.cs: Added empty overrides for the new caret functions
32586 * TreeView.cs: Fixed bug. No matter what color was set it would always
32587 return SystemColors.Window
32589 * XplatUIWin32.cs: Implemented caret overrides
32591 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
32593 * ListBox.cs: fire events, implement missing methods and properties,
32596 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
32598 * MonthCalendar.cs: invalidation bug fixing
32599 * ThemeWin32Classic.cs: paint fixing
32601 2004-12-09 Geoff Norton <gnorton@customerdna.com>
32603 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32604 prepare the CGContextRef there now.
32606 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
32608 * MonthCalendar.cs:
32609 - optimisationL only invalidate areas that have changed
32610 * ThemeWin32Classic.cs:
32611 - only paint parts that intersect with clip_area
32613 2004-12-09 Peter Bartok <pbartok@novell.com>
32615 * Application.cs: Undid changes from r37004 which cause problems
32618 2004-12-09 Ravindra <rkumar@novell.com>
32620 * ToolBar.cs: Added support for displaying ContextMenu
32621 attached to a button on ToolBar.
32622 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32625 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32627 * Label.cs: autosize works in text change and removes unnecessary
32630 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
32632 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32635 2004-12-08 Geoff Norton <gnorton@customerdna.com>
32637 * XplatUIOSX.cs: Added mouse move/click/grab support
32638 Remove some debugging WriteLines not needed anymore.
32639 Add window resizing/positioning.
32640 Fix visibility on reparenting.
32642 2004-12-08 Peter Bartok <pbartok@novell.com>
32644 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32646 2004-12-07 Geoff Norton <gnorton@customerdna.com>
32648 * XplatUIOSX.cs: Initial checkin
32649 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32651 2004-12-03 Ravindra <rkumar@novell.com>
32653 * ListView.cs: Added some keybindings and fixed scrolling.
32654 ScrollBars listen to ValueChanged event instead of Scroll
32655 Event. This would let us take care of all changes being
32656 done in the scrollbars' values programmatically or manually.
32657 * ListView.cs (CanMultiselect): Added a check for shift key.
32658 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32659 * ListViewItem.cs (Clone): Fixed. We need to make a copy
32660 of ListViewSubItemCollection as well.
32662 2004-12-06 Peter Bartok <pbartok@novell.com>
32664 * Control.cs (Parent): Added check and exception to prevent
32667 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
32669 * ListBox.cs: implemented clipping, selection single and multiple,
32672 2004-12-03 Ravindra <rkumar@novell.com>
32674 * ListView.cs (ListView_KeyDown):
32675 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32676 when CTRL key is pressed.
32677 * ListViewItem.cs (Selected): Fixed setting the property.
32679 2004-12-03 Marek Safar <marek.safar@seznam.cz>
32681 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32683 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32684 MinimizeBox, ShowInTaskbar, TopMost properties.
32686 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32687 will be implemented).
32689 2004-12-03 Marek Safar <marek.safar@seznam.cz>
32691 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32693 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32696 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32698 * TreeView.cs: BackColor is Colors.Window.
32700 2004-12-01 Jackson Harper <jackson@ximian.com>
32702 * TreeView.cs: When resizing the tree if the user is making it
32703 smaller we don't get expose events, so we need to handle adding
32704 the horizontal scrollbar in the size changed handler as well as
32705 the expose handler.
32707 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
32709 * DrawItemState.cs: fixes wrong enum values
32711 2004-12-01 Jackson Harper <jackson@ximian.com>
32713 * TreeView.cs: Resize the hbar as well as the vbar on resize.
32715 2004-12-01 Jackson Harper <jackson@ximian.com>
32717 * NodeLabelEditEventArgs.cs:
32718 * NodeLabelEditEventHandler.cs:
32719 * OpenTreeNodeEnumerator.cs:
32721 * TreeNodeCollection.cs:
32723 * TreeViewAction.cs:
32724 * TreeViewCancelEventArgs.cs:
32725 * TreeViewCancelEventHandler.cs:
32726 * TreeViewEventArgs.cs:
32727 * TreeViewEventHandler.cs: Initial implementation.
32729 2004-12-01 Ravindra <rkumar@novell.com>
32731 * ListView.cs (CalculateListView): Fixed scrolling related
32732 calculations. Also, removed some debug statements from other
32734 * ListViewItem.cs: Changed access to 'selected' instance variable
32735 from private to internal.
32736 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32738 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
32740 * ThemeWin32Classic.cs: remove cache of brush and pens for
32741 specific controls and use the global system, fixes scrollbutton
32742 bugs (for small sizes, disabled, etc)
32744 * ScrollBar.cs: does not show the thumb for very small controls
32745 (as MS) and allow smaller buttons that the regular size
32747 2004-12-01 Miguel de Icaza <miguel@ximian.com>
32749 * UpDownBase.cs: Add abstract methods for the interface.
32750 Add new virtual methods (need to be hooked up to TextEntry when it
32752 Add override methods for most features.
32753 Computes the size, forces the height of the text entry.
32755 * NumericUpDown.cs: Put here the current testing code.
32757 * Set eol-style property on all files that do not have mixed line
32758 endings, to minimize the future problems. There are still a few
32759 files with mixed endings, and someone should choose whether they
32760 want to move it or not.
32762 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
32764 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32767 2004-11-30 Ravindra <rkumar@novell.com>
32769 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32770 drawing and replaced use of SystemColors by theme colors.
32771 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32772 * ListView.cs (ListViewItemCollection.Add): Throw exception when
32773 same ListViewItem is being added more than once.
32775 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
32777 * MonthCalendar.cs:
32778 - ControlStyles love to make the control not flicker
32780 2004-11-30 Peter Bartok <pbartok@novell.com>
32782 * CharacterCasing.cs: Added
32784 2004-11-29 Peter Bartok <pbartok@novell.com>
32786 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32787 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32788 I am removing these files as they conflict with already completed
32789 work. While it is fantastic to get contributions to MWF, I
32790 respectfully ask that everyone please coordinate their contributions
32791 through mono-winforms-list or #mono-winforms at this time. We're
32792 explicitly avoiding stubbing and don't want controls that don't have
32793 their basic functionality implemented in svn. Please also see
32794 http://www.mono-project.com/contributing/winforms.html
32797 2004-11-29 Marek Safar <marek.safar@seznam.cz>
32799 * Application.cs (ModalRun): Don't hang after exit.
32801 * Theme.cs: New TreeViewDefaultSize property.
32803 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32804 with less hardcoded SystemColors constant.
32805 Implemented TreeViewDefaultSize.
32807 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32808 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32811 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
32813 * MonthCalendar.cs:
32814 - Fix NextMonthDate and PrevMonthDate click moving calendar
32816 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
32818 * MonthCalendar.cs:
32819 - Fix usage of ScrollChange Property when scrolling months
32821 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
32823 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32824 - Fixes menu destroying
32825 - Support adding and removing items on already created menus
32827 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
32829 * MonthCalendar.cs:
32830 - Re-worked all bolded dates handling to match win32
32831 * ThemeWin32Classic.cs:
32832 - Fixed rendering with bolded dates
32834 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
32836 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32837 - Horizontal scroolbar
32842 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
32844 * MonthCalendar.cs:
32845 - Fix Usage of MaxSelectionCount from SelectionRange
32846 - Fixed Shift + Cursor Selection
32847 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32848 - Fixed normal cursor selection to be compat with win32
32849 - Fixed Shift + Mouse Click selection
32851 2004-11-24 Peter Bartok <pbartok@novell.com>
32853 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32854 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32856 - CreatedKeyBoardMsg now updates keystate with Alt key
32857 - Added workaround for timer crash to CheckTimers, Jackson will
32858 develop a proper fix and check in later
32859 - Implemented DispatchMessage
32860 - Removed calling the native window proc from GetMessage (call
32861 now moved to DispatchMessage)
32863 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32864 the keydata (Fixes bug #69831)
32867 - (DispatchMessage): Switched to return IntPtr
32868 - Added DllImport for SetFocus
32870 2004-11-24 Ravindra <rkumar@novell.com>
32872 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32873 background drawing.
32874 * ListViewItem.cs: Fixed various properties, calculations
32875 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32876 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32877 and some internal properties. Fixed MouseDown handler and Paint
32880 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32882 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32884 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32886 * ContainerControl.cs: correct accidental check in of local changes
32888 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
32890 * ThemeWin32Classic.cs:
32891 - Fixed Drawing Last month in grid (sometimes not showing)
32892 * MonthCalendar.cs:
32893 - Fixed title width calculation bug (makeing title small)
32895 2004-11-23 Peter Bartok <pbartok@novell.com>
32898 - Added generation of WM_MOUSEHOVER event
32899 - Added missing assignment of async_method atom
32900 - Fixed WM_ERASEBKGND; now only redraws the exposed area
32902 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
32904 * ThemeWin32Classic.cs:
32905 - Fixed Drawing of today circle when showtodaycircle not set
32906 - fixed drawing of first and last month in the grid (gay dates)
32907 * MonthCalendar.cs:
32908 - Fixed Drawing of today circle
32909 - Fixed drawing of grady dates
32910 - Fixed HitTest for today link when ShowToday set to false
32911 - Fixed DefaultSize to obey ShowToday
32913 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
32915 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
32916 * System.Windows.Forms/Theme.cs
32917 * MonthCalendar.cs: added for MonthCalendar
32918 * SelectionRange.cs: added for MonthCalendar
32919 * Day.cs: added for MonthCalendar: added for MonthCalendar
32920 * DateRangeEventArgs.cs: added for MonthCalendar
32921 * DateRangeEventHandler.cs: added for MonthCalendar
32923 2004-11-22 Ravindra <rkumar@novell.com>
32925 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
32928 2004-11-22 Miguel de Icaza <miguel@ximian.com>
32930 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
32933 * NumericUpDown.cs: Added new implementation.
32934 * UpDownBase.cs: Added new implementation.
32936 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
32939 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
32942 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
32945 2004-11-21 Miguel de Icaza <miguel@ximian.com>
32947 * Timer.cs (Dispose): Should call the base dispose when
32950 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
32952 * ScrollBar.cs: updates thumb position when max, min or increment
32955 2004-11-21 Ravindra <rkumar@novell.com>
32957 * ListView.cs: Implemented item selection, activation and
32958 column header style. Fixed properties to do a redraw, if
32959 required. Added support for MouseHover, DoubleClick, KeyDown
32960 and KeyUp event handling and some minor fixes.
32961 * ListViewItem.cs: Fixed constructor.
32962 * ThemeWin32Classic.cs: Improved drawing for ListView.
32964 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
32966 * ThemeWin32Classic.cs: initial listbox drawing code
32967 * DrawMode.cs: new enumerator
32968 * ListControl.cs: stubbed class
32969 * ListBox.cs: initial implementation
32970 * Theme.cs: new methods definitions
32971 * SelectionMode.cs: new enumerator
32973 2004-11-17 Peter Bartok <pbartok@novell.com>
32975 * XplatUIWin32.cs: Added double-click events to the class style
32976 * Control.cs (WndProc):
32977 - Added handling of click-count to MouseDown/ MouseUp events.
32978 - Added handling of middle and right mouse buttons
32979 - Removed old debug code
32981 2004-11-17 Jackson Harper <jackson@ximian.com>
32983 * XplatUIX11.cs: Use the new Mono.Unix namespace.
32985 2004-11-17 Ravindra <rkumar@novell.com>
32987 * ListView.cs: Added event handling for MouseMove/Up/Down.
32988 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32989 * ThemeWin32Classic.cs: We need to clear the graphics context and
32990 draw column header in a proper state.
32993 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
32995 * Menu.cs: fixes signature
32997 2004-11-16 Peter Bartok <pbartok@novell.com>
32999 * XplatUIX11.cs (GetMessage): Implemented generation of
33000 double click mouse messages
33002 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
33004 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33007 2004-11-11 Peter Bartok <pbartok@novell.com>
33009 * HandleData.cs: Added Visible property
33010 * XplatUIX11.cs (IsVisible): Now uses Visible property from
33012 * XplatUIX11.cs: Removed old debug leftovers
33013 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33014 * Control.cs (WndProc): Removed old debug leftovers,
33015 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33016 needed WM_SIZE handling
33018 2004-11-11 Jackson Harper <jackson@ximian.com>
33020 * OwnerDrawPropertyBag.cs:
33021 * TreeViewImageIndexConverter.cs: Initial implementation
33023 2004-11-10 Jackson Harper <jackson@ximian.com>
33025 * ThemeWin32Classic.cs:
33026 * TabControl.cs: instead of moving tabs by the slider pos just
33027 start drawing at the tab that is offset by the slider. This way
33028 scrolling always moves by exactly one tab.
33030 2004-11-10 Jackson Harper <jackson@ximian.com>
33032 * TabControl.cs: You can only scroll left when the slider has
33033 already ben moved right.
33035 2004-11-10 Jackson Harper <jackson@ximian.com>
33037 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
33040 2004-11-10 Jackson Harper <jackson@ximian.com>
33042 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
33045 2004-11-09 Jackson Harper <jackson@ximian.com>
33047 * TabControl.cs (CalcXPos): New helper method so we can determine
33048 the proper place to start drawing vertical tabs.
33049 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33051 2004-11-09 Jackson Harper <jackson@ximian.com>
33053 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33054 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33055 and Bottom, left and right are illegal values for this and
33056 multiline is enabled when the alignment is set to left or right.
33057 (DrawTab): Each alignment block should draw the text itself now
33058 because Left requires special love. Also add rendering for Left
33061 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
33063 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33064 does not destroy the windows, removes debugging messages
33066 2004-11-09 jba <jba-mono@optusnet.com.au>
33068 * ThemeWin32Classic.cs
33069 (DrawButtonBase): Fix verticle text rect clipping in windows
33070 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33071 rendering and incorrect text rect clipping
33072 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33073 rendering and incorrect text rect clipping
33075 2004-11-08 Jackson Harper <jackson@ximian.com>
33077 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33078 bottom when they are bottom aligned so the bottoms of the tabs get
33080 * TabControl.cs (DropRow): Move rows up instead of down when the
33081 tab control is bottom aligned.
33083 2004-11-08 13:59 pbartok
33086 - Added handling for various window styles
33087 - Added handling for popup windows
33088 - Added SetTopmost handling
33090 2004-11-08 13:55 pbartok
33093 - Added argument to SetTopmost method
33094 - Fixed broken ClientToScreen function
33096 2004-11-08 13:53 pbartok
33098 * XplatUIStructs.cs:
33099 - Added missing WS_EX styles
33101 2004-11-08 13:53 pbartok
33103 * XplatUI.cs, XplatUIDriver.cs:
33104 - Added argument to SetTopmost
33106 2004-11-08 13:52 pbartok
33109 - Added XSetWindowAttributes structure
33110 - Improved XWindowAttributes structure
33111 - Added SetWindowValuemask enum
33112 - Added window creation arguments enum
33113 - Added gravity enum
33114 - Added Motif hints structure
33115 - Added various Motif flags and enums
33116 - Added PropertyMode enum for property functions
33118 2004-11-08 13:50 pbartok
33121 - Fixed arguments for updated SetTopmost method
33123 2004-11-08 13:49 pbartok
33126 - Fixed arguments for updated SetTopmost function
33127 - Fixed usage of PointToClient
33129 2004-11-08 13:44 pbartok
33132 - Added Clipping of children and siblings
33134 2004-11-08 13:41 pbartok
33137 - Removed SetMenuBarWindow call. We do this in Form.cs
33139 2004-11-08 13:40 jackson
33141 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33142 scrolling jimmi in the correct location with bottom aligned tabs
33144 2004-11-08 13:36 pbartok
33146 * ContainerControl.cs:
33147 - Implemented BindingContext
33148 - Implemented ParentForm
33150 2004-11-08 12:46 jackson
33152 * TabControl.cs: Put bottom rendered tabs in the right location
33154 2004-11-08 07:15 jordi
33156 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33159 2004-11-05 17:30 jackson
33161 * TabControl.cs: When selected tabs are expanded make sure they
33162 don't go beyond the edges of the tab control
33164 2004-11-05 14:57 jackson
33166 * TabControl.cs: Reset show_slider so if the control is resized to
33167 a size where it is no longer needed it's not displayed anymore
33169 2004-11-05 13:16 jackson
33171 * TabControl.cs: Make tab pages non visible when added to the
33174 2004-11-05 12:42 jackson
33176 * TabControl.cs: Implement SizeMode.FillToRight
33178 2004-11-05 12:16 jackson
33180 * Control.cs: Do not call CreateHandle if the handle is already
33183 2004-11-05 11:46 jackson
33185 * TabControl.cs: Remove superflous call to CalcTabRows
33187 2004-11-05 09:07 jackson
33189 * XplatUIX11.cs: Update for Mono.Posix changes
33191 2004-11-05 07:00 ravindra
33193 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33196 2004-11-04 22:47 jba
33198 * ThemeWin32Classic.cs:
33199 - Fix Button rendering for FlatStyle = Flat or Popup
33200 - Fix RadioButton and CheckBox rendering when Appearance = Button
33201 (normal and flatstyle).
33202 - Correct outer rectangle color when drawing focus rectangle
33203 - Adjust button bounds to be 1 px smaller when focused
33204 - Make button not draw sunken 3d border when pushed (windows compat)
33205 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33206 - Offset the text in RadioButton and Checkbox when being rendered as
33208 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33210 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33211 - Fixed disabled text rendering for normally rendered radiobuttons
33213 2004-11-04 10:26 jackson
33215 * TabControl.cs: Recalculate tab rows when resizing
33217 2004-11-04 07:47 jordi
33219 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33220 collection completion, drawing issues, missing features
33222 2004-11-04 05:03 ravindra
33225 - We need to recalculate the Thumb area when
33226 LargeChange/maximum/minimum values are changed.
33227 - We set the 'pos' in UpdatePos() method to minimum, if it's less
33228 than minimum. This is required to handle the case if large_change is
33229 more than max, and use LargeChange property instead of large_change
33231 - We return max+1 when large_change is more than max, like MS does.
33233 2004-11-04 04:29 ravindra
33235 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33236 - Changed default value signatures (prefixed all with ListView).
33237 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33239 - Fixed calculations for ListViewItem and implemented Clone()
33242 2004-11-04 04:26 ravindra
33244 * Theme.cs, ThemeWin32Classic.cs:
33245 - Changed default ListView values signatures (prefixed all with
33247 - Fixed default size values for VScrollBar and HScrollBar.
33248 - Fixed DrawListViewItem method.
33250 2004-11-04 04:05 ravindra
33252 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33254 2004-11-04 04:04 ravindra
33256 * ImageList.cs: Implemented the missing overload for Draw method.
33258 2004-11-03 19:29 jackson
33260 * TabControl.cs: Handle dropping rows on selection properly
33262 2004-11-03 11:59 jackson
33264 * TabControl.cs: remove debug code
33266 2004-11-03 11:52 jackson
33268 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33269 the scrolly widgerywoo
33271 2004-11-02 13:52 jackson
33273 * TabControl.cs: Resize the tab pages and tabs when the tab control
33276 2004-11-02 13:40 jackson
33278 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33279 selected tab to the bottom
33281 2004-11-02 13:39 jackson
33283 * TabPage.cs: Store the tab pages row
33285 2004-11-02 12:33 jordi
33287 * MenuItem.cs: fixes handle creation
33289 2004-11-02 11:42 jackson
33291 * TabControl.cs: signature fix
33293 2004-11-02 08:56 jackson
33295 * TabControl.cs: Calculate whether the tab is on an edge properly.
33296 Remove top secret debugging code
33298 2004-11-01 19:57 jackson
33300 * TabControl.cs: Add click handling, and proper sizing
33302 2004-11-01 19:47 jackson
33304 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33307 2004-11-01 19:39 jackson
33309 * TabPage.cs: add internal property to store the bounds of a tab
33312 2004-10-30 04:23 ravindra
33314 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33317 2004-10-30 04:21 ravindra
33319 * ListView.cs, ListViewItem.cs: Added support for scrolling and
33320 fixed calculations.
33322 2004-10-30 03:06 pbartok
33325 - Removed extension of DllImported libs
33327 2004-10-29 09:55 jordi
33329 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33330 navigation, itemcollection completion, menu fixes
33332 2004-10-27 22:58 pbartok
33335 - Now throws a nice error message when no X display could be opened
33337 2004-10-26 13:51 jordi
33339 * ListView.cs: removes warning
33341 2004-10-26 03:55 ravindra
33343 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33344 ThemeWin32Classic.cs: Some formatting for my last checkins.
33346 2004-10-26 03:36 ravindra
33348 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33349 control and default values.
33351 2004-10-26 03:35 ravindra
33353 * Theme.cs: Added some default values for ListView control.
33355 2004-10-26 03:33 ravindra
33357 * ToolBar.cs: ToolBar should use the user specified button size, if
33358 there is any. Added a size_specified flag for the same.
33360 2004-10-26 03:33 ravindra
33362 * ColumnHeader.cs: Added some internal members and calculations for
33365 2004-10-26 03:32 ravindra
33367 * ListViewItem.cs: Calculations for ListViewItem.
33369 2004-10-26 03:31 ravindra
33371 * ListView.cs: Added some internal members and calculations for
33374 2004-10-22 13:31 jordi
33376 * MenuAPI.cs: speedup menus drawing
33378 2004-10-22 13:16 jackson
33380 * XplatUIX11.cs: Make sure to update exposed regions when adding an
33383 2004-10-22 11:49 jackson
33387 2004-10-22 11:41 jackson
33389 * Control.cs: Check to see if the window should have its background
33390 repainted by X when drawing.
33392 2004-10-22 11:31 jackson
33394 * XplatUIX11.cs: When invalidating areas only use XClearArea if
33395 clear is true, this way we do not get flicker from X repainting the
33398 2004-10-22 11:28 jackson
33400 * XEventQueue.cs: Queue properly
33402 2004-10-21 09:38 jackson
33404 * XEventQueue.cs: Fix access modifier
33406 2004-10-21 09:36 jackson
33408 * XEventQueue.cs: Don't loose messages
33410 2004-10-21 09:22 jackson
33412 * XEventQueue.cs: Don't loose messages
33414 2004-10-20 04:15 jordi
33416 * BootMode.cs: enum need it by SystemInfo
33418 2004-10-19 21:58 pbartok
33421 - Small sanity check
33423 2004-10-19 21:56 pbartok
33426 - Added private FormParentWindow class which acts as the container
33427 for our form and as the non-client area where menus are drawn
33428 - Added/Moved required tie-ins to Jordi's menus
33429 - Fixed/Implemented the FormStartPosition functionality
33431 2004-10-19 21:52 pbartok
33434 - Removed unneeded locals
33435 - Added code to all size and location properties to understand and
33436 deal with the parent container of Form
33438 2004-10-19 21:33 pbartok
33441 - Fixed to deal with new Form subclasses for menus
33443 2004-10-19 17:48 jackson
33445 * XEventQueue.cs: commit correct version of file
33447 2004-10-19 16:50 jackson
33449 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33451 2004-10-19 16:15 jordi
33453 * MenuAPI.cs: MenuBarCalcSize returns the height
33455 2004-10-19 08:31 pbartok
33458 - Added missing call to PreProcessMessage before calling OnXXXKey
33461 2004-10-19 00:04 ravindra
33463 * ToolTip.cs: Fixed constructor.
33465 2004-10-18 09:31 jordi
33467 * MenuAPI.cs: menuitems in menubars do not have shortcuts
33469 2004-10-18 09:26 jordi
33471 * MenuItem.cs: fixes MenuItem class signature
33473 2004-10-18 08:56 jordi
33475 * MenuAPI.cs: prevents windows from showing in the taskbar
33477 2004-10-18 00:28 ravindra
33479 * ToolTip.cs: Suppressed a warning message.
33481 2004-10-18 00:27 ravindra
33483 * Control.cs: Default value of visible property must be true.
33485 2004-10-17 23:19 pbartok
33488 - Complete implementation
33490 2004-10-17 23:19 pbartok
33493 - Added EnableWindow method
33494 - Added SetModal stub
33495 - Added generation of WM_ACTIVATE message (still needs testing)
33496 - Added SetTopMost stub
33497 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33499 2004-10-17 23:17 pbartok
33502 - Removed VirtualKeys to XplatUIStructs
33503 - Implemented SetTopMost method
33504 - Implemented EnableWindow method
33505 - Bugfix in ScreenToClient()
33506 - Bugfixes in ClientToScreen()
33508 2004-10-17 22:51 pbartok
33510 * XplatUIStructs.cs:
33511 - Added WS_EX styles to WindowStyles enumeration
33513 2004-10-17 22:50 pbartok
33515 * XplatUI.cs, XplatUIDriver.cs:
33516 - Added method for enabling/disabling windows
33517 - Added method for setting window modality
33518 - Added method for setting topmost window
33520 2004-10-17 22:49 pbartok
33522 * ThemeWin32Classic.cs:
33523 - Added ToolTip drawing code
33525 2004-10-17 22:49 pbartok
33528 - Added ToolTip abstracts
33530 2004-10-17 22:47 pbartok
33533 - Fixed Form.ControlCollection to handle owner relations
33534 - Added Owner/OwnedForms handling
33535 - Implemented Z-Ordering for owned forms
33536 - Removed unneeded private overload of ShowDialog
33537 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33539 - Fixed Close(), had wrong default
33540 - Added firing of OnLoad event
33541 - Added some commented out debug code for Ownership handling
33543 2004-10-17 22:16 pbartok
33546 - Fixed/implemented flat list of controls
33548 2004-10-17 22:14 pbartok
33551 - Added code to simulate modal dialogs on Win32
33553 2004-10-17 16:11 jordi
33555 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33558 2004-10-17 13:39 jordi
33560 * MenuAPI.cs: menu drawing fixes
33562 2004-10-15 09:10 ravindra
33564 * StructFormat.cs: General Enum.
33566 2004-10-15 09:09 ravindra
33568 * SizeGripStyle.cs: Enum for Form.
33570 2004-10-15 09:08 ravindra
33572 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33573 in Theme for ListView.
33575 2004-10-15 09:06 ravindra
33577 * ColumnHeader.cs: Flushing some formatting changes.
33579 2004-10-15 09:05 ravindra
33581 * ListViewItem.cs: Implemented GetBounds method and fixed coding
33584 2004-10-15 09:03 ravindra
33586 * ListView.cs: Implemented Paint method and fixed coding style.
33588 2004-10-15 07:34 jordi
33590 * MenuAPI.cs: fix for X11
33592 2004-10-15 07:32 ravindra
33594 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33595 - Renamed Paint() method to Draw() for clarity. Also, moved
33596 DrawImage() to OnPaint().
33598 2004-10-15 07:25 ravindra
33600 * CheckBox.cs, RadioButton.cs:
33601 - Removed Redraw (), we get it from ButtonBase.
33602 - Implemented Paint (), to do class specific painting.
33604 2004-10-15 07:16 ravindra
33607 - Redraw () is not virtual now.
33608 - Added an internal virtual method Paint (), so that
33609 derived classes can do their painting on their own.
33610 - Modified OnPaint () to call Paint ().
33612 2004-10-15 06:43 jordi
33614 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33615 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33617 2004-10-15 00:30 ravindra
33620 - MessageBox on windows does not have min/max buttons.
33621 This change in CreateParams fixes this on Windows. We
33622 still need to implement this windowstyle behavior in
33625 2004-10-14 05:14 ravindra
33628 - Changed Redraw () to do a Refresh () always.
33629 - Fixed the MouseMove event handling when mouse is pressed,
33630 ie drag event handling.
33631 - Replaced the usage of ToolBarButton.Pressed property to
33632 ToolBarButton.pressed internal variable.
33634 2004-10-14 05:10 ravindra
33636 * ToolBarButton.cs:
33637 - Added an internal member 'inside' to handle mouse move
33638 with mouse pressed ie mouse drag event.
33639 - Changed 'Pressed' property to return true only when
33640 'inside' and 'pressed' are both true.
33641 - Some coding style love.
33643 2004-10-14 00:17 ravindra
33645 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33648 2004-10-14 00:15 ravindra
33650 * ButtonBase.cs: Redraw () related improvements.
33652 2004-10-14 00:14 ravindra
33654 * MessageBox.cs: Moved InitFormSize () out of Paint method and
33655 removed unnecessary calls to Button.Show () method.
33657 2004-10-13 17:50 pbartok
33661 - Removed destroying of window until we solve the problem of X
33662 destroying the window before us on shutdown
33664 2004-10-13 16:32 pbartok
33667 - Now Redraws on MouseUp for FlatStyle Flat and Popup
33669 2004-10-13 14:18 pbartok
33672 - Added code to destroy the X window
33674 2004-10-13 14:18 pbartok
33677 - Added code to destroy a window
33679 2004-10-13 14:12 pbartok
33682 - Added the Redraw on Resize that got dropped in the last rev
33684 2004-10-13 09:06 pbartok
33686 * ThemeWin32Classic.cs:
33687 - Path from John BouAntoun:
33688 * Fix check rendering (centre correctly for normal style, offset
33689 correctly for FlatStyle).
33690 * Fix border color usage (use backcolor) for FlatStyle.Popup
33691 * Use checkbox.Capture instead of checkbox.is_pressed when
33692 rendering flatstyle states.
33694 2004-10-12 21:48 pbartok
33696 * ThemeWin32Classic.cs:
33697 - Removed all occurences of SystemColors and replaced them with the
33698 matching theme color
33700 2004-10-12 21:41 pbartok
33702 * ThemeWin32Classic.cs:
33703 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33704 him using the function for flatstyle drawing
33705 - Changed functions to use the new version of CPDrawBorder3D
33707 2004-10-12 21:15 pbartok
33710 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33711 match MS documentation. They need to return defined colors if the
33712 passed color matches the configured control color. Thanks to John
33713 BouAntoun for pointing this out.
33715 2004-10-12 20:57 pbartok
33718 - Fix from John BouAntoun: Raise ForeColorChanged event when text
33721 2004-10-12 20:46 pbartok
33724 - Fix from John BouAntoun: Now properly sets the Appearance property
33726 2004-10-12 20:45 pbartok
33728 * ThemeWin32Classic.cs:
33729 - Fixes from John BouAntoun: now handles forecolors and backcolors
33730 for flatstyle rendered controls much better; It also fixes normal
33731 checkbox rendering when pushed or disabled.
33733 2004-10-08 02:50 jordi
33735 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33738 2004-10-07 08:56 jordi
33740 * ThemeWin32Classic.cs: Removes deletion of cached brushes
33742 2004-10-06 03:59 jordi
33744 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33745 XplatUIWin32.cs: removes warnings from compilation
33747 2004-10-05 12:23 jackson
33749 * RadioButton.cs: Fix ctor
33751 2004-10-05 11:10 pbartok
33754 - Partial implementation by Benjamin Dasnois
33756 2004-10-05 10:15 jackson
33758 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33761 2004-10-05 03:07 ravindra
33764 - Removed a private method, Draw ().
33765 - Fixed the ButtonDropDown event handling.
33766 - Fixed MouseMove event handling.
33768 2004-10-05 03:04 ravindra
33770 * ThemeWin32Classic.cs:
33771 - Added DrawListView method and ListViewDefaultSize property.
33772 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33773 - Changed DOS style CRLF to Unix format (dos2unix).
33775 2004-10-05 03:03 ravindra
33778 - Added DrawListView method and ListViewDefaultSize property.
33780 2004-10-05 02:42 ravindra
33782 * ToolBarButton.cs: Added an internal member dd_pressed to handle
33783 clicks on DropDown arrow.
33785 2004-10-04 22:56 jackson
33787 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33788 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33789 Control handle the buffers, derived classes should not have to
33790 CreateBuffers themselves.
33792 2004-10-04 21:20 jackson
33794 * StatusBar.cs: The control handles resizing the buffers now.
33796 2004-10-04 21:18 jackson
33798 * Control.cs: When resizing the buffers should be invalidated. This
33799 should be handled in Control not in derived classes.
33801 2004-10-04 14:45 jackson
33805 2004-10-04 02:14 pbartok
33807 * LeftRightAlignment.cs:
33810 2004-10-04 01:09 jordi
33812 * ThemeWin32Classic.cs: fixes right button position causing right
33813 button not showing on horizontal scrollbars
33815 2004-10-02 13:12 pbartok
33818 - Simplified the Invalidate method by using an X call instead of
33819 generating the expose ourselves
33820 - Added an expose when the window background is changed
33821 - Implemented ClientToScreen method
33823 2004-10-02 13:08 pbartok
33826 - Added Win32EnableWindow method (test for implementing modal
33828 - Added ClientToScreen method and imports
33830 2004-10-02 13:07 pbartok
33832 * XplatUI.cs, XplatUIDriver.cs:
33833 - Added ClientToScreen coordinate translation method
33835 2004-10-02 13:06 pbartok
33837 * KeyPressEventArgs.cs:
33838 - Fixed access level for constructor
33840 2004-10-02 13:06 pbartok
33843 - Changed access level for the window_collection hash table
33845 2004-10-02 13:05 pbartok
33848 - Added KeyPreview property
33849 - Added Menu property (still incomplete, pending Jordi's menu work)
33850 - Implemented ProcessCmdKey
33851 - Implemented ProcessDialogKey
33852 - Implemented ProcessKeyPreview
33854 2004-10-02 13:02 pbartok
33857 - Added private method to get the Control object from the window
33859 - Implemented ContextMenu property
33860 - Implemented PointToScreen
33861 - Implemented PreProcessMessage
33862 - Implemented IsInputChar
33863 - Implemented IsInputKey
33864 - Implemented ProcessCmdKey
33865 - Completed ProcessKeyEventArgs
33866 - Fixed message loop to call the proper chain of functions on key
33868 - Implemented ProcessDialogChar
33869 - Implemented ProcessDialogKey
33870 - Implemented ProcessKeyMessage
33871 - Implemented ProcessKeyPreview
33872 - Added RaiseDragEvent stub (MS internal method)
33873 - Added RaiseKeyEvent stub (MS internal method)
33874 - Added RaiseMouseEvent stub (MS Internal method)
33875 - Added RaisePaintEvent stub (MS Internal method)
33876 - Added ResetMouseEventArgs stub (MS Internal method)
33877 - Implemented RtlTranslateAlignment
33878 - Implemented RtlTranslateContent
33879 - Implemented RtlTranslateHorizontal
33880 - Implemented RtlTranslateLeftRight
33881 - Added generation of KeyPress event
33883 2004-10-02 05:57 ravindra
33885 * ListViewItem.cs: Added attributes.
33887 2004-10-02 05:32 ravindra
33889 * ListView.cs: Added attributes.
33891 2004-10-01 11:53 jackson
33893 * Form.cs: Implement the Close method so work on MessageBox can
33896 2004-09-30 14:06 pbartok
33901 2004-09-30 11:34 jackson
33903 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33905 2004-09-30 07:26 ravindra
33907 * ListViewItemConverter.cs: Converter for ListViewItem.
33909 2004-09-30 07:26 ravindra
33911 * SortOrder.cs: Enum for ListView control.
33913 2004-09-30 07:25 ravindra
33915 * ColumnHeader.cs: Supporting class for ListView control.
33917 2004-09-30 07:24 ravindra
33919 * ListView.cs, ListViewItem.cs: Initial implementation.
33921 2004-09-30 07:20 ravindra
33923 * ItemActivation.cs: Enum for ListView Control.
33925 2004-09-29 20:29 pbartok
33928 - Added lookup of pixel value for background color; tries to get a
33929 color 'close' to the requested color, it avoids having to create a
33930 colormap. Depending on the display this could mean the used color
33931 is slightly off the desired color. Might have to change it to a more
33932 resource intensive colormap approach, but it will work as a
33933 workaround to avoid red screens.
33935 2004-09-29 14:27 jackson
33937 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
33939 2004-09-28 12:44 pbartok
33941 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
33942 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
33943 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
33944 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
33945 TrackBar.cs, VScrollBar.cs:
33946 - Streamlined Theme interfaces:
33947 * Each DrawXXX method for a control now is passed the object for
33948 the control to be drawn in order to allow accessing any state the
33949 theme might require
33951 * ControlPaint methods for the theme now have a CP prefix to avoid
33952 name clashes with the Draw methods for controls
33954 * Every control now retrieves it's DefaultSize from the current
33957 2004-09-28 12:17 jackson
33959 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
33962 2004-09-24 14:57 jackson
33964 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
33965 Gives us a nice little performance boost.
33967 2004-09-24 12:02 jackson
33969 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
33970 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
33971 Control and supporting classes. Initial checkin
33973 2004-09-23 13:08 jackson
33975 * Form.cs: Temp build fixage
33977 2004-09-23 01:39 ravindra
33979 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
33980 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33981 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33982 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33983 EventHandlers needed by ListView Control.
33985 2004-09-22 14:12 pbartok
33987 * ScrollableControl.cs:
33988 - Implemented DockPadding property
33989 - Implemented AutoScroll property
33990 - Implemented AutoScrollMargin property
33991 - Implemented AutoScrollMinSize property
33992 - Implemented AutoScrollPosition property
33993 - Implemented DisplayRectangle property (still incomplete)
33994 - Implemented CreateParams property
33995 - Implemented HScroll property
33996 - Implemented VScroll property
33997 - Implemented OnVisibleChanged property
33999 2004-09-22 14:09 pbartok
34002 - Added Form.ControllCollection class
34003 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34004 RemoveOwnedForm (still incomplete, missing on-top and common
34005 minimize/maximize behaviour)
34006 - Added StartPosition property (still incomplete, does not use when
34008 - Added ShowDialog() methods (still incomplete, missing forcing the
34011 2004-09-22 14:05 pbartok
34014 - Added message loop for modal dialogs
34016 2004-09-22 14:02 pbartok
34019 - Fixed wrong types for events
34021 2004-09-22 14:00 pbartok
34023 * Shortcut.cs, FormWindowState.cs:
34024 - Fixed wrong values
34026 2004-09-22 12:01 jackson
34028 * Control.cs: Text is never null
34030 2004-09-20 22:14 pbartok
34033 - Fixed accessibility level for Idle handler
34035 2004-09-20 18:54 jackson
34037 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34038 XplatUIX11.cs: New message loop that uses poll so we don't get a
34041 2004-09-17 10:43 pbartok
34044 - Fixed behaviour of arrow buttons. Now properly behaves like
34045 Buttons (and like Microsoft's scrollbar arrow buttons)
34047 2004-09-17 10:14 pbartok
34050 - Added missing release of keyboard/mouse capture
34052 2004-09-17 06:18 jordi
34054 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34055 Theme.cs: Very early menu support
34057 2004-09-16 17:45 pbartok
34060 - Fixed sending a window to the front
34061 - Added overload for SetWindowPos to avoid casting
34063 2004-09-16 17:44 pbartok
34066 - Added SendToBack and BringToFront methods
34068 2004-09-16 07:00 ravindra
34070 * Copyright: Added Novell URL.
34072 2004-09-16 07:00 ravindra
34074 * ToolBar.cs: Invalidate should be done before redrawing.
34076 2004-09-15 21:19 ravindra
34078 * ColumnHeaderStyle.cs: Enum for ListView Control.
34080 2004-09-15 21:18 ravindra
34082 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34085 2004-09-13 18:26 jackson
34087 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34090 2004-09-13 18:13 jackson
34092 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34093 a second thread and post messages into the main threads message
34094 queue. This makes timing much more consistent. Both win2K and XP
34095 have a minimum timer value of 15 milliseconds, so we now do this
34098 2004-09-13 15:18 pbartok
34100 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34102 - Added Z-Ordering methods
34104 2004-09-13 10:56 pbartok
34107 - Fixed #region names
34108 - Moved properties and methods into their proper #regions
34110 2004-09-13 10:51 pbartok
34113 - Added Accept and CancelButton properties
34114 - Added ProcessDialogKey() method
34116 2004-09-13 08:18 pbartok
34118 * IWindowTarget.cs:
34121 2004-09-10 21:50 pbartok
34124 - Added DoDragDrop() [incomplete]
34125 - Properly implemented 'Visible' handling
34126 - Added SetVisibleCore()
34127 - Implemented FindChildAtPoint()
34128 - Implemented GetContainerControl()
34129 - Implemented Hide()
34131 2004-09-10 19:28 pbartok
34134 - Moved methods into their appropriate #regions
34135 - Reordered methods within regions alphabetically
34137 2004-09-10 18:57 pbartok
34139 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34140 - Added method to retrieve text from window
34142 2004-09-10 18:56 pbartok
34145 - Moved some internal functions into the internal region
34146 - Implemented FontHeight
34147 - Implemented RenderRightToLeft
34148 - Implemented ResizeRedraw
34149 - Implemented ShowFocusCues
34150 - Implemented ShowKeyboardCues
34151 - Implemented FromChildHandle
34152 - Implemented FromHandle
34153 - Implemented IsMnemonic
34154 - Implemented ReflectMessage
34155 - All public and protected Static Methods are now complete
34157 2004-09-10 16:54 pbartok
34160 - Implemented remaining missing public instance properties
34161 - Alphabetized some out of order properties
34163 2004-09-10 05:51 ravindra
34165 * PictureBox.cs: Added a check for null image.
34167 2004-09-10 00:59 jordi
34169 * GroupBox.cs: remove cvs tag
34171 2004-09-09 05:25 ravindra
34173 * ToolBar.cs: Make redraw accessible from ToolBarButton.
34175 2004-09-09 05:23 ravindra
34177 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34180 2004-09-09 02:28 pbartok
34182 * ThemeWin32Classic.cs:
34183 - Improve disabled string look
34185 2004-09-09 01:15 jordi
34187 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34190 2004-09-08 23:56 ravindra
34192 * ItemBoundsPortion.cs: It's enum, not a class!
34194 2004-09-08 23:47 ravindra
34196 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34199 2004-09-08 21:13 ravindra
34201 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34204 2004-09-08 21:03 ravindra
34206 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34209 2004-09-08 21:01 ravindra
34211 * ScrollableControl.cs: Removed unreachable code.
34213 2004-09-08 06:45 jordi
34215 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34217 2004-09-08 01:00 jackson
34219 * XplatUIX11.cs: Only run the timers when updating the message
34220 queue. This effectively gives X messages a higher priority then
34221 timer messages. Timers still need love though
34223 2004-09-07 14:01 jackson
34225 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34226 this for us and the handle is no longer valid.
34228 2004-09-07 13:59 jackson
34230 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34231 loop that manages to not crash. TODO: Add poll and cleanup timers
34233 2004-09-07 11:12 jordi
34235 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34237 2004-09-07 03:40 jordi
34239 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34240 fixes, methods, multiple links
34242 2004-09-06 06:55 jordi
34244 * Control.cs: Caches ClientRectangle rectangle value
34246 2004-09-05 02:03 jordi
34248 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34251 2004-09-04 11:10 jordi
34253 * Label.cs: Refresh when font changed
34255 2004-09-02 16:24 pbartok
34258 - Added sanity check to creation of double buffer bitmap
34260 2004-09-02 16:24 pbartok
34263 - Fixed selection of text color
34264 - Fixed handling of resize event; now properly recreates double
34266 - Added missing assignment of TextAlignment
34267 - Added proper default for TextAlignment
34269 2004-09-02 14:26 pbartok
34272 - Added missing RadioButton.RadioButtonAccessibleObject class
34274 2004-09-02 14:26 pbartok
34277 - Added missing Control.ControlAccessibleObject class
34278 - Started to implement Select()ion mechanisms, still very incomplete
34280 2004-09-02 14:25 pbartok
34282 * AccessibleObject.cs:
34283 - Added missing methods
34285 2004-09-02 14:23 pbartok
34287 * AccessibleNavigation.cs, AccessibleSelection.cs:
34290 2004-09-02 10:32 jordi
34292 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34293 pool for pens, brushes, and hatchbruses
34295 2004-09-01 15:30 jackson
34297 * StatusBar.cs: Fix typo
34299 2004-09-01 14:44 pbartok
34304 2004-09-01 14:39 pbartok
34306 * Button.cs, RadioButton.cs:
34307 - Functional initial check-in
34309 2004-09-01 14:01 pbartok
34312 - Added missing default
34313 - Added missing region mark
34315 2004-09-01 09:10 jordi
34317 * Label.cs: fixes method signatures, new methods, events, fixes
34320 2004-09-01 07:19 jordi
34322 * Control.cs: Init string variables with an empty object
34324 2004-09-01 04:20 jordi
34326 * Control.cs: fires OnFontChanged event
34328 2004-08-31 20:07 pbartok
34331 - Enabled display of strings
34333 2004-08-31 20:05 pbartok
34336 - Added (partial) implementation of DialogResult; rest needs to be
34337 implemented when the modal loop code is done
34339 2004-08-31 19:55 pbartok
34342 - Fixed to match the removal of the needs_redraw concept
34344 2004-08-31 19:55 pbartok
34347 - Removed the rather odd split between 'needs redraw' and redrawing
34348 - Now handles the events that require regeneration (ambient
34349 properties and size)
34351 2004-08-31 19:41 pbartok
34354 - Added firing of BackColorChanged event
34355 - Added TopLevelControl property
34356 - Fixed handling of WM_ERASEBKGRND message
34358 2004-08-31 12:49 pbartok
34364 2004-08-31 12:48 pbartok
34367 - Finished (famous last words)
34369 2004-08-31 04:35 jordi
34371 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34372 scrolling bugs, adds new methods
34374 2004-08-30 14:42 pbartok
34377 - Implemented CheckBox drawing code
34379 2004-08-30 14:42 pbartok
34382 - Made Redraw() and CheckRedraw() virtual
34383 - Improved mouse up/down/move logic to properly track buttons
34385 2004-08-30 09:44 pbartok
34388 - Updated to fix broken build. Not complete yet.
34390 2004-08-30 09:28 pbartok
34395 2004-08-30 09:17 pbartok
34400 2004-08-27 16:12 ravindra
34402 * ToolBarButton.cs: Added TypeConverter attribute.
34404 2004-08-27 16:07 ravindra
34406 * ImageIndexConverter.cs: Implemented.
34408 2004-08-27 14:17 pbartok
34411 - Removed unneeded stack vars
34412 - First attempt to fix sizing issues when layout is suspended
34414 2004-08-25 15:35 jordi
34416 * ScrollBar.cs: more fixes to scrollbar
34418 2004-08-25 14:04 ravindra
34420 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34421 Added the missing divider code and grip for ToolBar Control.
34423 2004-08-25 13:20 pbartok
34426 - Control now properly passes the ambient background color to child
34429 2004-08-25 13:20 jordi
34431 * ScrollBar.cs: small bug fix regarding bar position
34433 2004-08-25 12:33 pbartok
34436 - Now only calls SetTimer or KillTimer if the enabled state has
34439 2004-08-25 12:33 pbartok
34442 - Fixed timer handling, now seems to work
34443 - Improved error message for window creation
34445 2004-08-25 12:32 pbartok
34448 - Fixed generation of MouseUp message
34450 2004-08-25 12:29 jordi
34452 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34453 and fixes for progressbar
34455 2004-08-24 18:43 ravindra
34457 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34458 in ToolBar control.
34460 2004-08-24 17:15 pbartok
34464 - Added missing events
34467 2004-08-24 17:14 pbartok
34469 * StatusBar.cs, PictureBox.cs:
34470 - Now uses Control's CreateParams
34472 2004-08-24 16:36 pbartok
34475 - Fixed background color handling
34476 - Fixed sending of enter/leave events on a grab
34478 2004-08-24 16:35 pbartok
34481 - Refined definitions for CrossingEvent
34483 2004-08-24 12:37 jordi
34485 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34486 formmating, methods signature, and adds missing events
34488 2004-08-24 12:24 jordi
34490 * Control.cs: fire OnEnabledChanged event
34492 2004-08-24 11:17 pbartok
34495 - Implemented SetTimer() and KillTimer()
34497 2004-08-24 11:16 pbartok
34500 - Now uses Remove instead of Add to kill the timer
34502 2004-08-24 10:16 jackson
34504 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34505 picture boxes in the theme now. Draw picture box borders and obey
34508 2004-08-24 05:49 jackson
34510 * Timer.cs: Remove top secret debugging code
34512 2004-08-24 05:34 jackson
34514 * PictureBox.cs: Temp hack to make picture boxes draw their full
34517 2004-08-24 05:29 jackson
34519 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34520 XplatUIX11.cs: Move timers to the driver level. On X they are
34521 queued by the driver and checked on idle.
34523 2004-08-24 01:07 jackson
34525 * XplatUIX11.cs: Use a queue for async messages instead of passing
34526 them as ClientMessages since that was totally broken. Also simply
34527 check for events and return an idle message if none are found. This
34528 gives us an idle handler, and prevents deadlocking when no messages
34531 2004-08-23 18:19 ravindra
34533 * XplatUIWin32.cs: Removed the unwanted destructor.
34535 2004-08-23 17:27 pbartok
34538 - Finishing touches. Works now, just needs some optimizations.
34540 2004-08-23 16:53 jordi
34542 * ScrollBar.cs: small fix
34544 2004-08-23 16:45 pbartok
34547 - Removed debug output
34550 2004-08-23 16:43 jordi
34552 * ScrollBar.cs: [no log message]
34554 2004-08-23 16:10 pbartok
34557 - Fixed handling of WM_CLOSE message
34558 - Removed debug output
34560 2004-08-23 16:09 pbartok
34563 - Added handling of Idle event
34564 - Added handling of form closing
34565 - Fixed reporting of MessageLoop property
34566 - Removed some unneeded code, should provide a bit of a speedup
34568 2004-08-23 15:22 pbartok
34571 - Added InitLayout() method
34572 - Added code to properly perform layout when Anchor or Dock property
34574 - Changed 'interpretation' of ResumeLayout. MS seems to have a
34575 LAMESPEC, tried to do it in a way that makes sense
34577 2004-08-23 14:10 jordi
34579 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34580 properties and methods
34582 2004-08-23 13:55 pbartok
34585 - Properly fixed Jordi's last fix
34586 - Now uses Cursor's Position property instead of calling XplatUI
34589 2004-08-23 13:44 jordi
34591 * PaintEventHandler.cs: Adding missing attribute
34593 2004-08-23 13:39 pbartok
34596 - Implemented Position property
34598 2004-08-23 13:39 pbartok
34600 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34601 - Added method to move mouse cursor
34603 2004-08-23 13:39 pbartok
34606 - Fixed setting of background color
34607 - Added method to move mouse cursor
34609 2004-08-23 13:16 jordi
34611 * Control.cs: avoids null exception
34613 2004-08-22 17:46 jackson
34615 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34618 2004-08-22 17:40 jackson
34620 * XplatUIX11.cs: Add some missing locks
34622 2004-08-22 15:10 pbartok
34624 * Control.cs, Form.cs:
34625 - Removed OverlappedWindow style from Control, instead it's default
34627 - Made form windows OverlappedWindow by default
34629 2004-08-22 13:34 jackson
34631 * ScrollBar.cs: Update the position through the Value property so
34632 the OnValueChanged event is raised.
34634 2004-08-22 12:04 pbartok
34637 - Added Cursor.cs and UserControl.cs
34639 2004-08-22 12:03 pbartok
34642 - Started implementation, not usable yet
34644 2004-08-22 12:00 pbartok
34647 - Implemented UserControl (complete)
34649 2004-08-21 19:20 ravindra
34651 * ToolBar.cs: Correcting the formatting mess of VS.NET.
34653 2004-08-21 18:49 ravindra
34655 * ToolBar.cs: Probably this completes the missing attributes in
34658 2004-08-21 18:03 ravindra
34660 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34661 Fixed toolbar control signatures.
34663 2004-08-21 16:32 pbartok
34668 2004-08-21 16:30 pbartok
34673 2004-08-21 16:19 pbartok
34675 * Control.cs, Label.cs:
34678 2004-08-21 15:57 pbartok
34681 - Added loads of debug output for development
34682 - Fixed typo in method name
34684 2004-08-21 15:52 pbartok
34686 * ToolBarButtonClickEventArgs.cs:
34687 - Added missing base class
34689 2004-08-21 14:53 pbartok
34692 - Updated to match new GrabWindow signature
34694 2004-08-21 14:51 pbartok
34696 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34697 - Added method to get default display size
34699 2004-08-21 14:23 pbartok
34701 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34702 - Added method to query current grab state
34703 - Added argument to allow confining a grab to a window
34705 2004-08-21 14:22 pbartok
34708 - Added [Flags] attribute so that modifiers can be used in bitwise
34711 2004-08-21 14:21 pbartok
34713 * TrackBar.cs, ScrollBar.cs:
34714 - Replaced direct XplatUI calls with their Control counterpart
34716 2004-08-21 13:32 pbartok
34719 - Implemented Created property
34721 2004-08-21 13:28 pbartok
34724 - Implemented ContainsFocus
34726 2004-08-21 13:26 pbartok
34729 - Implemented CausesValidation
34731 2004-08-21 13:21 pbartok
34734 - Implemented CanFocus
34735 - Implemented CanSelect
34736 - Implemented Capture
34738 2004-08-21 12:35 pbartok
34741 - Fixed bug with Async message handling
34742 - Implemented getting the ModifierKeys
34744 2004-08-21 12:32 jackson
34746 * AsyncMethodResult.cs: Make sure we have the mutex before we
34747 release it. Fixes BeginInvoke on windows
34749 2004-08-21 11:31 pbartok
34751 * XplatUIWin32.cs, XplatUIX11.cs:
34752 - Drivers now return proper mouse state
34754 2004-08-21 10:54 jackson
34756 * Control.cs: Implement EndInvoke
34758 2004-08-21 10:48 jackson
34760 * Timer.cs: Remove unneeded finalizer
34762 2004-08-20 19:52 ravindra
34764 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34765 in mouse event handling in the ToolBar control.
34767 2004-08-20 19:50 ravindra
34769 * ImageList.cs: Changed draw method to use the arguments passed in
34772 2004-08-20 18:58 pbartok
34774 * XplatUIStructs.cs:
34775 - Added private message for async communication
34777 2004-08-20 17:38 ravindra
34779 * Control.cs: Made RightToLeft property virtual and removed a
34782 2004-08-20 14:39 jordi
34784 * ThemeGtk.cs: use style_attach
34786 2004-08-20 14:39 pbartok
34789 - Added jackson's Async code from X11 to Win32
34791 2004-08-20 14:09 pbartok
34794 - Added all new files
34796 2004-08-20 14:09 pbartok
34799 - Added call to set window background color
34801 2004-08-20 14:03 pbartok
34803 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34804 - Added method for setting the window background
34806 2004-08-20 14:02 pbartok
34809 - Added method for setting the background color
34810 - Added handling for erasing the window background
34812 2004-08-20 13:45 jordi
34814 * TrackBar.cs: fixes timer, new properties and methods
34816 2004-08-20 13:34 jackson
34818 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34821 2004-08-20 13:22 jackson
34823 * Timer.cs: Timer Tick events are now handed through Controls Async
34824 mechanism so the callbacks are executed in the same thread as X
34826 2004-08-20 13:19 jackson
34828 * XplatUIDriver.cs: Expose functionality to send async messages
34831 2004-08-20 13:18 jackson
34833 * Control.cs: Implement Begininvoke
34835 2004-08-20 13:14 jackson
34837 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34838 messages through the driver
34840 2004-08-20 13:12 jackson
34842 * XplatUIX11.cs: Lock before all X operations. Also added Async
34843 method functionality through XSendEvent
34845 2004-08-20 13:11 jackson
34847 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34848 This will screw up on 64 bit systems)
34850 2004-08-20 13:10 jackson
34852 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34853 Async messages through X/Win32
34855 2004-08-19 19:39 pbartok
34858 - Updated code to match new HandleData.DeviceContext type
34860 2004-08-19 19:38 pbartok
34863 - Made DeviceContext a generic object to allow usage from various
34865 - Added support for queueing Windows messages
34867 2004-08-19 19:37 pbartok
34870 - Added generation of MouseEnter, MouseLeave and MouseHover events
34871 - Added cleanup on EndPaint
34873 2004-08-19 19:17 pbartok
34876 - Added handling of WM_MOUSEHOVER
34877 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34880 2004-08-19 18:55 jordi
34882 * ThemeGtk.cs: fixes button order
34884 2004-08-19 18:12 jordi
34886 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34888 2004-08-19 17:09 pbartok
34891 - Added Right property
34892 - Added RightToLeft property
34894 2004-08-19 16:27 jordi
34896 * ThemeGtk.cs: experimental GTK theme support
34898 2004-08-19 16:26 jordi
34900 * ITheme.cs, Theme.cs: move themes from an interface to a class
34902 2004-08-19 16:25 jordi
34904 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34907 2004-08-19 16:04 pbartok
34910 - Added colormap basics
34911 - Added a way to re-initialize with a different display handle
34912 - Fixed setting of the window background color
34913 - Added various X11 imports related to colors and colormaps
34915 2004-08-19 15:51 pbartok
34918 - Removed packing hints (Paolo suggested this a while back)
34919 - fixed colormap type
34920 - Added default Atom types
34921 - Added Screen and color structs and enums
34923 2004-08-19 15:39 pbartok
34926 - Added missing Draw() method
34927 - Added missing RecreateHandle event
34929 2004-08-19 15:30 pbartok
34932 - Added handling of WM_CLOSE
34934 2004-08-18 13:16 jordi
34936 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
34939 2004-08-18 09:56 jordi
34941 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
34943 2004-08-17 15:31 ravindra
34945 * SWF.csproj: Updated project.
34947 2004-08-17 15:25 pbartok
34950 - Drawing improvement; don't call UpdateBounds if we are not visible
34951 (or have been minimized)
34953 2004-08-17 15:24 pbartok
34956 - Finished IsVisible
34957 - Added Win32GetWindowPlacement
34959 2004-08-17 15:08 jackson
34961 * Panel.cs: Initial checkin of the Panel
34963 2004-08-17 14:25 pbartok
34966 - Fixed broken handling of default window sizes
34968 2004-08-17 13:29 jackson
34970 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
34971 has a large startup time.
34973 2004-08-17 10:25 jackson
34975 * HandleData.cs: union areas properly
34977 2004-08-17 10:12 jackson
34979 * HandleData.cs: union areas properly
34981 2004-08-16 20:00 ravindra
34983 * ToolBar.cs, ToolBarButton.cs: Added attributes.
34985 2004-08-16 18:48 ravindra
34987 * ToolBar.cs: Added attributes.
34989 2004-08-16 17:17 ravindra
34991 * SWF.csproj: Updated project.
34993 2004-08-16 17:16 jackson
34995 * XplatUIX11.cs: Check for more expose events before sending a
34996 WM_PAINT so they can all be grouped together. This makes dragging a
34997 window across another window redraw in a sane way.
34999 2004-08-16 15:47 pbartok
35002 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35003 support OnMouseEnter/Leave()
35004 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35007 2004-08-16 15:46 pbartok
35009 * XplatUIStructs.cs, XplatUIX11.cs:
35010 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35011 OnMouseEnter/Leave()
35013 2004-08-16 15:34 jackson
35015 * XplatUIX11.cs: Group multiple expose events in HandleData, make
35016 sure messages get the message field set to WM_NULL if they are not
35019 2004-08-16 15:24 jackson
35021 * HandleData.cs: HandleData is used for storing message information
35024 2004-08-15 17:23 ravindra
35026 * ColorDepth.cs: Added attribute.
35028 2004-08-15 17:23 ravindra
35030 * SWF.csproj: Updated project for ToolBar Control.
35032 2004-08-15 17:20 ravindra
35034 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
35035 control and also dos2unix format.
35037 2004-08-15 17:13 ravindra
35039 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
35040 ToolBarButtonClickEventArgs.cs,
35041 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
35042 ToolBarTextAlign.cs: First Implementation of ToolBar control.
35044 2004-08-15 15:31 pbartok
35047 - First (mostly) working version
35049 2004-08-13 16:15 pbartok
35052 - Fixed Anchor default
35054 2004-08-13 15:43 pbartok
35057 - Changed GetCursorPos signature
35059 2004-08-13 15:42 pbartok
35061 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35062 - Changed signature for GetCursorPos
35064 2004-08-13 15:25 pbartok
35068 - Fixed resizing/exposure handling
35070 2004-08-13 15:22 jordi
35072 * ThemeWin32Classic.cs: removes redundant code and fixes issues
35075 2004-08-13 14:55 jordi
35077 * TrackBar.cs: change from wndproc to events
35079 2004-08-13 13:00 jordi
35081 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35082 XplatUIX11.cs: implements PointToClient (ScreenToClient)
35084 2004-08-13 12:53 pbartok
35087 - Changed GetWindowPos to also provide client area size
35088 - Fixed broken prototypes for several win32 functions
35090 2004-08-13 12:53 pbartok
35092 * XplatUI.cs, XplatUIDriver.cs:
35093 - Changed GetWindowPos to also provide client area size
35095 2004-08-13 12:52 pbartok
35098 - Added generation of WM_POSCHANGED
35099 - Changed GetWindowPos to also provide client area size
35101 2004-08-13 12:52 pbartok
35104 - Added Dispose() and destructor
35105 - Fixed resizing and bounds calculation
35107 - Added memory savings for invisible windows
35109 2004-08-13 12:46 jordi
35111 * TrackBar.cs: adds timer and grap window
35113 2004-08-13 10:25 jackson
35115 * Timer.cs: SWF Timer
35117 2004-08-12 16:59 pbartok
35119 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35120 - Implemented method to get current mouse position
35122 2004-08-12 14:29 jordi
35124 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35125 enhancement, fix mouse problems, highli thumb, etc
35127 2004-08-12 13:31 pbartok
35130 - Fixed Anchoring bugs
35132 2004-08-12 13:01 jackson
35134 * StatusBar.cs: Don't forget things
35136 2004-08-12 12:54 jackson
35138 * ThemeWin32Classic.cs: Handle owner draw status bars
35140 2004-08-12 12:54 jackson
35142 * StatusBar.cs: Implement missing properties, events, and methods.
35143 Handle mouse clicking
35145 2004-08-12 10:19 jackson
35147 * StatusBarPanelClickEventArgs.cs,
35148 StatusBarPanelClickEventHandler.cs: Classes for handling status
35149 bar panel click events
35151 2004-08-12 10:10 jackson
35153 * Control.cs: Add missing properties
35155 2004-08-12 09:46 pbartok
35157 * BindingsManagerBase.cs:
35158 - Name changed to BindingManagerBase.cs
35160 2004-08-12 09:25 jordi
35162 * ScrollableControl.cs: calls ctrlbase instead of exeception
35164 2004-08-11 16:28 pbartok
35166 * InputLanguageChangingEventArgs.cs:
35167 - Never check in before compiling. Fixes the last check-in
35169 2004-08-11 16:26 pbartok
35171 * InputLanguageChangingEventArgs.cs:
35172 - More signature fixes
35174 2004-08-11 16:20 pbartok
35176 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35177 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35178 ImageListStreamer.cs, InputLanguage.cs,
35179 InputLanguageChangedEventArgs.cs,
35180 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35181 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35182 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35183 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35186 2004-08-11 16:16 pbartok
35190 - Added .Net 1.1 method
35192 2004-08-11 15:25 pbartok
35195 - Fixed BindingManagerBase.cs filename
35197 2004-08-11 15:22 pbartok
35199 * BindingManagerBase.cs:
35200 - Was checked in with wrong filename
35202 2004-08-11 14:50 pbartok
35207 2004-08-11 13:41 jordi
35209 * XplatUIWin32.cs: Fixes ClientRect
35211 2004-08-11 13:19 pbartok
35213 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35215 - We had SetWindowPos and MoveWindow to set window positions and
35216 size, removed MoveWindow. We have GetWindowPos, so it made sense to
35217 keep SetWindowPos as matching counterpart
35218 - Added some X11 sanity checking
35220 2004-08-11 12:59 pbartok
35223 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35224 (It seems that SetBounds is just a front for SetBoundsCore and
35225 SetBoundsCore updates the underlying window system and
35226 UpdateBounds is responsible for updating the variables associated
35227 with the Control and sending the events)
35228 - Major cleanup of Size handling; we now have two sizes, client_size
35229 and bounds. Bounds defines the window with decorations, client_size
35232 2004-08-11 12:55 pbartok
35234 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35235 - Added method to calculate difference between decorated window and
35238 2004-08-11 12:54 pbartok
35241 - Forcing redraw on resize
35243 2004-08-11 11:43 pbartok
35246 - Removed disposing of the actual images when the list is disposed
35248 2004-08-11 09:13 pbartok
35251 - Now properly reparents windows
35253 2004-08-11 08:37 pbartok
35258 2004-08-11 07:47 pbartok
35261 - Rewrote the collection stuff. Might not be as fast now, not
35262 keeping the number of children around and accessible directly, but
35263 it's more straightforward
35265 2004-08-11 07:44 pbartok
35267 * AccessibleObject.cs:
35268 - Fixed to match ControlCollection rewrite
35270 2004-08-11 07:43 pbartok
35273 - Added missing creation of the collection list
35275 2004-08-10 20:08 jackson
35277 * StatusBar.cs: Get the paint message from WndProc
35279 2004-08-10 19:31 jackson
35281 * ThemeWin32Classic.cs: Create Brushes as little as possible
35283 2004-08-10 19:20 jackson
35285 * UICues.cs: Add Flags attribute
35287 2004-08-10 19:19 jackson
35289 * StatusBarPanel.cs: Signature cleanup
35291 2004-08-10 19:10 jackson
35293 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35294 Initial implementation of status bar item drawing
35296 2004-08-10 17:27 jordi
35298 * TrackBar.cs: add missing methods, properties, and restructure to
35301 2004-08-10 16:24 jackson
35303 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35304 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35307 2004-08-10 13:21 jordi
35309 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35310 enhancements and standarize on win colors defaults
35312 2004-08-10 12:52 jackson
35314 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35315 ThemeWin32Classic.cs: Implement DrawItem functionality
35317 2004-08-10 12:47 jordi
35319 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35321 2004-08-10 12:32 jordi
35323 * Control.cs: throw ontextchange event
35325 2004-08-10 11:43 pbartok
35328 - Added more to the still unfinished Dock/Anchor layout code
35330 2004-08-10 11:39 pbartok
35332 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35333 - Added GetWindowPos method
35335 2004-08-10 11:36 pbartok
35338 - Implemented several methods
35340 2004-08-10 09:47 jackson
35342 * TrackBar.cs: Allow control to handle buffering
35344 2004-08-10 09:41 jackson
35346 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35348 2004-08-10 09:24 jackson
35350 * Label.cs, LinkLabel.cs: Let Control handle buffering.
35352 2004-08-10 09:09 jackson
35354 * StatusBar.cs: Let Control handle all the buffering.
35356 2004-08-10 09:08 jackson
35358 * Control.cs: Control will now handle the buffering code, so each
35359 control does not have to implement this.
35361 2004-08-10 08:34 jackson
35363 * XplatUIDriver.cs: Use default colors from the theme
35365 2004-08-09 17:12 pbartok
35368 - Fixed several bugs Ravindra pointed out
35370 2004-08-09 16:11 pbartok
35373 - Added incomplete dock layout code
35374 - Added support for mouse wheel
35376 2004-08-09 16:09 pbartok
35379 - Added handling for middle and right mousebutton
35380 - Added handling for mouse wheel
35381 - Added handling for key state and mouse state and position
35382 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35385 2004-08-09 15:40 jackson
35387 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35388 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35391 2004-08-09 15:37 jackson
35393 * StatusBar.cs: Initial implementation of StatusBar
35395 2004-08-09 15:36 jackson
35397 * ITheme.cs: Add support for drawing status bar and getting status
35400 2004-08-09 15:35 pbartok
35405 2004-08-09 15:34 jackson
35407 * ThemeWin32Classic.cs: Add support for drawing status bar and get
35408 status bar item sizes
35410 2004-08-09 15:21 jackson
35412 * ThemeWin32Classic.cs: Use known colors for default control
35415 2004-08-09 15:12 jackson
35417 * ThemeWin32Classic.cs: Make the default font static, it is static
35418 in control so this doesn't change functionality and creating fonts
35421 2004-08-09 14:56 pbartok
35424 - Added GrabMode enum
35426 2004-08-09 14:55 pbartok
35428 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35429 - Removed Run method, was only required for initial development
35431 2004-08-09 14:51 pbartok
35433 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35434 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35437 2004-08-09 13:48 pbartok
35440 - Fixed default sizing for child windows
35442 2004-08-09 12:56 pbartok
35445 - Added generation of WM_DESTROY message
35446 - Added handling of window manager induced shutdown
35448 2004-08-09 11:31 jackson
35450 * ThemeWin32Classic.cs: New names for control properties
35452 2004-08-09 11:25 jackson
35454 * Control.cs: Use new color names
35456 2004-08-09 11:02 jackson
35458 * XplatUI.cs: Get default window properties from the theme
35460 2004-08-09 11:01 jackson
35462 * ITheme.cs: The theme engine now controls default window
35465 2004-08-09 11:00 jackson
35467 * ThemeWin32Classic.cs: Add default window color properties
35469 2004-08-09 10:17 jackson
35471 * ThemeWin32Classic.cs: Use correct default back color
35473 2004-08-09 10:05 jackson
35475 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35478 2004-08-09 09:56 jackson
35480 * XplatUI.cs: Remove defaults, these are handled by the theme now.
35482 2004-08-09 09:54 jackson
35484 * Control.cs: Get default properties from the theme.
35486 2004-08-09 09:53 jackson
35488 * ITheme.cs: Themes now handle default control properties
35490 2004-08-09 09:53 jackson
35492 * ThemeWin32Classic.cs: Themes now handle default control
35493 properties so coloring will be consistent
35495 2004-08-08 16:54 jordi
35497 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35499 2004-08-08 15:08 jordi
35501 * XplatUIX11.cs: fixes keyboard crash
35503 2004-08-08 13:47 jordi
35505 * Label.cs: add cvs header info
35507 2004-08-08 12:09 jackson
35509 * ThemeWin32Classic.cs: Add pen_buttonface
35511 2004-08-08 11:52 jordi
35513 * Label.cs, LinkLabel.cs: [no log message]
35515 2004-08-08 11:34 jordi
35517 * ThemeWin32Classic.cs: Use Windows Standard Colours
35519 2004-08-07 17:32 jordi
35521 * TrackBar.cs: throw exceptions of invalid enums values
35523 2004-08-07 17:31 jordi
35525 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35528 2004-08-07 16:56 jackson
35530 * HorizontalAlignment.cs: Initial checkin
35532 2004-08-07 13:16 jordi
35534 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35537 2004-08-07 13:05 jordi
35539 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35540 GetSysColor defines
35542 2004-08-06 18:01 pbartok
35544 * ThemeWin32Classic.cs:
35545 - Fixed some rounding issues with float/int
35547 2004-08-06 18:00 jackson
35549 * DockStyle.cs, AnchorStyles.cs:
35551 Add flags and serializable attributes.
35553 2004-08-06 17:46 pbartok
35556 - Implemented GetParent
35558 2004-08-06 17:18 pbartok
35561 - Fixed some rounding issues with float/int
35563 2004-08-06 17:17 pbartok
35565 * X11Structs.cs, XplatUIX11.cs:
35566 - Fixed Refresh and Invalidate
35568 2004-08-06 15:30 pbartok
35570 * Control.cs, X11Structs.cs, XplatUIX11.cs:
35571 - Fixed recursive loop when resizing
35572 - Improved/fixed redrawing on expose messages
35574 2004-08-06 09:53 jordi
35576 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35577 keyboard navigation
35579 2004-08-06 08:02 pbartok
35581 * X11Structs.cs, XplatUIX11.cs:
35582 - Fixed reparenting
35583 - Fixed window border creation
35585 2004-08-05 15:38 pbartok
35588 - Attempted fix for reparenting problems
35590 2004-08-04 15:14 pbartok
35593 - Fixed Invalidation bug (calculated wrong client area)
35594 - Added ClientSize setter
35596 2004-08-04 15:13 pbartok
35599 - Added AutoScale properties
35601 2004-08-04 15:13 pbartok
35604 - Added latest files
35606 2004-08-04 14:11 pbartok
35608 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35610 - Added Invalidate handling
35612 2004-08-03 17:09 jordi
35614 * XplatUIDriver.cs: fixes spelling mistake
35616 2004-07-27 09:53 jordi
35618 * TrackBar.cs: fixes trackbar events, def classname, methods
35621 2004-07-27 09:29 jordi
35623 * ScrollBar.cs: fixes scrollbar events
35625 2004-07-27 04:38 jordi
35627 * Control.cs: changes to be able to run winforms samples
35629 2004-07-26 11:42 jordi
35631 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35632 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35634 2004-07-26 05:41 jordi
35636 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35637 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35640 2004-07-22 09:22 jordi
35642 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35643 check link overlapping, implement events, and fixes
35645 2004-07-21 10:28 jordi
35647 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35649 2004-07-21 10:19 jordi
35651 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35652 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35653 LinkLabelLinkClickedEventArgs.cs,
35654 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35655 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35658 2004-07-19 13:09 jordi
35660 * Control.cs, Label.cs: label control re-written: added missing
35661 functionlity, events, and properties
35663 2004-07-19 10:49 jordi
35665 * Control.cs: fixes SetBounds logic
35667 2004-07-19 01:29 jordi
35669 * Control.cs: Call RefreshWindow only if the window has created
35671 2004-07-15 14:05 pbartok
35673 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35674 - Implemented ImageList and ImageList.ImageCollection classes
35675 - Added ColorDepth enumeration
35676 - Updated SWF VS.Net project
35678 2004-07-15 11:06 jordi
35680 * XplatUIStructs.cs: added MsgButons enum
35682 2004-07-15 11:03 jordi
35684 * Control.cs: added basic mouse handeling events
35686 2004-07-15 03:38 jordi
35688 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35689 Vertical TrackBar control implementation
35691 2004-07-13 09:33 jordi
35693 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35695 2004-07-13 09:31 jordi
35697 * Control.cs, Form.cs: commit: new properties and fixes form size
35700 2004-07-09 14:13 miguel
35702 * ProgressBar.cs: Spelling
35704 2004-07-09 11:25 pbartok
35707 - Removed usage of Rectangle for drawing. Miguel pointed out it's
35710 2004-07-09 11:17 miguel
35712 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
35714 * ProgressBar.cs: Fixed spelling for `block'
35716 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35719 Avoid using the += on rect.X, that exposed a bug in the compiler.
35721 2004-07-08 23:21 pbartok
35723 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35724 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35725 BaseCollection.cs, Binding.cs, BindingContext.cs,
35726 BindingMemberInfo.cs, BindingsCollection.cs,
35727 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35728 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35729 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35730 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35731 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35732 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35733 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35734 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35735 FrameStyle.cs, GiveFeedbackEventArgs.cs,
35736 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35737 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35738 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35739 InputLanguageChangedEventArgs.cs,
35740 InputLanguageChangedEventHandler.cs,
35741 InputLanguageChangingEventArgs.cs,
35742 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35743 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35744 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35745 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35746 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35747 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35748 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35749 QueryAccessibilityHelpEventArgs.cs,
35750 QueryAccessibilityHelpEventHandler.cs,
35751 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35752 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35753 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35754 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35755 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35756 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35757 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35758 XplatUIX11.cs, lang.cs: